[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
102/203: gnu: meson: Patch to allow installing to independent prefixes.
From: |
guix-commits |
Subject: |
102/203: gnu: meson: Patch to allow installing to independent prefixes. |
Date: |
Wed, 3 Nov 2021 21:10:12 -0400 (EDT) |
apteryx pushed a commit to branch core-updates-frozen-batched-changes
in repository guix.
commit e25cfe2107899130c2f197be74f628f2df1ad3d8
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Oct 7 14:54:08 2021 -0400
gnu: meson: Patch to allow installing to independent prefixes.
Meson goes to lengths at preventing installation to directories outside of
the
main installation prefix. This isn't convenient or desirable in Guix; patch
it out using a patch maintained by Nix.
* gnu/packages/patches/meson-allow-dirs-outside-of-prefix.patch: Add patch.
* gnu/local.mk (dist_patch_DATA): Register it.
* gnu/packages/build-tools.scm (meson): Use it.
---
gnu/local.mk | 1 +
gnu/packages/build-tools.scm | 4 +++-
.../patches/meson-allow-dirs-outside-of-prefix.patch | 20 ++++++++++++++++++++
3 files changed, 24 insertions(+), 1 deletion(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index 2ceb6aa..9a33b05 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1468,6 +1468,7 @@ dist_patch_DATA =
\
%D%/packages/patches/mesa-opencl-all-targets.patch \
%D%/packages/patches/mesa-skip-tests.patch \
%D%/packages/patches/mescc-tools-boot.patch \
+ %D%/packages/patches/meson-allow-dirs-outside-of-prefix.patch \
%D%/packages/patches/metabat-fix-compilation.patch \
%D%/packages/patches/mhash-keygen-test-segfault.patch \
%D%/packages/patches/minetest-add-MINETEST_MOD_PATH.patch \
diff --git a/gnu/packages/build-tools.scm b/gnu/packages/build-tools.scm
index c92fe0b..a02d1a7 100644
--- a/gnu/packages/build-tools.scm
+++ b/gnu/packages/build-tools.scm
@@ -272,7 +272,9 @@ files and generates build instructions for the Ninja build
system.")
version ".tar.gz"))
(sha256
(base32
- "0v9m0bazhj48kwc8x3gkxg5c3kcvknvqfjlq22z6pm2h2r2nln6v"))))
+ "0v9m0bazhj48kwc8x3gkxg5c3kcvknvqfjlq22z6pm2h2r2nln6v"))
+ (patches (search-patches
+ "meson-allow-dirs-outside-of-prefix.patch"))))
(build-system python-build-system)
(arguments
`(;; FIXME: Tests require many additional inputs and patching many
diff --git a/gnu/packages/patches/meson-allow-dirs-outside-of-prefix.patch
b/gnu/packages/patches/meson-allow-dirs-outside-of-prefix.patch
new file mode 100644
index 0000000..f16daa8
--- /dev/null
+++ b/gnu/packages/patches/meson-allow-dirs-outside-of-prefix.patch
@@ -0,0 +1,20 @@
+Source:
https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/development/tools/build-managers/meson/allow-dirs-outside-of-prefix.patch
+--- a/mesonbuild/coredata.py
++++ b/mesonbuild/coredata.py
+@@ -506,7 +506,6 @@ class CoreData:
+ return value
+ if option.name.endswith('dir') and value.is_absolute() and \
+ option not in BULITIN_DIR_NOPREFIX_OPTIONS:
+- # Value must be a subdir of the prefix
+ # commonpath will always return a path in the native format, so we
+ # must use pathlib.PurePath to do the same conversion before
+ # comparing.
+@@ -518,7 +517,7 @@ class CoreData:
+ try:
+ value = value.relative_to(prefix)
+ except ValueError:
+- raise MesonException(msg.format(option, value, prefix))
++ pass
+ if '..' in str(value):
+ raise MesonException(msg.format(option, value, prefix))
+ return value.as_posix()
- 46/203: gnu: gst-libav: Update to 1.19.2., (continued)
- 46/203: gnu: gst-libav: Update to 1.19.2., guix-commits, 2021/11/03
- 58/203: gnu: polkit: Update to 0.120 and ungraft., guix-commits, 2021/11/03
- 63/203: gnu: gst-plugins-bad: Update to 1.18.5., guix-commits, 2021/11/03
- 60/203: gnu: gstreamer: Update to 1.18.5., guix-commits, 2021/11/03
- 78/203: gnu: gtk+-2: Fix ‘builder’ test., guix-commits, 2021/11/03
- 79/203: gnu: diffutils: Fix signal processing., guix-commits, 2021/11/03
- 88/203: guix: packages: Fix repacking of plain tarballs., guix-commits, 2021/11/03
- 112/203: gnu: libcloudproviders-minimal: Introduce minimal variant., guix-commits, 2021/11/03
- 95/203: gnu: Move a few Python packages to (gnu packages python-build)., guix-commits, 2021/11/03
- 96/203: gnu: python-pypa-build: Update to 0.7.0., guix-commits, 2021/11/03
- 102/203: gnu: meson: Patch to allow installing to independent prefixes.,
guix-commits <=
- 119/203: gnu: openssl: Absorb 1.1.1l graft., guix-commits, 2021/11/03
- 129/203: gnu: libsoup: Update to 3.0.1., guix-commits, 2021/11/03
- 134/203: gnu: llvm: Add make-lld-wrapper, lld-wrapper and lld-as-ld-wrapper., guix-commits, 2021/11/03
- 131/203: gnu: pulseaudio: Add doxygen to fix build., guix-commits, 2021/11/03
- 156/203: gnu: python-six-bootstrap: Update to 1.16.0., guix-commits, 2021/11/03
- 153/203: gnu: boost: Update to 1.77.0., guix-commits, 2021/11/03
- 147/203: gnu: nss: Update to 3.71., guix-commits, 2021/11/03
- 155/203: gnu: python-pytest: Update to 6.2.5., guix-commits, 2021/11/03
- 25/203: gnu: gst-plugins-bad: Update to 1.18.4., guix-commits, 2021/11/03
- 07/203: gnu: json-c: Update to 0.15., guix-commits, 2021/11/03