Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/udev/
Date: Sun, 30 Apr 2017 15:02:42
Message-Id: 1493564554.e3360efdf3a40f5a9c8b61e2c06432cac49a1959.floppym@gentoo
1 commit: e3360efdf3a40f5a9c8b61e2c06432cac49a1959
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 30 14:53:02 2017 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 30 15:02:34 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3360efd
7
8 sys-fs/udev: sync live ebuild
9
10 Package-Manager: Portage-2.3.5_p31, Repoman-2.3.2_p61
11
12 sys-fs/udev/udev-9999.ebuild | 45 +++++++++++++++-----------------------------
13 1 file changed, 15 insertions(+), 30 deletions(-)
14
15 diff --git a/sys-fs/udev/udev-9999.ebuild b/sys-fs/udev/udev-9999.ebuild
16 index 121e2dbf260..8662d86b43c 100644
17 --- a/sys-fs/udev/udev-9999.ebuild
18 +++ b/sys-fs/udev/udev-9999.ebuild
19 @@ -1,4 +1,4 @@
20 -# Copyright 1999-2016 Gentoo Foundation
21 +# Copyright 1999-2017 Gentoo Foundation
22 # Distributed under the terms of the GNU General Public License v2
23
24 EAPI=6
25 @@ -24,7 +24,7 @@ HOMEPAGE="https://www.freedesktop.org/wiki/Software/systemd"
26
27 LICENSE="LGPL-2.1 MIT GPL-2"
28 SLOT="0"
29 -IUSE="acl +kmod selinux static-libs"
30 +IUSE="acl +kmod selinux"
31
32 RESTRICT="test"
33
34 @@ -64,7 +64,7 @@ S=${WORKDIR}/systemd-${PV}
35 check_default_rules() {
36 # Make sure there are no sudden changes to upstream rules file
37 # (more for my own needs than anything else ...)
38 - local udev_rules_md5=b8ad860dccae0ca51656b33c405ea2ca
39 + local udev_rules_md5=c6ee9def75c5c082bf083a7248991935
40 MD5=$(md5sum < "${S}"/rules/50-udev-default.rules)
41 MD5=${MD5/ -/}
42 if [[ ${MD5} != ${udev_rules_md5} ]]; then
43 @@ -98,7 +98,7 @@ pkg_setup() {
44 src_prepare() {
45 if ! [[ ${PV} = 9999* ]]; then
46 # secure_getenv() disable for non-glibc systems wrt bug #443030
47 - if ! [[ $(grep -r secure_getenv * | wc -l) -eq 26 ]]; then
48 + if ! [[ $(grep -r secure_getenv * | wc -l) -eq 30 ]]; then
49 eerror "The line count for secure_getenv() failed, see bug #443030"
50 die
51 fi
52 @@ -130,11 +130,6 @@ src_prepare() {
53 check_default_rules
54 fi
55
56 - # Restore possibility of running --enable-static wrt #472608
57 - sed -i \
58 - -e '/--enable-static is not supported by systemd/s:as_fn_error:echo:' \
59 - configure || die
60 -
61 if ! use elibc_glibc; then #443030
62 echo '#define secure_getenv(x) NULL' >> config.h.in
63 sed -i -e '/error.*secure_getenv/s:.*:#define secure_getenv(x) NULL:' src/shared/missing.h || die
64 @@ -159,7 +154,6 @@ multilib_src_configure() {
65 econf_args=(
66 --libdir=/usr/$(get_libdir)
67 --docdir=/usr/share/doc/${PF}
68 - $(multilib_native_use_enable static-libs static)
69 --disable-nls
70 --disable-dbus
71 $(multilib_native_use_enable kmod)
72 @@ -245,13 +239,10 @@ multilib_src_compile() {
73
74 multilib_src_install() {
75 if multilib_is_native_abi; then
76 - local lib_LTLIBRARIES="libudev.la"
77 - local pkgconfiglib_DATA="src/libudev/libudev.pc"
78 -
79 local targets=(
80 - install-libLTLIBRARIES
81 install-includeHEADERS
82 install-rootbinPROGRAMS
83 + install-rootlibLTLIBRARIES
84 install-rootlibexecPROGRAMS
85 install-udevlibexecPROGRAMS
86 install-dist_udevconfDATA
87 @@ -259,18 +250,13 @@ multilib_src_install() {
88 install-pkgconfiglibDATA
89 install-pkgconfigdataDATA
90 install-dist_docDATA
91 - libudev-install-hook
92 install-directories-hook
93 install-dist_bashcompletionDATA
94 install-dist_networkDATA
95 - )
96 -
97 - # add final values of variables:
98 - targets+=(
99 rootlibexec_PROGRAMS=systemd-udevd
100 rootbin_PROGRAMS=udevadm
101 - lib_LTLIBRARIES="${lib_LTLIBRARIES}"
102 - pkgconfiglib_DATA="${pkgconfiglib_DATA}"
103 + rootlib_LTLIBRARIES="libudev.la"
104 + pkgconfiglib_DATA="src/libudev/libudev.pc"
105 pkgconfigdata_DATA="src/udev/udev.pc"
106 INSTALL_DIRS='$(sysconfdir)/udev/rules.d $(sysconfdir)/udev/hwdb.d $(sysconfdir)/systemd/network'
107 dist_bashcompletion_DATA="shell-completion/bash/udevadm"
108 @@ -278,22 +264,21 @@ multilib_src_install() {
109 )
110 emake -j1 DESTDIR="${D}" "${targets[@]}"
111 doman man/{udev.conf.5,systemd.link.5,udev.7,systemd-udevd.service.8,udevadm.8}
112 - else
113 - local lib_LTLIBRARIES="libudev.la"
114 - local pkgconfiglib_DATA="src/libudev/libudev.pc"
115 - local include_HEADERS="src/libudev/libudev.h"
116
117 + # Compatibility symlink for software that looks for libudev.so
118 + # without using pkg-config
119 + dosym ../../$(get_libdir)/libudev.so.1 \
120 + /usr/$(get_libdir)/libudev.so
121 + else
122 local targets=(
123 install-libLTLIBRARIES
124 install-includeHEADERS
125 install-pkgconfiglibDATA
126 + lib_LTLIBRARIES="libudev.la"
127 + pkgconfiglib_DATA="src/libudev/libudev.pc"
128 + include_HEADERS="src/libudev/libudev.h"
129 )
130
131 - targets+=(
132 - lib_LTLIBRARIES="${lib_LTLIBRARIES}"
133 - pkgconfiglib_DATA="${pkgconfiglib_DATA}"
134 - include_HEADERS="${include_HEADERS}"
135 - )
136 emake -j1 DESTDIR="${D}" "${targets[@]}"
137 fi
138 }