1 |
commit: 06bf7313e22ae56157d685e9465921d879136e9b |
2 |
Author: William Hubbs <williamh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 7 20:38:52 2020 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 7 20:44:00 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06bf7313 |
7 |
|
8 |
sys-fs/udev: remove old unstable versions |
9 |
|
10 |
Signed-off-by: William Hubbs <williamh <AT> gentoo.org> |
11 |
|
12 |
sys-fs/udev/Manifest | 1 - |
13 |
sys-fs/udev/udev-243.ebuild | 329 -------------------------------------------- |
14 |
sys-fs/udev/udev-245.ebuild | 237 ------------------------------- |
15 |
3 files changed, 567 deletions(-) |
16 |
|
17 |
diff --git a/sys-fs/udev/Manifest b/sys-fs/udev/Manifest |
18 |
index 2698256f752..299515c5f11 100644 |
19 |
--- a/sys-fs/udev/Manifest |
20 |
+++ b/sys-fs/udev/Manifest |
21 |
@@ -1,5 +1,4 @@ |
22 |
DIST systemd-242.tar.gz 7831435 BLAKE2B 288e65d0a8e133ef5885689eb16118a83d93c730e342da63115cea0892fc999104c3a4856c83f3e7ef909ba2f3311146730b05ee02d84cc0400851ccbdcd54cd SHA512 578f68a3c8f2d454198fc04ff8d943abcfb390531d57f9603d185857f7afa7f4dc641dafecf49ce50fe22f5837b252b181400891e8efd4459fd4f69bb4283cb4 |
23 |
DIST systemd-243.tar.gz 8242522 BLAKE2B 89e3ebbea5a99061329f7c78220a66c1e075d5ba90dfdf5ee8d0d9b762ef4600dc82d8ca2054632e5e343b6272cd8046c92f7f99dcfa8287c5ef2b42fb96d4cb SHA512 56b52a297aa5ac04d9667eb3afb1598725b197de73ff72baa1aabbc2844e36fba7b7fccdf6d214ae8b5b926616b2b7e15772763aaa80ec938d74333ff9c8673e |
24 |
-DIST systemd-245.tar.gz 8993479 BLAKE2B be0b1fca5ba8585978f570868bc9135c1fee78ea64dcdf8b1a3419e856a83da90104ed2f86e5f3e5b0b6f29d4b34f603bfe1e4cbc61ccf71bedce547db62ff35 SHA512 1b80d0e02472dfc4197f11dab4f56cf90e8a6e105ce19f837cb11335b6d8577ed49031dad94cdb41aa9bdc06ec8eec62c8e9246272b83935e7bb9dcd3cd8c012 |
25 |
DIST systemd-246.tar.gz 9534036 BLAKE2B 71b72abcd4d066d35d45d9835d41bec8faa9a7eddc80b48fe7073223f07d32f78a8442c52dc0800940f9750d9c5502123a633738981d797cf610d85df2035bf0 SHA512 7103f7da53f7ced3b5543c238f23bd11c82af8e37166c1720a90576b6b431b4329320c78726166c65a9f5e101dd465c0a86dd13c586c4e55e608a6273d8f324f |
26 |
DIST systemd-stable-245.5.tar.gz 9020836 BLAKE2B 7753eecceffa86c9208c3e71df2037b58b445f9090b73c6ff499b4170b94488a1fd1cabcd17cbb98506a692875a3eef07a40a54d23e09c331a01319f8d03d13d SHA512 47de4a59980643002f325c499eeb4dd76fa9f1d1267686e7564f103690487bf85974590d7cb3e3641409e5bfba567fe2a66efa80320e7e8adc48af4461e2e172 |
27 |
|
28 |
diff --git a/sys-fs/udev/udev-243.ebuild b/sys-fs/udev/udev-243.ebuild |
29 |
deleted file mode 100644 |
30 |
index 0a23777e5de..00000000000 |
31 |
--- a/sys-fs/udev/udev-243.ebuild |
32 |
+++ /dev/null |
33 |
@@ -1,329 +0,0 @@ |
34 |
-# Copyright 2003-2020 Gentoo Authors |
35 |
-# Distributed under the terms of the GNU General Public License v2 |
36 |
- |
37 |
-EAPI=6 |
38 |
- |
39 |
-inherit bash-completion-r1 linux-info meson ninja-utils multilib-minimal toolchain-funcs udev |
40 |
- |
41 |
-if [[ ${PV} = 9999* ]]; then |
42 |
- EGIT_REPO_URI="https://github.com/systemd/systemd.git" |
43 |
- inherit git-r3 |
44 |
-else |
45 |
- MY_PV=${PV/_/-} |
46 |
- MY_P=systemd-${MY_PV} |
47 |
- S=${WORKDIR}/${MY_P} |
48 |
- SRC_URI="https://github.com/systemd/systemd/archive/v${MY_PV}/${MY_P}.tar.gz" |
49 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" |
50 |
-fi |
51 |
- |
52 |
-DESCRIPTION="Linux dynamic and persistent device naming support (aka userspace devfs)" |
53 |
-HOMEPAGE="https://www.freedesktop.org/wiki/Software/systemd" |
54 |
- |
55 |
-LICENSE="LGPL-2.1 MIT GPL-2" |
56 |
-SLOT="0" |
57 |
-IUSE="acl +kmod selinux" |
58 |
- |
59 |
-RESTRICT="test" |
60 |
- |
61 |
-COMMON_DEPEND=">=sys-apps/util-linux-2.30[${MULTILIB_USEDEP}] |
62 |
- sys-libs/libcap[${MULTILIB_USEDEP}] |
63 |
- acl? ( sys-apps/acl ) |
64 |
- kmod? ( >=sys-apps/kmod-16 ) |
65 |
- selinux? ( >=sys-libs/libselinux-2.1.9 ) |
66 |
- !<sys-libs/glibc-2.11 |
67 |
- !sys-apps/gentoo-systemd-integration |
68 |
- !sys-apps/systemd" |
69 |
-DEPEND="${COMMON_DEPEND} |
70 |
- dev-util/gperf |
71 |
- >=dev-util/intltool-0.50 |
72 |
- >=dev-util/meson-0.40.0 |
73 |
- dev-util/ninja |
74 |
- >=sys-apps/coreutils-8.16 |
75 |
- virtual/os-headers |
76 |
- virtual/pkgconfig |
77 |
- >=sys-kernel/linux-headers-3.9 |
78 |
- app-text/docbook-xml-dtd:4.2 |
79 |
- app-text/docbook-xml-dtd:4.5 |
80 |
- app-text/docbook-xsl-stylesheets |
81 |
- dev-libs/libxslt" |
82 |
-RDEPEND="${COMMON_DEPEND} |
83 |
- acct-group/kmem |
84 |
- acct-group/tty |
85 |
- acct-group/audio |
86 |
- acct-group/cdrom |
87 |
- acct-group/dialout |
88 |
- acct-group/disk |
89 |
- acct-group/input |
90 |
- acct-group/kvm |
91 |
- acct-group/lp |
92 |
- acct-group/render |
93 |
- acct-group/tape |
94 |
- acct-group/video |
95 |
- !<sys-fs/lvm2-2.02.103 |
96 |
- !<sec-policy/selinux-base-2.20120725-r10" |
97 |
-PDEPEND=">=sys-apps/hwids-20140304[udev] |
98 |
- >=sys-fs/udev-init-scripts-26" |
99 |
- |
100 |
-pkg_setup() { |
101 |
- if [[ ${MERGE_TYPE} != buildonly ]]; then |
102 |
- CONFIG_CHECK="~BLK_DEV_BSG ~DEVTMPFS ~!IDE ~INOTIFY_USER ~!SYSFS_DEPRECATED ~!SYSFS_DEPRECATED_V2 ~SIGNALFD ~EPOLL ~FHANDLE ~NET ~!FW_LOADER_USER_HELPER ~UNIX" |
103 |
- linux-info_pkg_setup |
104 |
- |
105 |
- # CONFIG_FHANDLE was introduced by 2.6.39 |
106 |
- local MINKV=2.6.39 |
107 |
- |
108 |
- if kernel_is -lt ${MINKV//./ }; then |
109 |
- eerror "Your running kernel is too old to run this version of ${P}" |
110 |
- eerror "You need to upgrade kernel at least to ${MINKV}" |
111 |
- fi |
112 |
- |
113 |
- if kernel_is -lt 3 7; then |
114 |
- ewarn "Your running kernel is too old to have firmware loader and" |
115 |
- ewarn "this version of ${P} doesn't have userspace firmware loader" |
116 |
- ewarn "If you need firmware support, you need to upgrade kernel at least to 3.7" |
117 |
- fi |
118 |
- fi |
119 |
-} |
120 |
- |
121 |
-src_prepare() { |
122 |
- cat <<-EOF > "${T}"/40-gentoo.rules |
123 |
- # Gentoo specific floppy and usb groups |
124 |
- ACTION=="add", SUBSYSTEM=="block", KERNEL=="fd[0-9]", GROUP="floppy" |
125 |
- ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="usb" |
126 |
- EOF |
127 |
- |
128 |
- if [[ -d "${WORKDIR}/patches" ]]; then |
129 |
- eapply "${WORKDIR}/patches" |
130 |
- fi |
131 |
- |
132 |
- default |
133 |
-} |
134 |
- |
135 |
-meson_multilib_native_use() { |
136 |
- if multilib_is_native_abi && use "$1"; then |
137 |
- echo true |
138 |
- else |
139 |
- echo false |
140 |
- fi |
141 |
-} |
142 |
- |
143 |
-multilib_src_configure() { |
144 |
- local emesonargs=( |
145 |
- -Dacl=$(meson_multilib_native_use acl) |
146 |
- -Defi=false |
147 |
- -Dkmod=$(meson_multilib_native_use kmod) |
148 |
- -Dselinux=$(meson_multilib_native_use selinux) |
149 |
- -Dlink-udev-shared=false |
150 |
- -Dsplit-usr=true |
151 |
- |
152 |
- # Prevent automagic deps |
153 |
- -Dgcrypt=false |
154 |
- -Dlibcryptsetup=false |
155 |
- -Dlibidn=false |
156 |
- -Dlibidn2=false |
157 |
- -Dlibiptc=false |
158 |
- -Dseccomp=false |
159 |
- -Dlz4=false |
160 |
- -Dxz=false |
161 |
- ) |
162 |
- meson_src_configure |
163 |
-} |
164 |
- |
165 |
-src_configure() { |
166 |
- # Prevent conflicts with i686 cross toolchain, bug 559726 |
167 |
- tc-export AR CC NM OBJCOPY RANLIB |
168 |
- multilib-minimal_src_configure |
169 |
-} |
170 |
- |
171 |
-multilib_src_compile() { |
172 |
- # meson creates this link |
173 |
- local libudev=$(readlink src/udev/libudev.so.1) |
174 |
- |
175 |
- local targets=( |
176 |
- src/udev/${libudev} |
177 |
- ) |
178 |
- if multilib_is_native_abi; then |
179 |
- targets+=( |
180 |
- systemd-udevd |
181 |
- udevadm |
182 |
- src/udev/ata_id |
183 |
- src/udev/cdrom_id |
184 |
- src/udev/mtd_probe |
185 |
- src/udev/scsi_id |
186 |
- src/udev/v4l_id |
187 |
- man/udev.conf.5 |
188 |
- man/systemd.link.5 |
189 |
- man/hwdb.7 |
190 |
- man/udev.7 |
191 |
- man/systemd-udevd.service.8 |
192 |
- man/udevadm.8 |
193 |
- ) |
194 |
- fi |
195 |
- eninja "${targets[@]}" |
196 |
-} |
197 |
- |
198 |
-multilib_src_install() { |
199 |
- local libudev=$(readlink src/udev/libudev.so.1) |
200 |
- |
201 |
- into / |
202 |
- dolib.so src/udev/{${libudev},libudev.so.1,libudev.so} |
203 |
- |
204 |
- insinto "/usr/$(get_libdir)/pkgconfig" |
205 |
- doins src/libudev/libudev.pc |
206 |
- |
207 |
- if multilib_is_native_abi; then |
208 |
- into / |
209 |
- dobin udevadm |
210 |
- |
211 |
- exeinto /lib/systemd |
212 |
- doexe systemd-udevd |
213 |
- |
214 |
- exeinto /lib/udev |
215 |
- doexe src/udev/{ata_id,cdrom_id,mtd_probe,scsi_id,v4l_id} |
216 |
- |
217 |
- rm rules/99-systemd.rules || die |
218 |
- insinto /lib/udev/rules.d |
219 |
- doins rules/*.rules |
220 |
- |
221 |
- insinto /usr/share/pkgconfig |
222 |
- doins src/udev/udev.pc |
223 |
- |
224 |
- mv man/systemd-udevd.service.8 man/systemd-udevd.8 || die |
225 |
- rm man/systemd-udevd-{control,kernel}.socket.8 || die |
226 |
- doman man/*.[0-9] |
227 |
- fi |
228 |
-} |
229 |
- |
230 |
-multilib_src_install_all() { |
231 |
- doheader src/libudev/libudev.h |
232 |
- |
233 |
- insinto /etc/udev |
234 |
- doins src/udev/udev.conf |
235 |
- keepdir /etc/udev/{hwdb.d,rules.d} |
236 |
- |
237 |
- insinto /lib/systemd/network |
238 |
- doins network/99-default.link |
239 |
- |
240 |
- # see src_prepare() for content of 40-gentoo.rules |
241 |
- insinto /lib/udev/rules.d |
242 |
- doins "${T}"/40-gentoo.rules |
243 |
- doins "${S}"/rules/*.rules |
244 |
- |
245 |
- dobashcomp shell-completion/bash/udevadm |
246 |
- |
247 |
- insinto /usr/share/zsh/site-functions |
248 |
- doins shell-completion/zsh/_udevadm |
249 |
- |
250 |
- einstalldocs |
251 |
-} |
252 |
- |
253 |
-pkg_postinst() { |
254 |
- mkdir -p "${ROOT%/}"/run |
255 |
- |
256 |
- # "losetup -f" is confused if there is an empty /dev/loop/, Bug #338766 |
257 |
- # So try to remove it here (will only work if empty). |
258 |
- rmdir "${ROOT%/}"/dev/loop 2>/dev/null |
259 |
- if [[ -d ${ROOT%/}/dev/loop ]]; then |
260 |
- ewarn "Please make sure your remove /dev/loop," |
261 |
- ewarn "else losetup may be confused when looking for unused devices." |
262 |
- fi |
263 |
- |
264 |
- local fstab="${ROOT%/}"/etc/fstab dev path fstype rest |
265 |
- while read -r dev path fstype rest; do |
266 |
- if [[ ${path} == /dev && ${fstype} != devtmpfs ]]; then |
267 |
- ewarn "You need to edit your /dev line in ${fstab} to have devtmpfs" |
268 |
- ewarn "filesystem. Otherwise udev won't be able to boot." |
269 |
- ewarn "See, https://bugs.gentoo.org/453186" |
270 |
- fi |
271 |
- done < "${fstab}" |
272 |
- |
273 |
- if [[ -d ${ROOT%/}/usr/lib/udev ]]; then |
274 |
- ewarn |
275 |
- ewarn "Please re-emerge all packages on your system which install" |
276 |
- ewarn "rules and helpers in /usr/lib/udev. They should now be in" |
277 |
- ewarn "/lib/udev." |
278 |
- ewarn |
279 |
- ewarn "One way to do this is to run the following command:" |
280 |
- ewarn "emerge -av1 \$(qfile -q -S -C /usr/lib/udev)" |
281 |
- ewarn "Note that qfile can be found in app-portage/portage-utils" |
282 |
- fi |
283 |
- |
284 |
- local old_cd_rules="${ROOT%/}"/etc/udev/rules.d/70-persistent-cd.rules |
285 |
- local old_net_rules="${ROOT%/}"/etc/udev/rules.d/70-persistent-net.rules |
286 |
- for old_rules in "${old_cd_rules}" "${old_net_rules}"; do |
287 |
- if [[ -f ${old_rules} ]]; then |
288 |
- ewarn |
289 |
- ewarn "File ${old_rules} is from old udev installation but if you still use it," |
290 |
- ewarn "rename it to something else starting with 70- to silence this deprecation" |
291 |
- ewarn "warning." |
292 |
- fi |
293 |
- done |
294 |
- |
295 |
- elog |
296 |
- elog "Starting from version >= 197 the new predictable network interface names are" |
297 |
- elog "used by default, see:" |
298 |
- elog "https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames" |
299 |
- elog "https://cgit.freedesktop.org/systemd/systemd/tree/src/udev/udev-builtin-net_id.c" |
300 |
- elog |
301 |
- elog "Example command to get the information for the new interface name before booting" |
302 |
- elog "(replace <ifname> with, for example, eth0):" |
303 |
- elog "# udevadm test-builtin net_id /sys/class/net/<ifname> 2> /dev/null" |
304 |
- elog |
305 |
- elog "You can use either kernel parameter \"net.ifnames=0\", create empty" |
306 |
- elog "file /etc/systemd/network/99-default.link, or symlink it to /dev/null" |
307 |
- elog "to disable the feature." |
308 |
- |
309 |
- if has_version 'sys-apps/biosdevname'; then |
310 |
- ewarn |
311 |
- ewarn "You can replace the functionality of sys-apps/biosdevname which has been" |
312 |
- ewarn "detected to be installed with the new predictable network interface names." |
313 |
- fi |
314 |
- |
315 |
- ewarn |
316 |
- ewarn "You need to restart udev as soon as possible to make the upgrade go" |
317 |
- ewarn "into effect." |
318 |
- ewarn "The method you use to do this depends on your init system." |
319 |
- if has_version 'sys-apps/openrc'; then |
320 |
- ewarn "For sys-apps/openrc users it is:" |
321 |
- ewarn "# /etc/init.d/udev --nodeps restart" |
322 |
- fi |
323 |
- |
324 |
- elog |
325 |
- elog "For more information on udev on Gentoo, upgrading, writing udev rules, and" |
326 |
- elog "fixing known issues visit:" |
327 |
- elog "https://wiki.gentoo.org/wiki/Udev" |
328 |
- elog "https://wiki.gentoo.org/wiki/Udev/upgrade" |
329 |
- |
330 |
- # If user has disabled 80-net-name-slot.rules using a empty file or a symlink to /dev/null, |
331 |
- # do the same for 80-net-setup-link.rules to keep the old behavior |
332 |
- local net_move=no |
333 |
- local net_name_slot_sym=no |
334 |
- local net_rules_path="${ROOT%/}"/etc/udev/rules.d |
335 |
- local net_name_slot="${net_rules_path}"/80-net-name-slot.rules |
336 |
- local net_setup_link="${net_rules_path}"/80-net-setup-link.rules |
337 |
- if [[ ! -e ${net_setup_link} ]]; then |
338 |
- [[ -f ${net_name_slot} && $(sed -e "/^#/d" -e "/^\W*$/d" ${net_name_slot} | wc -l) == 0 ]] && net_move=yes |
339 |
- if [[ -L ${net_name_slot} && $(readlink ${net_name_slot}) == /dev/null ]]; then |
340 |
- net_move=yes |
341 |
- net_name_slot_sym=yes |
342 |
- fi |
343 |
- fi |
344 |
- if [[ ${net_move} == yes ]]; then |
345 |
- ebegin "Copying ${net_name_slot} to ${net_setup_link}" |
346 |
- |
347 |
- if [[ ${net_name_slot_sym} == yes ]]; then |
348 |
- ln -nfs /dev/null "${net_setup_link}" |
349 |
- else |
350 |
- cp "${net_name_slot}" "${net_setup_link}" |
351 |
- fi |
352 |
- eend $? |
353 |
- fi |
354 |
- |
355 |
- # Update hwdb database in case the format is changed by udev version. |
356 |
- if has_version 'sys-apps/hwids[udev]'; then |
357 |
- udevadm hwdb --update --root="${ROOT%/}" |
358 |
- # Only reload when we are not upgrading to avoid potential race w/ incompatible hwdb.bin and the running udevd |
359 |
- # https://cgit.freedesktop.org/systemd/systemd/commit/?id=1fab57c209035f7e66198343074e9cee06718bda |
360 |
- [[ -z ${REPLACING_VERSIONS} ]] && udev_reload |
361 |
- fi |
362 |
-} |
363 |
|
364 |
diff --git a/sys-fs/udev/udev-245.ebuild b/sys-fs/udev/udev-245.ebuild |
365 |
deleted file mode 100644 |
366 |
index d5fc3ed104d..00000000000 |
367 |
--- a/sys-fs/udev/udev-245.ebuild |
368 |
+++ /dev/null |
369 |
@@ -1,237 +0,0 @@ |
370 |
-# Copyright 2003-2020 Gentoo Authors |
371 |
-# Distributed under the terms of the GNU General Public License v2 |
372 |
- |
373 |
-EAPI=7 |
374 |
- |
375 |
-inherit bash-completion-r1 linux-info meson ninja-utils multilib-minimal toolchain-funcs udev usr-ldscript |
376 |
- |
377 |
-if [[ ${PV} = 9999* ]]; then |
378 |
- EGIT_REPO_URI="https://github.com/systemd/systemd.git" |
379 |
- inherit git-r3 |
380 |
-else |
381 |
- MY_PV=${PV/_/-} |
382 |
- MY_P=systemd-${MY_PV} |
383 |
- S=${WORKDIR}/${MY_P} |
384 |
- SRC_URI="https://github.com/systemd/systemd/archive/v${MY_PV}/${MY_P}.tar.gz" |
385 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" |
386 |
-fi |
387 |
- |
388 |
-DESCRIPTION="Linux dynamic and persistent device naming support (aka userspace devfs)" |
389 |
-HOMEPAGE="https://www.freedesktop.org/wiki/Software/systemd" |
390 |
- |
391 |
-LICENSE="LGPL-2.1 MIT GPL-2" |
392 |
-SLOT="0" |
393 |
-IUSE="acl +kmod selinux static-libs" |
394 |
- |
395 |
-RESTRICT="test" |
396 |
- |
397 |
-BDEPEND=" |
398 |
- dev-util/gperf |
399 |
- >=dev-util/intltool-0.50 |
400 |
- >=sys-apps/coreutils-8.16 |
401 |
- virtual/pkgconfig |
402 |
- app-text/docbook-xml-dtd:4.2 |
403 |
- app-text/docbook-xml-dtd:4.5 |
404 |
- app-text/docbook-xsl-stylesheets |
405 |
- dev-libs/libxslt |
406 |
-" |
407 |
-COMMON_DEPEND=" |
408 |
- >=sys-apps/util-linux-2.30[${MULTILIB_USEDEP}] |
409 |
- sys-libs/libcap:0=[${MULTILIB_USEDEP}] |
410 |
- acl? ( sys-apps/acl ) |
411 |
- kmod? ( >=sys-apps/kmod-15 ) |
412 |
- selinux? ( >=sys-libs/libselinux-2.1.9 ) |
413 |
-" |
414 |
-DEPEND="${COMMON_DEPEND} |
415 |
- >=sys-kernel/linux-headers-3.9 |
416 |
-" |
417 |
-RDEPEND="${COMMON_DEPEND} |
418 |
- acct-group/kmem |
419 |
- acct-group/tty |
420 |
- acct-group/audio |
421 |
- acct-group/cdrom |
422 |
- acct-group/dialout |
423 |
- acct-group/disk |
424 |
- acct-group/input |
425 |
- acct-group/kvm |
426 |
- acct-group/lp |
427 |
- acct-group/render |
428 |
- acct-group/tape |
429 |
- acct-group/video |
430 |
- !sys-apps/gentoo-systemd-integration |
431 |
- !sys-apps/systemd |
432 |
-" |
433 |
-PDEPEND=">=sys-apps/hwids-20140304[udev] |
434 |
- >=sys-fs/udev-init-scripts-26" |
435 |
- |
436 |
-pkg_setup() { |
437 |
- if [[ ${MERGE_TYPE} != buildonly ]]; then |
438 |
- CONFIG_CHECK="~BLK_DEV_BSG ~DEVTMPFS ~!IDE ~INOTIFY_USER ~!SYSFS_DEPRECATED ~!SYSFS_DEPRECATED_V2 ~SIGNALFD ~EPOLL ~FHANDLE ~NET ~!FW_LOADER_USER_HELPER ~UNIX" |
439 |
- linux-info_pkg_setup |
440 |
- |
441 |
- # CONFIG_FHANDLE was introduced by 2.6.39 |
442 |
- local MINKV=2.6.39 |
443 |
- |
444 |
- if kernel_is -lt ${MINKV//./ }; then |
445 |
- eerror "Your running kernel is too old to run this version of ${P}" |
446 |
- eerror "You need to upgrade kernel at least to ${MINKV}" |
447 |
- fi |
448 |
- |
449 |
- if kernel_is -lt 3 7; then |
450 |
- ewarn "Your running kernel is too old to have firmware loader and" |
451 |
- ewarn "this version of ${P} doesn't have userspace firmware loader" |
452 |
- ewarn "If you need firmware support, you need to upgrade kernel at least to 3.7" |
453 |
- fi |
454 |
- fi |
455 |
-} |
456 |
- |
457 |
-src_prepare() { |
458 |
- cat <<-EOF > "${T}"/40-gentoo.rules |
459 |
- # Gentoo specific floppy and usb groups |
460 |
- ACTION=="add", SUBSYSTEM=="block", KERNEL=="fd[0-9]", GROUP="floppy" |
461 |
- ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="usb" |
462 |
- EOF |
463 |
- |
464 |
- if [[ -d "${WORKDIR}/patches" ]]; then |
465 |
- eapply "${WORKDIR}/patches" |
466 |
- fi |
467 |
- |
468 |
- local PATCHES=( |
469 |
- ) |
470 |
- |
471 |
- default |
472 |
-} |
473 |
- |
474 |
-meson_multilib_native_use() { |
475 |
- if multilib_is_native_abi && use "$1"; then |
476 |
- echo true |
477 |
- else |
478 |
- echo false |
479 |
- fi |
480 |
-} |
481 |
- |
482 |
-multilib_src_configure() { |
483 |
- local emesonargs=( |
484 |
- -Dacl=$(meson_multilib_native_use acl) |
485 |
- -Defi=false |
486 |
- -Dkmod=$(meson_multilib_native_use kmod) |
487 |
- -Dselinux=$(meson_multilib_native_use selinux) |
488 |
- -Dlink-udev-shared=false |
489 |
- -Dsplit-usr=true |
490 |
- -Drootlibdir="${EPREFIX}/usr/$(get_libdir)" |
491 |
- -Dstatic-libudev=$(usex static-libs true false) |
492 |
- |
493 |
- # Prevent automagic deps |
494 |
- -Dgcrypt=false |
495 |
- -Dlibcryptsetup=false |
496 |
- -Dlibidn=false |
497 |
- -Dlibidn2=false |
498 |
- -Dlibiptc=false |
499 |
- -Dseccomp=false |
500 |
- -Dlz4=false |
501 |
- -Dxz=false |
502 |
- ) |
503 |
- meson_src_configure |
504 |
-} |
505 |
- |
506 |
-src_configure() { |
507 |
- # Prevent conflicts with i686 cross toolchain, bug 559726 |
508 |
- tc-export AR CC NM OBJCOPY RANLIB |
509 |
- multilib-minimal_src_configure |
510 |
-} |
511 |
- |
512 |
-multilib_src_compile() { |
513 |
- # meson creates this link |
514 |
- local libudev=$(readlink src/udev/libudev.so.1) |
515 |
- |
516 |
- local targets=( |
517 |
- src/udev/${libudev} |
518 |
- ) |
519 |
- if use static-libs; then |
520 |
- targets+=( src/udev/libudev.a ) |
521 |
- fi |
522 |
- if multilib_is_native_abi; then |
523 |
- targets+=( |
524 |
- systemd-udevd |
525 |
- udevadm |
526 |
- src/udev/ata_id |
527 |
- src/udev/cdrom_id |
528 |
- src/udev/mtd_probe |
529 |
- src/udev/scsi_id |
530 |
- src/udev/v4l_id |
531 |
- man/udev.conf.5 |
532 |
- man/systemd.link.5 |
533 |
- man/hwdb.7 |
534 |
- man/udev.7 |
535 |
- man/systemd-udevd.service.8 |
536 |
- man/udevadm.8 |
537 |
- ) |
538 |
- fi |
539 |
- eninja "${targets[@]}" |
540 |
-} |
541 |
- |
542 |
-multilib_src_install() { |
543 |
- local libudev=$(readlink src/udev/libudev.so.1) |
544 |
- |
545 |
- dolib.so src/udev/{${libudev},libudev.so.1,libudev.so} |
546 |
- gen_usr_ldscript -a udev |
547 |
- use static-libs && dolib.a src/udev/libudev.a |
548 |
- |
549 |
- insinto "/usr/$(get_libdir)/pkgconfig" |
550 |
- doins src/libudev/libudev.pc |
551 |
- |
552 |
- if multilib_is_native_abi; then |
553 |
- into / |
554 |
- dobin udevadm |
555 |
- |
556 |
- exeinto /lib/systemd |
557 |
- doexe systemd-udevd |
558 |
- |
559 |
- exeinto /lib/udev |
560 |
- doexe src/udev/{ata_id,cdrom_id,mtd_probe,scsi_id,v4l_id} |
561 |
- |
562 |
- rm rules.d/99-systemd.rules || die |
563 |
- insinto /lib/udev/rules.d |
564 |
- doins rules.d/*.rules |
565 |
- |
566 |
- insinto /usr/share/pkgconfig |
567 |
- doins src/udev/udev.pc |
568 |
- |
569 |
- mv man/systemd-udevd.service.8 man/systemd-udevd.8 || die |
570 |
- rm man/systemd-udevd-{control,kernel}.socket.8 || die |
571 |
- doman man/*.[0-9] |
572 |
- fi |
573 |
-} |
574 |
- |
575 |
-multilib_src_install_all() { |
576 |
- doheader src/libudev/libudev.h |
577 |
- |
578 |
- insinto /etc/udev |
579 |
- doins src/udev/udev.conf |
580 |
- keepdir /etc/udev/{hwdb.d,rules.d} |
581 |
- |
582 |
- insinto /lib/systemd/network |
583 |
- doins network/99-default.link |
584 |
- |
585 |
- # see src_prepare() for content of 40-gentoo.rules |
586 |
- insinto /lib/udev/rules.d |
587 |
- doins "${T}"/40-gentoo.rules |
588 |
- doins "${S}"/rules.d/*.rules |
589 |
- |
590 |
- dobashcomp shell-completion/bash/udevadm |
591 |
- |
592 |
- insinto /usr/share/zsh/site-functions |
593 |
- doins shell-completion/zsh/_udevadm |
594 |
- |
595 |
- einstalldocs |
596 |
-} |
597 |
- |
598 |
-pkg_postinst() { |
599 |
- # Update hwdb database in case the format is changed by udev version. |
600 |
- if has_version 'sys-apps/hwids[udev]'; then |
601 |
- udevadm hwdb --update --root="${ROOT}" |
602 |
- # Only reload when we are not upgrading to avoid potential race w/ incompatible hwdb.bin and the running udevd |
603 |
- # https://cgit.freedesktop.org/systemd/systemd/commit/?id=1fab57c209035f7e66198343074e9cee06718bda |
604 |
- [[ -z ${REPLACING_VERSIONS} ]] && udev_reload |
605 |
- fi |
606 |
-} |