[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/20: gnu: libusb-compat: Specify the absolute file name for libusb.
From: |
guix-commits |
Subject: |
02/20: gnu: libusb-compat: Specify the absolute file name for libusb. |
Date: |
Wed, 6 Sep 2023 01:27:54 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 05f08c11ff9b19716dc1a7d0129eb4c2c041a275
Author: nathan <nathan_mail@nborghese.com>
AuthorDate: Mon Jul 10 23:22:48 2023 -0400
gnu: libusb-compat: Specify the absolute file name for libusb.
Refine the fix for loading libusb correctly.
* gnu/packages/libusb.scm (libusb) [arguments]
<configure-flags>: New LIBUSB_1_0_SONAME flag.
Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
---
gnu/packages/libusb.scm | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/libusb.scm b/gnu/packages/libusb.scm
index 1d514c11b7..e615b81ea3 100644
--- a/gnu/packages/libusb.scm
+++ b/gnu/packages/libusb.scm
@@ -103,14 +103,13 @@ devices on various operating systems.")
(arguments
(list #:configure-flags
#~(list "--disable-static"
- ;; Extending the RUNPATH is necessary, otherwise loading
- ;; the libusb-1.0.so.0 library fails.
- (string-append "LDFLAGS=-Wl,-rpath="
- #$(this-package-input "libusb") "/lib"))))
- (native-inputs
- (list autoconf automake libtool pkg-config))
- (inputs
- (list libusb))
+ ;; Provide the absolute file name of libusb-1.0.so so
+ ;; dlopen works.
+ (string-append "LIBUSB_1_0_SONAME="
+ #$(this-package-input "libusb")
+ "/lib/libusb-1.0.so"))))
+ (native-inputs (list autoconf automake libtool pkg-config))
+ (inputs (list libusb))
(home-page "https://libusb.info")
(synopsis "Compatibility shim for libusb")
(description
- branch master updated (c3d48d024b -> 6113e0529d), guix-commits, 2023/09/06
- 01/20: git: Fix typo in reference-available? comment., guix-commits, 2023/09/06
- 02/20: gnu: libusb-compat: Specify the absolute file name for libusb.,
guix-commits <=
- 07/20: gnu: gmime: Remove version 2.6.23., guix-commits, 2023/09/06
- 04/20: gnu: qemu: Update to 8.1.0., guix-commits, 2023/09/06
- 05/20: gnu: ccache: Update to 4.8.3., guix-commits, 2023/09/06
- 09/20: gnu: libndp: Fix cross-compile., guix-commits, 2023/09/06
- 12/20: gnu: rtaudio: Update to 5.2.0., guix-commits, 2023/09/06
- 13/20: gnu: zrythm: Enable rtaudio., guix-commits, 2023/09/06
- 14/20: gnu: Add go-github-com-dgryski-go-metro., guix-commits, 2023/09/06
- 20/20: gnu: gmime: Update home-page URL., guix-commits, 2023/09/06
- 06/20: gnu: bear: Update to 3.1.3., guix-commits, 2023/09/06
- 03/20: doc: Fix typo., guix-commits, 2023/09/06