[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
81/143: gnu: discover: Don't use patchelf.
From: |
guix-commits |
Subject: |
81/143: gnu: discover: Don't use patchelf. |
Date: |
Mon, 21 Nov 2022 16:10:48 -0500 (EST) |
mbakke pushed a commit to branch master
in repository guix.
commit 787fd473bef78d955cb735b1aa565b471bb4bb37
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Mon Nov 21 15:25:38 2022 +0100
gnu: discover: Don't use patchelf.
* gnu/packages/kde-plasma.scm (discover)[arguments]: Add phase to set
LDFLAGS
instead of patching RUNPATH directly.
[native-inputs]: Remove PATCHELF.
---
gnu/packages/kde-plasma.scm | 38 +++++++++++---------------------------
1 file changed, 11 insertions(+), 27 deletions(-)
diff --git a/gnu/packages/kde-plasma.scm b/gnu/packages/kde-plasma.scm
index e67ee58970..6a87a67331 100644
--- a/gnu/packages/kde-plasma.scm
+++ b/gnu/packages/kde-plasma.scm
@@ -37,7 +37,6 @@
#:use-module (gnu packages authentication)
#:use-module (gnu packages bash)
#:use-module (gnu packages compression)
- #:use-module (gnu packages elf) ; patchelf
#:use-module (gnu packages display-managers)
#:use-module (gnu packages firmware)
#:use-module (gnu packages fontutils)
@@ -149,32 +148,17 @@ Breeze is the default theme for the KDE Plasma desktop.")
"01vdi66c7v60db25p0qi0q73wgqw6dy2kirbk34bvhld41gpxhhv"))))
(build-system qt-build-system)
(arguments
- (list #:phases #~(modify-phases %standard-phases
- (add-after 'install 'fix-so
- (lambda* _
- (invoke "patchelf" "--replace-needed"
- "libDiscoverCommon.so"
- (string-append #$output
-
"/lib/plasma-discover/libDiscoverCommon.so")
- (string-append #$output
-
"/lib/qt5/plugins/discover/fwupd-backend.so"))
- (invoke "patchelf" "--replace-needed"
- "libDiscoverCommon.so"
- (string-append #$output
-
"/lib/plasma-discover/libDiscoverCommon.so")
- (string-append #$output
-
"/lib/qt5/plugins/discover/packagekit-backend.so"))
- (invoke "patchelf" "--replace-needed"
- "libDiscoverCommon.so"
- (string-append #$output
-
"/lib/plasma-discover/libDiscoverCommon.so")
- (string-append #$output
-
"/lib/qt5/plugins/discover/kns-backend.so"))))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "ctest" "-E" "knsbackendtest")))))))
- (native-inputs (list extra-cmake-modules patchelf pkg-config))
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'configure 'set-LDFLAGS
+ (lambda _
+ (setenv "LDFLAGS" (string-append "-Wl,-rpath=" #$output
+ "/lib/plasma-discover"))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "ctest" "-E" "knsbackendtest")))))))
+ (native-inputs (list extra-cmake-modules pkg-config))
(inputs (list appstream-qt
attica
fwupd ; optional
- 32/143: gnu: Add libaccounts-glib., (continued)
- 32/143: gnu: Add libaccounts-glib., guix-commits, 2022/11/21
- 20/143: gnu: libksysguard: Enable all tests., guix-commits, 2022/11/21
- 24/143: gnu: kinit: Use gexp., guix-commits, 2022/11/21
- 34/143: gnu: Add signon-plugin-oauth2., guix-commits, 2022/11/21
- 47/143: gnu: kdbusaddons: Use gexp., guix-commits, 2022/11/21
- 48/143: gnu: Add kwayland-integration., guix-commits, 2022/11/21
- 54/143: gnu: Add kscreen., guix-commits, 2022/11/21
- 55/143: gnu: Add kwrited., guix-commits, 2022/11/21
- 64/143: gnu: Add latte-dock., guix-commits, 2022/11/21
- 80/143: gnu: Add discover., guix-commits, 2022/11/21
- 81/143: gnu: discover: Don't use patchelf.,
guix-commits <=
- 82/143: gnu: Add ksystemstats., guix-commits, 2022/11/21
- 86/143: gnu: Add polkit-kde-agent., guix-commits, 2022/11/21
- 03/143: gnu: kio: Enable 2 tests., guix-commits, 2022/11/21
- 14/143: gnu: plasma-framework: Remove 'apply-fix' phase., guix-commits, 2022/11/21
- 29/143: gnu: KDE PIM: Update to 22.08.1., guix-commits, 2022/11/21
- 02/143: gnu: ktouch: Remove kqtquickcharts form inputs., guix-commits, 2022/11/21
- 06/143: gnu: kdelibs4support: Enable passing test., guix-commits, 2022/11/21
- 11/143: gnu: kxmlgui: Enable tests., guix-commits, 2022/11/21
- 17/143: gnu: Remove kqtquickcharts., guix-commits, 2022/11/21
- 18/143: gnu: libksysguard: Update to 5.25.4., guix-commits, 2022/11/21