summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2025-11-07 17:32:37 +0100
committerLudovic Courtès <ludo@gnu.org>2025-11-09 22:13:37 +0100
commitad461613d97f974e9e1aa30dc27753aa360476de (patch)
tree0e3815f0436b494d338509a64a280f9d7bd0e897 /gnu/packages
parent45fb8b7dc791cd60ae93a8472f56e4e54b27ee13 (diff)
gnu: Use self-references to inputs for #:disallowed-references.
This allows ‘package-input-rewriting’ to operate as expected on these packages. Failing that, rewritten packages would still carry references to non-rewritten packages in #:disallowed-references. * gnu/packages/admin.scm (wpa-supplicant-gui): Use ‘this-package-native-input’ for #:disallowed-references. * gnu/packages/fontutils.scm (freetype): Likewise. * gnu/packages/glib.scm (glib-minimal): Likewise. * gnu/packages/gnome.scm (cogl, gnome-shell): Likewise. * gnu/packages/groff.scm (groff-minimal): Likewise. * gnu/packages/gstreamer.scm (gstreamer): Likewise. * gnu/packages/gtk.scm (gtk+): Likewise. * gnu/packages/inkscape.scm (inkscape/pinned): Likewise. * gnu/packages/java.scm (icedtea-8, openjdk9, openjdk10) (openjdk11): Likewise. * gnu/packages/linux.scm (f2fs-tools/static): Likewise. * gnu/packages/man.scm (man-db): Likewise. * gnu/packages/openldap.scm (389-ds-base): Likewise. * gnu/packages/qt.scm (qtbase-5): Likewise. * gnu/packages/rrdtool.scm (rrdtool): Likewise. * gnu/packages/rust.scm (rust-bootstrapped-package): Likewise. * gnu/packages/statistics.scm (r-with-tests): Likewise. (r-minimal): Likewise. * gnu/packages/texinfo.scm (info-reader): Likewise. * gnu/packages/tls.scm (gnutls): Likewise. (openssl-1.1): Likewise. * gnu/packages/version-control.scm (git-minimal): Likewise. (git): Likewise. (gource): Likewise. * gnu/packages/web.scm (mod-wsgi): Likewise. * gnu/packages/xfce.scm (xfdesktop): Likewise. * gnu/packages/perl.scm (perl-libtime-parsedate): Update comment. * gnu/packages/video.scm (v4l-utils-minimal): Add FIXME comment. Change-Id: I118ecd5894c24c53ec52c9208b0025ccfa3dd68a Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/admin.scm2
-rw-r--r--gnu/packages/fontutils.scm2
-rw-r--r--gnu/packages/glib.scm4
-rw-r--r--gnu/packages/gnome.scm10
-rw-r--r--gnu/packages/groff.scm4
-rw-r--r--gnu/packages/gstreamer.scm2
-rw-r--r--gnu/packages/gtk.scm2
-rw-r--r--gnu/packages/inkscape.scm3
-rw-r--r--gnu/packages/java.scm20
-rw-r--r--gnu/packages/linux.scm2
-rw-r--r--gnu/packages/man.scm4
-rw-r--r--gnu/packages/openldap.scm4
-rw-r--r--gnu/packages/perl.scm4
-rw-r--r--gnu/packages/qt.scm4
-rw-r--r--gnu/packages/rrdtool.scm2
-rw-r--r--gnu/packages/rust.scm2
-rw-r--r--gnu/packages/statistics.scm4
-rw-r--r--gnu/packages/texinfo.scm5
-rw-r--r--gnu/packages/tls.scm14
-rw-r--r--gnu/packages/version-control.scm7
-rw-r--r--gnu/packages/video.scm2
-rw-r--r--gnu/packages/web.scm2
-rw-r--r--gnu/packages/xfce.scm4
23 files changed, 61 insertions, 48 deletions
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 2f489623b93..39f53dde3d1 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -2718,7 +2718,7 @@ command.")
2718 #:tests? #f ; no tests 2718 #:tests? #f ; no tests
2719 ;; Make sure the (rarely updated) package 'imagemagick/stable' 2719 ;; Make sure the (rarely updated) package 'imagemagick/stable'
2720 ;; does not end up in the closure. 2720 ;; does not end up in the closure.
2721 #:disallowed-references (list imagemagick/stable) 2721 #:disallowed-references (list (this-package-native-input "imagemagick"))
2722 #:modules '((guix build qt-build-system) 2722 #:modules '((guix build qt-build-system)
2723 ((guix build gnu-build-system) #:prefix gnu:) 2723 ((guix build gnu-build-system) #:prefix gnu:)
2724 (guix build utils)) 2724 (guix build utils))
diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm
index b2cccdebf30..6bb6f28d6e7 100644
--- a/gnu/packages/fontutils.scm
+++ b/gnu/packages/fontutils.scm
@@ -123,7 +123,7 @@
123 #$@(if (target-arm32?) 123 #$@(if (target-arm32?)
124 (list "CFLAGS=-g -O2 -fno-tree-slp-vectorize") 124 (list "CFLAGS=-g -O2 -fno-tree-slp-vectorize")
125 '())) 125 '()))
126 #:disallowed-references (list pkg-config) 126 #:disallowed-references (list (this-package-native-input "pkg-config"))
127 #:phases 127 #:phases
128 #~(modify-phases %standard-phases 128 #~(modify-phases %standard-phases
129 (add-after 'install 'remove-reference-to-pkg-config 129 (add-after 'install 'remove-reference-to-pkg-config
diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm
index 407c46d086b..aed634df3c6 100644
--- a/gnu/packages/glib.scm
+++ b/gnu/packages/glib.scm
@@ -1,5 +1,5 @@
1;;; GNU Guix --- Functional package management for GNU 1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2013, 2014, 2015, 2016, 2019, 2020, 2021 Ludovic Courtès <ludo@gnu.org> 2;;; Copyright © 2013-2016, 2019-2021, 2025 Ludovic Courtès <ludo@gnu.org>
3;;; Copyright © 2013, 2015 Andreas Enge <andreas@enge.fr> 3;;; Copyright © 2013, 2015 Andreas Enge <andreas@enge.fr>
4;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org> 4;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
5;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2021 Mark H Weaver <mhw@netris.org> 5;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2021 Mark H Weaver <mhw@netris.org>
@@ -272,7 +272,7 @@ information, refer to the @samp{dbus-daemon(1)} man page.")))
272 (arguments 272 (arguments
273 (list 273 (list
274 #:disallowed-references 274 #:disallowed-references
275 (cons tzdata-for-tests 275 (cons (this-package-native-input "tzdata")
276 ;; Verify glib-mkenums, gtester, ... use the cross-compiled 276 ;; Verify glib-mkenums, gtester, ... use the cross-compiled
277 ;; python. 277 ;; python.
278 (if (%current-target-system) 278 (if (%current-target-system)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index b8304d1cb99..8bf1197469d 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -6285,7 +6285,7 @@ throughout GNOME for API documentation).")
6285 pango 6285 pango
6286 wayland)) 6286 wayland))
6287 (arguments 6287 (arguments
6288 `(#:disallowed-references (,xorg-server-for-tests) 6288 `(#:disallowed-references ,(list (this-package-native-input "xorg-server"))
6289 #:configure-flags (list ,(string-append 6289 #:configure-flags (list ,(string-append
6290 "CFLAGS=-g -O2" 6290 "CFLAGS=-g -O2"
6291 " -Wno-error=implicit-function-declaration") 6291 " -Wno-error=implicit-function-declaration")
@@ -9432,10 +9432,10 @@ properties, screen resolution, and other GNOME parameters.")
9432 (build-system meson-build-system) 9432 (build-system meson-build-system)
9433 (arguments 9433 (arguments
9434 (let ((disallowed-references 9434 (let ((disallowed-references
9435 (list (gexp-input glib "bin") 9435 (list (gexp-input (this-package-native-input "glib") "bin")
9436 (gexp-input libxslt) 9436 (this-package-native-input "libxslt")
9437 (gexp-input meson) 9437 meson
9438 (gexp-input ruby-sass)))) 9438 (this-package-native-input "ruby-sass"))))
9439 (list 9439 (list
9440 #:glib-or-gtk? #t 9440 #:glib-or-gtk? #t
9441 #:disallowed-references disallowed-references 9441 #:disallowed-references disallowed-references
diff --git a/gnu/packages/groff.scm b/gnu/packages/groff.scm
index 7ddbabc249b..c06381df6a4 100644
--- a/gnu/packages/groff.scm
+++ b/gnu/packages/groff.scm
@@ -2,7 +2,7 @@
2;;; Copyright © 2013 Andreas Enge <andreas@enge.fr> 2;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
3;;; Copyright © 2014 Mark H Weaver <mhw@netris.org> 3;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
4;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net> 4;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net>
5;;; Copyright © 2017 Ludovic Courtès <ludo@gnu.org> 5;;; Copyright © 2017, 2025 Ludovic Courtès <ludo@gnu.org>
6;;; Copyright © 2019, 2020 Efraim Flashner <efraim@flashner.co.il> 6;;; Copyright © 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
7;;; Copyright © 2019 Eric Bavier <bavier@member.fsf.org> 7;;; Copyright © 2019 Eric Bavier <bavier@member.fsf.org>
8;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com> 8;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
@@ -143,7 +143,7 @@ is usually the formatter of \"man\" documentation pages.")
143 ("groff" ,groff))) 143 ("groff" ,groff)))
144 144
145 (arguments 145 (arguments
146 `(#:disallowed-references (,perl) 146 `(#:disallowed-references ,(list (this-package-native-input "perl"))
147 147
148 #:configure-flags '("--with-doc=no") 148 #:configure-flags '("--with-doc=no")
149 149
diff --git a/gnu/packages/gstreamer.scm b/gnu/packages/gstreamer.scm
index 7f8e6c159ac..1e204f9a03e 100644
--- a/gnu/packages/gstreamer.scm
+++ b/gnu/packages/gstreamer.scm
@@ -446,7 +446,7 @@ the GStreamer multimedia framework.")
446 "1016z0znl2j43n08rl19zdhfvfsgnmg44qh8fk6dr4qj481icrnw")))) 446 "1016z0znl2j43n08rl19zdhfvfsgnmg44qh8fk6dr4qj481icrnw"))))
447 (build-system meson-build-system) 447 (build-system meson-build-system)
448 (arguments 448 (arguments
449 (list #:disallowed-references (list python) 449 (list #:disallowed-references (list (this-package-native-input "python"))
450 #:phases 450 #:phases
451 #~(modify-phases %standard-phases 451 #~(modify-phases %standard-phases
452 #$@%common-gstreamer-phases 452 #$@%common-gstreamer-phases
diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm
index f4d0359b14d..697b083a334 100644
--- a/gnu/packages/gtk.scm
+++ b/gnu/packages/gtk.scm
@@ -1083,7 +1083,7 @@ application suites.")
1083 #:modules '((guix build utils) 1083 #:modules '((guix build utils)
1084 (guix build meson-build-system) 1084 (guix build meson-build-system)
1085 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)) 1085 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:))
1086 #:disallowed-references (list xorg-server-for-tests) 1086 #:disallowed-references (list (this-package-native-input "xorg-server"))
1087 #:configure-flags 1087 #:configure-flags
1088 #~(list "-Dcloudproviders=true" ;for cloud-providers support 1088 #~(list "-Dcloudproviders=true" ;for cloud-providers support
1089 "-Dcolord=yes" ;for color printing support 1089 "-Dcolord=yes" ;for color printing support
diff --git a/gnu/packages/inkscape.scm b/gnu/packages/inkscape.scm
index a06e61294f1..02c16b02d30 100644
--- a/gnu/packages/inkscape.scm
+++ b/gnu/packages/inkscape.scm
@@ -162,7 +162,8 @@ endif()~%~%"
162 (build-system cmake-build-system) 162 (build-system cmake-build-system)
163 (arguments 163 (arguments
164 (list 164 (list
165 #:disallowed-references (list imagemagick/stable) 165 #:disallowed-references (list (this-package-native-input "imagemagick"))
166
166 #:imported-modules `(,@%cmake-build-system-modules 167 #:imported-modules `(,@%cmake-build-system-modules
167 (guix build glib-or-gtk-build-system)) 168 (guix build glib-or-gtk-build-system))
168 #:modules '((guix build cmake-build-system) 169 #:modules '((guix build cmake-build-system)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 4d3cdef4524..235e0b0b8a6 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -738,7 +738,9 @@ IcedTea build harness.")
738 ((guix build ant-build-system) 738 ((guix build ant-build-system)
739 ,@%default-gnu-imported-modules) 739 ,@%default-gnu-imported-modules)
740 740
741 #:disallowed-references ,(list (gexp-input icedtea-7 "jdk")) 741 #:disallowed-references ,(list (gexp-input
742 (this-package-native-input "jdk")
743 "jdk"))
742 744
743 ,@(substitute-keyword-arguments (package-arguments icedtea-7) 745 ,@(substitute-keyword-arguments (package-arguments icedtea-7)
744 ((#:modules modules) 746 ((#:modules modules)
@@ -929,8 +931,9 @@ new Date();"))
929 (ice-9 popen)) 931 (ice-9 popen))
930 #:tests? #f ; require jtreg 932 #:tests? #f ; require jtreg
931 #:make-flags '("all") 933 #:make-flags '("all")
932 #:disallowed-references ,(list (gexp-input icedtea-8) 934 #:disallowed-references
933 (gexp-input icedtea-8 "jdk")) 935 ,(list (this-package-native-input "icedtea")
936 (gexp-input (this-package-native-input "icedtea") "jdk"))
934 937
935 #:phases 938 #:phases
936 (modify-phases %standard-phases 939 (modify-phases %standard-phases
@@ -1302,8 +1305,8 @@ new Date();"))
1302 (substitute* "make/autoconf/generated-configure.sh" 1305 (substitute* "make/autoconf/generated-configure.sh"
1303 (("-Werror") "")))))) 1306 (("-Werror") ""))))))
1304 ((#:disallowed-references _ '()) 1307 ((#:disallowed-references _ '())
1305 `(,(gexp-input openjdk9) 1308 `(,(this-package-native-input "openjdk9")
1306 ,(gexp-input openjdk9 "jdk"))))) 1309 ,(gexp-input (this-package-native-input "openjdk9") "jdk")))))
1307 (native-inputs 1310 (native-inputs
1308 `(("openjdk9" ,openjdk9) 1311 `(("openjdk9" ,openjdk9)
1309 ("openjdk9:jdk" ,openjdk9 "jdk") 1312 ("openjdk9:jdk" ,openjdk9 "jdk")
@@ -1348,8 +1351,11 @@ new Date();"))
1348 (ice-9 popen) 1351 (ice-9 popen)
1349 (srfi srfi-1) 1352 (srfi srfi-1)
1350 (srfi srfi-26)) 1353 (srfi srfi-26))
1351 #:disallowed-references (list (gexp-input openjdk10) 1354
1352 (gexp-input openjdk10 "jdk")) 1355 #:disallowed-references
1356 (list (this-package-native-input "openjdk")
1357 (gexp-input (this-package-native-input "openjdk")
1358 "jdk"))
1353 1359
1354 #:tests? #f ; requires jtreg 1360 #:tests? #f ; requires jtreg
1355 ;; TODO package jtreg 1361 ;; TODO package jtreg
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index ba4dc2927d3..ed43e2dd199 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -7914,7 +7914,7 @@ disks and SD cards. This package provides the userland utilities.")
7914 (string-append "libblkid_CFLAGS=-I" libuuid "/include/uuid " 7914 (string-append "libblkid_CFLAGS=-I" libuuid "/include/uuid "
7915 "-I" libuuid "/include/blkid") 7915 "-I" libuuid "/include/blkid")
7916 (string-append "libblkid_LIBS=-L" libuuid-static "/lib -lblkid"))) 7916 (string-append "libblkid_LIBS=-L" libuuid-static "/lib -lblkid")))
7917 #:disallowed-references (,util-linux) 7917 #:disallowed-references (,(this-package-input "libuuid"))
7918 #:make-flags '("LDFLAGS=-all-static") 7918 #:make-flags '("LDFLAGS=-all-static")
7919 #:phases 7919 #:phases
7920 (modify-phases %standard-phases ; TODO: f2fs phases. 7920 (modify-phases %standard-phases ; TODO: f2fs phases.
diff --git a/gnu/packages/man.scm b/gnu/packages/man.scm
index b287bc92d52..636bea9a04f 100644
--- a/gnu/packages/man.scm
+++ b/gnu/packages/man.scm
@@ -1,5 +1,5 @@
1;;; GNU Guix --- Functional package management for GNU 1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2012, 2014, 2015, 2017, 2018, 2021 Ludovic Courtès <ludo@gnu.org> 2;;; Copyright © 2012, 2014-2015, 2017-2018, 2021, 2025 Ludovic Courtès <ludo@gnu.org>
3;;; Copyright © 2014 David Thompson <dthompson2@worcester.edu> 3;;; Copyright © 2014 David Thompson <dthompson2@worcester.edu>
4;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net> 4;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net>
5;;; Copyright © 2015 Alex Kost <alezost@gmail.com> 5;;; Copyright © 2015 Alex Kost <alezost@gmail.com>
@@ -174,7 +174,7 @@ a flexible and convenient way.")
174 '("nroff" "eqn" "neqn" "tbl" "refer" "pic"))) 174 '("nroff" "eqn" "neqn" "tbl" "refer" "pic")))
175 ;; At run time we should refer to GROFF-MINIMAL, not GROFF (the latter 175 ;; At run time we should refer to GROFF-MINIMAL, not GROFF (the latter
176 ;; pulls in Perl.) 176 ;; pulls in Perl.)
177 #:disallowed-references (list groff))) 177 #:disallowed-references (list (this-package-native-input "groff"))))
178 (native-inputs 178 (native-inputs
179 (list pkg-config flex 179 (list pkg-config flex
180 ;; Groff is needed at build time for troff, grops, soelim, etc. 180 ;; Groff is needed at build time for troff, grops, soelim, etc.
diff --git a/gnu/packages/openldap.scm b/gnu/packages/openldap.scm
index 83b805e089e..a282f5f1530 100644
--- a/gnu/packages/openldap.scm
+++ b/gnu/packages/openldap.scm
@@ -1,5 +1,5 @@
1;;; GNU Guix --- Functional package management for GNU 1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2013, 2014, 2015, 2019, 2020 Ludovic Courtès <ludo@gnu.org> 2;;; Copyright © 2013-2015, 2019-2020, 2025 Ludovic Courtès <ludo@gnu.org>
3;;; Copyright © 2013, 2023 Andreas Enge <andreas@enge.fr> 3;;; Copyright © 2013, 2023 Andreas Enge <andreas@enge.fr>
4;;; Copyright © 2016, 2021 Leo Famulari <leo@famulari.name> 4;;; Copyright © 2016, 2021 Leo Famulari <leo@famulari.name>
5;;; Copyright © 2017, 2018, 2019, 2021, 2022, 2023, 2025 Ricardo Wurmus <rekado@elephly.net> 5;;; Copyright © 2017, 2018, 2019, 2021, 2022, 2023, 2025 Ricardo Wurmus <rekado@elephly.net>
@@ -255,7 +255,7 @@ servers from Python programs.")
255 (guix build utils)) 255 (guix build utils))
256 #:imported-modules `((guix build python-build-system) 256 #:imported-modules `((guix build python-build-system)
257 ,@%default-gnu-imported-modules) 257 ,@%default-gnu-imported-modules)
258 #:disallowed-references (list httpd) 258 #:disallowed-references (list (this-package-native-input "httpd"))
259 #:configure-flags 259 #:configure-flags
260 #~(list 260 #~(list
261 ;; Relax gcc-14's strictness. 261 ;; Relax gcc-14's strictness.
diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 3ba41759094..90358e9ee0a 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -1,5 +1,5 @@
1;;; GNU Guix --- Functional package management for GNU 1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017 Ludovic Courtès <ludo@gnu.org> 2;;; Copyright © 2012-2017, 2025 Ludovic Courtès <ludo@gnu.org>
3;;; Copyright © 2013, 2019, 2020, 2021 Andreas Enge <andreas@enge.fr> 3;;; Copyright © 2013, 2019, 2020, 2021 Andreas Enge <andreas@enge.fr>
4;;; Copyright © 2015, 2016, 2017, 2019, 2021, 2022, 2023 Ricardo Wurmus <rekado@elephly.net> 4;;; Copyright © 2015, 2016, 2017, 2019, 2021, 2022, 2023 Ricardo Wurmus <rekado@elephly.net>
5;;; Copyright © 2015, 2016, 2017, 2019, 2020 Eric Bavier <bavier@posteo.net> 5;;; Copyright © 2015, 2016, 2017, 2019, 2020 Eric Bavier <bavier@posteo.net>
@@ -14277,7 +14277,7 @@ prop, vhea, vmtx and the reading and writing of all other table types.")
14277 `(;; XXX: We'd like to use #:disallowed-references 'perl-build-system' 14277 `(;; XXX: We'd like to use #:disallowed-references 'perl-build-system'
14278 ;; doesn't support it yet. 14278 ;; doesn't support it yet.
14279 ;; 14279 ;;
14280 ;; #:disallowed-references (,tzdata-for-tests) 14280 ;; #:disallowed-references (,(this-package-native-input "tzdata"))
14281 14281
14282 #:phases 14282 #:phases
14283 (modify-phases %standard-phases 14283 (modify-phases %standard-phases
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index bc0cb5e446d..84d928a880c 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -1,7 +1,7 @@
1;;; GNU Guix --- Functional package management for GNU 1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2013, 2014, 2015, 2023 Andreas Enge <andreas@enge.fr> 2;;; Copyright © 2013, 2014, 2015, 2023 Andreas Enge <andreas@enge.fr>
3;;; Copyright © 2015, 2025 宋文武 <iyzsong@envs.net> 3;;; Copyright © 2015, 2025 宋文武 <iyzsong@envs.net>
4;;; Copyright © 2015, 2018, 2019, 2020, 2021, 2023 Ludovic Courtès <ludo@gnu.org> 4;;; Copyright © 2015, 2018-2021, 2023, 2025 Ludovic Courtès <ludo@gnu.org>
5;;; Copyright © 2015-2019, 2024, 2025 Efraim Flashner <efraim@flashner.co.il> 5;;; Copyright © 2015-2019, 2024, 2025 Efraim Flashner <efraim@flashner.co.il>
6;;; Copyright © 2016, 2017 Nikita <nikita@n0.is> 6;;; Copyright © 2016, 2017 Nikita <nikita@n0.is>
7;;; Copyright © 2016 Thomas Danckaert <post@thomasdanckaert.be> 7;;; Copyright © 2016 Thomas Danckaert <post@thomasdanckaert.be>
@@ -582,7 +582,7 @@ system, and the core design of Django is reused in Grantlee.")
582 ;; TODO Move to ruby@3 on the next rebuild cycle. 582 ;; TODO Move to ruby@3 on the next rebuild cycle.
583 ruby-2.7)) 583 ruby-2.7))
584 (arguments 584 (arguments
585 `(#:disallowed-references ,(list python) 585 `(#:disallowed-references ,(list (this-package-native-input "python"))
586 #:configure-flags 586 #:configure-flags
587 (let ((out (assoc-ref %outputs "out"))) 587 (let ((out (assoc-ref %outputs "out")))
588 (list "-verbose" 588 (list "-verbose"
diff --git a/gnu/packages/rrdtool.scm b/gnu/packages/rrdtool.scm
index 56908fa814c..fc57b9c6c59 100644
--- a/gnu/packages/rrdtool.scm
+++ b/gnu/packages/rrdtool.scm
@@ -73,7 +73,7 @@
73 tzdata-for-tests)) 73 tzdata-for-tests))
74 (arguments 74 (arguments
75 (list 75 (list
76 #:disallowed-references (list (gexp-input tzdata-for-tests)) 76 #:disallowed-references (list (this-package-native-input "tzdata"))
77 #:phases 77 #:phases
78 #~(modify-phases %standard-phases 78 #~(modify-phases %standard-phases
79 (add-before 'check 'prepare-test-environment 79 (add-before 'check 'prepare-test-environment
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index b7b7c79032f..d0304a3af10 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -124,7 +124,7 @@
124 (arguments 124 (arguments
125 (substitute-keyword-arguments (package-arguments base-rust) 125 (substitute-keyword-arguments (package-arguments base-rust)
126 ((#:disallowed-references _ '()) 126 ((#:disallowed-references _ '())
127 (list base-rust)))) 127 (list (this-package-native-input "rustc-bootstrap")))))
128 (native-inputs 128 (native-inputs
129 (modify-inputs (package-native-inputs base-rust) 129 (modify-inputs (package-native-inputs base-rust)
130 (replace "rustc-bootstrap" base-rust) 130 (replace "rustc-bootstrap" base-rust)
diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index 55644b5f561..dc1510310a7 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -386,7 +386,7 @@ comparison and diagnostics.")
386 (build-system gnu-build-system) 386 (build-system gnu-build-system)
387 (arguments 387 (arguments
388 (list 388 (list
389 #:disallowed-references `(,tzdata-for-tests) 389 #:disallowed-references `(,(this-package-native-input "tzdata"))
390 #:make-flags 390 #:make-flags
391 #~(list (string-append "CFLAGS=-g -O2" 391 #~(list (string-append "CFLAGS=-g -O2"
392 " -Wno-error=implicit-function-declaration") 392 " -Wno-error=implicit-function-declaration")
@@ -748,7 +748,7 @@ posteriors and evidences.")
748 (substitute-keyword-arguments (package-arguments r-with-tests) 748 (substitute-keyword-arguments (package-arguments r-with-tests)
749 ((#:tests? #f #f) #f) 749 ((#:tests? #f #f) #f)
750 ((#:disallowed-references refs '()) 750 ((#:disallowed-references refs '())
751 (cons perl refs)) 751 (cons (this-package-native-input "perl") refs))
752 ((#:configure-flags flags) 752 ((#:configure-flags flags)
753 ;; Do not build the recommended packages. The build system creates 753 ;; Do not build the recommended packages. The build system creates
754 ;; random temporary directories and embeds their names in some 754 ;; random temporary directories and embeds their names in some
diff --git a/gnu/packages/texinfo.scm b/gnu/packages/texinfo.scm
index ea7b54b51d7..47d6a689e42 100644
--- a/gnu/packages/texinfo.scm
+++ b/gnu/packages/texinfo.scm
@@ -1,5 +1,5 @@
1;;; GNU Guix --- Functional package management for GNU 1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2012-2013, 2015-2017, 2019, 2022-2023 Ludovic Courtès <ludo@gnu.org> 2;;; Copyright © 2012-2013, 2015-2017, 2019, 2022-2023, 2025 Ludovic Courtès <ludo@gnu.org>
3;;; Copyright © 2014, 2016 Eric Bavier <bavier@member.fsf.org> 3;;; Copyright © 2014, 2016 Eric Bavier <bavier@member.fsf.org>
4;;; Copyright © 2015 Mark H Weaver <mhw@netris.org> 4;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
5;;; Copyright © 2017, 2019, 2022 Efraim Flashner <efraim@flashner.co.il> 5;;; Copyright © 2017, 2019, 2022 Efraim Flashner <efraim@flashner.co.il>
@@ -254,8 +254,7 @@ is on expressing the content semantically, avoiding physical markup commands.")
254 (fold delete (files) 254 (fold delete (files)
255 '("info" "locale")))) 255 '("info" "locale"))))
256 #t)))))) 256 #t))))))
257 #:disallowed-references ,(assoc-ref (package-inputs texinfo) 257 #:disallowed-references ,(list (this-package-input "perl"))
258 "perl")
259 #:modules ((ice-9 ftw) (srfi srfi-1) 258 #:modules ((ice-9 ftw) (srfi srfi-1)
260 ,@%default-gnu-modules))) 259 ,@%default-gnu-modules)))
261 (synopsis "Standalone Info documentation reader") 260 (synopsis "Standalone Info documentation reader")
diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm
index dc49429fb69..6bfaff56b00 100644
--- a/gnu/packages/tls.scm
+++ b/gnu/packages/tls.scm
@@ -1,5 +1,5 @@
1;;; GNU Guix --- Functional package management for GNU 1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2012-2017, 2019-2024 Ludovic Courtès <ludo@gnu.org> 2;;; Copyright © 2012-2017, 2019-2025 Ludovic Courtès <ludo@gnu.org>
3;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2021 Mark H Weaver <mhw@netris.org> 3;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2021 Mark H Weaver <mhw@netris.org>
4;;; Copyright © 2014 Ian Denhardt <ian@zenhack.net> 4;;; Copyright © 2014 Ian Denhardt <ian@zenhack.net>
5;;; Copyright © 2013, 2015 Andreas Enge <andreas@enge.fr> 5;;; Copyright © 2013, 2015 Andreas Enge <andreas@enge.fr>
@@ -222,9 +222,13 @@ living in the same process.")
222 (list #:tests? (not (or (%current-target-system) 222 (list #:tests? (not (or (%current-target-system)
223 (target-hurd?))) 223 (target-hurd?)))
224 ;; Ensure we don't keep a reference to the tools used for testing. 224 ;; Ensure we don't keep a reference to the tools used for testing.
225 #:disallowed-references (if (target-hurd?) 225 #:disallowed-references
226 '() 226 (if (target-hurd?)
227 (list net-tools iproute socat)) 227 '()
228 (list (this-package-native-input "net-tools")
229 (this-package-native-input "iproute2")
230 (this-package-native-input "socat")))
231
228 #:configure-flags 232 #:configure-flags
229 #~(cons* 233 #~(cons*
230 ;; GnuTLS doesn't consult any environment variables to specify 234 ;; GnuTLS doesn't consult any environment variables to specify
@@ -478,7 +482,7 @@ OpenSSL for TARGET."
478 #:test-target "test" 482 #:test-target "test"
479 ;; Changes to OpenSSL sometimes cause Perl to "sneak in" to the closure, 483 ;; Changes to OpenSSL sometimes cause Perl to "sneak in" to the closure,
480 ;; so we explicitly disallow it here. 484 ;; so we explicitly disallow it here.
481 #:disallowed-references (list (canonical-package perl)) 485 #:disallowed-references (list (this-package-native-input "perl"))
482 #:phases 486 #:phases
483 #~(modify-phases %standard-phases 487 #~(modify-phases %standard-phases
484 #$@(if (%current-target-system) 488 #$@(if (%current-target-system)
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index fcb3125b2fa..bff2252a382 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -338,7 +338,8 @@ Python 3.3 and later, rather than on Python 2.")
338 ((guix build gnu-build-system) #:prefix gnu:) 338 ((guix build gnu-build-system) #:prefix gnu:)
339 ,@%default-gnu-modules) 339 ,@%default-gnu-modules)
340 ;; Make sure the full bash does not end up in the final closure. 340 ;; Make sure the full bash does not end up in the final closure.
341 #:disallowed-references (list bash perl) 341 #:disallowed-references (list (this-package-native-input "bash")
342 (this-package-native-input "perl"))
342 #:test-target "test" 343 #:test-target "test"
343 #:configure-flags 344 #:configure-flags
344 #~(cons "--with-gitconfig=/etc/gitconfig" 345 #~(cons "--with-gitconfig=/etc/gitconfig"
@@ -610,7 +611,7 @@ everything from small to very large projects with speed and efficiency.")
610 (arguments 611 (arguments
611 (substitute-keyword-arguments (package-arguments git-minimal) 612 (substitute-keyword-arguments (package-arguments git-minimal)
612 ((#:disallowed-references disallowed-refs ''()) 613 ((#:disallowed-references disallowed-refs ''())
613 (delete perl disallowed-refs)) 614 (delq (this-package-native-input "perl") disallowed-refs))
614 ((#:make-flags flags #~'()) 615 ((#:make-flags flags #~'())
615 #~(cons "USE_LIBPCRE2=yes" #$flags)) 616 #~(cons "USE_LIBPCRE2=yes" #$flags))
616 ((#:configure-flags flags #~'()) 617 ((#:configure-flags flags #~'())
@@ -3972,7 +3973,7 @@ be served with a HTTP file server of your choice.")
3972 (assoc-ref %build-inputs "boost") 3973 (assoc-ref %build-inputs "boost")
3973 "/lib") 3974 "/lib")
3974 "--with-tinyxml") 3975 "--with-tinyxml")
3975 #:disallowed-references (,tzdata-for-tests) 3976 #:disallowed-references ,(list (this-package-native-input "tzdata"))
3976 #:phases (modify-phases %standard-phases 3977 #:phases (modify-phases %standard-phases
3977 (add-after 'unpack 'unbundle 3978 (add-after 'unpack 'unbundle
3978 (lambda _ 3979 (lambda _
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index 396a9f11f7f..5cd93b219bd 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -4042,7 +4042,7 @@ be used for realtime video capture via Linux-specific APIs.")
4042 #~(modify-phases #$phases 4042 #~(modify-phases #$phases
4043 (delete 'split))) 4043 (delete 'split)))
4044 ((#:disallowed-references _ '()) 4044 ((#:disallowed-references _ '())
4045 (list qtbase qtbase-5)))) 4045 (list qtbase qtbase-5)))) ;FIXME: most likely useless
4046 (outputs '("out")) 4046 (outputs '("out"))
4047 (inputs (modify-inputs (package-inputs v4l-utils) 4047 (inputs (modify-inputs (package-inputs v4l-utils)
4048 (delete "qtbase"))))) 4048 (delete "qtbase")))))
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 0da4572b618..8f8a26b17c6 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -467,7 +467,7 @@ one.")
467 "1zf921nd9xxdvvc8awzzfrljr0n29vi28mlam0jdwvsk0xv4gd7a")))) 467 "1zf921nd9xxdvvc8awzzfrljr0n29vi28mlam0jdwvsk0xv4gd7a"))))
468 (build-system gnu-build-system) 468 (build-system gnu-build-system)
469 (arguments 469 (arguments
470 `(#:disallowed-references (,httpd) 470 `(#:disallowed-references ,(list (this-package-native-input "httpd"))
471 #:tests? #f ; TODO: can't figure out if there are tests 471 #:tests? #f ; TODO: can't figure out if there are tests
472 #:make-flags (list 472 #:make-flags (list
473 (string-append "DESTDIR=" 473 (string-append "DESTDIR="
diff --git a/gnu/packages/xfce.scm b/gnu/packages/xfce.scm
index bc361dbe537..d3a3b88494e 100644
--- a/gnu/packages/xfce.scm
+++ b/gnu/packages/xfce.scm
@@ -1137,7 +1137,9 @@ window manager.")
1137 "backgrounds/xfce-verticals.svg")) 1137 "backgrounds/xfce-verticals.svg"))
1138 #t))) 1138 #t)))
1139 1139
1140 #:disallowed-references (,inkscape/pinned ,imagemagick))) 1140 #:disallowed-references
1141 ,(list (this-package-native-input "inkscape")
1142 (this-package-native-input "imagemagick"))))
1141 (native-inputs 1143 (native-inputs
1142 (list xfce4-dev-tools 1144 (list xfce4-dev-tools
1143 ;; For our own ‘prepare-background-image’ phase. 1145 ;; For our own ‘prepare-background-image’ phase.