From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id UE5oJlkWe1/hJgAA0tVLHw (envelope-from ) for ; Mon, 05 Oct 2020 12:49:29 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id ABkVIlkWe18oXgAAbx9fmQ (envelope-from ) for ; Mon, 05 Oct 2020 12:49:29 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2F72F9400D3 for ; Mon, 5 Oct 2020 12:49:29 +0000 (UTC) Received: from localhost ([::1]:33244 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPPvk-0006g7-1b for larch@yhetil.org; Mon, 05 Oct 2020 08:49:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40460) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPE2s-0006pF-W0 for bug-guix@gnu.org; Sun, 04 Oct 2020 20:08:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35496) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kPE2s-0005fy-4k for bug-guix@gnu.org; Sun, 04 Oct 2020 20:08:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kPE2r-0004L4-Oz for bug-guix@gnu.org; Sun, 04 Oct 2020 20:08:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#43805: store test fail in pure environment Resent-From: Fredrik Salomonsson Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 05 Oct 2020 00:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43805 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 43805@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160185643816607 (code B ref -1); Mon, 05 Oct 2020 00:08:01 +0000 Received: (at submit) by debbugs.gnu.org; 5 Oct 2020 00:07:18 +0000 Received: from localhost ([127.0.0.1]:47042 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPE29-0004Jm-Cj for submit@debbugs.gnu.org; Sun, 04 Oct 2020 20:07:17 -0400 Received: from lists.gnu.org ([209.51.188.17]:47556) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPE27-0004Jf-9c for submit@debbugs.gnu.org; Sun, 04 Oct 2020 20:07:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40378) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPE27-0006FD-4q for bug-guix@gnu.org; Sun, 04 Oct 2020 20:07:15 -0400 Received: from mout01.posteo.de ([185.67.36.65]:55173) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPE23-0005cy-OM for bug-guix@gnu.org; Sun, 04 Oct 2020 20:07:14 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id CF9C116005C for ; Mon, 5 Oct 2020 02:07:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1601856427; bh=ct4Htu12jQw3U0tIcXPlt7qjMHnM1Gd/gNlHoIkr5HY=; h=From:To:Subject:Date:From; b=QG0iaFGc4PsgQUo3VwHZxZTW12EeRyONmVQOwp+nLEtw4wvebpP6hgTKGx/wgaRBf bm6z3qaKSzCabiLZLJeaMtvX3WGbe1bfCt8bja+oXpLwjDKr24qnLD7Jw6Y8u6MDx5 67wJeyxBqrh5NbwgkDDnLYOsxObkLLv1gfW7vpvVssYxe3teQTbI3G+5QkAv0daVtx xgwoaj0bmFHKdMTDsMwfDUQApXuOfvss9sg80PwFqG5g1zCrqCk4ZIbhim7q7x1DYn a6VXQkatNB/2WKS2H60govjLeHIEL+Th+CAOygwmGEFusdnkDMCWVyfEKq6pwNkeQo yNnGUlhaYHohQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4C4LWG4XV4z6tmH for ; Mon, 5 Oct 2020 02:07:06 +0200 (CEST) From: Fredrik Salomonsson Date: Sun, 04 Oct 2020 17:07:04 -0700 Message-ID: <875z7pmt7b.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=plattfot@posteo.net; helo=mout01.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/04 20:07:08 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.3 (--) X-Mailman-Approved-At: Mon, 05 Oct 2020 08:49:14 -0400 X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=posteo.net header.s=2017 header.b=QG0iaFGc; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 2.59 X-TUID: UtPGDRT90NP0 Hi, I've been trying to build guix from git, following the steps in the manual but a test in tests/store.scm is failing: ``` make check-recursive make[1]: Entering directory '/home/plattfot/projects/guix' Making check in po/guix make[2]: Entering directory '/home/plattfot/projects/guix/po/guix' make[2]: Leaving directory '/home/plattfot/projects/guix/po/guix' Making check in po/packages make[2]: Entering directory '/home/plattfot/projects/guix/po/packages' make[2]: Leaving directory '/home/plattfot/projects/guix/po/packages' make[2]: Entering directory '/home/plattfot/projects/guix' Compiling Scheme modules... make check-TESTS check-local make[3]: Entering directory '/home/plattfot/projects/guix' make[4]: Entering directory '/home/plattfot/projects/guix' PASS: tests/accounts.scm PASS: tests/base16.scm PASS: tests/base32.scm PASS: tests/base64.scm PASS: tests/bournish.scm PASS: tests/builders.scm PASS: tests/build-utils.scm PASS: tests/cache.scm PASS: tests/challenge.scm PASS: tests/channels.scm PASS: tests/combinators.scm PASS: tests/containers.scm PASS: tests/cpan.scm SKIP: tests/cpio.scm PASS: tests/cran.scm PASS: tests/crate.scm PASS: tests/cve.scm PASS: tests/debug-link.scm PASS: tests/derivations.scm PASS: tests/discovery.scm PASS: tests/elpa.scm PASS: tests/file-systems.scm PASS: tests/gem.scm PASS: tests/gexp.scm PASS: tests/git.scm PASS: tests/git-authenticate.scm PASS: tests/glob.scm PASS: tests/gnu-maintenance.scm PASS: tests/grafts.scm PASS: tests/graph.scm PASS: tests/gremlin.scm SKIP: tests/hackage.scm PASS: tests/import-utils.scm PASS: tests/inferior.scm PASS: tests/lint.scm PASS: tests/modules.scm PASS: tests/monads.scm PASS: tests/nar.scm PASS: tests/networking.scm PASS: tests/opam.scm PASS: tests/openpgp.scm PASS: tests/packages.scm PASS: tests/pack.scm PASS: tests/pki.scm PASS: tests/print.scm PASS: tests/processes.scm PASS: tests/profiles.scm PASS: tests/publish.scm PASS: tests/pypi.scm PASS: tests/records.scm PASS: tests/scripts.scm PASS: tests/scripts-build.scm PASS: tests/search-paths.scm PASS: tests/services.scm PASS: tests/services/linux.scm PASS: tests/sets.scm PASS: tests/size.scm SKIP: tests/snix.scm PASS: tests/status.scm PASS: tests/store-database.scm PASS: tests/store-deduplication.scm PASS: tests/store-roots.scm make[4]: *** [Makefile:5365: tests/store.log] Error 1 make[4]: Leaving directory '/home/plattfot/projects/guix' make[3]: *** [Makefile:5347: check-TESTS] Error 2 make[3]: Leaving directory '/home/plattfot/projects/guix' make[2]: *** [Makefile:5596: check-am] Error 2 make[2]: Leaving directory '/home/plattfot/projects/guix' make[1]: *** [Makefile:5124: check-recursive] Error 1 make[1]: Leaving directory '/home/plattfot/projects/guix' make: *** [Makefile:5598: check] Error 2 ``` Here is the section in the tests/store.log that is failing ``` test-name: add-file-tree-to-store location: /home/plattfot/projects/guix/tests/store.scm:243 source: + (test-equal + "add-file-tree-to-store" + `(42 + ("." directory #t) + ("./bar" directory #t) + ("./foo" directory #t) + ("./foo/a" regular "file a") + ("./foo/b" symlink "a") + ("./foo/c" directory #t) + ("./foo/c/p" regular "file p") + ("./foo/c/q" directory #t) + ("./foo/c/q/x" + regular + ,(string-append "#!" %shell "\nexit 42")) + ("./foo/c/q/y" symlink "..") + ("./foo/c/q/z" directory #t)) + (let* ((tree `("file-tree" + directory + ("foo" + directory + ("a" regular (data "file a")) + ("b" symlink "a") + ("c" + directory + ("p" regular (data ,(string->utf8 "file p"))) + ("q" + directory + ("x" + executable + (data ,(string-append "#!" %shell "\nexit 42"))) + ("y" symlink "..") + ("z" directory)))) + ("bar" directory))) + (result (add-file-tree-to-store %store tree))) + (cons (status:exit-val + (system* (string-append result "/foo/c/q/x"))) + (with-directory-excursion + result + (map (lambda (file) + (let ((type (stat:type (lstat file)))) + `(,file + ,type + ,(match type + ((or 'regular 'executable) + (call-with-input-file file get-string-all= )) + ('symlink (readlink file)) + ('directory #t))))) + (find-files "." #:directories? #t)))))) Backtrace: 14 (primitive-load-path "tests/store.scm") In ice-9/eval.scm: 619:8 13 (_ #(#(# #) #)) 293:34 12 (_ #(#(# #) #)) 159:9 11 (_ #(#(# #) #)) 159:9 10 (_ #(#(# #) #)) 159:9 9 (_ #(#(# #) #)) 159:9 8 (_ #(#(# #) #)) 159:9 7 (_ #(#(# #) #)) 159:9 6 (_ #(#(# #) #)) 159:9 5 (_ #(#(# #) #)) 159:9 4 (_ #(#(# #) #)) 159:9 3 (_ #(#(# #) #)) 159:9 2 (_ #(#(# #) #)) 163:9 1 (_ #(#(# #) #)) In unknown file: 0 (string-append "#!" #f "\nexit 42") ERROR: In procedure string-append: In procedure string-append: Wrong type (expecting string): #f ``` The steps I'm running in the local guix clone are: ``` $ sudo git clean -dfx $ guix environment guix --pure $ ./bootstrap && ./configure --localstatedir=3D/var && make -j16 && make ch= eck ``` The git commit is 435e5e27742eb71796be8a73be7a6549fd5e9582 SHELL is: `/bin/zsh` and I'm running guix on a foreign distribution Arch Linux, kernel: 5.8.13-arch1-1 `guix describe` gives: ``` Generation 22 okt 03 2020 18:33:59 (current) guix 3dc064f repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 3dc064f66c72ba923aba8b1e592d949c6e6b3219 ``` The environment after `guix environment guix --pure` ``` LOGNAME=3Dplattfot HOME=3D/home/plattfot TERM=3Dxterm-256color USER=3Dplattfot DISPLAY=3D:1 PAGER=3Dless PATH=3D/home/plattfot/.local/bin:/home/plattfot/bin:/gnu/store/i7z4pfa0c22q= 0qkxyl7fy2nlp3w658yg-profile/bin:/gnu/store/i7z4pfa0c22q0qkxyl7fy2nlp3w658y= g-profile/sbin:/home/plattfot/.antigen/bundles/robbyrussell/oh-my-zsh/lib:/= home/plattfot/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/git:/home/pla= ttfot/.antigen/bundles/plattfot/zsh-theme PKG_CONFIG_PATH=3D/gnu/store/i7z4pfa0c22q0qkxyl7fy2nlp3w658yg-profile/lib/p= kgconfig GUILE_LOAD_PATH=3D/gnu/store/i7z4pfa0c22q0qkxyl7fy2nlp3w658yg-profile/share= /guile/site/3.0 GUILE_LOAD_COMPILED_PATH=3D/gnu/store/i7z4pfa0c22q0qkxyl7fy2nlp3w658yg-prof= ile/lib/guile/3.0/site-ccache:/gnu/store/i7z4pfa0c22q0qkxyl7fy2nlp3w658yg-p= rofile/share/guile/site/3.0 ACLOCAL_PATH=3D/gnu/store/i7z4pfa0c22q0qkxyl7fy2nlp3w658yg-profile/share/ac= local INFOPATH=3D/gnu/store/i7z4pfa0c22q0qkxyl7fy2nlp3w658yg-profile/share/info C_INCLUDE_PATH=3D/gnu/store/i7z4pfa0c22q0qkxyl7fy2nlp3w658yg-profile/include CPLUS_INCLUDE_PATH=3D/gnu/store/i7z4pfa0c22q0qkxyl7fy2nlp3w658yg-profile/in= clude/c++:/gnu/store/i7z4pfa0c22q0qkxyl7fy2nlp3w658yg-profile/include LIBRARY_PATH=3D/gnu/store/i7z4pfa0c22q0qkxyl7fy2nlp3w658yg-profile/lib GUIX_LOCPATH=3D/gnu/store/i7z4pfa0c22q0qkxyl7fy2nlp3w658yg-profile/lib/loca= le GUIX_ENVIRONMENT=3D/gnu/store/i7z4pfa0c22q0qkxyl7fy2nlp3w658yg-profile SHLVL=3D1 PWD=3D/home/plattfot/projects/guix OLDPWD=3D/home/plattfot/projects/guix LESS=3D-R LSCOLORS=3DGxfxcxdxbxegedabagacad LS_COLORS=3Drs=3D0:di=3D01;34:ln=3D01;36:mh=3D00:pi=3D40;33:so=3D01;35:do= =3D01;35:bd=3D40;33;01:cd=3D40;33;01:or=3D40;31;01:mi=3D00:su=3D37;41:sg=3D= 30;43:ca=3D30;41:tw=3D30;42:ow=3D34;42:st=3D37;44:ex=3D01;32:*.tar=3D01;31:= *.tgz=3D01;31:*.arc=3D01;31:*.arj=3D01;31:*.taz=3D01;31:*.lha=3D01;31:*.lz4= =3D01;31:*.lzh=3D01;31:*.lzma=3D01;31:*.tlz=3D01;31:*.txz=3D01;31:*.tzo=3D0= 1;31:*.t7z=3D01;31:*.zip=3D01;31:*.z=3D01;31:*.dz=3D01;31:*.gz=3D01;31:*.lr= z=3D01;31:*.lz=3D01;31:*.lzo=3D01;31:*.xz=3D01;31:*.zst=3D01;31:*.tzst=3D01= ;31:*.bz2=3D01;31:*.bz=3D01;31:*.tbz=3D01;31:*.tbz2=3D01;31:*.tz=3D01;31:*.= deb=3D01;31:*.rpm=3D01;31:*.jar=3D01;31:*.war=3D01;31:*.ear=3D01;31:*.sar= =3D01;31:*.rar=3D01;31:*.alz=3D01;31:*.ace=3D01;31:*.zoo=3D01;31:*.cpio=3D0= 1;31:*.7z=3D01;31:*.rz=3D01;31:*.cab=3D01;31:*.wim=3D01;31:*.swm=3D01;31:*.= dwm=3D01;31:*.esd=3D01;31:*.jpg=3D01;35:*.jpeg=3D01;35:*.mjpg=3D01;35:*.mjp= eg=3D01;35:*.gif=3D01;35:*.bmp=3D01;35:*.pbm=3D01;35:*.pgm=3D01;35:*.ppm=3D= 01;35:*.tga=3D01;35:*.xbm=3D01;35:*.xpm=3D01;35:*.tif=3D01;35:*.tiff=3D01;3= 5:*.png=3D01;35:*.svg=3D01;35:*.svgz=3D01;35:*.mng=3D01;35:*.pcx=3D01;35:*.= mov=3D01;35:*.mpg=3D01;35:*.mpeg=3D01;35:*.m2v=3D01;35:*.mkv=3D01;35:*.webm= =3D01;35:*.webp=3D01;35:*.ogm=3D01;35:*.mp4=3D01;35:*.m4v=3D01;35:*.mp4v=3D= 01;35:*.vob=3D01;35:*.qt=3D01;35:*.nuv=3D01;35:*.wmv=3D01;35:*.asf=3D01;35:= *.rm=3D01;35:*.rmvb=3D01;35:*.flc=3D01;35:*.avi=3D01;35:*.fli=3D01;35:*.flv= =3D01;35:*.gl=3D01;35:*.dl=3D01;35:*.xcf=3D01;35:*.xwd=3D01;35:*.yuv=3D01;3= 5:*.cgm=3D01;35:*.emf=3D01;35:*.ogv=3D01;35:*.ogx=3D01;35:*.aac=3D00;36:*.a= u=3D00;36:*.flac=3D00;36:*.m4a=3D00;36:*.mid=3D00;36:*.midi=3D00;36:*.mka= =3D00;36:*.mp3=3D00;36:*.mpc=3D00;36:*.ogg=3D00;36:*.ra=3D00;36:*.wav=3D00;= 36:*.oga=3D00;36:*.opus=3D00;36:*.spx=3D00;36:*.xspf=3D00;36: EDITOR=3Demacsclient -a vim GTK_IM_MODULE=3Dibus XMODIFIERS=3D@im=3Dibus QT_IM_MODULE=3Dibus _=3D/gnu/store/i7z4pfa0c22q0qkxyl7fy2nlp3w658yg-profile/bin/env ``` I've also tested this with bash (`SHELL=3D$(which bash) bash` before the steps in the repro), same error. The test will pass if I run: ``` sudo git clean -dfx guix environment guix -- sh -c './bootstrap && ./configure --localstatedir= =3D/var && make -j16 && make check' ``` I.e. not a pure environment. With that I get a testsuite summary. One test is still failing but it is not relevant to this bug report. Thanks --=20 s/Fred[re]+i[ck]+/Fredrik/g