[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/06: pack: '-R' applies to propagated inputs too.
From: |
guix-commits |
Subject: |
03/06: pack: '-R' applies to propagated inputs too. |
Date: |
Fri, 24 Jul 2020 08:22:14 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit a553892215157090ff892dc5cbbe85a25e837260
Author: Ludovic Courtès <ludovic.courtes@inria.fr>
AuthorDate: Fri Jul 24 11:27:51 2020 +0200
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.
---
guix/scripts/pack.scm | 5 ++++-
tests/guix-pack-relocatable.sh | 5 +++++
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/guix/scripts/pack.scm b/guix/scripts/pack.scm
index 13ade37..5fb6aaa 100644
--- a/guix/scripts/pack.scm
+++ b/guix/scripts/pack.scm
@@ -875,7 +875,10 @@ last resort for relocation."
(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)))))
;;;
diff --git a/tests/guix-pack-relocatable.sh b/tests/guix-pack-relocatable.sh
index 358cac5..52d7212 100644
--- a/tests/guix-pack-relocatable.sh
+++ b/tests/guix-pack-relocatable.sh
@@ -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
- branch master updated (c1f3857 -> 3922208), guix-commits, 2020/07/24
- 02/06: gnu: gcc: Fix libstdc++ misconfiguration., guix-commits, 2020/07/24
- 01/06: gnu: gcc@10: Update to 10.2.0., guix-commits, 2020/07/24
- 03/06: pack: '-R' applies to propagated inputs too.,
guix-commits <=
- 04/06: import: github: Gracefully handle projects that have disappeared., guix-commits, 2020/07/24
- 05/06: gnu: Add libtmcg., guix-commits, 2020/07/24
- 06/06: gnu: Add dkgpg., guix-commits, 2020/07/24