* [bug#69900] [PATCH 0/2] Fix utf8proc and foot cross-compilation.
@ 2024-03-19 16:35 Zheng Junjie
2024-03-19 16:38 ` [bug#69900] [PATCH 1/2] gnu: utf8proc: fix cross-compilation Zheng Junjie
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Zheng Junjie @ 2024-03-19 16:35 UTC (permalink / raw)
To: 69900
Zheng Junjie (2):
gnu: utf8proc: fix cross-compilation.
gnu: foot: Fix cross-compilation.
gnu/packages/terminals.scm | 17 ++++++++++++-----
gnu/packages/textutils.scm | 13 +++++++++----
2 files changed, 21 insertions(+), 9 deletions(-)
base-commit: ee11b22fcc7d8b42847e9d940ce5be3bc0d4f880
--
2.41.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [bug#69900] [PATCH 1/2] gnu: utf8proc: fix cross-compilation.
2024-03-19 16:35 [bug#69900] [PATCH 0/2] Fix utf8proc and foot cross-compilation Zheng Junjie
@ 2024-03-19 16:38 ` Zheng Junjie
2024-03-19 16:38 ` [bug#69900] [PATCH 2/2] gnu: foot: Fix cross-compilation Zheng Junjie
2024-05-13 16:38 ` bug#69900: [PATCH 0/2] Fix utf8proc and foot cross-compilation Zheng Junjie
2 siblings, 0 replies; 4+ messages in thread
From: Zheng Junjie @ 2024-03-19 16:38 UTC (permalink / raw)
To: 69900
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=y, Size: 2166 bytes --]
* gnu/packages/textutils.scm (utf8proc): fix cross-compilation.
[arguments]<#:make-flags>: Use CC-FOR-TARGET.
<#:phases>: When cross-compilation, Get test data from native-inputs.
Change-Id: I42699e62f28585cc215a8843b5daad9c52af44c9
---
gnu/packages/textutils.scm | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm
index 25de916fcb..b4855392d6 100644
--- a/gnu/packages/textutils.scm
+++ b/gnu/packages/textutils.scm
@@ -27,7 +27,7 @@
;;; Copyright © 2022 Gabriel Wicki <gabriel@erlikon.ch>
;;; Copyright © 2023 Reza Housseini <reza@housseini.me>
;;; Copyright © 2023 Hilton Chain <hako@ultrarare.space>
-;;; Copyright © 2023 Zheng Junjie <873216071@qq.com>
+;;; Copyright © 2023, 2024 Zheng Junjie <873216071@qq.com>
;;; Copyright © 2024 Timotej Lazar <timotej.lazar@araneo.si>;;
;;; Copyright © 2024 Sharlatan Hellseher <sharlatanus@gmail.com>
;;;
@@ -197,15 +197,20 @@ (define-public utf8proc
;; For tests.
("perl" ,perl))))
(arguments
- '(#:make-flags (list "CC=gcc"
+ `(#:make-flags (list ,(string-append "CC=" (cc-for-target))
(string-append "prefix=" (assoc-ref %outputs "out")))
#:phases
(modify-phases %standard-phases
(delete 'configure)
(add-before 'check 'check-data
- (lambda* (#:key inputs #:allow-other-keys)
+ (lambda* (#:key ,@(if (%current-target-system)
+ '(native-inputs)
+ '())
+ inputs #:allow-other-keys)
(for-each (lambda (i)
- (copy-file (assoc-ref inputs i)
+ (copy-file (assoc-ref ,@(if (%current-target-system)
+ '((or native-inputs inputs))
+ '(inputs)) i)
(string-append "data/" i)))
'("NormalizationTest.txt" "GraphemeBreakTest.txt"))
(substitute* "data/GraphemeBreakTest.txt"
--
2.41.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#69900] [PATCH 2/2] gnu: foot: Fix cross-compilation.
2024-03-19 16:35 [bug#69900] [PATCH 0/2] Fix utf8proc and foot cross-compilation Zheng Junjie
2024-03-19 16:38 ` [bug#69900] [PATCH 1/2] gnu: utf8proc: fix cross-compilation Zheng Junjie
@ 2024-03-19 16:38 ` Zheng Junjie
2024-05-13 16:38 ` bug#69900: [PATCH 0/2] Fix utf8proc and foot cross-compilation Zheng Junjie
2 siblings, 0 replies; 4+ messages in thread
From: Zheng Junjie @ 2024-03-19 16:38 UTC (permalink / raw)
To: 69900
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=y, Size: 2468 bytes --]
* gnu/packages/terminals.scm (foot): Fix cross-compilation.
[arguments]<#:configure-flags>: When cross-compilation, Remove -Db_lto=true.
[native-inputs]: When cross-compilation, Add wayland, pkg-config-for-build.
[inputs]: Add wayland-protocols.
Change-Id: Ia56d2583254bd9ab463e5b39859eae8eb5092c9b
---
gnu/packages/terminals.scm | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/terminals.scm b/gnu/packages/terminals.scm
index f0ae4d4d4d..651e93b60f 100644
--- a/gnu/packages/terminals.scm
+++ b/gnu/packages/terminals.scm
@@ -36,7 +36,7 @@
;;; Copyright © 2022, 2023 jgart <jgart@dismail.de>
;;; Copyright © 2023 Aaron Covrig <aaron.covrig.us@ieee.org>
;;; Copyright © 2023 Foundation Devices, Inc. <hello@foundationdevices.com>
-;;; Copyright © 2023 Zheng Junjie <873216071@qq.com>
+;;; Copyright © 2023, 2024 Zheng Junjie <873216071@qq.com>
;;; Copyright © 2023 Jaeme Sifat <jaeme@runbox.com>
;;; Copyright © 2024 Suhail <suhail@bayesians.ca>
;;; Copyright © 2024 Clément Lassieur <clement@lassieur.org>
@@ -865,16 +865,23 @@ (define-public foot
;; also to address a GCC 10 issue when doing PGO builds.
#:build-type "release"
;; Enable LTO as recommended by INSTALL.md.
- #:configure-flags #~'("-Db_lto=true")))
- (native-inputs (list ncurses ;for 'tic'
- pkg-config scdoc wayland-protocols))
+ ;; when cross-compilation, enable lto will fail.
+ #:configure-flags (if (%current-target-system)
+ #~'()
+ #~'("-Db_lto=true"))))
+ (native-inputs (append
+ (if (%current-target-system)
+ (list wayland pkg-config-for-build)
+ '())
+ (list ncurses ;for 'tic'
+ pkg-config scdoc wayland-protocols)))
(native-search-paths
;; FIXME: This should only be located in 'ncurses'. Nonetheless it is
;; provided for usability reasons. See <https://bugs.gnu.org/22138>.
(list (search-path-specification
(variable "TERMINFO_DIRS")
(files '("share/terminfo")))))
- (inputs (list fcft libxkbcommon wayland))
+ (inputs (list fcft libxkbcommon wayland wayland-protocols))
(synopsis "Wayland-native terminal emulator")
(description
"@command{foot} is a terminal emulator for systems using the Wayland
--
2.41.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* bug#69900: [PATCH 0/2] Fix utf8proc and foot cross-compilation.
2024-03-19 16:35 [bug#69900] [PATCH 0/2] Fix utf8proc and foot cross-compilation Zheng Junjie
2024-03-19 16:38 ` [bug#69900] [PATCH 1/2] gnu: utf8proc: fix cross-compilation Zheng Junjie
2024-03-19 16:38 ` [bug#69900] [PATCH 2/2] gnu: foot: Fix cross-compilation Zheng Junjie
@ 2024-05-13 16:38 ` Zheng Junjie
2 siblings, 0 replies; 4+ messages in thread
From: Zheng Junjie @ 2024-05-13 16:38 UTC (permalink / raw)
To: 69900-done
[-- Attachment #1: Type: text/plain, Size: 566 bytes --]
Zheng Junjie <zhengjunjie@iscas.ac.cn> writes:
> Zheng Junjie (2):
> gnu: utf8proc: fix cross-compilation.
> gnu: foot: Fix cross-compilation.
>
> gnu/packages/terminals.scm | 17 ++++++++++++-----
> gnu/packages/textutils.scm | 13 +++++++++----
> 2 files changed, 21 insertions(+), 9 deletions(-)
>
>
> base-commit: ee11b22fcc7d8b42847e9d940ce5be3bc0d4f880
push, see
https://git.savannah.gnu.org/cgit/guix.git/commit/?id=38598c693f67eb75f4152dbdc5d1846e0befd62d
https://git.savannah.gnu.org/cgit/guix.git/commit/?id=40af021e28102d2f4b2e4b2b3c302f487cb1f591
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-05-13 16:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-19 16:35 [bug#69900] [PATCH 0/2] Fix utf8proc and foot cross-compilation Zheng Junjie
2024-03-19 16:38 ` [bug#69900] [PATCH 1/2] gnu: utf8proc: fix cross-compilation Zheng Junjie
2024-03-19 16:38 ` [bug#69900] [PATCH 2/2] gnu: foot: Fix cross-compilation Zheng Junjie
2024-05-13 16:38 ` bug#69900: [PATCH 0/2] Fix utf8proc and foot cross-compilation Zheng Junjie
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).