From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id WJKhDw43EGDPMgAA0tVLHw (envelope-from ) for ; Tue, 26 Jan 2021 15:36:46 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id wHGLCw43EGBDJgAA1q6Kng (envelope-from ) for ; Tue, 26 Jan 2021 15:36:46 +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 49085940463 for ; Tue, 26 Jan 2021 15:36:45 +0000 (UTC) Received: from localhost ([::1]:46238 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l4QOa-0003QM-1T for larch@yhetil.org; Tue, 26 Jan 2021 10:36:44 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51846) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l4PdS-0005qu-9Z for bug-guix@gnu.org; Tue, 26 Jan 2021 09:48:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:57851) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l4PdS-0006cO-0f for bug-guix@gnu.org; Tue, 26 Jan 2021 09:48:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l4PdR-0008BD-UI for bug-guix@gnu.org; Tue, 26 Jan 2021 09:48:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#46109: Failing tests (guix-pack, lint) Resent-From: taxuswc Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 26 Jan 2021 14:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46109 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: zimoun , 46109@debbugs.gnu.org Received: via spool by 46109-submit@debbugs.gnu.org id=B46109.161167244031394 (code B ref 46109); Tue, 26 Jan 2021 14:48:01 +0000 Received: (at 46109) by debbugs.gnu.org; 26 Jan 2021 14:47:20 +0000 Received: from localhost ([127.0.0.1]:41164 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4Pcl-0008AH-NM for submit@debbugs.gnu.org; Tue, 26 Jan 2021 09:47:20 -0500 Received: from knopi.disroot.org ([178.21.23.139]:40492) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4O07-0001Tn-Co for 46109@debbugs.gnu.org; Tue, 26 Jan 2021 08:03:20 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id C501F55367; Tue, 26 Jan 2021 14:03:17 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with UTF8SMTP id CsrwB7ri0C_5; Tue, 26 Jan 2021 14:03:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1611666194; bh=RRzfbtnL4wl+x8g0g8H76mKqvfqG5+1Gl1kI3p1JXHE=; h=To:References:From:Subject:Date:In-Reply-To; b=hQkG5FflrrkTVMEG3+Xm241awEtFdyqxcJBPG8y+nNo/XkFUvEWjy8tEF7LZ0edmr 6A4bkqIG2A9cwymVAcpKC1HRJJ64KeQjGIokPIVuwniRIUHZ9pPDTOFbIcF5YemeG8 GEAC6xGHA6Qzug5tgmY7AftIgnt3jItneU6KfrvtnAOSWzJ9arw5w44JC7AmEpFRru l91Zq/DnNLAplkHP/O7p1kI3yOKRHoiFux98rHKMV1d6bxV5WCfip2VGjV3IEPeLQk 1MTpX/T0NlLSP8HvVWebeZm16fNaE9Dg1qs6tWWBqlT/kCnUZx8RiIn24mY58kL2tv dLJTKe81RYIGA== References: <06a73269-5650-9020-24a7-08c5e7fd3275@disroot.org> <867do0j7b9.fsf@gmail.com> Message-ID: Date: Tue, 26 Jan 2021 13:03:13 +0000 Mime-Version: 1.0 In-Reply-To: <867do0j7b9.fsf@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Tue, 26 Jan 2021 09:47:18 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Tue, 26 Jan 2021 10:35:24 -0500 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" Reply-to: taxuswc From: taxuswc--- via Bug reports for GNU Guix X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.35 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=hQkG5Ffl; dmarc=pass (policy=none) header.from=gnu.org; 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-Migadu-Queue-Id: 49085940463 X-Spam-Score: -2.35 X-Migadu-Scanner: scn0.migadu.com X-TUID: ZPVuLSrebpWL Hello, 26.01.2021 10:55, zimoun wrote: > On Mon, 25 Jan 2021 at 22:10, taxuswc--- via Bug reports for GNU Guix wrote: > >> I am building GNU Guix from the source on a foreign distro. Several >> tests fail: > > Which commit are you building using which commit version? Оfficial source tarball from https://guix.gnu.org/en/download/, probably v1.2.0 (d5b556eef57321d0be89fdb07db447b2db2718ed) > Did you do > > guix environment guix > ./bootstrap > ./configure --localstatedir=/var/ > make > make check > > ? Or something else? > Or are you trying to bootstrap Guix on foreign distro? Basically the same steps only without --localstatedir (it seems to default to /var) and guix environment stuff, as guix is not installed in the system yet. I have installed the prerequisites manually or from a foreign distro package manager, so to my mind it probably does not count as ``bootstrapping''. >> FAIL: tests/lint >> ================ > > [...] > > >> test-name: archival: missing content >> location: /home/taxus/downloads/distro/guix/guix-1.2.0/tests/lint.scm:921 >> source: >> + (test-assert >> + "archival: missing content" >> + (let* ((origin >> + (origin >> + (method url-fetch) >> + (uri "http://example.org/foo.tgz") >> + (sha256 (make-bytevector 32)))) >> + (warnings >> + (with-http-server >> + '((404 "Not archived.")) >> + (parameterize >> + ((%swh-base-url (%local-url))) >> + (check-archival >> + (dummy-package "x" (source origin))))))) >> + (warning-contains? "not archived" warnings))) >> actual-value: #f >> actual-error: >> + (keyword-argument-error >> + # >> + "Unrecognized keyword" >> + () >> + (#:verify-certificate?)) >> result: FAIL > > Hum?! I got guile from the foreign distro package manager, so it was an obvious suspect, but upon inspection [1] it is just vanilla guile 2.2.6 without any distro-specific patches. [1] https://gitea.artixlinux.org/artixlinux/packages/src/branch/master/guile/repos/extra-x86_64/PKGBUILD Could you please clarify which additional info can I provide to identify the root of the issue? Maybe, should I try building with guile 3.x? > [...] > >> FAIL: tests/guix-pack >> ===================== >> >> + guile -c '(getaddrinfo "www.gnu.org" "80" AI_NUMERICSERV)' >> + guix pack --version >> guix pack (GNU Guix) 1.2.0 >> Copyright (C) 2020 the Guix authors >> License GPLv3+: GNU GPL version 3 or later >> This is free software: you are free to change and redistribute it. >> There is NO WARRANTY, to the extent permitted by law. > > [...] > >> + tar -xf /home/taxus/downloads/distro/guix/guix-1.2.0/test-tmp/store/az698s2v2q2qnc1ljrg4ypnjpb246x4c-tarball-pack.tar.xz >> tar: ./opt/gnu/bin: Cannot hard link to ‘./opt/gnu/bin’: No such file or directory >> tar: Exiting with failure status due to previous errors >> + chmod -Rf +w /tmp/tmp.QVmTayA5IX >> + rm -rf /tmp/tmp.QVmTayA5IX >> FAIL tests/guix-pack.sh (exit status: 2) Well, the problem is not with tar as I previously assumed. guix pack --bootstrap -S /opt/gnu/bin=bin guile-bootstrap creates the following tarball $ tar -tvf "$the_pack" | grep '/opt/' drwxr-xr-x root/root 0 1970-01-01 03:00 ./opt/gnu/ lrwxrwxrwx root/root 0 1970-01-01 03:00 ./opt/gnu/bin -> ../../home/taxus/downloads/distro/guix/guix-1.2.0/test-tmp/store/w67kdqf2ghkkxp6spdyvfvvhiqqk3g76-profile/bin hrwxrwxrwx root/root 0 1970-01-01 03:00 ./opt/gnu/bin link to ./opt/gnu/bin I can hardly understand how the last line can be correct in any setup. An attempt to unpack the tarball quite expectedly results in tar: ./opt/gnu/bin: Cannot hard link to './opt/gnu/bin': No such file or directory as the hardlink creation erases the file it wants to reference in the first place.. >> >> Backtrace: >> In ice-9/boot-9.scm: >> [...] >> ERROR: In procedure scm-error: >> no code for module (ssh key) > > It seems a misconfiguration of your environment. It is likely the case, however, I would like to setup offloading once guix is working, so for now I have commented out the test in question to get any sort of report. Thanks for the reply! All the best, ~taxuswc