From unknown Fri Aug 15 04:04:34 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#72729 <72729@debbugs.gnu.org> To: bug#72729 <72729@debbugs.gnu.org> Subject: Status: [PATCH] gnu: protobuf-c: Fix cross-compilation. Reply-To: bug#72729 <72729@debbugs.gnu.org> Date: Fri, 15 Aug 2025 11:04:34 +0000 retitle 72729 [PATCH] gnu: protobuf-c: Fix cross-compilation. reassign 72729 guix-patches submitter 72729 Zheng Junjie severity 72729 normal tag 72729 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 20 05:09:14 2024 Received: (at submit) by debbugs.gnu.org; 20 Aug 2024 09:09:14 +0000 Received: from localhost ([127.0.0.1]:59885 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sgKra-0003Qj-5T for submit@debbugs.gnu.org; Tue, 20 Aug 2024 05:09:14 -0400 Received: from lists.gnu.org ([209.51.188.17]:58634) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sgKrY-0003Qa-1f for submit@debbugs.gnu.org; Tue, 20 Aug 2024 05:09:13 -0400 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 1sgKqr-0002z0-0E for guix-patches@gnu.org; Tue, 20 Aug 2024 05:08:29 -0400 Received: from smtp84.cstnet.cn ([159.226.251.84] helo=cstnet.cn) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1sgKqo-0001CW-7a for guix-patches@gnu.org; Tue, 20 Aug 2024 05:08:28 -0400 Received: from m.tailaa68d.ts.net (unknown [107.174.64.25]) by APP-05 (Coremail) with SMTP id zQCowAB3Xjn2XMRmmhVaCA--.50255S2; Tue, 20 Aug 2024 17:08:12 +0800 (CST) From: Zheng Junjie To: guix-patches@gnu.org Subject: [PATCH] gnu: protobuf-c: Fix cross-compilation. Date: Tue, 20 Aug 2024 17:08:03 +0800 Message-ID: X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-CM-TRANSID: zQCowAB3Xjn2XMRmmhVaCA--.50255S2 X-Coremail-Antispam: 1UD129KBjvJXoW7tFW8CF1DCF1xtr4UZw1UWrg_yoW8WF4xpa 4fKw15Aan7Gw4xtFsxKF42gF4Yqa4kJF4Yvw47Aa18C3909Fs2grW3tF43tF1fuF1xGa15 WF1DWF4DGFW8JFJanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUySb7Iv0xC_tr1lb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rw A2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_JFI_Gr1l84ACjcxK6xII jxv20xvEc7CjxVAFwI0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwV C2z280aVCY1x0267AKxVWxJr0_GcWle2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xv F2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v26r1j6r 4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF04k20xvY0x0EwIxGrwCF x2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14 v26r106r1rMI8E67AF67kF1VAFwI0_Jr0_JrylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY 67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2 IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_ Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07jY6wZUUUUU= X-Originating-IP: [107.174.64.25] X-CM-SenderInfo: x2kh0wxmxqyx3h6l2u1dvotugofq/ Received-SPF: pass client-ip=159.226.251.84; envelope-from=zhengjunjie@iscas.ac.cn; helo=cstnet.cn X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-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.4 (-) 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.4 (--) * gnu/packages/protobuf.scm (protobuf-c): Fix cross-compilation. [native-inputs]: When cross-compilation, add protobuf. [arguments]<#:configure-flags>: When cross-compilation, Set PROTOC variable. Change-Id: Idd660f526b7c90277cb4399997cdb7ce72e4f1c5 --- gnu/packages/protobuf.scm | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/gnu/packages/protobuf.scm b/gnu/packages/protobuf.scm index d47b67fa61..b8679eff25 100644 --- a/gnu/packages/protobuf.scm +++ b/gnu/packages/protobuf.scm @@ -8,7 +8,7 @@ ;;; Copyright © 2020 Vinicius Monego ;;; Copyright © 2020 Brett Gilio ;;; Copyright © 2021 Felix Gruber -;;; Copyright © 2023 Zheng Junjie <873216071@qq.com> +;;; Copyright © 2023, 2024 Zheng Junjie <873216071@qq.com> ;;; ;;; This file is part of GNU Guix. ;;; @@ -262,7 +262,17 @@ (define-public protobuf-c "17rk42r3gcc46c2svd1mxs542wnl4mi77a6klkhg6wl1a36zmi2c")))) (build-system gnu-build-system) (inputs (list protobuf)) - (native-inputs (list pkg-config)) + (native-inputs (append (if (%current-target-system) + (list protobuf) + '()) + (list pkg-config))) + (arguments (if (%current-target-system) + (list #:configure-flags + #~(list + (string-append + "PROTOC=" + (search-input-file %build-inputs "bin/protoc")))) + (list))) (home-page "https://github.com/protobuf-c/protobuf-c") (synopsis "Protocol Buffers implementation in C") (description base-commit: 7f14eda95f5f5694cb62decb1bcff46685b9c287 -- 2.45.2 From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 23 10:45:09 2024 Received: (at 72729-done) by debbugs.gnu.org; 23 Aug 2024 14:45:09 +0000 Received: from localhost ([127.0.0.1]:39954 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1shVXI-0002L4-P8 for submit@debbugs.gnu.org; Fri, 23 Aug 2024 10:45:09 -0400 Received: from smtp84.cstnet.cn ([159.226.251.84]:45854 helo=cstnet.cn) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1shVXE-0002Ju-VD for 72729-done@debbugs.gnu.org; Fri, 23 Aug 2024 10:45:07 -0400 Received: from m (unknown [117.147.108.221]) by APP-05 (Coremail) with SMTP id zQCowACnEUE6oMhmaE94CQ--.20045S2; Fri, 23 Aug 2024 22:44:10 +0800 (CST) From: Zheng Junjie To: 72729-done@debbugs.gnu.org Subject: Re: [bug#72729] [PATCH] gnu: protobuf-c: Fix cross-compilation. In-Reply-To: (Zheng Junjie's message of "Tue, 20 Aug 2024 17:08:03 +0800") References: Date: Fri, 23 Aug 2024 22:44:10 +0800 Message-ID: <87plpz8fk5.fsf@iscas.ac.cn> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature"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originating-IP: [117.147.108.221] X-CM-SenderInfo: x2kh0wxmxqyx3h6l2u1dvotugofq/ X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 72729-done 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: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Zheng Junjie writes: > * gnu/packages/protobuf.scm (protobuf-c): Fix cross-compilation. > [native-inputs]: When cross-compilation, add protobuf. > [arguments]<#:configure-flags>: When cross-compilation, Set PROTOC variab= le. > > Change-Id: Idd660f526b7c90277cb4399997cdb7ce72e4f1c5 > --- > gnu/packages/protobuf.scm | 14 ++++++++++++-- > 1 file changed, 12 insertions(+), 2 deletions(-) > > diff --git a/gnu/packages/protobuf.scm b/gnu/packages/protobuf.scm > index d47b67fa61..b8679eff25 100644 > --- a/gnu/packages/protobuf.scm > +++ b/gnu/packages/protobuf.scm > @@ -8,7 +8,7 @@ > ;;; Copyright =C2=A9 2020 Vinicius Monego > ;;; Copyright =C2=A9 2020 Brett Gilio > ;;; Copyright =C2=A9 2021 Felix Gruber > -;;; Copyright =C2=A9 2023 Zheng Junjie <873216071@qq.com> > +;;; Copyright =C2=A9 2023, 2024 Zheng Junjie <873216071@qq.com> > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -262,7 +262,17 @@ (define-public protobuf-c > "17rk42r3gcc46c2svd1mxs542wnl4mi77a6klkhg6wl1a36zmi2c"))= )) > (build-system gnu-build-system) > (inputs (list protobuf)) > - (native-inputs (list pkg-config)) > + (native-inputs (append (if (%current-target-system) > + (list protobuf) > + '()) > + (list pkg-config))) > + (arguments (if (%current-target-system) > + (list #:configure-flags > + #~(list > + (string-append > + "PROTOC=3D" > + (search-input-file %build-inputs "bin/proto= c")))) > + (list))) > (home-page "https://github.com/protobuf-c/protobuf-c") > (synopsis "Protocol Buffers implementation in C") > (description > > base-commit: 7f14eda95f5f5694cb62decb1bcff46685b9c287 push, close. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEfr6klGDOXiwIdX/bO1qpk+Gi3/AFAmbIoDoACgkQO1qpk+Gi 3/A2nA//Vt2+l4SqnTJyd30KfvHoIkfcErBYdag7Q2TcB0NJ24VsM4j1GEsgVeCq oDxd9g7QzSgt+FaH/6EH5iYlgQX/XPC6iwj/Tz0jOK8KAS2sVzw69jKO7V0fbLY9 YY0xRc2MlviJRR7M0nwmovSThOPaCy0Y/w9hlB0hKudBi0HXbBBCQXDzDpVeS2Hu hcFVuAzmU1y5uZOhO2ZcOkQeTfJ9BbO55spW79rkhkRi5BBSYDwS/QtjUJhDbdhf SjRL/v19VjpCIfok7MWj9wxEcfgPqBK8zAOult2XH50jGmw5oVoMzhMWirO/DUeN U2pRP+0Z9gHcoq2HF994crv+ZQMvFW+aBG3SDwCdpmq0uDbNTfyf7aNsukpnANMA VTL+8QfHWxfoZy4ZKYfo9Fc8mc2koCh+pZnS36XF/UvJiUFupmGSiDZ1BVjjy64M cJWwuztxGxMgU4ogPpbAviFQgbCEfu5oRpWUe/zQGCcaoegneeMNKDZBeNO+g0ha bzlONWztpVQcMpTlHOD5hIAejEE+lNSQWs6kkqsbH/DuRvf5jQQ6I21fWy/ffcrC mer1KxW1cmP+cNjd3nfcDuVUMpHRQUqnoNwUmnVnAjjVCECVAy6cJ0iX9F5v9pR+ JgqIuKnfVJnNppdOc6t4aztmKF+PA7vk3hHkdMsGSjmkUlK5JxY= =68kL -----END PGP SIGNATURE----- --=-=-=-- From unknown Fri Aug 15 04:04:34 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 21 Sep 2024 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