* [bug#28562] [PATCH] gnu: eudev: Update to 3.2.4 and generate manpages.
@ 2017-09-23 3:51 Maxim Cournoyer
2017-09-23 3:55 ` Maxim Cournoyer
2017-09-25 8:33 ` Thomas Danckaert
0 siblings, 2 replies; 7+ messages in thread
From: Maxim Cournoyer @ 2017-09-23 3:51 UTC (permalink / raw)
To: 28562
[-- Attachment #1: Type: text/plain, Size: 494 bytes --]
Hello,
The attached patch generates and installs the manpages for our eudev
package and updates it to the current 3.2.4 release.
I believe this should go to core-updates since it impacts more than 700
packages, based on `guix refresh --list-dependent eudev':
--8<---------------cut here---------------start------------->8---
Building the following 377 packages would ensure 718 dependent packages are rebuilt--8<---------------cut here---------------end--------------->8---
Thanks,
Maxim
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-eudev-Update-to-3.2.4-and-generate-manpages.patch --]
[-- Type: text/x-patch, Size: 4374 bytes --]
From 78115f0e5526ff516826ac830497123f26550640 Mon Sep 17 00:00:00 2001
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Date: Fri, 22 Sep 2017 23:24:23 -0400
Subject: [PATCH] gnu: eudev: Update to 3.2.4 and generate manpages.
* gnu/packages/linux.scm (eudev)[version]: Bump to 3.2.4.
[uri]: Download the release from Github, which contains the script to generate
the manpages from source.
[file-name]: Add a file-name field to the origin record, per linter recommendation.
[sha256]: Adjust accordingly.
[phases]: Add a bootstrap phase to regenerate the manpages.
[configure-flags]: Add the "--enable-manpages" option, required to install the
manpages.
[native-inputs]: Add autoconf, automake and libtool for the bootstrap phase.
Add python-wrapper to run a test script that was previously skipped.
Add docbook-xml, docbook-xsl, libxml2 and libxslt for manpage generation.
---
gnu/packages/linux.scm | 54 ++++++++++++++++++++++++++++++++++++--------------
1 file changed, 39 insertions(+), 15 deletions(-)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 8a69f0d9c..3618b184a 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -2055,30 +2055,54 @@ from the module-init-tools project.")
;; The post-systemd fork, maintained by Gentoo.
(package
(name "eudev")
- (version "3.2.2")
+ (version "3.2.4")
(source (origin
(method url-fetch)
- (uri (string-append
- "http://dev.gentoo.org/~blueness/eudev/eudev-"
- version ".tar.gz"))
+ (uri (string-append "https://github.com/gentoo/eudev/archive/v"
+ version ".zip"))
+ (file-name (string-append name "-" version ".zip"))
(sha256
(base32
- "0qqgbgpm5wdllk0s04pf80nwc8pr93xazwri1bylm1f15zn5ck1y"))
+ "1r1ag0snarygrj5qqxi2xdq9w6g3sfjd5jx1b0fl7zmqlsz3vvxx"))
(patches (search-patches "eudev-rules-directory.patch"))))
(build-system gnu-build-system)
(arguments
- '(#:phases (modify-phases %standard-phases
- (add-after 'install 'build-hwdb
- (lambda* (#:key outputs #:allow-other-keys)
- ;; Build OUT/etc/udev/hwdb.bin. This allows 'lsusb' and
- ;; similar tools to display product names.
- (let ((out (assoc-ref outputs "out")))
- (zero? (system* (string-append out "/bin/udevadm")
- "hwdb" "--update"))))))))
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'bootstrap
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "autogen.sh"
+ (("autoreconf")
+ (string-append (assoc-ref inputs "autoconf")
+ "/bin/autoreconf")))
+ (substitute* "man/make.sh"
+ (("/usr/bin/xsltproc")
+ (string-append (assoc-ref inputs "xsltproc")
+ "/bin/xsltproc")))
+ ;; Manual pages are regenerated here.
+ (zero? (system* "./autogen.sh"))))
+ (add-after 'install 'build-hwdb
+ (lambda* (#:key outputs #:allow-other-keys)
+ ;; Build OUT/etc/udev/hwdb.bin. This allows 'lsusb' and
+ ;; similar tools to display product names.
+ (let ((out (assoc-ref outputs "out")))
+ (zero? (system* (string-append out "/bin/udevadm")
+ "hwdb" "--update"))))))
+ #:configure-flags (list "--enable-manpages")))
(native-inputs
- `(("pkg-config" ,pkg-config)
+ `(("autoconf" ,autoconf)
+ ("automake" ,automake)
+ ("gperf" ,gperf)
+ ("libtool" ,libtool)
+ ("pkg-config" ,pkg-config)
+ ;; For tests.
("perl" ,perl)
- ("gperf" ,gperf)))
+ ("python" ,python-wrapper)
+ ;; For documentation.
+ ("docbook-xml" ,docbook-xml-4.2)
+ ("docbook-xsl" ,docbook-xsl)
+ ("libxml2" ,libxml2) ;for $XML_CATALOG_FILES
+ ("xsltproc", libxslt)))
(inputs
;; When linked against libblkid, eudev can populate /dev/disk/by-label
;; and similar; it also installs the '60-persistent-storage.rules' file,
--
2.14.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [bug#28562] [PATCH] gnu: eudev: Update to 3.2.4 and generate manpages.
2017-09-23 3:51 [bug#28562] [PATCH] gnu: eudev: Update to 3.2.4 and generate manpages Maxim Cournoyer
@ 2017-09-23 3:55 ` Maxim Cournoyer
2017-09-25 8:33 ` Thomas Danckaert
1 sibling, 0 replies; 7+ messages in thread
From: Maxim Cournoyer @ 2017-09-23 3:55 UTC (permalink / raw)
To: 28562
Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:
> I believe this should go to core-updates since it impacts more than 700
> packages, based on `guix refresh --list-dependent eudev':
Correction: s/core-updates/staging, according to the manual.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [bug#28562] [PATCH] gnu: eudev: Update to 3.2.4 and generate manpages.
2017-09-23 3:51 [bug#28562] [PATCH] gnu: eudev: Update to 3.2.4 and generate manpages Maxim Cournoyer
2017-09-23 3:55 ` Maxim Cournoyer
@ 2017-09-25 8:33 ` Thomas Danckaert
2017-09-25 20:54 ` [bug#28562] [PATCHv2] " Maxim Cournoyer
1 sibling, 1 reply; 7+ messages in thread
From: Thomas Danckaert @ 2017-09-25 8:33 UTC (permalink / raw)
To: Maxim Cournoyer; +Cc: 28562
Hi Maxim,
thanks for the patch!
Only one thing: we don't have to substitute the location of autoreconf
in autogen.sh: because autoconf is a native input, its executables are
already in the build environment PATH:
> + '(#:phases
> + (modify-phases %standard-phases
> + (add-before 'configure 'bootstrap
> + (lambda* (#:key inputs #:allow-other-keys)
> + (substitute* "autogen.sh"
> + (("autoreconf")
> + (string-append (assoc-ref inputs "autoconf")
> + "/bin/autoreconf")))
If you agree, I can push with that change (and will try to remember to
push to staging :0) ).
Thomas
^ permalink raw reply [flat|nested] 7+ messages in thread
* [bug#28562] [PATCHv2] gnu: eudev: Update to 3.2.4 and generate manpages.
2017-09-25 8:33 ` Thomas Danckaert
@ 2017-09-25 20:54 ` Maxim Cournoyer
2017-09-28 18:31 ` Thomas Danckaert
0 siblings, 1 reply; 7+ messages in thread
From: Maxim Cournoyer @ 2017-09-25 20:54 UTC (permalink / raw)
To: Thomas Danckaert; +Cc: 28562
[-- Attachment #1.1: Type: text/plain, Size: 977 bytes --]
Thomas Danckaert <post@thomasdanckaert.be> writes:
> Hi Maxim,
>
> thanks for the patch!
>
> Only one thing: we don't have to substitute the location of autoreconf
> in autogen.sh: because autoconf is a native input, its executables are
> already in the build environment PATH:
>
>> + '(#:phases
>> + (modify-phases %standard-phases
>> + (add-before 'configure 'bootstrap
>> + (lambda* (#:key inputs #:allow-other-keys)
>> + (substitute* "autogen.sh"
>> + (("autoreconf")
>> + (string-append (assoc-ref inputs "autoconf")
>> + "/bin/autoreconf")))
>
> If you agree, I can push with that change (and will try to remember to
> push to staging :0) ).
>
> Thomas
Hi Thomas,
Thanks for the review! You are right about the unnecessary autoreconf
substitution; I just removed that part and could rebuild
successfully. If you need the modified patch I've attached it.
Thank you!
Maxim
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-eudev-Update-to-3.2.4-and-generate-manpages.patch --]
[-- Type: text/x-patch, Size: 4284 bytes --]
From a6c1ba796a49e46ef637a2b50e718692e01aafbc Mon Sep 17 00:00:00 2001
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Date: Fri, 22 Sep 2017 23:24:23 -0400
Subject: [PATCH] gnu: eudev: Update to 3.2.4 and generate manpages.
* gnu/packages/linux.scm (eudev)[version]: Bump to 3.2.4.
[uri]: Download the release from Github, which contains the script to generate
the manpages from source.
[file-name]: Add a file-name field to the origin record, per linter recommendation.
[sha256]: Adjust accordingly.
[phases]: Add a bootstrap phase to regenerate the manpages.
[configure-flags]: Add the "--enable-manpages" option, required to install the
manpages.
[native-inputs]: Add autoconf, automake and libtool for the bootstrap phase.
Add python-wrapper to run a test script that was previously skipped.
Add docbook-xml, docbook-xsl, libxml2 and libxslt for manpage generation.
---
gnu/packages/linux.scm | 50 +++++++++++++++++++++++++++++++++++---------------
1 file changed, 35 insertions(+), 15 deletions(-)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 9352b4f65..29de3363f 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -2055,30 +2055,50 @@ from the module-init-tools project.")
;; The post-systemd fork, maintained by Gentoo.
(package
(name "eudev")
- (version "3.2.2")
+ (version "3.2.4")
(source (origin
(method url-fetch)
- (uri (string-append
- "http://dev.gentoo.org/~blueness/eudev/eudev-"
- version ".tar.gz"))
+ (uri (string-append "https://github.com/gentoo/eudev/archive/v"
+ version ".zip"))
+ (file-name (string-append name "-" version ".zip"))
(sha256
(base32
- "0qqgbgpm5wdllk0s04pf80nwc8pr93xazwri1bylm1f15zn5ck1y"))
+ "1r1ag0snarygrj5qqxi2xdq9w6g3sfjd5jx1b0fl7zmqlsz3vvxx"))
(patches (search-patches "eudev-rules-directory.patch"))))
(build-system gnu-build-system)
(arguments
- '(#:phases (modify-phases %standard-phases
- (add-after 'install 'build-hwdb
- (lambda* (#:key outputs #:allow-other-keys)
- ;; Build OUT/etc/udev/hwdb.bin. This allows 'lsusb' and
- ;; similar tools to display product names.
- (let ((out (assoc-ref outputs "out")))
- (zero? (system* (string-append out "/bin/udevadm")
- "hwdb" "--update"))))))))
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'bootstrap
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "man/make.sh"
+ (("/usr/bin/xsltproc")
+ (string-append (assoc-ref inputs "xsltproc")
+ "/bin/xsltproc")))
+ ;; Manual pages are regenerated here.
+ (zero? (system* "./autogen.sh"))))
+ (add-after 'install 'build-hwdb
+ (lambda* (#:key outputs #:allow-other-keys)
+ ;; Build OUT/etc/udev/hwdb.bin. This allows 'lsusb' and
+ ;; similar tools to display product names.
+ (let ((out (assoc-ref outputs "out")))
+ (zero? (system* (string-append out "/bin/udevadm")
+ "hwdb" "--update"))))))
+ #:configure-flags (list "--enable-manpages")))
(native-inputs
- `(("pkg-config" ,pkg-config)
+ `(("autoconf" ,autoconf)
+ ("automake" ,automake)
+ ("gperf" ,gperf)
+ ("libtool" ,libtool)
+ ("pkg-config" ,pkg-config)
+ ;; For tests.
("perl" ,perl)
- ("gperf" ,gperf)))
+ ("python" ,python-wrapper)
+ ;; For documentation.
+ ("docbook-xml" ,docbook-xml-4.2)
+ ("docbook-xsl" ,docbook-xsl)
+ ("libxml2" ,libxml2) ;for $XML_CATALOG_FILES
+ ("xsltproc", libxslt)))
(inputs
;; When linked against libblkid, eudev can populate /dev/disk/by-label
;; and similar; it also installs the '60-persistent-storage.rules' file,
--
2.14.1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [bug#28562] [PATCHv2] gnu: eudev: Update to 3.2.4 and generate manpages.
2017-09-25 20:54 ` [bug#28562] [PATCHv2] " Maxim Cournoyer
@ 2017-09-28 18:31 ` Thomas Danckaert
2017-09-28 22:03 ` Maxim Cournoyer
2017-10-04 22:51 ` Marius Bakke
0 siblings, 2 replies; 7+ messages in thread
From: Thomas Danckaert @ 2017-09-28 18:31 UTC (permalink / raw)
To: maxim.cournoyer, 28562-done; +Cc: 28562
pushed (to staging)!
Thomas
^ permalink raw reply [flat|nested] 7+ messages in thread
* [bug#28562] [PATCHv2] gnu: eudev: Update to 3.2.4 and generate manpages.
2017-09-28 18:31 ` Thomas Danckaert
@ 2017-09-28 22:03 ` Maxim Cournoyer
2017-10-04 22:51 ` Marius Bakke
1 sibling, 0 replies; 7+ messages in thread
From: Maxim Cournoyer @ 2017-09-28 22:03 UTC (permalink / raw)
To: Thomas Danckaert; +Cc: 28562-done, 28562
Thomas Danckaert <post@thomasdanckaert.be> writes:
> pushed (to staging)!
>
> Thomas
Thanks, Thomas!
Maxim
^ permalink raw reply [flat|nested] 7+ messages in thread
* [bug#28562] [PATCHv2] gnu: eudev: Update to 3.2.4 and generate manpages.
2017-09-28 18:31 ` Thomas Danckaert
2017-09-28 22:03 ` Maxim Cournoyer
@ 2017-10-04 22:51 ` Marius Bakke
1 sibling, 0 replies; 7+ messages in thread
From: Marius Bakke @ 2017-10-04 22:51 UTC (permalink / raw)
To: Thomas Danckaert, maxim.cournoyer, 28562-done
[-- Attachment #1: Type: text/plain, Size: 190 bytes --]
Thomas Danckaert <post@thomasdanckaert.be> writes:
> pushed (to staging)!
eudev and many dependents had already been built on Hydra, so I
reverted it and added it on core-updates instead.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2017-10-04 22:52 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-23 3:51 [bug#28562] [PATCH] gnu: eudev: Update to 3.2.4 and generate manpages Maxim Cournoyer
2017-09-23 3:55 ` Maxim Cournoyer
2017-09-25 8:33 ` Thomas Danckaert
2017-09-25 20:54 ` [bug#28562] [PATCHv2] " Maxim Cournoyer
2017-09-28 18:31 ` Thomas Danckaert
2017-09-28 22:03 ` Maxim Cournoyer
2017-10-04 22:51 ` Marius Bakke
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.