GNU bug report logs -
#44958
[PATCH 0/2] Update Nicotine to 2.1.2
Previous Next
Reported by: Martin Becze <mjbecze <at> riseup.net>
Date: Mon, 30 Nov 2020 10:49:01 UTC
Severity: normal
Tags: patch
Done: Leo Famulari <leo <at> famulari.name>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 44958 in the body.
You can then email your comments to 44958 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#44958
; Package
guix-patches
.
(Mon, 30 Nov 2020 10:49:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Martin Becze <mjbecze <at> riseup.net>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Mon, 30 Nov 2020 10:49:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
This updates Nicotine to 2.1.2 and adds the its dependencies.
Martin Becze (2):
gnu: Add python-pytaglib.
gnu: nicotine: Update to 2.1.2.
gnu/packages/mp3.scm | 25 +++++++++++++++++++++++++
gnu/packages/nicotine.scm | 16 ++++++++--------
2 files changed, 33 insertions(+), 8 deletions(-)
--
2.29.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#44958
; Package
guix-patches
.
(Mon, 30 Nov 2020 10:51:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 44958 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/mp3.scm (python-pytaglib): New variable.
---
gnu/packages/mp3.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/gnu/packages/mp3.scm b/gnu/packages/mp3.scm
index ac546e8c95..2a7242dc42 100644
--- a/gnu/packages/mp3.scm
+++ b/gnu/packages/mp3.scm
@@ -591,3 +591,28 @@ FFmpeg, etc.")
"This package provides bindings for the Chromaprint acoustic
fingerprinting library and the Acoustid API.")
(license license:expat)))
+
+(define-public python-pytaglib
+ (package
+ (name "python-pytaglib")
+ (version "1.4.6")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pytaglib" version))
+ (sha256
+ (base32
+ "0li970qslfymz4vk1wrij2nfqw3l15cpc3fjjci48mpvg17gbnhn"))))
+ (build-system python-build-system)
+ (native-inputs
+ `(("taglib" ,taglib)
+ ("python-pytest" ,python-pytest)))
+ (home-page
+ "http://github.com/supermihi/pytaglib")
+ (synopsis
+ "Python binding for taglib")
+ (description
+ "This package is a Python audio tagging library. It is
+cross-platform, works with all Python versions, and is very
+simple to use yet fully feature.")
+ (license license:gpl3+)))
--
2.29.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#44958
; Package
guix-patches
.
(Mon, 30 Nov 2020 10:52:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 44958 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/nicotine.scm (nicotine+): Update to 2.1.2.
---
gnu/packages/nicotine.scm | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/nicotine.scm b/gnu/packages/nicotine.scm
index dee2917c49..5dc39334eb 100644
--- a/gnu/packages/nicotine.scm
+++ b/gnu/packages/nicotine.scm
@@ -21,23 +21,23 @@
#:use-module (guix packages)
#:use-module (guix git-download)
#:use-module (guix build-system python)
- #:use-module (gnu packages python-xyz)
#:use-module (gnu packages glib)
+ #:use-module (gnu packages gettext)
#:use-module (gnu packages gtk)
#:use-module (gnu packages check)
- #:use-module (gnu packages music))
+ #:use-module (gnu packages mp3))
(define-public nicotine+
(package
(name "nicotine+")
- (version "2.0.1")
+ (version "2.1.2")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/Nicotine-Plus/nicotine-plus")
(commit version)))
(file-name (git-file-name name version))
- (sha256 (base32 "07xagm6kwy8b6gcdv5vx78yqfllkz1gvlakkf0hi2c9ivncq457g"))))
+ (sha256 (base32 "18rra8yqjr10z23chzcp53ncbd5fhm0iqgqxpbxfq7a10za02v6l"))))
(build-system python-build-system)
(arguments
'(#:phases
@@ -53,11 +53,11 @@
#t))))))
(inputs
`(("python-pygobject" ,python-pygobject)
- ("python-mutagen" ,python-mutagen)
- ("python-dbus" ,python-dbus)
- ("gtk+" ,gtk+)))
+ ("python-pytaglib" ,python-pytaglib)))
(native-inputs
- `(("python-pytest" ,python-pytest)))
+ `(("python-pytest" ,python-pytest)
+ ("gettext" ,gnu-gettext)
+ ("gtk+" ,gtk+)))
(home-page "https://nicotine-plus.github.io/nicotine-plus/")
(synopsis "Graphical client for Soulseek")
(description
--
2.29.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#44958
; Package
guix-patches
.
(Mon, 30 Nov 2020 17:12:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 44958 <at> debbugs.gnu.org (full text, mbox):
On Mon, Nov 30, 2020 at 04:50:46AM -0600, Martin Becze wrote:
> * gnu/packages/mp3.scm (python-pytaglib): New variable.
Thanks!
I applied your patch along with these changes, explained below:
------
diff --git a/gnu/packages/mp3.scm b/gnu/packages/mp3.scm
index 487117cc7d..e622f703d3 100644
--- a/gnu/packages/mp3.scm
+++ b/gnu/packages/mp3.scm
@@ -602,17 +602,31 @@ fingerprinting library and the Acoustid API.")
(uri (pypi-uri "pytaglib" version))
(sha256
(base32
- "0li970qslfymz4vk1wrij2nfqw3l15cpc3fjjci48mpvg17gbnhn"))))
+ "0li970qslfymz4vk1wrij2nfqw3l15cpc3fjjci48mpvg17gbnhn"))
+ ;; Delete file generated by Cython.
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ (delete-file "src/taglib.cpp")))))
(build-system python-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ ;; Ensure that the Cython file is regenerated.
+ (add-after 'unpack 'setup-environment
+ (lambda _
+ (setenv "PYTAGLIB_CYTHONIZE" "1"))))))
(native-inputs
- `(("taglib" ,taglib)
+ `(("python-cython" ,python-cython)
("python-pytest" ,python-pytest)))
+ (inputs
+ `(("taglib" ,taglib)))
(home-page
"https://github.com/supermihi/pytaglib")
(synopsis
- "Python binding for taglib")
+ "Python bindings for taglib")
(description
"This package is a Python audio tagging library. It is
cross-platform, works with all Python versions, and is very
-simple to use yet fully feature.")
+simple to use yet fully featured.")
(license license:gpl3+)))
------
In general, we try not to use "pre-built" C and C++ files that are
created by Cython. They are not really considered "source code" because
they are not in the format preferred for editing.
I moved the taglib dependency from native-inputs to inputs, because it
is still referred to by the built pytaglib:
------
$ guix gc --references $(./pre-inst-env guix build --no-grafts python-pytaglib) | grep taglib-1.12
/gnu/store/b12szz8wy7wxvfv2jfj5ygqkgqar03ih-taglib-1.12-beta-1
------
And I made some minor grammatical changes in the synopsis and
description. Thanks again!
Information forwarded
to
guix-patches <at> gnu.org
:
bug#44958
; Package
guix-patches
.
(Mon, 30 Nov 2020 17:22:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 44958 <at> debbugs.gnu.org (full text, mbox):
On Mon, Nov 30, 2020 at 04:50:47AM -0600, Martin Becze wrote:
> * gnu/packages/nicotine.scm (nicotine+): Update to 2.1.2.
Awesome, thanks for keeping up with this package!
I noticed that on my Debian system, Nicotine would crash when I tried to
open the "settings" window, with this message:
------
(.nicotine-real:20767): GLib-GIO-ERROR **: 12:12:44.338: Settings schema 'org.gtk.Settings.FileChooser' is not installed
------
I guessed it needed some of the special wrappers from the GLib / GTK+
build systems, so I used them by applying this diff to your patch:
------
diff --git a/gnu/packages/nicotine.scm b/gnu/packages/nicotine.scm
index 5dc39334eb..7d937c11e5 100644
--- a/gnu/packages/nicotine.scm
+++ b/gnu/packages/nicotine.scm
@@ -40,7 +40,13 @@
(sha256 (base32 "18rra8yqjr10z23chzcp53ncbd5fhm0iqgqxpbxfq7a10za02v6l"))))
(build-system python-build-system)
(arguments
- '(#:phases
+ `(#:imported-modules ((guix build glib-or-gtk-build-system)
+ ,@%python-build-system-modules)
+ #:modules
+ ((guix build utils)
+ (guix build python-build-system)
+ ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:))
+ #:phases
(modify-phases %standard-phases
(add-after 'install 'wrap-program
(lambda* (#:key outputs #:allow-other-keys)
@@ -50,14 +56,19 @@
(gi-typelib-path (getenv "GI_TYPELIB_PATH")))
(wrap-program prog
`("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path)))
- #t))))))
+ #t)))
+ (add-after 'wrap-program 'glib-or-gtk-wrap
+ (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap))
+ (add-after 'glib-or-gtk-wrap 'glib-or-gtk-compile-schemas
+ (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-compile-schemas))
+ )))
(inputs
- `(("python-pygobject" ,python-pygobject)
+ `(("gtk+" ,gtk+)
+ ("python-pygobject" ,python-pygobject)
("python-pytaglib" ,python-pytaglib)))
(native-inputs
`(("python-pytest" ,python-pytest)
- ("gettext" ,gnu-gettext)
- ("gtk+" ,gtk+)))
+ ("gettext" ,gnu-gettext)))
(home-page "https://nicotine-plus.github.io/nicotine-plus/")
(synopsis "Graphical client for Soulseek")
(description
------
I also moved the GTK+ input from native-inputs to inputs, since it is
referred to by the built Nicotine+ package. Native-inputs are for
packages that are only used while building, but we can expect GTK+ to be
used at run-time for this package.
And I swapped out gnu-gettext for gettext-minimal, to avoid depending on
Emacs.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#44958
; Package
guix-patches
.
(Mon, 30 Nov 2020 17:25:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 44958 <at> debbugs.gnu.org (full text, mbox):
On Mon, Nov 30, 2020 at 04:50:46AM -0600, Martin Becze wrote:
> * gnu/packages/mp3.scm (python-pytaglib): New variable.
> + (license license:gpl3+)))
Also, I changed this to 'gpl3'. The source file license headers do not
mention any later versions of the license.
Reply sent
to
Leo Famulari <leo <at> famulari.name>
:
You have taken responsibility.
(Mon, 30 Nov 2020 17:26:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Martin Becze <mjbecze <at> riseup.net>
:
bug acknowledged by developer.
(Mon, 30 Nov 2020 17:26:01 GMT)
Full text and
rfc822 format available.
Message #25 received at 44958-done <at> debbugs.gnu.org (full text, mbox):
On Mon, Nov 30, 2020 at 04:47:52AM -0600, Martin Becze wrote:
> This updates Nicotine to 2.1.2 and adds the its dependencies.
>
> Martin Becze (2):
> gnu: Add python-pytaglib.
> gnu: nicotine: Update to 2.1.2.
Thanks! Pushed as d6c4a436d7de43e88ccc67ceaee7c5caea9cd871 with the
changes mentioned in my replies to the patches themselves.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#44958
; Package
guix-patches
.
(Mon, 30 Nov 2020 17:31:02 GMT)
Full text and
rfc822 format available.
Message #28 received at 44958 <at> debbugs.gnu.org (full text, mbox):
Thank you for reviewing this Leo.
On 11/30/20 11:24 AM, Leo Famulari wrote:
> On Mon, Nov 30, 2020 at 04:50:46AM -0600, Martin Becze wrote:
>> * gnu/packages/mp3.scm (python-pytaglib): New variable.
>
>> + (license license:gpl3+)))
>
> Also, I changed this to 'gpl3'. The source file license headers do not
> mention any later versions of the license.
>
Ok cool! I didn't realize there was a difference.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#44958
; Package
guix-patches
.
(Mon, 30 Nov 2020 17:37:01 GMT)
Full text and
rfc822 format available.
Message #31 received at 44958 <at> debbugs.gnu.org (full text, mbox):
On Mon, Nov 30, 2020 at 11:29:56AM -0600, Martin Becze wrote:
> On 11/30/20 11:24 AM, Leo Famulari wrote:
> > Also, I changed this to 'gpl3'. The source file license headers do not
> > mention any later versions of the license.
> >
> Ok cool! I didn't realize there was a difference.
Here's an example of what it looks like when the "or later" clause is
present:
https://github.com/moddevices/caps-lv2/blob/master/Amp.cc#L15
Basically, it means the copyright holder agrees in advance to use any
version of the GPL that the Free Software Foundation may invent in the
future.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 29 Dec 2020 12:24:10 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 167 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.