sys-apps/systemd: always pass -Drootlibdir=/usr/...
authorMike Gilbert <floppym@gentoo.org>
Sat, 26 Oct 2019 18:16:20 +0000 (14:16 -0400)
committerMike Gilbert <floppym@gentoo.org>
Sat, 26 Oct 2019 18:17:02 +0000 (14:17 -0400)
This ensures the pkgconfig file points to the correct directory for
static linking.

Package-Manager: Portage-2.3.78_p4, Repoman-2.3.17_p100
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
sys-apps/systemd/systemd-243-r2.ebuild [moved from sys-apps/systemd/systemd-243-r1.ebuild with 97% similarity]
sys-apps/systemd/systemd-9999.ebuild

similarity index 97%
rename from sys-apps/systemd/systemd-243-r1.ebuild
rename to sys-apps/systemd/systemd-243-r2.ebuild
index 261851cf5bbcf5902002a236df26f3669fe3ef8d..0bb00e81ae5336019a18e56bca00f491ed350966 100644 (file)
@@ -237,6 +237,7 @@ multilib_src_configure() {
                # make sure we get /bin:/sbin in PATH
                -Dsplit-usr=$(usex split-usr true false)
                -Drootprefix="$(usex split-usr "${EPREFIX:-/}" "${EPREFIX}/usr")"
+               -Drootlibdir="${EPREFIX}/usr/$(get_libdir)"
                -Dsysvinit-path=
                -Dsysvrcnd-path=
                # Avoid infinite exec recursion, bug 642724
@@ -305,12 +306,6 @@ multilib_src_configure() {
                -Dstatic-libudev=$(usex static-libs true false)
        )
 
-       if multilib_is_native_abi; then
-               myconf+=( -Drootlibdir="${EPREFIX}$(usex split-usr '' /usr)/$(get_libdir)" )
-       else
-               myconf+=( -Drootlibdir="${EPREFIX}/usr/$(get_libdir)" )
-       fi
-
        meson_src_configure "${myconf[@]}"
 }
 
@@ -370,12 +365,9 @@ multilib_src_install_all() {
                # Avoid breaking boot/reboot
                dosym ../../../lib/systemd/systemd /usr/lib/systemd/systemd
                dosym ../../../lib/systemd/systemd-shutdown /usr/lib/systemd/systemd-shutdown
-
-               if use static-libs; then
-                       mv "${ED}/$(get_libdir)"/lib{systemd,udev}.a "${ED}/usr/$(get_libdir)/" || die
-                       gen_usr_ldscript lib{systemd,udev}.so
-               fi
        fi
+
+       gen_usr_ldscript -a systemd udev
 }
 
 migrate_locale() {
index 261851cf5bbcf5902002a236df26f3669fe3ef8d..0bb00e81ae5336019a18e56bca00f491ed350966 100644 (file)
@@ -237,6 +237,7 @@ multilib_src_configure() {
                # make sure we get /bin:/sbin in PATH
                -Dsplit-usr=$(usex split-usr true false)
                -Drootprefix="$(usex split-usr "${EPREFIX:-/}" "${EPREFIX}/usr")"
+               -Drootlibdir="${EPREFIX}/usr/$(get_libdir)"
                -Dsysvinit-path=
                -Dsysvrcnd-path=
                # Avoid infinite exec recursion, bug 642724
@@ -305,12 +306,6 @@ multilib_src_configure() {
                -Dstatic-libudev=$(usex static-libs true false)
        )
 
-       if multilib_is_native_abi; then
-               myconf+=( -Drootlibdir="${EPREFIX}$(usex split-usr '' /usr)/$(get_libdir)" )
-       else
-               myconf+=( -Drootlibdir="${EPREFIX}/usr/$(get_libdir)" )
-       fi
-
        meson_src_configure "${myconf[@]}"
 }
 
@@ -370,12 +365,9 @@ multilib_src_install_all() {
                # Avoid breaking boot/reboot
                dosym ../../../lib/systemd/systemd /usr/lib/systemd/systemd
                dosym ../../../lib/systemd/systemd-shutdown /usr/lib/systemd/systemd-shutdown
-
-               if use static-libs; then
-                       mv "${ED}/$(get_libdir)"/lib{systemd,udev}.a "${ED}/usr/$(get_libdir)/" || die
-                       gen_usr_ldscript lib{systemd,udev}.so
-               fi
        fi
+
+       gen_usr_ldscript -a systemd udev
 }
 
 migrate_locale() {