From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 08 12:50:26 2022 Received: (at submit) by debbugs.gnu.org; 8 Apr 2022 16:50:26 +0000 Received: from localhost ([127.0.0.1]:35743 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ncroY-00018Q-7v for submit@debbugs.gnu.org; Fri, 08 Apr 2022 12:50:26 -0400 Received: from lists.gnu.org ([209.51.188.17]:45746) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ncroX-00018J-EA for submit@debbugs.gnu.org; Fri, 08 Apr 2022 12:50:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50602) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncroW-0001CC-RM for guix-patches@gnu.org; Fri, 08 Apr 2022 12:50:24 -0400 Received: from mailout3.rbg.tum.de ([131.159.0.8]:46109) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncroU-0003DP-Ih for guix-patches@gnu.org; Fri, 08 Apr 2022 12:50:24 -0400 Received: from mailrelay1.rbg.tum.de (mailrelay1.in.tum.de [131.159.254.14]) by mailout3.rbg.tum.de (Postfix) with ESMTPS id 4A8C5100115 for ; Fri, 8 Apr 2022 18:49:56 +0200 (CEST) Received: by mailrelay1.rbg.tum.de (Postfix, from userid 112) id 4610F254; Fri, 8 Apr 2022 18:49:56 +0200 (CEST) Received: from mailrelay1.rbg.tum.de (localhost [127.0.0.1]) by mailrelay1.rbg.tum.de (Postfix) with ESMTP id DD4E4252 for ; Fri, 8 Apr 2022 18:49:55 +0200 (CEST) Received: from mail.net.in.tum.de (mail.net.in.tum.de [131.159.15.233]) by mailrelay1.rbg.tum.de (Postfix) with ESMTP id DBCEE24E for ; Fri, 8 Apr 2022 18:49:55 +0200 (CEST) Received: from amnesix.net.in.tum.de (amnesix.net.in.tum.de [131.159.20.238]) by mail.net.in.tum.de (Postfix) with ESMTP id B9E41282F031; Fri, 8 Apr 2022 18:49:55 +0200 (CEST) From: itd To: guix-patches@gnu.org Subject: [PATCH] gnu: efivar: Fix build errors on i686-linux. Date: Fri, 08 Apr 2022 18:49:47 +0200 Message-ID: <87lewf7c5w.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=131.159.0.8; envelope-from=itd@net.in.tum.de; helo=mailout3.rbg.tum.de X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) >From a6a2c3b3eddbf4ff47e39cfe8265346265d22b00 Mon Sep 17 00:00:00 2001 * gnu/packages/patches/efivar-211.patch: New patch. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/linux.scm (efivar)[source]: Use it. --- Hi, currently, efivar on i686-linux does not build [0] due to format errors [1]. To my knowledge, the merged fix [2] is not part of a release yet. But, it [2] fixes the efivar build for me. Please consider applying it. Thanks! [0]: https://ci.guix.gnu.org/build/495200/details [1]: https://github.com/rhboot/efivar/issues/209 [2]: https://github.com/rhboot/efivar/pull/211 Regards itd gnu/local.mk | 1 + gnu/packages/linux.scm | 5 +- gnu/packages/patches/efivar-211.patch | 84 +++++++++++++++++++++++++++ 3 files changed, 89 insertions(+), 1 deletion(-) create mode 100644 gnu/packages/patches/efivar-211.patch diff --git a/gnu/local.mk b/gnu/local.mk index a44815bdbb..9cccc7e03a 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1018,6 +1018,7 @@ dist_patch_DATA = \ %D%/packages/patches/ecl-16-ignore-stderr-write-error.patch \ %D%/packages/patches/ecl-16-libffi.patch \ %D%/packages/patches/efibootmgr-remove-extra-decl.patch \ + %D%/packages/patches/efivar-211.patch \ %D%/packages/patches/eigen-remove-openmp-error-counting.patch \ %D%/packages/patches/eigen-stabilise-sparseqr-test.patch \ %D%/packages/patches/einstein-build.patch \ diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index e49bbfbe9c..9e64bb207c 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -6776,7 +6776,10 @@ (define-public efivar "-" version ".tar.bz2")) (sha256 (base32 - "0jaka7b4lccswjqiv4liclkj6w78gildg7vd6dnw3wf595pfs67h")))) + "0jaka7b4lccswjqiv4liclkj6w78gildg7vd6dnw3wf595pfs67h")) + (patches + (search-patches "efivar-211.patch")))) + (build-system gnu-build-system) (arguments (list diff --git a/gnu/packages/patches/efivar-211.patch b/gnu/packages/patches/efivar-211.patch new file mode 100644 index 0000000000..3df66d3f5c --- /dev/null +++ b/gnu/packages/patches/efivar-211.patch @@ -0,0 +1,84 @@ +From 15622b7e5761f3dde3f0e42081380b2b41639a48 Mon Sep 17 00:00:00 2001 +From: itd0 <69421122+itd0@users.noreply.github.com> +Date: Mon, 4 Apr 2022 19:59:58 +0200 +Subject: [PATCH] Avoid format error on i686 + +On i686 definition of off_t and ssize_t differ. Update format length +modifiers as needed to avoid format errors with GCC. + +Signed-off-by: itd0 <69421122+itd0@users.noreply.github.com> +--- + src/esl-iter.c | 18 +++++++++--------- + src/secdb-dump.c | 2 +- + 2 files changed, 10 insertions(+), 10 deletions(-) + +diff --git a/src/esl-iter.c b/src/esl-iter.c +index 26b5cb5e..4a1938ad 100644 +--- a/src/esl-iter.c ++++ b/src/esl-iter.c +@@ -308,13 +308,13 @@ esl_list_iter_next_with_size_correction(esl_list_iter *iter, efi_guid_t *type, + return -1; + } + if (iter->offset < 0) { +- efi_error("iter->offset (%zd) < 0", iter->offset); ++ efi_error("iter->offset (%jd) < 0", (intmax_t)iter->offset); + errno = EINVAL; + return -1; + } + if ((uint32_t)iter->offset >= iter->len) { +- efi_error("iter->offset (%zd) >= iter->len (%zd)", +- iter->offset, iter->len); ++ efi_error("iter->offset (%jd) >= iter->len (%zd)", ++ (intmax_t)iter->offset, iter->len); + errno = EINVAL; + return -1; + } +@@ -335,9 +335,9 @@ esl_list_iter_next_with_size_correction(esl_list_iter *iter, efi_guid_t *type, + iter->len - iter->offset, iter->len - iter->offset, + iter->esl->signature_list_size, iter->esl->signature_list_size); + if (correct_size && (iter->len - iter->offset) > 0) { +- warnx("correcting ESL size from %d to %zd at %lx", ++ warnx("correcting ESL size from %d to %jd at %lx", + iter->esl->signature_list_size, +- iter->len - iter->offset, iter->offset); ++ (intmax_t)(iter->len - iter->offset), iter->offset); + debug("correcting ESL size from %d to %zd at %lx", + iter->esl->signature_list_size, + iter->len - iter->offset, iter->offset); +@@ -360,9 +360,9 @@ esl_list_iter_next_with_size_correction(esl_list_iter *iter, efi_guid_t *type, + if (iter->len - iter->offset < iter->esl->signature_list_size) { + debug("EFI_SIGNATURE_LIST is malformed"); + if (correct_size && (iter->len - iter->offset) > 0) { +- warnx("correcting ESL size from %d to %zd at 0x%lx", ++ warnx("correcting ESL size from %d to %jd at 0x%lx", + iter->esl->signature_list_size, +- iter->len - iter->offset, iter->offset); ++ (intmax_t)(iter->len - iter->offset), iter->offset); + debug("correcting ESL size from %d to %zd at 0x%lx", + iter->esl->signature_list_size, + iter->len - iter->offset, iter->offset); +@@ -411,9 +411,9 @@ esl_list_iter_next_with_size_correction(esl_list_iter *iter, efi_guid_t *type, + if (iter->esl->signature_list_size > iter->len - iter->offset) { + debug("EFI_SIGNATURE_LIST is malformed"); + if (correct_size && (iter->len - iter->offset) > 0) { +- warnx("correcting ESL size from %d to %zd at 0x%lx", ++ warnx("correcting ESL size from %d to %jd at 0x%lx", + iter->esl->signature_list_size, +- iter->len - iter->offset, iter->offset); ++ (intmax_t)(iter->len - iter->offset), iter->offset); + debug("correcting ESL size from %d to %zd at 0x%lx", + iter->esl->signature_list_size, + iter->len - iter->offset, iter->offset); +diff --git a/src/secdb-dump.c b/src/secdb-dump.c +index 02fb915b..17f64411 100644 +--- a/src/secdb-dump.c ++++ b/src/secdb-dump.c +@@ -248,7 +248,7 @@ secdb_dump(efi_secdb_t *secdb, bool annotations) + esln += 1; + } + secdb_dump_finish(); +- printf("%08lx\n", offset); ++ printf("%08zx\n", offset); + + fflush(stdout); + } -- 2.30.2 From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 09 18:03:38 2022 Received: (at 54795-done) by debbugs.gnu.org; 9 Apr 2022 22:03:39 +0000 Received: from localhost ([127.0.0.1]:38862 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ndJBC-0005Lq-Nl for submit@debbugs.gnu.org; Sat, 09 Apr 2022 18:03:38 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52774) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ndJBA-0005Lc-N3 for 54795-done@debbugs.gnu.org; Sat, 09 Apr 2022 18:03:37 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57746) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndJB3-0007F6-Gp; Sat, 09 Apr 2022 18:03:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=9sEEJczEVY51h99BtmS5X0iGMwpsIoQCUsTwbZ2+CS0=; b=EhZaq7kQfxOJe2Ujcudu yODYwUUJ+Iwlg0/URQKFrCyIIZza//FR8hOm1K3hn6Ag6pamlCdegYxMDZmPtygANM0y4L3lJUb96 lkLWaxAmp92AZx40Z2MJIiPAzIsv/EemiOw4WZOhgW5+JjQ3hhvdgDDq2lnLr67OYnb9koMBM4D1M vU7F252TkIKGwcLcVxU2vnfwM2qLTQssejKM9SW5V1wsqlH14NxFTb/dkDyMDjNoYJOkipvysey9E nrv3mSvg/3Cs+ZEoJlUL7CQDowj+UuHlVO0tIminRTBoj5GLZW/qfSJPZ8M2KuP2seekXkeNgsp/R rf4CYO4nTzk23w==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:53902 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndJB2-0005bl-Mk; Sat, 09 Apr 2022 18:03:29 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: itd Subject: Re: bug#54795: [PATCH] gnu: efivar: Fix build errors on i686-linux. References: <87lewf7c5w.fsf@localhost> Date: Sun, 10 Apr 2022 00:03:26 +0200 In-Reply-To: <87lewf7c5w.fsf@localhost> (itd@net.in.tum.de's message of "Fri, 08 Apr 2022 18:49:47 +0200") Message-ID: <87h7717w41.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 54795-done Cc: 54795-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, itd skribis: >>>From a6a2c3b3eddbf4ff47e39cfe8265346265d22b00 Mon Sep 17 00:00:00 2001 > > * gnu/packages/patches/efivar-211.patch: New patch. > * gnu/local.mk (dist_patch_DATA): Add it. > * gnu/packages/linux.scm (efivar)[source]: Use it. I added the URL of the upstream pull request at the top of the patch and committed it. Thanks! Ludo=E2=80=99. From unknown Sat Jun 14 19:10:28 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 08 May 2022 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator