From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id YLjXI1xIrWWZjgAAe85BDQ:P1 (envelope-from ) for ; Sun, 21 Jan 2024 17:37:48 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id YLjXI1xIrWWZjgAAe85BDQ (envelope-from ) for ; Sun, 21 Jan 2024 17:37:48 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=brrnOArr; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705855068; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=1PHUfAJ9424TNmgX56DtJvb7Qb/CuUnVUmcj2CcmWqU=; b=en9R1fs/QbWHkIVIoxdVhwNdW4pJ4Hryj4MQtP4GOLevMzvjkZEDcSuvgAubO3FqM905in 0eOHfLlkpc8c6LugVGd+6tUPeLRACZ49UoPhTLfvmGIUJTti/2w+WFuqcivgsUCZDdasiF 2Q0b6XNX+Hcn6+kbSTSCkSU4ZFzYFzx3GrN0EYjAI/81EEDcs+euIT7KYxj7cJw7BClt0K S66wz854oL5V9n1R0gQTiEYfJBoDHaYpL2BxbZHvoPK+RHE40qDzpRgWxUSoav5Mud4iWG Qiku+9tm2UigUMgvNbg9Tn5qlpkos48HjYRT1qvqVjKmMW/5AfhK8PWDS0M63w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=brrnOArr; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705855068; a=rsa-sha256; cv=none; b=WPanTR3Z76LDNHC+6lGoCyFpo92hkWcZkx1QQAE4CQWYb1R9O5b6wDKYvLNpyON3XO4iqF oN9pfSMa85no6DbCJt/Fx7VaJZHra7uDmuqKk3H0bfdRJ1bq6IMbWK3daTUSt7KMWFZg3T uHhwu44WNOEth1KsHQ1Xx1ULCSigOySkRC2Zp8kd+ELw3/51a48YL/G5ee91VPF9VGb7kX y8uUDaBHqtYLuohDAWjdaamRK70o8QmgBnxkCt6ZAv0LO2I32hv4pj6+CJDJQq0J+rczl1 5RAJnZ2fs8+uZMUrJA1ECyTveRuwC9pN5kzgaBGGHDqyww4Qw9yts+50WaI28g== 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 41D8F1EC85 for ; Sun, 21 Jan 2024 17:37:47 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rRaoZ-0007vj-Hy; Sun, 21 Jan 2024 11:36:55 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rRaoX-0007vb-OU for guix-devel@gnu.org; Sun, 21 Jan 2024 11:36:53 -0500 Received: from mail-qt1-x82f.google.com ([2607:f8b0:4864:20::82f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rRaoW-0007Xd-4A; Sun, 21 Jan 2024 11:36:53 -0500 Received: by mail-qt1-x82f.google.com with SMTP id d75a77b69052e-42a35d1cd40so10511561cf.2; Sun, 21 Jan 2024 08:36:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705855008; x=1706459808; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=1PHUfAJ9424TNmgX56DtJvb7Qb/CuUnVUmcj2CcmWqU=; b=brrnOArr9hJH0UxeeG64ce9J+txWvdiSjhKx+LMn4ttR4Dmppb7ozxNm/UdCVJW4y3 wISx73OdMBgE2YHSNcUVr1cKYT8Z26FyEpglV2bmg3V/PO+8gCbE15w8nmoUXTGWICBy U1AM4ZkGW0Bv/QylwJP8f1EDgTMt39TjOW8KMJ+FLCmpGeyhTIWmQgMc6HgCYJ5R6VtV j8lv2InTLG10XALu5p7JcE0PZws02p3CJKePEHn84LxLDu6MQZwGTpDWoXwlZMcxNwAR yWX/cCsaBwr9fGwh+9YOkBVumH5bmre9veO37Jj01MV+OTS1uGJMgTSsJkxAgHwk1leu xMWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705855008; x=1706459808; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=1PHUfAJ9424TNmgX56DtJvb7Qb/CuUnVUmcj2CcmWqU=; b=Y1VcJvNjkho/4XuSORCqmoMB8NsY64prBdvwlPW3wITv556lB41n2XaK2jdBmqeisu StYygwGBDYOWC0uHebjO4lVLRZY/FOkOzvooA28k2PF7AKPXnwlO6qw5yLOeu4Qm5EyH CdTgnzPG2rFJpFFoqBnJUQjurElwEhCTely7eZLrYxMwGck8ZPJRtiEYD7qGwqSYbw2O co6mMpBuETZ3Nu2sbtXSJQi6b8Qc4gnVyngOMmZ6l6Y+TvkxUgXoeZUXyDfoK7mpYQO+ mhJJ9W5QNAoTkNpW19Oy2kJ9rfqJy1FMCuSviX3F1fehOPrdBkRaL1nao6PbUBZ1kcVv lRVA== X-Gm-Message-State: AOJu0YwkHQMJ41Kxe+PVImTXiB3d5NMIeqPtoiu6I6Hrq3OJc8RurkAr 5BktZoytAM5yBllM50vNXSiNYpKtXXcr7+lMl1wytK/VL95tqra/aQw3FBua1+I= X-Google-Smtp-Source: AGHT+IFvuC0zG6MBvtPltqgPWezXVW+UBfVfz0nMNssd0+eeXw4JrId8fjaA3T5tYSETR47rOLUCNA== X-Received: by 2002:ac8:5d55:0:b0:42a:377c:7be0 with SMTP id g21-20020ac85d55000000b0042a377c7be0mr2403996qtx.101.1705855008528; Sun, 21 Jan 2024 08:36:48 -0800 (PST) Received: from hurd (dsl-10-128-232.b2b2c.ca. [72.10.128.232]) by smtp.gmail.com with ESMTPSA id bz11-20020a05622a1e8b00b00429bdddfb49sm1683759qtb.44.2024.01.21.08.36.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jan 2024 08:36:48 -0800 (PST) From: Maxim Cournoyer To: Janneke Nieuwenhuizen Cc: guix-devel@gnu.org, Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [core-updates] Native build of make-boot0 fails on missing zstd In-Reply-To: (Efraim Flashner's message of "Sun, 21 Jan 2024 13:19:17 +0200") References: <87plxvkp3i.fsf@gnu.org> Date: Sun, 21 Jan 2024 11:36:46 -0500 Message-ID: <87fryqabj5.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::82f; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x82f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -9.98 X-Spam-Score: -9.98 X-Migadu-Queue-Id: 41D8F1EC85 X-Migadu-Scanner: mx12.migadu.com X-TUID: pAJ+lJ9LbBC8 Hello, Efraim Flashner writes: > On Sun, Jan 21, 2024 at 10:33:37AM +0100, Janneke Nieuwenhuizen wrote: >> Hi! >> >> On core-updates, running >> >> ./pre-inst-env guix build --system=i586-gnu -e '(@@ (gnu packages commencement) gnu-make-boot0)' >> >> fails for me with >> >> sh: zstd: command not found >> >> See log below. FWIW, using --system=i686-linux for example, works fine. I don't know what it'd only affect non-x86 systems, but I've noticed one bug in my recent "default to zstd" repack logic, which would name a xz tarball as .tar.zst. Perhaps tar then try to use zstd to decompress it, even if it's really a xz compressed archive? I have the following commit that fixes this, haven't pushed it yet (it's a world rebuild). --8<---------------cut here---------------start------------->8--- modified guix/packages.scm @@ -949,10 +949,7 @@ (define* (patch-and-repack source patches (bzip2 (lookup-input "bzip2")) (lzip (lookup-input "lzip")) (xz (lookup-input "xz")) - (zstd (or (lookup-input "zstd") - ;; Fallback to xz in case zstd is not available, such as - ;; for bootstrap packages. - xz)) + (zstd (lookup-input "zstd")) (patch (lookup-input "patch")) (comp (and=> (compressor source-file-name) lookup-input)) (patches (map instantiate-patch patches))) @@ -1033,10 +1030,16 @@ (define* (patch-and-repack source patches locale (system-error-errno args))))) (setenv "PATH" - (string-append #+zstd "/bin" - (if #+comp - (string-append ":" #+comp "/bin") - ""))) + (string-join (fold (lambda (x path) + (if (and x (not (member x path))) + (cons x path) + path)) + '() + ;; Fallback to xz in case zstd is + ;; not available, such as for + ;; bootstrap packages. + (list #+zstd #+xz #+comp)) + ":")) (setenv "ZSTD_NBTHREADS" (number->string (parallel-job-count))) --8<---------------cut here---------------end--------------->8--- -- Thanks, Maxim