GNU bug report logs -
#57429
[PATCH 0/3] gnu: piper: Fix runtime and update to 0.7
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 57429 in the body.
You can then email your comments to 57429 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#57429
; Package
guix-patches
.
(Fri, 26 Aug 2022 14:32:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Tobias Kortkamp <tobias.kortkamp <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Fri, 26 Aug 2022 14:32:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi,
this fixes piper which currently has a broken wrapper script and does
not run without setting PYTHONPATH manually first.
While here I also fixed the tests and updated piper to 0.7 (minor
update). Those are unrelated to the runtime fix but simple enough that
I batched them all up together. Hope that is ok.
Best regards,
Tobias Kortkamp (3):
gnu: piper: Fix runtime.
gnu: piper: Unbreak tests.
gnu: piper: Update to 0.7.
gnu/packages/gnome.scm | 49 ++++++++++++++++++++++--------------------
1 file changed, 26 insertions(+), 23 deletions(-)
--
2.37.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#57429
; Package
guix-patches
.
(Fri, 26 Aug 2022 14:38:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 57429 <at> debbugs.gnu.org (full text, mbox):
The wrapper script does not add piper's own Python files to
GUIX_PYTHONPATH. Copy the approach from gtg to solve this.
Traceback (most recent call last):
File "/gnu/store/9fq062kva6ffidilg0qn8liqn6a8yf1w-piper-0.6/bin/.piper-real", line 36, in <module>
from piper.application import Application
ModuleNotFoundError: No module named 'piper'
* gnu/packages/gnome.scm (piper): Fix runtime.
---
gnu/packages/gnome.scm | 39 +++++++++++++++++++--------------------
1 file changed, 19 insertions(+), 20 deletions(-)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index ae46e55c51..fe822eb035 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -12122,26 +12122,25 @@ (define-public piper
python-pycairo
python-pygobject))
(arguments
- `(#:imported-modules ((guix build python-build-system)
- ,@%meson-build-system-modules)
- #:modules (((guix build python-build-system) #:prefix python:)
- (guix build meson-build-system)
- (guix build utils))
- #:tests? #f ;; The flake8 test fails trying to validate piper.in as code.
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'dont-update-gtk-icon-cache
- (lambda _
- (substitute* "meson.build"
- (("meson.add_install_script('meson_install.sh')") ""))))
- ;; TODO: Switch to wrap-script when it is fixed.
- (add-after 'install 'wrap-python
- (assoc-ref python:%standard-phases 'wrap))
- (add-after 'wrap-python 'wrap
- (lambda* (#:key outputs #:allow-other-keys)
- (wrap-program
- (string-append (assoc-ref outputs "out" )"/bin/piper")
- `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))))))))
+ (list #:glib-or-gtk? #t
+ #:tests? #f ;; The flake8 test fails trying to validate piper.in as code.
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'dont-update-gtk-icon-cache
+ (lambda _
+ (substitute* "meson.build"
+ (("meson.add_install_script('meson_install.sh')") ""))))
+ (add-after 'glib-or-gtk-wrap 'python-and-gi-wrap
+ (lambda _
+ (let ((pylib (string-append #$output
+ "/lib/python"
+ #$(version-major+minor
+ (package-version python))
+ "/site-packages")))
+ (wrap-program
+ (string-append #$output "/bin/piper")
+ `("GUIX_PYTHONPATH" = (,(getenv "GUIX_PYTHONPATH") ,pylib))
+ `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))))))))
(home-page "https://github.com/libratbag/piper/")
(synopsis "Configure bindings and LEDs on gaming mice")
(description "Piper is a GTK+ application for configuring gaming mice with
--
2.37.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#57429
; Package
guix-patches
.
(Fri, 26 Aug 2022 14:38:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 57429 <at> debbugs.gnu.org (full text, mbox):
Make flake8 config available inside the build directory.
https://github.com/libratbag/piper/pull/781
* gnu/packages/gnome.scm (piper): Unbreak tests.
---
gnu/packages/gnome.scm | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index fe822eb035..83d64fbd49 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -12123,7 +12123,6 @@ (define-public piper
python-pygobject))
(arguments
(list #:glib-or-gtk? #t
- #:tests? #f ;; The flake8 test fails trying to validate piper.in as code.
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'dont-update-gtk-icon-cache
@@ -12140,7 +12139,11 @@ (define-public piper
(wrap-program
(string-append #$output "/bin/piper")
`("GUIX_PYTHONPATH" = (,(getenv "GUIX_PYTHONPATH") ,pylib))
- `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))))))))
+ `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))))))
+ (add-before 'check 'flake8-config
+ (lambda _
+ ;; Make sure the tests use the local flake8 config
+ (symlink (string-append #$source "/.flake8") ".flake8"))))))
(home-page "https://github.com/libratbag/piper/")
(synopsis "Configure bindings and LEDs on gaming mice")
(description "Piper is a GTK+ application for configuring gaming mice with
--
2.37.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#57429
; Package
guix-patches
.
(Fri, 26 Aug 2022 14:38:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 57429 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/gnome.scm (piper): Update to 0.7.
[native-inputs]: Add appstream.
---
gnu/packages/gnome.scm | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 83d64fbd49..0e155c29a3 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -12094,7 +12094,7 @@ (define-public libratbag
(define-public piper
(package
(name "piper")
- (version "0.6")
+ (version "0.7")
(source
(origin
(method git-fetch)
@@ -12102,11 +12102,12 @@ (define-public piper
(url "https://github.com/libratbag/piper")
(commit version)))
(sha256
- (base32 "02x4d4n0078slj2pl0rvgayrrxvna6y6vj8fxfamvazsh5xyfzwk"))
+ (base32 "0jsvfy0ihdcgnqljfgs41lys1nlz18qvsa0a8ndx3pyr41f8w8wf"))
(file-name (git-file-name name version))))
(build-system meson-build-system)
(native-inputs
- (list gettext-minimal
+ (list appstream
+ gettext-minimal
`(,glib "bin")
gobject-introspection
pkg-config
--
2.37.1
Reply sent
to
Mathieu Othacehe <othacehe <at> gnu.org>
:
You have taken responsibility.
(Sun, 11 Sep 2022 14:51:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Tobias Kortkamp <tobias.kortkamp <at> gmail.com>
:
bug acknowledged by developer.
(Sun, 11 Sep 2022 14:51:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 57429-done <at> debbugs.gnu.org (full text, mbox):
Hey,
Looks fine, applied!
Thanks,
Mathieu
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 10 Oct 2022 11:24:08 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 197 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.