1 |
commit: 80805d85ad317c4c9e484b68272552f6aedfc8d9 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 3 07:07:39 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 3 07:07:39 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80805d85 |
7 |
|
8 |
sys-apps/pcsc-lite: fix build without udev/libusb |
9 |
|
10 |
Closes: https://bugs.gentoo.org/832593 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
.../files/pcsc-lite-1.9.5-no-libusb-udev.patch | 29 ++++++++++++++++++++++ |
14 |
sys-apps/pcsc-lite/pcsc-lite-1.9.5.ebuild | 1 + |
15 |
2 files changed, 30 insertions(+) |
16 |
|
17 |
diff --git a/sys-apps/pcsc-lite/files/pcsc-lite-1.9.5-no-libusb-udev.patch b/sys-apps/pcsc-lite/files/pcsc-lite-1.9.5-no-libusb-udev.patch |
18 |
new file mode 100644 |
19 |
index 000000000000..2f4793b03fb4 |
20 |
--- /dev/null |
21 |
+++ b/sys-apps/pcsc-lite/files/pcsc-lite-1.9.5-no-libusb-udev.patch |
22 |
@@ -0,0 +1,29 @@ |
23 |
+https://github.com/LudovicRousseau/PCSC/commit/a4bdfd2eb6e908c8306fe421137a83573ba05d8c |
24 |
+https://bugs.gentoo.org/832593 |
25 |
+ |
26 |
+From: Fabrice Fontaine <fontaine.fabrice@×××××.com> |
27 |
+Date: Tue, 14 Dec 2021 08:20:59 +0100 |
28 |
+Subject: [PATCH] src/hotplug_generic.c: fix build without lib{udev,usb} |
29 |
+ |
30 |
+Fix the following build failure without lib{udev,usb} raised since |
31 |
+version 1.9.5 and |
32 |
+https://github.com/LudovicRousseau/PCSC/commit/6f8f170db3c88c59a5ddb5ae5319b921a901a6aa: |
33 |
+ |
34 |
+/home/giuliobenetti/autobuild/run/instance-2/output-1/host/lib/gcc/arm-buildroot-linux-gnueabihf/11.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: pcscd-pcscdaemon.o: in function `signal_thread': |
35 |
+pcscdaemon.c:(.text+0x444): undefined reference to `HPReCheckSerialReaders' |
36 |
+ |
37 |
+Fixes: |
38 |
+ - http://autobuild.buildroot.org/results/6cf323229f32967aa554418410dc94b7094d09af |
39 |
+ |
40 |
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@×××××.com> |
41 |
+--- a/src/hotplug_generic.c |
42 |
++++ b/src/hotplug_generic.c |
43 |
+@@ -48,7 +48,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
44 |
+ #define FALSE 0 |
45 |
+ #endif |
46 |
+ |
47 |
+-#if !defined(__APPLE__) && !defined(HAVE_LIBUSB) && !defined(__linux__) && !defined(HAVE_LIBUDEV) |
48 |
++#if !defined(__APPLE__) && !defined(HAVE_LIBUSB) && !defined(HAVE_LIBUDEV) |
49 |
+ |
50 |
+ LONG HPSearchHotPluggables(void) |
51 |
+ { |
52 |
|
53 |
diff --git a/sys-apps/pcsc-lite/pcsc-lite-1.9.5.ebuild b/sys-apps/pcsc-lite/pcsc-lite-1.9.5.ebuild |
54 |
index 0f45e4dc5bb1..147fd36f5bc0 100644 |
55 |
--- a/sys-apps/pcsc-lite/pcsc-lite-1.9.5.ebuild |
56 |
+++ b/sys-apps/pcsc-lite/pcsc-lite-1.9.5.ebuild |
57 |
@@ -42,6 +42,7 @@ BDEPEND="virtual/pkgconfig" |
58 |
|
59 |
PATCHES=( |
60 |
"${FILESDIR}"/${PN}-1.8.11-polkit-pcscd.patch |
61 |
+ "${FILESDIR}"/${P}-no-libusb-udev.patch |
62 |
) |
63 |
|
64 |
DOCS=( AUTHORS HELP README SECURITY ChangeLog ) |