* [bug#60824] [PATCH 2/2] gnu: perl-xml-xpath: Update to 1.48.
2023-01-15 1:20 [bug#60824] [PATCH 1/2] gnu: perl-xml-xpath: Wrap xpath command Bruno Victal
@ 2023-01-15 1:22 ` Bruno Victal
2023-05-06 16:07 ` [bug#60824] bump Bruno Victal
` (5 subsequent siblings)
6 siblings, 0 replies; 11+ messages in thread
From: Bruno Victal @ 2023-01-15 1:22 UTC (permalink / raw)
To: 60824; +Cc: Bruno Victal
* gnu/packages/xml.scm (perl-xml-xpath): Update to 1.48.
---
gnu/packages/xml.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index 7fdc3a2e32..e022932782 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -1042,14 +1042,14 @@ (define-public perl-xml-feed
(define-public perl-xml-xpath
(package
(name "perl-xml-xpath")
- (version "1.44")
+ (version "1.48")
(source (origin
(method url-fetch)
(uri (string-append "mirror://cpan/authors/id/M/MA/MANWAR/"
"XML-XPath-" version ".tar.gz"))
(sha256
(base32
- "03yxj7w5a43ibbpiqsvb3lswj2b71dydsx4rs2fw0p8n0l3i3j8w"))))
+ "1kch6w4zk7rzfimbwakz8qyhjhrvnp97158af0p5p7i3dgimpivv"))))
(build-system perl-build-system)
(arguments
(list
--
2.38.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [bug#60824] bump
2023-01-15 1:20 [bug#60824] [PATCH 1/2] gnu: perl-xml-xpath: Wrap xpath command Bruno Victal
2023-01-15 1:22 ` [bug#60824] [PATCH 2/2] gnu: perl-xml-xpath: Update to 1.48 Bruno Victal
@ 2023-05-06 16:07 ` Bruno Victal
2023-05-18 17:33 ` [bug#60824] [PATCH v2 1/2] gnu: perl-xml-xpath: Wrap xpath command Bruno Victal
` (4 subsequent siblings)
6 siblings, 0 replies; 11+ messages in thread
From: Bruno Victal @ 2023-05-06 16:07 UTC (permalink / raw)
To: 60824
Patch still applies to master (1cb0dee3a31c6d235389d4d9787fa583c2babc30)
^ permalink raw reply [flat|nested] 11+ messages in thread
* [bug#60824] [PATCH v2 1/2] gnu: perl-xml-xpath: Wrap xpath command.
2023-01-15 1:20 [bug#60824] [PATCH 1/2] gnu: perl-xml-xpath: Wrap xpath command Bruno Victal
2023-01-15 1:22 ` [bug#60824] [PATCH 2/2] gnu: perl-xml-xpath: Update to 1.48 Bruno Victal
2023-05-06 16:07 ` [bug#60824] bump Bruno Victal
@ 2023-05-18 17:33 ` Bruno Victal
2023-05-18 17:33 ` [bug#60824] [PATCH v2 2/2] gnu: perl-xml-xpath: Update to 1.48 Bruno Victal
` (3 subsequent siblings)
6 siblings, 0 replies; 11+ messages in thread
From: Bruno Victal @ 2023-05-18 17:33 UTC (permalink / raw)
To: 60824; +Cc: Bruno Victal
* gnu/packages/xml.scm (perl-xml-xpath)[arguments]: Wrap xpath.
[description]: Document xpath command presence.
---
gnu/packages/xml.scm | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index 2bc4f66c01..3c94937f49 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -33,6 +33,7 @@
;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
;;; Copyright © 2021 David Larsson <david.larsson@selfhosted.xyz>
;;; Copyright © 2021 Matthew James Kraai <kraai@ftbfs.org>
+;;; Copyright © 2023 Bruno Victal <mirai@makinata.eu>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -1044,6 +1045,16 @@ (define-public perl-xml-xpath
(base32
"03yxj7w5a43ibbpiqsvb3lswj2b71dydsx4rs2fw0p8n0l3i3j8w"))))
(build-system perl-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'wrap 'wrap-xpath
+ (lambda _
+ (wrap-program (string-append #$output "/bin/xpath")
+ `("PERL5LIB" ":" prefix
+ ,(cons (string-append #$output "/lib/perl5/site_perl")
+ (string-split (getenv "PERL5LIB") #\:)))))))))
(native-inputs
(list perl-path-tiny))
(propagated-inputs
@@ -1053,7 +1064,7 @@ (define-public perl-xml-xpath
(description
"This module aims to comply exactly to the @url{XPath specification,
https://www.w3.org/TR/xpath} and yet allow extensions to be added in
-the form of functions.")
+the form of functions. It also provides the command @command{xpath}.")
(license license:perl-license)))
(define-public pugixml
base-commit: 5b700945fb0b33eec410de8979cae2fbf0d4f118
--
2.39.2
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [bug#60824] [PATCH v2 2/2] gnu: perl-xml-xpath: Update to 1.48.
2023-01-15 1:20 [bug#60824] [PATCH 1/2] gnu: perl-xml-xpath: Wrap xpath command Bruno Victal
` (2 preceding siblings ...)
2023-05-18 17:33 ` [bug#60824] [PATCH v2 1/2] gnu: perl-xml-xpath: Wrap xpath command Bruno Victal
@ 2023-05-18 17:33 ` Bruno Victal
2023-05-27 18:11 ` [bug#60824] [PATCH v3 1/2] gnu: perl-xml-xpath: Wrap xpath command Bruno Victal
` (2 subsequent siblings)
6 siblings, 0 replies; 11+ messages in thread
From: Bruno Victal @ 2023-05-18 17:33 UTC (permalink / raw)
To: 60824; +Cc: Bruno Victal
* gnu/packages/xml.scm (perl-xml-xpath): Update to 1.48.
---
gnu/packages/xml.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index 3c94937f49..c1cc561ccd 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -1036,14 +1036,14 @@ (define-public perl-xml-feed
(define-public perl-xml-xpath
(package
(name "perl-xml-xpath")
- (version "1.44")
+ (version "1.48")
(source (origin
(method url-fetch)
(uri (string-append "mirror://cpan/authors/id/M/MA/MANWAR/"
"XML-XPath-" version ".tar.gz"))
(sha256
(base32
- "03yxj7w5a43ibbpiqsvb3lswj2b71dydsx4rs2fw0p8n0l3i3j8w"))))
+ "1kch6w4zk7rzfimbwakz8qyhjhrvnp97158af0p5p7i3dgimpivv"))))
(build-system perl-build-system)
(arguments
(list
--
2.39.2
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [bug#60824] [PATCH v3 1/2] gnu: perl-xml-xpath: Wrap xpath command.
2023-01-15 1:20 [bug#60824] [PATCH 1/2] gnu: perl-xml-xpath: Wrap xpath command Bruno Victal
` (3 preceding siblings ...)
2023-05-18 17:33 ` [bug#60824] [PATCH v2 2/2] gnu: perl-xml-xpath: Update to 1.48 Bruno Victal
@ 2023-05-27 18:11 ` Bruno Victal
2023-05-27 18:11 ` [bug#60824] [PATCH v3 2/2] gnu: perl-xml-xpath: Update to 1.48 Bruno Victal
2023-08-24 16:07 ` [bug#60824] [PATCH core-updates v4 0/2] Wrap and upgrade perl-xml-xpath Bruno Victal
6 siblings, 0 replies; 11+ messages in thread
From: Bruno Victal @ 2023-05-27 18:11 UTC (permalink / raw)
To: 60824; +Cc: Bruno Victal
* gnu/packages/xml.scm (perl-xml-xpath)[arguments]: Wrap xpath. Add test for
wrapped xpath.
[description]: Document xpath command presence.
---
Notable changes since v2:
* Wrap xpath minimally.
* Add a phase to check if the wrapped xpath works.
* Add missing test dependency.
gnu/packages/xml.scm | 25 ++++++++++++++++++++++++-
1 file changed, 24 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index 2bc4f66c01..ec622cec63 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -33,6 +33,7 @@
;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
;;; Copyright © 2021 David Larsson <david.larsson@selfhosted.xyz>
;;; Copyright © 2021 Matthew James Kraai <kraai@ftbfs.org>
+;;; Copyright © 2023 Bruno Victal <mirai@makinata.eu>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -1044,6 +1045,28 @@ (define-public perl-xml-xpath
(base32
"03yxj7w5a43ibbpiqsvb3lswj2b71dydsx4rs2fw0p8n0l3i3j8w"))))
(build-system perl-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'wrap 'wrap-xpath
+ (lambda _
+ (let ((xpath (string-append #$output "/bin/xpath"))
+ (perl5lib
+ (list #$@(map (lambda (i)
+ (file-append (this-package-input i)
+ "/lib/perl5/site_perl"))
+ '("perl-xml-parser"))
+ (string-append #$output
+ "/lib/perl5/site_perl/"
+ #$(package-version perl)))))
+ (wrap-program xpath
+ `("PERL5LIB" ":" prefix ,perl5lib)))))
+ (add-after 'wrap-xpath 'check-wrap
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (unsetenv "PERL5LIB")
+ (invoke/quiet (string-append #$output "/bin/xpath"))))))))
(native-inputs
(list perl-path-tiny))
(propagated-inputs
@@ -1053,7 +1076,7 @@ (define-public perl-xml-xpath
(description
"This module aims to comply exactly to the @url{XPath specification,
https://www.w3.org/TR/xpath} and yet allow extensions to be added in
-the form of functions.")
+the form of functions. It also provides the command @command{xpath}.")
(license license:perl-license)))
(define-public pugixml
base-commit: b96b82bcd4bc24529941ff74a91432481f1a71b5
--
2.39.2
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [bug#60824] [PATCH v3 2/2] gnu: perl-xml-xpath: Update to 1.48.
2023-01-15 1:20 [bug#60824] [PATCH 1/2] gnu: perl-xml-xpath: Wrap xpath command Bruno Victal
` (4 preceding siblings ...)
2023-05-27 18:11 ` [bug#60824] [PATCH v3 1/2] gnu: perl-xml-xpath: Wrap xpath command Bruno Victal
@ 2023-05-27 18:11 ` Bruno Victal
2023-08-24 16:07 ` [bug#60824] [PATCH core-updates v4 0/2] Wrap and upgrade perl-xml-xpath Bruno Victal
6 siblings, 0 replies; 11+ messages in thread
From: Bruno Victal @ 2023-05-27 18:11 UTC (permalink / raw)
To: 60824; +Cc: Bruno Victal
* gnu/packages/xml.scm (perl-xml-xpath): Update to 1.48.
[native-inputs]: Add perl-test-leaktrace.
---
gnu/packages/xml.scm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index ec622cec63..5f0290d007 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -1036,14 +1036,14 @@ (define-public perl-xml-feed
(define-public perl-xml-xpath
(package
(name "perl-xml-xpath")
- (version "1.44")
+ (version "1.48")
(source (origin
(method url-fetch)
(uri (string-append "mirror://cpan/authors/id/M/MA/MANWAR/"
"XML-XPath-" version ".tar.gz"))
(sha256
(base32
- "03yxj7w5a43ibbpiqsvb3lswj2b71dydsx4rs2fw0p8n0l3i3j8w"))))
+ "1kch6w4zk7rzfimbwakz8qyhjhrvnp97158af0p5p7i3dgimpivv"))))
(build-system perl-build-system)
(arguments
(list
@@ -1068,7 +1068,7 @@ (define-public perl-xml-xpath
(unsetenv "PERL5LIB")
(invoke/quiet (string-append #$output "/bin/xpath"))))))))
(native-inputs
- (list perl-path-tiny))
+ (list perl-path-tiny perl-test-leaktrace))
(propagated-inputs
(list perl-xml-parser))
(home-page "https://metacpan.org/release/XML-XPath")
--
2.39.2
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [bug#60824] [PATCH core-updates v4 0/2] Wrap and upgrade perl-xml-xpath
2023-01-15 1:20 [bug#60824] [PATCH 1/2] gnu: perl-xml-xpath: Wrap xpath command Bruno Victal
` (5 preceding siblings ...)
2023-05-27 18:11 ` [bug#60824] [PATCH v3 2/2] gnu: perl-xml-xpath: Update to 1.48 Bruno Victal
@ 2023-08-24 16:07 ` Bruno Victal
2023-08-24 16:08 ` [bug#60824] [PATCH core-updates v4 1/2] gnu: perl-xml-xpath: Wrap xpath command Bruno Victal
` (2 more replies)
6 siblings, 3 replies; 11+ messages in thread
From: Bruno Victal @ 2023-08-24 16:07 UTC (permalink / raw)
To: 60824; +Cc: Bruno Victal, maxim.cournoyer
Notable changes since v3:
* Rebased against core-updates.
* Use search-path-as-list for wrapping.
Bruno Victal (2):
gnu: perl-xml-xpath: Wrap xpath command.
gnu: perl-xml-xpath: Update to 1.48.
gnu/packages/xml.scm | 28 ++++++++++++++++++++++++----
1 file changed, 24 insertions(+), 4 deletions(-)
base-commit: c365cc69881f3aec633b88ba22c7fe8faec3597e
--
2.41.0
^ permalink raw reply [flat|nested] 11+ messages in thread
* [bug#60824] [PATCH core-updates v4 1/2] gnu: perl-xml-xpath: Wrap xpath command.
2023-08-24 16:07 ` [bug#60824] [PATCH core-updates v4 0/2] Wrap and upgrade perl-xml-xpath Bruno Victal
@ 2023-08-24 16:08 ` Bruno Victal
2023-08-24 16:08 ` [bug#60824] [PATCH core-updates v4 2/2] gnu: perl-xml-xpath: Update to 1.48 Bruno Victal
2023-10-09 13:16 ` [bug#60824] [PATCH core-updates] Update and wrap perl-xml-xpath Maxim Cournoyer
2 siblings, 0 replies; 11+ messages in thread
From: Bruno Victal @ 2023-08-24 16:08 UTC (permalink / raw)
To: 60824; +Cc: Bruno Victal
* gnu/packages/xml.scm (perl-xml-xpath)[arguments]: Wrap xpath. Add test for
wrapped xpath.
[description]: Document xpath command presence.
---
gnu/packages/xml.scm | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index 555f0ab624..ca7aaf29ed 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -33,6 +33,7 @@
;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
;;; Copyright © 2021 David Larsson <david.larsson@selfhosted.xyz>
;;; Copyright © 2021 Matthew James Kraai <kraai@ftbfs.org>
+;;; Copyright © 2023 Bruno Victal <mirai@makinata.eu>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -1044,6 +1045,25 @@ (define-public perl-xml-xpath
(base32
"03yxj7w5a43ibbpiqsvb3lswj2b71dydsx4rs2fw0p8n0l3i3j8w"))))
(build-system perl-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'wrap 'wrap-xpath
+ (lambda _
+ (let ((xpath (string-append #$output "/bin/xpath"))
+ (perl5lib
+ (search-path-as-list
+ '("/lib/perl5/site_perl")
+ (list #$(this-package-input "perl-xml-parser")
+ #$output))))
+ (wrap-program xpath
+ `("PERL5LIB" ":" prefix ,perl5lib)))))
+ (add-after 'wrap-xpath 'check-wrap
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (unsetenv "PERL5LIB")
+ (invoke/quiet (string-append #$output "/bin/xpath"))))))))
(native-inputs
(list perl-path-tiny))
(propagated-inputs
@@ -1053,7 +1073,7 @@ (define-public perl-xml-xpath
(description
"This module aims to comply exactly to the @url{XPath specification,
https://www.w3.org/TR/xpath} and yet allow extensions to be added in
-the form of functions.")
+the form of functions. It also provides the command @command{xpath}.")
(license license:perl-license)))
(define-public pugixml
base-commit: c365cc69881f3aec633b88ba22c7fe8faec3597e
--
2.40.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [bug#60824] [PATCH core-updates v4 2/2] gnu: perl-xml-xpath: Update to 1.48.
2023-08-24 16:07 ` [bug#60824] [PATCH core-updates v4 0/2] Wrap and upgrade perl-xml-xpath Bruno Victal
2023-08-24 16:08 ` [bug#60824] [PATCH core-updates v4 1/2] gnu: perl-xml-xpath: Wrap xpath command Bruno Victal
@ 2023-08-24 16:08 ` Bruno Victal
2023-10-09 13:16 ` [bug#60824] [PATCH core-updates] Update and wrap perl-xml-xpath Maxim Cournoyer
2 siblings, 0 replies; 11+ messages in thread
From: Bruno Victal @ 2023-08-24 16:08 UTC (permalink / raw)
To: 60824; +Cc: Bruno Victal
* gnu/packages/xml.scm (perl-xml-xpath): Update to 1.48.
[native-inputs]: Add perl-test-leaktrace.
---
gnu/packages/xml.scm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index ca7aaf29ed..2f33a777cd 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -1036,14 +1036,14 @@ (define-public perl-xml-feed
(define-public perl-xml-xpath
(package
(name "perl-xml-xpath")
- (version "1.44")
+ (version "1.48")
(source (origin
(method url-fetch)
(uri (string-append "mirror://cpan/authors/id/M/MA/MANWAR/"
"XML-XPath-" version ".tar.gz"))
(sha256
(base32
- "03yxj7w5a43ibbpiqsvb3lswj2b71dydsx4rs2fw0p8n0l3i3j8w"))))
+ "1kch6w4zk7rzfimbwakz8qyhjhrvnp97158af0p5p7i3dgimpivv"))))
(build-system perl-build-system)
(arguments
(list
@@ -1065,7 +1065,7 @@ (define-public perl-xml-xpath
(unsetenv "PERL5LIB")
(invoke/quiet (string-append #$output "/bin/xpath"))))))))
(native-inputs
- (list perl-path-tiny))
+ (list perl-path-tiny perl-test-leaktrace))
(propagated-inputs
(list perl-xml-parser))
(home-page "https://metacpan.org/release/XML-XPath")
--
2.40.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [bug#60824] [PATCH core-updates] Update and wrap perl-xml-xpath.
2023-08-24 16:07 ` [bug#60824] [PATCH core-updates v4 0/2] Wrap and upgrade perl-xml-xpath Bruno Victal
2023-08-24 16:08 ` [bug#60824] [PATCH core-updates v4 1/2] gnu: perl-xml-xpath: Wrap xpath command Bruno Victal
2023-08-24 16:08 ` [bug#60824] [PATCH core-updates v4 2/2] gnu: perl-xml-xpath: Update to 1.48 Bruno Victal
@ 2023-10-09 13:16 ` Maxim Cournoyer
2 siblings, 0 replies; 11+ messages in thread
From: Maxim Cournoyer @ 2023-10-09 13:16 UTC (permalink / raw)
To: Bruno Victal; +Cc: 60824
Hello,
Bruno Victal <mirai@makinata.eu> writes:
> Notable changes since v3:
> * Rebased against core-updates.
> * Use search-path-as-list for wrapping.
>
> Bruno Victal (2):
> gnu: perl-xml-xpath: Wrap xpath command.
> gnu: perl-xml-xpath: Update to 1.48.
>
> gnu/packages/xml.scm | 28 ++++++++++++++++++++++++----
> 1 file changed, 24 insertions(+), 4 deletions(-)
LGTM!
--
Thanks,
Maxim
^ permalink raw reply [flat|nested] 11+ messages in thread