GNU bug report logs -
#70509
[PATCH 0/2] fix nspr and nss cross-compilation.
Previous Next
To reply to this bug, email your comments to 70509 AT debbugs.gnu.org.
There is no need to reopen the bug first.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#70509
; Package
guix-patches
.
(Mon, 22 Apr 2024 05:28:03 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
.
(Mon, 22 Apr 2024 05:28:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
fix nspr and nss cross-compilation.
Zheng Junjie (2):
gnu: nspr: Fix cross-compilation.
gnu: nss: Fix cross-compilation.
gnu/packages/nss.scm | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
base-commit: af4db17122d759705f3fd0ab03ef36c76ec90338
--
2.41.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#70509
; Package
guix-patches
.
(Mon, 22 Apr 2024 05:30:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 70509 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/nss.scm (nss)[arguments]<#:make-flags>: When
cross-compilation, Add CROSS_COMPILE=1.
<#:phases>: When cross-compilation, Set env NATIVE_CC to gcc.
Change-Id: I5c9559a4b8cecf2cfc6c47d136d69c01a335faaf
---
gnu/packages/nss.scm | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/nss.scm b/gnu/packages/nss.scm
index a93406b9eb..00770f11a9 100644
--- a/gnu/packages/nss.scm
+++ b/gnu/packages/nss.scm
@@ -157,6 +157,9 @@ (define-public nss
(#$(target-linux?) "linux")
(else ""))))
#~())
+ #$@(if (%current-target-system)
+ #~("CROSS_COMPILE=1")
+ #~())
(string-append "NSPR_INCLUDE_DIR="
(search-input-directory %build-inputs
"include/nspr"))
@@ -179,7 +182,8 @@ (define-public nss
(setenv "CC" #$(cc-for-target))
;; TODO: Set this unconditionally
#$@(if (%current-target-system)
- #~((setenv "CCC" #$(cxx-for-target)))
+ #~((setenv "CCC" #$(cxx-for-target))
+ (setenv "NATIVE_CC" "gcc"))
#~())
;; No VSX on powerpc-linux.
#$@(if (target-ppc32?)
--
2.41.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#70509
; Package
guix-patches
.
(Mon, 22 Apr 2024 05:30:03 GMT)
Full text and
rfc822 format available.
Message #11 received at 70509 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/nss.scm (nspr)[arguments]<#:configure-flags>: When
cross-compilation, Add HOST_CC=gcc.
Change-Id: I337f217f153f8cc3a713906643d6fab9115056e9
---
gnu/packages/nss.scm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/nss.scm b/gnu/packages/nss.scm
index 14612d7ce9..a93406b9eb 100644
--- a/gnu/packages/nss.scm
+++ b/gnu/packages/nss.scm
@@ -71,7 +71,10 @@ (define-public nspr
#~(list "--disable-static"
"--enable-64bit"
(string-append "LDFLAGS=-Wl,-rpath="
- (assoc-ref %outputs "out") "/lib"))
+ (assoc-ref %outputs "out") "/lib")
+ #$@(if (%current-target-system)
+ #~("HOST_CC=gcc")
+ #~()))
;; Use fixed timestamps for reproducibility.
#:make-flags #~'("SH_DATE='1970-01-01 00:00:01'"
;; This is epoch 1 in microseconds.
--
2.41.0
Reply sent
to
Z572 <zhengjunjie <at> iscas.ac.cn>
:
You have taken responsibility.
(Wed, 24 Apr 2024 02:42:19 GMT)
Full text and
rfc822 format available.
Notification sent
to
Zheng Junjie <zhengjunjie <at> iscas.ac.cn>
:
bug acknowledged by developer.
(Wed, 24 Apr 2024 02:42:21 GMT)
Full text and
rfc822 format available.
Message #16 received at 70509-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Zheng Junjie <zhengjunjie <at> iscas.ac.cn> writes:
> fix nspr and nss cross-compilation.
>
> Zheng Junjie (2):
> gnu: nspr: Fix cross-compilation.
> gnu: nss: Fix cross-compilation.
>
> gnu/packages/nss.scm | 11 +++++++++--
> 1 file changed, 9 insertions(+), 2 deletions(-)
>
>
> base-commit: af4db17122d759705f3fd0ab03ef36c76ec90338
push. see
https://git.savannah.gnu.org/cgit/guix.git/commit/?id=452e7673bfeb0a14cecb8e760dda2c436aa69047
https://git.savannah.gnu.org/cgit/guix.git/commit/?id=fb86bf658a9374d41b05c5e586bfc6a3150cc3cb
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 10 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.