Skip to content
Snippets Groups Projects
Unverified Commit a5538922 authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

pack: '-R' applies to propagated inputs too.

Fixes <https://bugs.gnu.org/42510>.

* guix/scripts/pack.scm (wrapped-manifest-entry): Recurse on
'dependencies' field.
* tests/guix-pack-relocatable.sh: Add test.
parent 12dc9f58
No related branches found
No related tags found
No related merge requests found
......@@ -875,7 +875,10 @@ (define (wrapped-manifest-entry entry . args)
(item (apply wrapped-package
(manifest-entry-item entry)
(manifest-entry-output entry)
args))))
args))
(dependencies (map (lambda (entry)
(apply wrapped-manifest-entry entry args))
(manifest-entry-dependencies entry)))))
;;;
......
......@@ -111,3 +111,8 @@ esac
tarball="`guix pack -R -S /share=share groff:doc`"
(cd "$test_directory"; tar xvf "$tarball")
test -d "$test_directory/share/doc/groff/html"
# Ensure '-R' applies to propagated inputs. Failing to do that, it would fail
# with a profile collision error in this case because 'python-scipy'
# propagates 'python-numpy'. See <https://bugs.gnu.org/42510>.
guix pack -RR python-numpy python-scipy --no-grafts -n
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment