commit:     7dfddd056de5f23bc29591d212f4051ed9d0634e
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 23 20:31:26 2021 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Fri Jul 23 20:31:43 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7dfddd05

sys-libs/glibc: Revbump 2.33 patchset 5, systemd useflag

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 sys-libs/glibc/Manifest                            |  2 ++
 .../{glibc-9999.ebuild => glibc-2.33-r4.ebuild}    | 34 ++++++++++++----------
 sys-libs/glibc/glibc-9999.ebuild                   | 16 ++++++++--
 3 files changed, 33 insertions(+), 19 deletions(-)

diff --git a/sys-libs/glibc/Manifest b/sys-libs/glibc/Manifest
index e40b5761242..409375a4d1b 100644
--- a/sys-libs/glibc/Manifest
+++ b/sys-libs/glibc/Manifest
@@ -15,6 +15,8 @@ DIST glibc-2.32-patches-8.tar.xz 65532 BLAKE2B 
00c572cff396e52313d0324f7bc28192a
 DIST glibc-2.32.tar.xz 16744512 BLAKE2B 
a56b4afbb35315c5cd6dca0f62e44455dceae3e6e88a8453621f9a5394a60ddf10ca9309b2db0911830c7fd77e3faa5d94694eb94d5b2c05fc5285cef52255da
 SHA512 
8460c155b7003e04f18dabece4ed9ad77445fa2288a7dc08e80a8fc4c418828af29e0649951bd71a54ea2ad2d4da7570aafd9bdfe4a37e9951b772b442afe50b
 DIST glibc-2.33-patches-3.tar.xz 37076 BLAKE2B 
718ab706df85c966145958fb6137b5499c1989ff27a62c22beaabd530d641e4937e6d6ab0cf00052b649dc99c3acc319997640eef95669235dab864f5e0afc9f
 SHA512 
6d460976610a1c3bd3dabee9250008b5b3024ba486d598f85bc81cbd0b88188d125714b93a8b253f9b59b292e998f35118562e2a3ca90c418ff14fa53af2a7c3
 DIST glibc-2.33-patches-4.tar.xz 60124 BLAKE2B 
a7a99f39c16df241745772c31b10946dc44c51e6c09f8a447b905e7dd6ba529aee08f66a581431453c6665485ac1848861559aa3f0aaba8c2061c1f1eb77d9be
 SHA512 
05c33dc465a98097f836783bb5037dfa14b3a2c0c140014f642ea72954222ae919fe2db9573ee70ca9c1881b3b59dd4b815a8f39f331494fa12951c9012797ef
+DIST glibc-2.33-patches-5.tar.xz 63032 BLAKE2B 
e7f5952b2d84dc264e960d8bd3d9af4ca43089ca269735168933e80a0a74d7be1cadc90935b429cfdf5f0052d3ce3482a8f073b15378e7f9c05034535d9eae4d
 SHA512 
00c2f8f104e7899b76398a6a39f054cd109a71f5fcc4020304b7d7e15ae0c53df1c3acbafd56898427b3849452f9fb9e5064ff584d6c86c4d18c8a9201c89d29
 DIST glibc-2.33.tar.xz 17031280 BLAKE2B 
703d12121c1e2c5d9e0c6ba5341f5fb5c4d9111611a83f2360029b5de9c6e5a5611249d1833684a58ed4afdf49cae614365d87ec8721ba0e5d218f593b1f229d
 SHA512 
4cb5777b68b22b746cc51669e0e9282b43c83f6944e42656e6db7195ebb68f2f9260f130fdeb4e3cfc64efae4f58d96c43d388f52be1eb024ca448084684abdb
+DIST glibc-systemd-20210724.tar.gz 1475 BLAKE2B 
065bb4f364162ed168f9e777178ff2559f85db43c3585a45e63fda00dde34071674522cc2133d446c703737a36b1ba3148823ed53de8a4bc22b130a711a41dd0
 SHA512 
42ede5ef4b872e50cf3b02a3d305fd25675172a4e4461a8072cace688c4935c77267106a53164420e9181437501bc241dd3413806fd1f65eb87ee5ca877455ed
 DIST locale-gen-2.00.tar.gz 7738 BLAKE2B 
cde6de5ba3400aea24d0d5f1b79471f89f09fb747c8e371e38316c7ada92f967e0865f573f23cb353d82419c234724143c0aeca9eb70eb945dfc581cc7491eb1
 SHA512 
b609fddb9ec5e567c008841fef3390eddb5d6e7699a8271b3b8c0ade1b44b0ac2e5d1daa8b9acabf3432e3b88110b538a96f209b1ad0f9e988b7efce66606dff
 DIST locale-gen-2.10.tar.gz 7747 BLAKE2B 
49f569c5ae5260fca128503bc6f22d6f6f1cda817920c41fdadadf1527bbb4f3eb161f79fa729830666a4673e9092f99f4685ec8fcac8ddea0b8242bca9c1f4f
 SHA512 
e350e60d458d67638e3090711fca05af6fafac06c51b97648244549f8a0621dab7543f09dc7ad4c62392f13bdae8e5875dc6d0b6c3d83efc29d116bc2eef92db

diff --git a/sys-libs/glibc/glibc-9999.ebuild 
b/sys-libs/glibc/glibc-2.33-r4.ebuild
similarity index 98%
copy from sys-libs/glibc/glibc-9999.ebuild
copy to sys-libs/glibc/glibc-2.33-r4.ebuild
index 5e67473853c..a9e53d7039d 100644
--- a/sys-libs/glibc/glibc-9999.ebuild
+++ b/sys-libs/glibc/glibc-2.33-r4.ebuild
@@ -17,14 +17,13 @@ SLOT="2.2"
 EMULTILIB_PKG="true"
 
 # Gentoo patchset (ignored for live ebuilds)
-PATCH_VER=16
-PATCH_DEV=slyfox
+PATCH_VER=5
+PATCH_DEV=dilfridge
 
 if [[ ${PV} == 9999* ]]; then
        inherit git-r3
 else
        #KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc 
~ppc64 ~riscv ~s390 ~sparc ~x86"
-       KEYWORDS=""
        SRC_URI="mirror://gnu/glibc/${P}.tar.xz"
        SRC_URI+=" 
https://dev.gentoo.org/~${PATCH_DEV}/distfiles/${P}-patches-${PATCH_VER}.tar.xz";
 fi
@@ -35,10 +34,13 @@ GCC_BOOTSTRAP_VER=20201208
 
 LOCALE_GEN_VER=2.10
 
+GLIBC_SYSTEMD_VER=20210724
+
 SRC_URI+=" 
https://gitweb.gentoo.org/proj/locale-gen.git/snapshot/locale-gen-${LOCALE_GEN_VER}.tar.gz";
 SRC_URI+=" multilib-bootstrap? ( 
https://dev.gentoo.org/~dilfridge/distfiles/gcc-multilib-bootstrap-${GCC_BOOTSTRAP_VER}.tar.xz
 )"
+SRC_URI+=" systemd? ( 
https://gitweb.gentoo.org/proj/toolchain/glibc-systemd.git/snapshot/glibc-systemd-${GLIBC_SYSTEMD_VER}.tar.gz
 )"
 
-IUSE="audit caps cet compile-locales +crypt custom-cflags doc gd headers-only 
+multiarch multilib multilib-bootstrap nscd profile selinux +ssp +static-libs 
static-pie suid systemtap test vanilla"
+IUSE="audit caps cet compile-locales +crypt custom-cflags doc gd headers-only 
+multiarch multilib multilib-bootstrap nscd profile selinux +ssp +static-libs 
static-pie suid systemd systemtap test vanilla"
 
 # Minimum kernel version that glibc requires
 MIN_KERN_VER="3.2.0"
@@ -95,7 +97,7 @@ fi
 
 BDEPEND="
        ${PYTHON_DEPS}
-       >=app-misc/pax-utils-1.3.3
+       >=app-misc/pax-utils-0.1.10
        sys-devel/bison
        doc? ( sys-apps/texinfo )
        !compile-locales? (
@@ -113,6 +115,7 @@ COMMON_DEPEND="
        suid? ( caps? ( sys-libs/libcap ) )
        selinux? ( sys-libs/libselinux )
        systemtap? ( dev-util/systemtap )
+       !<net-misc/openssh-8.1_p1-r2
 "
 DEPEND="${COMMON_DEPEND}
        compile-locales? (
@@ -127,8 +130,6 @@ RDEPEND="${COMMON_DEPEND}
        sys-apps/grep
        virtual/awk
        sys-apps/gentoo-functions
-       !<app-misc/pax-utils-1.3.3
-       !<net-misc/openssh-8.1_p1-r2
 "
 
 RESTRICT="!test? ( test )"
@@ -756,6 +757,7 @@ src_unpack() {
 
        cd "${WORKDIR}" || die
        unpack locale-gen-${LOCALE_GEN_VER}.tar.gz
+       use systemd && unpack glibc-systemd-${GLIBC_SYSTEMD_VER}.tar.gz
 }
 
 src_prepare() {
@@ -1363,7 +1365,13 @@ glibc_do_src_install() {
 
        # Install misc network config files
        insinto /etc
-       doins posix/gai.conf nss/nsswitch.conf
+       doins posix/gai.conf
+
+       if use systemd ; then
+               doins 
"${WORKDIR}/glibc-systemd-${GLIBC_SYSTEMD_VER}/gentoo-config/nsswitch.conf"
+       else
+               doins nss/nsswitch.conf
+       fi
 
        # Gentoo-specific
        newins "${FILESDIR}"/host.conf-1 host.conf
@@ -1379,7 +1387,7 @@ glibc_do_src_install() {
 
                sed -i "${nscd_args[@]}" "${ED}"/etc/init.d/nscd
 
-               systemd_dounit nscd/nscd.service
+               use systemd && systemd_dounit nscd/nscd.service
                newtmpfiles nscd/nscd.tmpfiles nscd.conf
        fi
 
@@ -1449,12 +1457,6 @@ glibc_sanity_check() {
        # (e.g. /var/tmp/portage:${HOSTNAME})
        pushd "${ED}"/$(get_libdir) >/dev/null
 
-       # first let's find the actual dynamic linker here
-       # symlinks may point to the wrong abi
-       local newldso=$(find . -name 'ld-linux*.so.2' -type f -print -quit)
-
-       einfo Last-minute run tests with ${newldso} in /$(get_libdir) ...
-
        local x striptest
        for x in cal date env free ls true uname uptime ; do
                x=$(type -p ${x})
@@ -1467,7 +1469,7 @@ glibc_sanity_check() {
                # We need to clear the locale settings as the upgrade might want
                # incompatible locale data.  This test is not for verifying 
that.
                LC_ALL=C \
-               ${newldso} --library-path . ${x} > /dev/null \
+               ./ld-*.so --library-path . ${x} > /dev/null \
                        || die "simple run test (${x}) failed"
        done
 

diff --git a/sys-libs/glibc/glibc-9999.ebuild b/sys-libs/glibc/glibc-9999.ebuild
index 5e67473853c..8904487a6b0 100644
--- a/sys-libs/glibc/glibc-9999.ebuild
+++ b/sys-libs/glibc/glibc-9999.ebuild
@@ -35,10 +35,13 @@ GCC_BOOTSTRAP_VER=20201208
 
 LOCALE_GEN_VER=2.10
 
+GLIBC_SYSTEMD_VER=20210724
+
 SRC_URI+=" 
https://gitweb.gentoo.org/proj/locale-gen.git/snapshot/locale-gen-${LOCALE_GEN_VER}.tar.gz";
 SRC_URI+=" multilib-bootstrap? ( 
https://dev.gentoo.org/~dilfridge/distfiles/gcc-multilib-bootstrap-${GCC_BOOTSTRAP_VER}.tar.xz
 )"
+SRC_URI+=" systemd? ( 
https://gitweb.gentoo.org/proj/toolchain/glibc-systemd.git/snapshot/glibc-systemd-${GLIBC_SYSTEMD_VER}.tar.gz
 )"
 
-IUSE="audit caps cet compile-locales +crypt custom-cflags doc gd headers-only 
+multiarch multilib multilib-bootstrap nscd profile selinux +ssp +static-libs 
static-pie suid systemtap test vanilla"
+IUSE="audit caps cet compile-locales +crypt custom-cflags doc gd headers-only 
+multiarch multilib multilib-bootstrap nscd profile selinux +ssp +static-libs 
static-pie suid systemd systemtap test vanilla"
 
 # Minimum kernel version that glibc requires
 MIN_KERN_VER="3.2.0"
@@ -756,6 +759,7 @@ src_unpack() {
 
        cd "${WORKDIR}" || die
        unpack locale-gen-${LOCALE_GEN_VER}.tar.gz
+       use systemd && unpack glibc-systemd-${GLIBC_SYSTEMD_VER}.tar.gz
 }
 
 src_prepare() {
@@ -1363,7 +1367,13 @@ glibc_do_src_install() {
 
        # Install misc network config files
        insinto /etc
-       doins posix/gai.conf nss/nsswitch.conf
+       doins posix/gai.conf
+
+       if use systemd ; then
+               doins 
"${WORKDIR}/glibc-systemd-${GLIBC_SYSTEMD_VER}/gentoo-config/nsswitch.conf"
+       else
+               doins nss/nsswitch.conf
+       fi
 
        # Gentoo-specific
        newins "${FILESDIR}"/host.conf-1 host.conf
@@ -1379,7 +1389,7 @@ glibc_do_src_install() {
 
                sed -i "${nscd_args[@]}" "${ED}"/etc/init.d/nscd
 
-               systemd_dounit nscd/nscd.service
+               use systemd && systemd_dounit nscd/nscd.service
                newtmpfiles nscd/nscd.tmpfiles nscd.conf
        fi
 

Reply via email to