GNU bug report logs -
#72729
[PATCH] gnu: protobuf-c: Fix cross-compilation.
Previous Next
Reported by: Zheng Junjie <zhengjunjie <at> iscas.ac.cn>
Date: Tue, 20 Aug 2024 09:10:01 UTC
Severity: normal
Tags: patch
Done: Zheng Junjie <zhengjunjie <at> iscas.ac.cn>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 72729 in the body.
You can then email your comments to 72729 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#72729
; Package
guix-patches
.
(Tue, 20 Aug 2024 09:10:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Zheng Junjie <zhengjunjie <at> iscas.ac.cn>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Tue, 20 Aug 2024 09:10:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* 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 <monego <at> posteo.net>
;;; Copyright © 2020 Brett Gilio <brettg <at> gnu.org>
;;; Copyright © 2021 Felix Gruber <felgru <at> posteo.net>
-;;; Copyright © 2023 Zheng Junjie <873216071 <at> qq.com>
+;;; Copyright © 2023, 2024 Zheng Junjie <873216071 <at> 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
Reply sent
to
Zheng Junjie <zhengjunjie <at> iscas.ac.cn>
:
You have taken responsibility.
(Fri, 23 Aug 2024 14:46:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Zheng Junjie <zhengjunjie <at> iscas.ac.cn>
:
bug acknowledged by developer.
(Fri, 23 Aug 2024 14:46:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 72729-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Zheng Junjie <zhengjunjie <at> iscas.ac.cn> 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 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 <monego <at> posteo.net>
> ;;; Copyright © 2020 Brett Gilio <brettg <at> gnu.org>
> ;;; Copyright © 2021 Felix Gruber <felgru <at> posteo.net>
> -;;; Copyright © 2023 Zheng Junjie <873216071 <at> qq.com>
> +;;; Copyright © 2023, 2024 Zheng Junjie <873216071 <at> 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
push, close.
[signature.asc (application/pgp-signature, inline)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 21 Sep 2024 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 327 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.