gnu: freetype: Pass valid #:disallowed-references when cross-compiling.

Fixes a regression introduced in ad461613d9
whereby ‘this-package-native-input’ would return #f when cross-compiling.

* gnu/packages/fontutils.scm (freetype)[arguments]: Adjust name passed to
‘this-package-native-input’ based on (%current-target-system).

Change-Id: I5487c9ef9cf760148aefbaa8c11f4bf417482bec
This commit is contained in:
Ludovic Courtès 2025-11-09 23:21:41 +01:00
parent c4fdfa3174
commit eb6b1aed25
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -123,7 +123,11 @@
#$@(if (target-arm32?)
(list "CFLAGS=-g -O2 -fno-tree-slp-vectorize")
'()))
#:disallowed-references (list (this-package-native-input "pkg-config"))
#:disallowed-references (list (this-package-native-input
(if (%current-target-system)
(string-append "pkg-config-"
(%current-target-system))
"pkg-config")))
#:phases
#~(modify-phases %standard-phases
(add-after 'install 'remove-reference-to-pkg-config