Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 682372 - dev-libs/libratbag-0.15 version bump
Summary: dev-libs/libratbag-0.15 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PullRequest
: 717974 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-04-02 21:28 UTC by Till Schäfer
Modified: 2020-12-14 17:17 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
libratbag-0.13.ebuild (libratbag-0.13.ebuild,1.15 KB, text/plain)
2020-04-11 19:13 UTC, Alex Barker
Details
files/libratbag-systemd.patch (libratbag-systemd.patch,5.00 KB, patch)
2020-04-11 19:13 UTC, Alex Barker
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Till Schäfer 2019-04-02 21:28:14 UTC
A lot of new devices are supported now. However, the update also introduces a lot of build changes and seems to have a hard dependency on elogind or logind.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-09-12 18:34:15 UTC
Is this package useful on its own?  It's in library category, and has no reverse dependencies.
Comment 2 Gordon Pettey 2019-09-12 21:46:29 UTC
Yes, it is useful on its own; there are utility programs included. dev-libs is probably not the right category. x11-libs may be a better fit. There is not yet a package for it, but https://github.com/libratbag/piper provides a GUI depending on libratbag. Having just had a mouse die and grabbed a Logitech mouse off the shelf that is supported by libratbag, I'm attempting to get 0.10 to compile now.
Comment 3 Gordon Pettey 2019-09-13 01:35:28 UTC
dev-libs/libratbag-0.10 compiling and ratbagctl functioning with a G903 in github.com:petteyg/gentoo-overlay.git. I have not made an init script for ratbagd, and I have not tested the Unifying Receiver tool.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-09-13 04:56:33 UTC
Would you be interested in proxy-maintaining this?
Comment 5 DrSlony 2019-09-27 21:09:34 UTC
Hello, is using dev-libs/libratbag alone enough to be able to disable mouse lights, or are ratbagd and piper (#629006) needed?
Comment 6 Gordon Pettey 2019-09-27 22:27:23 UTC
You can control the lights with libratbag alone.
Comment 7 Alex Barker 2020-04-11 16:58:50 UTC
Well, if anyone else comes across this and wonders why we cannot have nice things, you can again blame Leonard Pottering. [1] It appears that modern versions of ratbagd require libsystemd to communicate with DBUS via the sd-bus abstraction.  I took a look at the code for both ratbagd and sd-bus but unfortunately it doesn't look like replacing libsystemd is a feasible route for this project.  There is some good news; it looks like ratbag-command and a number of other tools do not require systemd to function.  This should allow for building everything except ratbagd but will require patches on our part. I will make an attempt to get an updated ebuild into github for this package if things do indeed work.  If not, I will post some notes here for someones next attempt.

[1] https://github.com/libratbag/libratbag/issues/239
Comment 8 Alex Barker 2020-04-11 19:13:27 UTC
Created attachment 632300 [details]
libratbag-0.13.ebuild
Comment 9 Alex Barker 2020-04-11 19:13:53 UTC
Created attachment 632302 [details, diff]
files/libratbag-systemd.patch
Comment 10 Alex Barker 2020-04-11 19:17:20 UTC
Well, it compiles without systemd but its nearly useless with it as ratbagctl requires ratbagd to function.  Pursuing this without systemd or elogind is a lost cause and this package should probably be removed. Hopefully that bit of info is worth the 2 hours of my life I just spent on this.
Comment 11 Gordon Pettey 2020-04-11 19:53:19 UTC
libratbag-0.13 and piper-0.4 function just fine on my openrc+eudev+elogind system.
Comment 12 Alex Barker 2020-04-12 04:07:11 UTC
I am not sure I want to use elogind as everything works with console-kit.  I guess there isn't much choice these days.
Comment 13 Alex Barker 2020-04-12 18:03:45 UTC
Seems to compile and run for me after switching to elogind. Piper is not actually changing colors, haven't tested profiles yet.
Comment 14 Alex Barker 2020-04-12 18:30:41 UTC
Ok, it appears to be working.  I just had to create a profile first.
Comment 15 Alex Barker 2020-04-12 18:47:24 UTC
@Gordon Pettey, do you want me to add you to the proxy maint list?
Comment 16 Arfrever Frehtes Taifersar Arahesis 2020-04-18 01:40:47 UTC
(In reply to Alex Barker from comment #8)
> Created attachment 632300 [details]
> libratbag-0.13.ebuild

This usage of python-r1.eclass (which is for multi-Python packages) looks incorrect.
src_configure() calls meson only once, so only for one Python implementation.
Maybe with more effort using python-r1.eclass would be possible, but probably python-single-r1.eclass would suffice for now.
Comment 17 Alex Barker 2020-04-18 04:50:16 UTC
(In reply to Arfrever Frehtes Taifersar Arahesis from comment #16)
> (In reply to Alex Barker from comment #8)
> > Created attachment 632300 [details]
> > libratbag-0.13.ebuild
> 
> This usage of python-r1.eclass (which is for multi-Python packages) looks
> incorrect.
> src_configure() calls meson only once, so only for one Python implementation.
> Maybe with more effort using python-r1.eclass would be possible, but
> probably python-single-r1.eclass would suffice for now.

Both ebuilds should be converted over to a single PR with the python-single-r1 eclass in place of the python-r1.eclass.  Several other minor issues were fixed inducing the RDEPENDS and BDEPENDS.  Please let me know if there are any other updates.
Comment 18 Jeroen Roovers (RETIRED) gentoo-dev 2020-05-15 08:29:37 UTC
*** Bug 717974 has been marked as a duplicate of this bug. ***
Comment 19 Larry the Git Cow gentoo-dev 2020-12-14 17:17:52 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f0988043e55b524429f0246b727bef12b7de489

commit 4f0988043e55b524429f0246b727bef12b7de489
Author:     Alexander Barker <alex@1stleg.com>
AuthorDate: 2020-04-12 18:58:14 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2020-12-14 17:17:30 +0000

    dev-libs/libratbag: Bump to version 0.15
    
    Bug: https://bugs.gentoo.org/682372
    Closes: https://bugs.gentoo.org/682372
    Signed-off-by: Alex Barker <alex@1stleg.com>
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 dev-libs/libratbag/Manifest              |  1 +
 dev-libs/libratbag/libratbag-0.15.ebuild | 79 ++++++++++++++++++++++++++++++++
 dev-libs/libratbag/metadata.xml          |  9 +++-
 3 files changed, 88 insertions(+), 1 deletion(-)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f0988043e55b524429f0246b727bef12b7de489

commit 4f0988043e55b524429f0246b727bef12b7de489
Author:     Alexander Barker <alex@1stleg.com>
AuthorDate: 2020-04-12 18:58:14 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2020-12-14 17:17:30 +0000

    dev-libs/libratbag: Bump to version 0.15
    
    Bug: https://bugs.gentoo.org/682372
    Closes: https://bugs.gentoo.org/682372
    Signed-off-by: Alex Barker <alex@1stleg.com>
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 dev-libs/libratbag/Manifest              |  1 +
 dev-libs/libratbag/libratbag-0.15.ebuild | 79 ++++++++++++++++++++++++++++++++
 dev-libs/libratbag/metadata.xml          |  9 +++-
 3 files changed, 88 insertions(+), 1 deletion(-)