1 |
commit: 248f71f97378522f6e981b85c8236b0c7abfb72f |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 5 13:51:43 2016 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 5 14:13:25 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=248f71f9 |
7 |
|
8 |
sys-fs/udev: Fixed installation of libudev.so (bug #598988). |
9 |
|
10 |
Thanks to floppym for reviewing the ebuild patches and creating the |
11 |
pkgconfig fix he also sent upstream. |
12 |
|
13 |
Package-Manager: portage-2.3.2 |
14 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
15 |
|
16 |
sys-fs/udev/files/systemd-232-pkgconfig.patch | 50 ++++++++++++++++++++++ |
17 |
.../udev/{udev-232.ebuild => udev-232-r1.ebuild} | 11 ++++- |
18 |
2 files changed, 59 insertions(+), 2 deletions(-) |
19 |
|
20 |
diff --git a/sys-fs/udev/files/systemd-232-pkgconfig.patch b/sys-fs/udev/files/systemd-232-pkgconfig.patch |
21 |
new file mode 100644 |
22 |
index 00000000..50f7921 |
23 |
--- /dev/null |
24 |
+++ b/sys-fs/udev/files/systemd-232-pkgconfig.patch |
25 |
@@ -0,0 +1,50 @@ |
26 |
+From a36dad95c447a5cf65f9e3b66c86e906e7f05890 Mon Sep 17 00:00:00 2001 |
27 |
+From: Mike Gilbert <floppym@g.o> |
28 |
+Date: Sat, 5 Nov 2016 09:17:34 -0400 |
29 |
+Subject: [PATCH] Adjust pkgconfig files to point at rootlibdir |
30 |
+ |
31 |
+The .so symlinks got moved to rootlibdir in 082210c7. |
32 |
+--- |
33 |
+ Makefile.am | 1 + |
34 |
+ src/libsystemd/libsystemd.pc.in | 2 +- |
35 |
+ src/libudev/libudev.pc.in | 2 +- |
36 |
+ 3 files changed, 3 insertions(+), 2 deletions(-) |
37 |
+ |
38 |
+diff --git a/Makefile.am b/Makefile.am |
39 |
+index f2d8bf5..73144b1 100644 |
40 |
+--- a/Makefile.am |
41 |
++++ b/Makefile.am |
42 |
+@@ -6054,6 +6054,7 @@ EXTRA_DIST += \ |
43 |
+ |
44 |
+ # ------------------------------------------------------------------------------ |
45 |
+ substitutions = \ |
46 |
++ '|rootlibdir=$(rootlibdir)|' \ |
47 |
+ '|rootlibexecdir=$(rootlibexecdir)|' \ |
48 |
+ '|rootbindir=$(rootbindir)|' \ |
49 |
+ '|bindir=$(bindir)|' \ |
50 |
+diff --git a/src/libsystemd/libsystemd.pc.in b/src/libsystemd/libsystemd.pc.in |
51 |
+index e8f7950..7e6d499 100644 |
52 |
+--- a/src/libsystemd/libsystemd.pc.in |
53 |
++++ b/src/libsystemd/libsystemd.pc.in |
54 |
+@@ -7,7 +7,7 @@ |
55 |
+ |
56 |
+ prefix=@prefix@ |
57 |
+ exec_prefix=@exec_prefix@ |
58 |
+-libdir=@libdir@ |
59 |
++libdir=@rootlibdir@ |
60 |
+ includedir=@includedir@ |
61 |
+ |
62 |
+ Name: systemd |
63 |
+diff --git a/src/libudev/libudev.pc.in b/src/libudev/libudev.pc.in |
64 |
+index a0f3f52..770c922 100644 |
65 |
+--- a/src/libudev/libudev.pc.in |
66 |
++++ b/src/libudev/libudev.pc.in |
67 |
+@@ -7,7 +7,7 @@ |
68 |
+ |
69 |
+ prefix=@prefix@ |
70 |
+ exec_prefix=@exec_prefix@ |
71 |
+-libdir=@libdir@ |
72 |
++libdir=@rootlibdir@ |
73 |
+ includedir=@includedir@ |
74 |
+ |
75 |
+ Name: libudev |
76 |
|
77 |
diff --git a/sys-fs/udev/udev-232.ebuild b/sys-fs/udev/udev-232-r1.ebuild |
78 |
similarity index 97% |
79 |
rename from sys-fs/udev/udev-232.ebuild |
80 |
rename to sys-fs/udev/udev-232-r1.ebuild |
81 |
index db5fafc..83e57cb 100644 |
82 |
--- a/sys-fs/udev/udev-232.ebuild |
83 |
+++ b/sys-fs/udev/udev-232-r1.ebuild |
84 |
@@ -122,6 +122,8 @@ src_prepare() { |
85 |
# stub out the am_path_libcrypt function |
86 |
echo 'AC_DEFUN([AM_PATH_LIBGCRYPT],[:])' > m4/gcrypt.m4 |
87 |
|
88 |
+ eapply "${FILESDIR}/systemd-${PV}-pkgconfig.patch" |
89 |
+ |
90 |
# apply user patches |
91 |
eapply_user |
92 |
|
93 |
@@ -244,9 +246,9 @@ multilib_src_install() { |
94 |
local pkgconfiglib_DATA="src/libudev/libudev.pc" |
95 |
|
96 |
local targets=( |
97 |
- install-libLTLIBRARIES |
98 |
install-includeHEADERS |
99 |
install-rootbinPROGRAMS |
100 |
+ install-rootlibLTLIBRARIES |
101 |
install-rootlibexecPROGRAMS |
102 |
install-udevlibexecPROGRAMS |
103 |
install-dist_udevconfDATA |
104 |
@@ -272,8 +274,13 @@ multilib_src_install() { |
105 |
) |
106 |
emake -j1 DESTDIR="${D}" "${targets[@]}" |
107 |
doman man/{udev.conf.5,systemd.link.5,udev.7,systemd-udevd.service.8,udevadm.8} |
108 |
+ |
109 |
+ # Compatibility symlink for software that looks for libudev.so |
110 |
+ # without using pkg-config |
111 |
+ dosym ../../$(get_libdir)/libudev.so.1 \ |
112 |
+ /usr/$(get_libdir)/libudev.so |
113 |
else |
114 |
- local rootlib_LTLIBRARIES="libudev.la" |
115 |
+ local lib_LTLIBRARIES="libudev.la" |
116 |
local pkgconfiglib_DATA="src/libudev/libudev.pc" |
117 |
local include_HEADERS="src/libudev/libudev.h" |