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 YB7fH20aYl+LZgAA0tVLHw (envelope-from ) for ; Wed, 16 Sep 2020 14:00:13 +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 QLrQG20aYl8acgAA1q6Kng (envelope-from ) for ; Wed, 16 Sep 2020 14:00:13 +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 833099404C8 for ; Wed, 16 Sep 2020 14:00:12 +0000 (UTC) Received: from localhost ([::1]:51292 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIXyk-0005NK-9S for larch@yhetil.org; Wed, 16 Sep 2020 10:00:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33716) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIXyc-0005NB-QV for bug-guix@gnu.org; Wed, 16 Sep 2020 10:00:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52300) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kIXyc-0000lN-Ep for bug-guix@gnu.org; Wed, 16 Sep 2020 10:00:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kIXyc-00083i-BW for bug-guix@gnu.org; Wed, 16 Sep 2020 10:00:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#43344: "basic" system tests fail (and all the other ones) on guix master Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 16 Sep 2020 14:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43344 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Danny Milosavljevic Received: via spool by 43344-submit@debbugs.gnu.org id=B43344.160026476330896 (code B ref 43344); Wed, 16 Sep 2020 14:00:02 +0000 Received: (at 43344) by debbugs.gnu.org; 16 Sep 2020 13:59:23 +0000 Received: from localhost ([127.0.0.1]:35613 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIXxy-00082F-Nn for submit@debbugs.gnu.org; Wed, 16 Sep 2020 09:59:23 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54812) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIXxw-00081z-QR for 43344@debbugs.gnu.org; Wed, 16 Sep 2020 09:59:21 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:40651) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIXxq-0000ea-1t; Wed, 16 Sep 2020 09:59:14 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=39642 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kIXxp-0007ZF-5w; Wed, 16 Sep 2020 09:59:13 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20200911195058.6dc013b4@scratchpost.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Jour de la Vertu de =?UTF-8?Q?l'Ann=C3=A9e?= 228 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Wed, 16 Sep 2020 15:59:00 +0200 In-Reply-To: <20200911195058.6dc013b4@scratchpost.org> (Danny Milosavljevic's message of "Fri, 11 Sep 2020 19:50:58 +0200") Message-ID: <87pn6ln7q3.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 43344@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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: -1.01 X-TUID: Hqnty9qHu6uW --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, Danny Milosavljevic skribis: > environment variable `PATH' set to `/gnu/store/j3jlpncfqvykkq6sx7h4ly1rdc= r2a8qq' > creating partition table with 2 partitions (20.0 MiB, 40.0 MiB)... > Error: Partition(s) 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16= , 17, . [...] > 1. &invoke-error: > program: "parted" > arguments: ("--script" "/dev/vda" "mklabel" "msdos" "mkpart" "prima= ry" "e) > exit-status: 1 > term-signal: #f > stop-signal: #f The code in question in Parted: --8<---------------cut here---------------start------------->8--- if (!add_partition (disk, part)) { ok[i - 1] =3D 0; errnums[i - 1] =3D errno; } [=E2=80=A6] char *bad_part_list =3D NULL; /* now warn about any errors */ for (i =3D 1; i <=3D lpn; i++) { if (ok[i - 1] || errnums[i - 1] =3D=3D ENXIO) continue; if (bad_part_list =3D=3D NULL) { bad_part_list =3D malloc (lpn * 5); if (!bad_part_list) goto cleanup; bad_part_list[0] =3D 0; } sprintf (bad_part_list + strlen (bad_part_list), "%d, ", i); } if (bad_part_list =3D=3D NULL) ret =3D 1; else { bad_part_list[strlen (bad_part_list) - 2] =3D 0; if (ped_exception_throw ( PED_EXCEPTION_ERROR, PED_EXCEPTION_IGNORE_CANCEL, _("Partition(s) %s on %s have been written, but we = have " "been unable to inform the kernel of the change, " "probably because it/they are in use. As a resul= t, " "the old partition(s) will remain in use. You " "should reboot now before making further changes.= "), bad_part_list, disk->dev->path) =3D=3D PED_EXCEPTIO= N_IGNORE) ret =3D 1; free (bad_part_list); } --8<---------------cut here---------------end--------------->8--- With the patch below, I strace=E2=80=99d =E2=80=98parted=E2=80=99, which gi= ves: --8<---------------cut here---------------start------------->8--- $ make check-system TESTS=3Dbasic [=E2=80=A6] ioctl(3, BLKPG, {op=3DBLKPG_DEL_PARTITION, flags=3D0, datalen=3D152, data= =3D{start=3D0, length=3D0, pno=3D253, devname=3D"", volname=3D""}}) =3D -1 = ENOMEM (Cannot allocate memory) ioctl(3, BLKPG, {op=3DBLKPG_DEL_PARTITION, flags=3D0, datalen=3D152, data= =3D{start=3D0, length=3D0, pno=3D254, devname=3D"", volname=3D""}}) =3D -1 = ENOMEM (Cannot allocate memory) ioctl(3, BLKPG, {op=3DBLKPG_DEL_PARTITION, flags=3D0, datalen=3D152, data= =3D{start=3D0, length=3D0, pno=3D255, devname=3D"", volname=3D""}}) =3D -1 = ENOMEM (Cannot allocate memory) ioctl(3, BLKPG, {op=3DBLKPG_DEL_PARTITION, flags=3D0, datalen=3D152, data= =3D{start=3D0, length=3D0, pno=3D256, devname=3D"", volname=3D""}}) =3D -1 = ENOMEM (Cannot allocate memory) write(2, "Error", 5Error) =3D 5 write(2, ": ", 2: ) =3D 2 write(2, "Partition(s) 1, 2, 3, 4, 5, 6, 7"..., 495Partition(s) 1, 2, 3, 4,= 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,= 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43= , 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 6= 2, 63, 64 on /dev/vda have been written, but we have been unable to inform = the kernel of the change, probably because it/they are in use. As a result= , the old partition(s) will remain in use. You should reboot now before ma= king further changes.) =3D 495 write(2, "\n", 1 ) =3D 1 --8<---------------cut here---------------end--------------->8--- So I threw more virtual RAM at it: --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm @@ -446,6 +450,7 @@ system that is passed to 'populate-root-file-system'." #:bootloader-installer #+(bootloader-installer bootloader))))))) #:system system + #:memory-size 1024 #:make-disk-image? #t #:disk-image-size disk-image-size #:disk-image-format disk-image-format --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable =E2=80=A6 but that doesn=E2=80=99t help. Ideas? Thanks, Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/build/vm.scm b/gnu/build/vm.scm index 287d099f79..e793b5b518 100644 --- a/gnu/build/vm.scm +++ b/gnu/build/vm.scm @@ -297,7 +297,7 @@ actual /dev name based on DEVICE." partition-size) partitions) ", ")) - (apply invoke "parted" "--script" + (apply invoke "strace" "parted" "--script" device "mklabel" label-type (options partitions offset)) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 59ffb334e0..72fb3ca49d 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -349,15 +349,15 @@ corresponding UPSTREAM-SOURCE (an origin), using the given DEBLOB-SCRIPTS." ;; The current "stable" kernel. That is, the most recently released major ;; version. -(define-public linux-libre-5.8-version "5.8.7") +(define-public linux-libre-5.8-version "5.8.8") (define deblob-scripts-5.8 (linux-libre-deblob-scripts - linux-libre-5.8-version + "5.8.7" (base32 "07z7sglyrfh0706icqqf3shadf638pvyid9386r661ds5lbsa2mw") (base32 "0j6jba5fcddqlb42f95gjl78jisfla4nswqila074gglcrbnl9q7"))) (define-public linux-libre-5.8-pristine-source (let ((version linux-libre-5.8-version) - (hash (base32 "1zhpzlhl2ykna2nc70m72wlgyv1pkvkpfssb4k8p5pwlkh1ga2vv"))) + (hash (base32 "0xm901zvvrwsb9k88la6pb65nybi43bygiyz1z68njwsx6ripxik"))) (make-linux-libre-source version (%upstream-linux-source version hash) deblob-scripts-5.8))) diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm index 80a8618729..49489b6159 100644 --- a/gnu/system/vm.scm +++ b/gnu/system/vm.scm @@ -376,6 +376,10 @@ system that is passed to 'populate-root-file-system'." (set-path-environment-variable "PATH" '("bin" "sbin") inputs) + (setenv "PATH" + (string-append #+(file-append strace "/bin") ":" + (getenv "PATH"))) + (let* ((graphs '#$(match inputs (((names . _) ...) names))) --=-=-=--