Subject: tests/guix-pack-relocatable fails / numpy propagation collision
From: Leo Famulari <[email-masked]>
To: [email-masked]
Date: Tue, 28 Dec 2021 16:19:50 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

On commit 0d9d151424ab5823e441f056237819277b8aa072, the test
tests/guix-pack-relocatable fails on Debian due to a failure to build
a profile, because of a profile collision involving propagation of
numpy:

------
FAIL: tests/guix-pack-relocatable
=================================

accepted connection from pid 787596, user leo
accepted connection from pid 787606, user leo
+ guix pack --version
guix pack (GNU Guix) UNKNOWN
Copyright (C) 2021 the Guix authors
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. 
++ guile -c '(use-modules (guix config))(display %storedir)'
+ storedir=/gnu/store
++ guile -c '(use-modules (guix config))(display %localstatedir)'
+ localstatedir=/var
+ NIX_STORE_DIR=/gnu/store
+ GUIX_DAEMON_SOCKET=/var/guix/daemon-socket/socket
+ export NIX_STORE_DIR GUIX_DAEMON_SOCKET
+ guile -c '(use-modules (guix)) (exit (false-if-exception (open-connection)))'
++ mktemp -d
+ test_directory=/tmp/tmp.isupVmMmSN
+ export test_directory
+ trap 'chmod -Rf +w "$test_directory"; rm -rf "$test_directory"' EXIT 
+ unshare -r true 
++ guix pack -R -S /Bin=bin sed
substitute: ^Msubstitute: ^[[Kupdating substitutes from 'https://4606.nsupdate.info'...   0.0%^Msubstitute: ^[[Kupdating substitutes from 'https://4606.nsupdate.info'...  12.5%^Msubstitute: ^[[Kupdating substitutes from 'https://4606.nsupdate.info'...  25.0%^Msubstitute: ^[[Kupdating substitutes from 'https://4606.nsupdate.info'...  37.5%^Msubstitute: ^[[Kupdating substitutes from 'https://4606.nsupdate.info'...  50.0%^Msubstitute: ^[[Kupdating substitutes from 'https://4606.nsupdate.info'...  62.5%^Msubstitute: ^[[Kupdating substitutes from 'https://4606.nsupdate.info'...  75.0%^Msubstitute: ^[[Kupdating substitutes from 'https://4606.nsupdate.info'...  87.5%^Msubstitute: ^[[Kupdating substitutes from 'https://4606.nsupdate.info'... 100.0%
The following derivations will be built:
   /gnu/store/7qiyq9p2spfhfapl30dlsg15nhbllk0s-sed-tarball-pack.tar.gz.drv
   /gnu/store/lib6lf999nxjq23s0d87qq7k0wbxyrw6-profile.drv

0.3 MB will be downloaded
[... thousands of lines of building ...]
+ guix pack -RR python-numpy python-scipy --no-grafts -n
guix pack: error: profile contains conflicting entries for python-numpy
guix pack: error:   first entry: [email-masked] /gnu/store/9dd0zkkwl45rmsa7b6vjb1747l57aw4y-python-numpy-1.21.3R
guix pack: error:   second entry: [email-masked] /gnu/store/mlccgh05bf8cdinq0ilpvpdmsspq36pv-python-numpy-1.20.3R
guix pack: error:    ... propagated from [email-masked]
guix pack: error:    ... propagated from [email-masked]
hint: Backtrace:
In guix/gexp.scm:
   1180:2 19 (_ _)
   1046:2 18 (_ _)
    892:4 17 (_ _)
In guix/store.scm:
  2008:12 16 (_ #<store-connection 256.99 7f29c7a095a0>)
   1385:9 15 (map/accumulate-builds #<store-connection 256.99 7f29c?> ?)
   1320:8 14 (call-with-build-handler #<procedure 7f29bc31e2a0 at g?> ?)
  2123:24 13 (run-with-store #<store-connection 256.99 7f29c7a095a0> ?)
In guix/gexp.scm:
   897:13 12 (_ _)
In guix/store.scm:
   1960:8 11 (_ _)
In guix/gexp.scm:
   296:22 10 (_ _)
In guix/profiles.scm:
   1878:2  9 (_ _)
    358:4  8 (_ _)
In guix/store.scm:
   1869:0  7 (loop _ _)
In ice-9/boot-9.scm:
  1685:16  6 (raise-exception _ #:continuable? _)
  1685:16  5 (raise-exception _ #:continuable? _)
In guix/ui.scm:
   761:16  4 (_ _)
   314:42  3 (display-hint "Try upgrading both @code{python-numpy} ?" ?)
In ice-9/boot-9.scm:
  1747:15  2 (with-exception-handler #<procedure 7f29b376a1b0 at ic?> ?)
In guix/build/syscalls.scm:
  2282:35  1 (_)
   2271:8  0 (terminal-window-size _)

guix/build/syscalls.scm:2271:8: In procedure terminal-window-size:
In procedure terminal-window-size: Inappropriate ioctl for device
+ chmod -Rf +w /tmp/tmp.isupVmMmSN
+ rm -rf /tmp/tmp.isupVmMmSN
FAIL tests/guix-pack-relocatable.sh (exit status: 1)
------