Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 940573 - app-misc/piper-0.8 bump request
Summary: app-misc/piper-0.8 bump request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Alex Barker
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-01 05:21 UTC by Vasilis Lourdas
Modified: 2025-01-20 22:30 UTC (History)
3 users (show)

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


Attachments
libratbag-0.18.ebuild (libratbag-0.18.ebuild,2.26 KB, application/vnd.gentoo.ebuild)
2024-10-03 04:38 UTC, Alex Barker
Details
piper-0.8.ebuild (piper-0.8.ebuild,1.23 KB, application/vnd.gentoo.ebuild)
2024-10-03 04:56 UTC, Alex Barker
Details
ratbagd.init (ratbagd.init,337 bytes, text/plain)
2024-10-03 05:15 UTC, Alex Barker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vasilis Lourdas 2024-10-01 05:21:34 UTC
I've bought a Logitech G102 and have trouble using it with the current piper-0.7-r1 version. I see that 0.8 exists (it was released last week) and it requires dev-libs/libratbag 0.18 which contains this commit: https://github.com/libratbag/libratbag/pull/1389

It would help to have it in the tree.

Thank you.
Comment 1 Alex Barker 2024-10-03 04:38:40 UTC
Created attachment 904708 [details]
libratbag-0.18.ebuild

This is a simple version bump that seems to build for me.  I have not tested with systemd but I expect it should work the same as 0.17. I will take a look at piper next.
Comment 2 Alex Barker 2024-10-03 04:56:00 UTC
Created attachment 904709 [details]
piper-0.8.ebuild

I think piper 0.8 is okay. They seem to have removed the test build option so I've stripped that out and that was about it.  Now that I have both versions at 0.8 I have noticed some issues with libratbag I will start digging into.
Comment 3 Alex Barker 2024-10-03 05:15:16 UTC
Created attachment 904710 [details]
ratbagd.init

Installation path for ratbagd seems to have changed.  I don't think things are working, at least they don't appear to be for my g502. None of the LED controls seem to stick but it seems like its trying to do something.  Please test and let me know.  I will keep trying to debug things on this side as time permits.
Comment 4 Alex Barker 2024-10-03 05:47:31 UTC
Well, I think its working... at least its reading the values from the mouse and talking to dbus. Unfortunately, just about all functionality is broken for the g502 which is the only device I have to use with this library. Try you G102 and see if you have better luck.
Comment 5 Vasilis Lourdas 2024-10-05 09:41:20 UTC
Hi,

Thanks for your feedback and ebuild files. Unfortunately, I cannot seem to test the provided ebuilds. I downloaded them locally in my local overlay and when I run ebuild <file> digest to generate the digest file, I get this error:

ebuild libratbag-0.18.ebuild digest
 * ERROR: dev-libs/libratbag-0.18::local_repo failed (depend phase):
 *   Invalid implementation in PYTHON_COMPAT: python3_12
 * 
 * Call stack:
 *                 ebuild.sh, line 632:  Called source '/usr/local/portage/dev-libs/libratbag/libratbag-0.18.ebuild'
 *     libratbag-0.18.ebuild, line   8:  Called inherit 'meson' 'python-single-r1' 'systemd' 'udev'
 *                 ebuild.sh, line 312:  Called __qa_source '/usr/local/portage/eclass/python-single-r1.eclass'
 *                 ebuild.sh, line 123:  Called source '/usr/local/portage/eclass/python-single-r1.eclass'
 *   python-single-r1.eclass, line 257:  Called _python_single_set_globals
 *   python-single-r1.eclass, line 202:  Called _python_set_impls
 *    python-utils-r1.eclass, line 149:  Called die
 * The specific snippet of code:
 *   						die "Invalid implementation in PYTHON_COMPAT: ${i}"
 * 
 * If you need support, post the output of `emerge --info '=dev-libs/libratbag-0.18::local_repo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/libratbag-0.18::local_repo'`.
 * Working directory: '/usr/lib/python3.12/site-packages'
 * S: '/var/tmp/portage/dev-libs/libratbag-0.18/work/libratbag-0.18'

On the other hand, it seems that the current version 0.7 does seem to work ok with my G102 mouse. Other than that though, it would be nice to have the newer version working.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-10-05 09:43:36 UTC
(In reply to Vasilis Lourdas from comment #5)

You seem to have an ancient copy of the eclass in your overlay: 
 *                 ebuild.sh, line 123:  Called source '/usr/local/portage/eclass/python-single-r1.eclass'
Comment 7 Vasilis Lourdas 2024-10-05 09:46:38 UTC
(In reply to Sam James from comment #6)
> (In reply to Vasilis Lourdas from comment #5)
> 
> You seem to have an ancient copy of the eclass in your overlay: 
>  *                 ebuild.sh, line 123:  Called source
> '/usr/local/portage/eclass/python-single-r1.eclass'

You are correct. I will try the newer ebuild now. Thanks!
Comment 8 Vasilis Lourdas 2024-10-05 10:02:41 UTC
Ok, v.0.8 works fine for me. All functionality seems to be ok.

Question: Is it necessary to enable the ratbagd.service?
Comment 9 Alex Barker 2024-10-10 19:48:01 UTC
> Question: Is it necessary to enable the ratbagd.service?

Yes and No. If you do not enable it at boot, piper will start it for you when you use it with no easy way of disabling it. I don't particularly like that dynamic, but its what they did upstream.
Comment 10 Larry the Git Cow gentoo-dev 2025-01-20 22:30:07 UTC
The bug has been closed via the following commit(s):

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

commit a43350aba997c5a3c390d477c42763ca6ba7a46e
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2025-01-20 22:28:40 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2025-01-20 22:29:38 +0000

    app-misc/piper: Version bump to 0.8
    
    Closes: https://bugs.gentoo.org/940573
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>

 app-misc/piper/Manifest            |  1 +
 app-misc/piper/piper-0.7-r1.ebuild |  3 +-
 app-misc/piper/piper-0.8.ebuild    | 64 ++++++++++++++++++++++++++++++++++++++
 app-misc/piper/piper-9999.ebuild   | 13 +++-----
 4 files changed, 71 insertions(+), 10 deletions(-)

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

commit d001a3427076dc59d652a694c2cd95a056a002c6
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2025-01-20 22:14:45 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2025-01-20 22:29:35 +0000

    dev-libs/libratbag: Version bump to 0.18, fix ratbagctl test
    
    Closes: https://bugs.gentoo.org/940573
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>

 dev-libs/libratbag/Manifest              |   1 +
 dev-libs/libratbag/files/ratbagd.init-r1 |  13 ++++
 dev-libs/libratbag/libratbag-0.18.ebuild | 121 +++++++++++++++++++++++++++++++
 dev-libs/libratbag/libratbag-9999.ebuild |  10 ++-
 4 files changed, 143 insertions(+), 2 deletions(-)