[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#30761] [PATCH staging 5/9] build-system/meson: Skip the 'fix-runpat
From: |
Marius Bakke |
Subject: |
[bug#30761] [PATCH staging 5/9] build-system/meson: Skip the 'fix-runpath' phase on armhf. |
Date: |
Fri, 9 Mar 2018 19:11:04 +0100 |
* guix/build-system/meson.scm (lower): Remove DEFAULT-PATCHELF from inputs
on armhf.
(meson-build): Ignore the 'fix-runpath' phase when building for arm systems.
---
guix/build-system/meson.scm | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/guix/build-system/meson.scm b/guix/build-system/meson.scm
index d7754e460..f780a3c8b 100644
--- a/guix/build-system/meson.scm
+++ b/guix/build-system/meson.scm
@@ -81,7 +81,14 @@
(build-inputs `(("meson" ,meson)
("ninja" ,ninja)
;; Add patchelf for (guix build rpath) to work.
- ("patchelf" ,(default-patchelf))
+ ;; XXX PatchELF fails to build on armhf, so we skip
+ ;; the 'fix-runpath' phase there for now. The
+ ;; consequence is that some packages may have
superfluous
+ ;; RUNPATH entries and thus runtime dependencies.
+ ,@(if (not (string-prefix? "arm" (or
(%current-target-system)
+
(%current-system))))
+ `(("patchelf" ,(default-patchelf)))
+ '())
,@native-inputs))
(host-inputs `(,@(if source
`(("source" ,source))
@@ -139,7 +146,11 @@ has a 'meson.build' file."
#:inputs %build-inputs
#:search-paths ',(map search-path-specification->sexp
search-paths)
- #:phases build-phases
+ #:phases
+ (if (string-prefix? "arm" ,(or (%current-target-system)
+ (%current-system)))
+ (modify-phases build-phases (delete 'fix-runpath))
+ build-phases)
#:configure-flags ,configure-flags
#:build-type ,build-type
#:tests? ,tests?
--
2.16.2
- [bug#30761] [PATCH staging 0/9] Meson fixes (and some updates), Marius Bakke, 2018/03/09
- [bug#30761] [PATCH staging 3/9] gnu: meson: Update to 0.45.0., Marius Bakke, 2018/03/09
- [bug#30761] [PATCH staging 8/9] gnu: libwacom: Update to 0.29., Marius Bakke, 2018/03/09
- [bug#30761] [PATCH staging 6/9] gnu: libinput: Update to 1.10.2., Marius Bakke, 2018/03/09
- [bug#30761] [PATCH staging 9/9] gnu: xf86-input-wacom: Update to 0.36.0., Marius Bakke, 2018/03/09