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-kernel/dracut/
Date: Mon, 29 May 2017 17:28:48
Message-Id: 1496078922.268c6a2f07b64c01a1314f740050cc2cd1e5c8f6.floppym@gentoo
1 commit: 268c6a2f07b64c01a1314f740050cc2cd1e5c8f6
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 3 19:32:32 2017 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Mon May 29 17:28:42 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=268c6a2f
7
8 sys-kernel/dracut: use pkg-config at runtime for systemd
9
10 sys-apps/systemd may be moving from /usr/lib/systemd to /lib/systemd
11 in a future release. dracut will automatically call pkg-config at run
12 time if these paths are not in the config file.
13
14 Package-Manager: Portage-2.3.5_p31, Repoman-2.3.2_p61
15
16 .../{dracut-044-r2.ebuild => dracut-044-r3.ebuild} | 23 +++++-----------------
17 1 file changed, 5 insertions(+), 18 deletions(-)
18
19 diff --git a/sys-kernel/dracut/dracut-044-r2.ebuild b/sys-kernel/dracut/dracut-044-r3.ebuild
20 similarity index 88%
21 rename from sys-kernel/dracut/dracut-044-r2.ebuild
22 rename to sys-kernel/dracut/dracut-044-r3.ebuild
23 index 89b9eaf1e9e..2af888711a7 100644
24 --- a/sys-kernel/dracut/dracut-044-r2.ebuild
25 +++ b/sys-kernel/dracut/dracut-044-r3.ebuild
26 @@ -16,7 +16,10 @@ IUSE="debug selinux systemd"
27 RESTRICT="test"
28
29 CDEPEND="virtual/udev
30 - systemd? ( >=sys-apps/systemd-199 )
31 + systemd? (
32 + >=sys-apps/systemd-199
33 + virtual/pkgconfig
34 + )
35 "
36 RDEPEND="${CDEPEND}
37 app-arch/cpio
38 @@ -95,23 +98,7 @@ src_prepare() {
39 sed -r -e "s|^(udevdir=).*$|\1${udevdir}|" \
40 -i "${S}/dracut.conf.d/gentoo.conf.example" || die
41
42 - if use systemd; then
43 - local systemdutildir="$(systemd_get_utildir)"
44 - local systemdsystemunitdir="$(systemd_get_systemunitdir)"
45 - local systemdsystemconfdir="$("$(tc-getPKG_CONFIG)" systemd \
46 - --variable=systemdsystemconfdir)"
47 - [[ ${systemdsystemconfdir} ]] \
48 - || systemdsystemconfdir=/etc/systemd/system
49 - einfo "Setting systemdutildir to ${systemdutildir} and ..."
50 - sed -e "5asystemdutildir=\"${systemdutildir}\"" \
51 - -i "${S}/dracut.conf.d/gentoo.conf.example" || die
52 - einfo "Setting systemdsystemunitdir to ${systemdsystemunitdir} and..."
53 - sed -e "6asystemdsystemunitdir=\"${systemdsystemunitdir}\"" \
54 - -i "${S}/dracut.conf.d/gentoo.conf.example" || die
55 - einfo "Setting systemdsystemconfdir to ${systemdsystemconfdir}..."
56 - sed -e "7asystemdsystemconfdir=\"${systemdsystemconfdir}\"" \
57 - -i "${S}/dracut.conf.d/gentoo.conf.example" || die
58 - else
59 + if ! use systemd; then
60 local systemdutildir="/lib/systemd"
61 einfo "Setting systemdutildir for standalone udev to" \
62 "${systemdutildir}..."