From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Nieuwenhuizen Subject: bug#39699: [core-updates] gash-boot0 fails on i686-linux Date: Fri, 21 Feb 2020 15:11:06 +0100 Message-ID: <87mu9c81z9.fsf@gnu.org> References: <87y2sx41f2.fsf@devup.no> <87zhdc9b1e.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:42838) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j592B-0000hM-E3 for bug-guix@gnu.org; Fri, 21 Feb 2020 09:12:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j592A-0003IW-6f for bug-guix@gnu.org; Fri, 21 Feb 2020 09:12:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:40586) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j592A-0003IM-3Q for bug-guix@gnu.org; Fri, 21 Feb 2020 09:12:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j5929-0007jb-VO for bug-guix@gnu.org; Fri, 21 Feb 2020 09:12:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87zhdc9b1e.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Thu, 20 Feb 2020 22:57:49 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 39699@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: Hi! > I can see two solutions: > > 1. Remove bzip2 support from bootar (it=E2=80=99s not actually needed, = is it?). Ugly but easiest fix for me, see attached. > 2. Modify (compression bzip2) so that it errors out on first use > rather than at load time. Or 3. Port bzip2 to to 32bit. > Timothy, janneke, WDYT? I would prefer 3., with the fix going upstream. This opens the path to really using bzip2 in the bootstrap. 2. could be a nice intermediate step, but I would not know how to do that nicely, as we fetch (compression bzip2) from upstream. Timothy? How about applying attached patch that implements 1. and revert it once we get to 2. or 3. janneke --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-commencement-bootar-Build-fix-for-i686-linux.patch >From 06bc492cdc1f476f0caa558546290ceafde357b1 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Fri, 21 Feb 2020 07:46:16 +0100 Subject: [PATCH] gnu: commencement: bootar: Build fix for i686-linux. See #39699 * gnu/packages/commencement.scm (bootar)[i686-linux]: Stub bzip2. --- gnu/packages/commencement.scm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm index e3800d84a5..4901391073 100644 --- a/gnu/packages/commencement.scm +++ b/gnu/packages/commencement.scm @@ -111,6 +111,15 @@ (guile (string-append guile-dir "/bin/guile"))) (invoke guile "--no-auto-compile" source) (chdir "bootar") + (when ,(equal? (%current-system) "i686-linux") + (delete-file "scripts/bzip2.in") + (delete-file "compression/bzip2.scm") + (with-output-to-file "compression/bzip2.scm" + (lambda _ + (display "(define-module (compression bzip2)) +(define-public is-bzip2-file? (const #f)) +(define-public make-bzip2-input-port (const #f)) +")))) #t))) (replace 'configure (bootstrap-configure ,version "." "scripts")) (replace 'build (bootstrap-build ".")) -- 2.24.0 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com --=-=-=--