Eressea
Posts: 2
Joined: Fri Oct 27, 2017 10:18 am

Laptop-mode-tools package creation

Fri Oct 27, 2017 10:54 am

Hello,

I'm new on Solus and I think it work very well but the battery management is really terrible. So I decided to package laptop-mode-tools in order to save energy.

I'm totaly a begginer with this matter so I read tutorials and found that :

https://solus-project.com/articles/pack ... ackage/en/
https://solus-project.com/articles/pack ... ge.yml/en/

I've tried to create the package.yml :

Code: Select all


name	   : laptop-mode-tools
version    : 1.71.0
release    : 1
source     :
    - https://github.com/rickysarraf/laptop-mode-tools.git: d93bb7fa33ebca81ebbab6b4f1621fe6105d1$
license    : GPL-2.0
component  : system
summary    : Battery management tools
description: |
    An open source solution to manage battery consuption
builddeps  :
    - bash
    - acpid
    - bluez-utils
    - ethtool
    - hdparm
    - python2-pyside
    - sdparm
    - wireless_tools
    - xorg-xset
setup	   : |
    %cmake
build	   : |
    %make
install    : |
    %make_install
When I do sudo solbuild buit, the console echo tell

Code: Select all

 [BuildDep] Unknown build deps: sdparm python2-pyside bluez-utils acpid xorg-xset wireless_tools 
If I understand well, the system say that these dependances doesn't exist in Solus repository. I've tryed eopkg info with each unknow dependances and the command tell me that they are not in the repo.

My question : Have I to create a package for each missing dependances before building the final package or it have another solution ?

Thank you in advance for your responses.

PS: Sorry for my English but I'm french :)

Devil505
Posts: 115
Joined: Fri Jul 21, 2017 1:32 pm
Contact: Website

Re: Laptop-mode-tools package creation

Fri Oct 27, 2017 8:02 pm

It's xset and wireless-tools, for the orthers maybe you have to package them first indeed.

PS: Moi aussi :D

Eressea
Posts: 2
Joined: Fri Oct 27, 2017 10:18 am

Re: Laptop-mode-tools package creation

Fri Oct 27, 2017 9:10 pm

So I'll try my best to create these four packages :lol: (I readed your post in order to create my package.yml :D)

Another question : have I a way to find the dependencies name on Solus (other than eopkg info) ?

For the moment, I use https://aur.archlinux.org to find packages name but Solus use others name for their packages.

Devil505
Posts: 115
Joined: Fri Jul 21, 2017 1:32 pm
Contact: Website

Re: Laptop-mode-tools package creation

Sat Oct 28, 2017 9:01 am

One more thing, you should order alphabetically the depends.

To find the depends, you can check the README of the project you package. You can also fill a package request here https://dev.solus-project.com/ and have some help.

By the way, tlp and powertop are already available in the repo, maybe laptop-mode-tools is not necessary.

PS: Feel free to join the telegram group of french users https://t.me/solusfr :)

Return to “Packaging”