From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B4F95158086 for ; Mon, 15 Nov 2021 03:35:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C3FE8E0893; Mon, 15 Nov 2021 03:35:13 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9397BE0893 for ; Mon, 15 Nov 2021 03:35:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 264EF342AB2 for ; Mon, 15 Nov 2021 03:35:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1F38E1C3 for ; Mon, 15 Nov 2021 03:35:07 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1636939406.ab723c54aa0fef50384dbbb936614c7430f5413b.whissi@gentoo> Subject: [gentoo-commits] proj/genkernel:master commit in: / X-VCS-Repository: proj/genkernel X-VCS-Files: gen_initramfs.sh X-VCS-Directories: / X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: ab723c54aa0fef50384dbbb936614c7430f5413b X-VCS-Branch: master Date: Mon, 15 Nov 2021 03:35:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: dc6d2c7e-c3d2-4e4d-bbf0-8adbbc8744ce X-Archives-Hash: ea7becb722ea6d16e1b9d9093d638c4d commit: ab723c54aa0fef50384dbbb936614c7430f5413b Author: Thomas Deutschmann gentoo org> AuthorDate: Sun Nov 14 23:57:12 2021 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Mon Nov 15 01:23:26 2021 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=ab723c54 gen_initramfs.sh: append_busybox: NSS dns module was merged into libc in >=glibc-2.34 Bug: https://bugs.gentoo.org/823716 Signed-off-by: Thomas Deutschmann gentoo.org> gen_initramfs.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/gen_initramfs.sh b/gen_initramfs.sh index 56d6a03..fef8046 100755 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -562,8 +562,16 @@ append_busybox() { if isTrue "$(is_glibc)" then local libdir=$(get_chost_libdir) - mkdir -p "${TDIR}"/lib || gen_die "Failed to create '${TDIR}/lib'!" - copy_system_binaries "${TDIR}"/lib "${libdir}"/libnss_dns.so + local libnss_dns="${libdir}/libnss_dns.so" + + # NSS dns module was moved into libc in >=glibc-2.34 + # but when this file exists we are probably dealing with older glibc + # and need to manually copy the module. + if [[ -f "${libnss_dns}" ]] + then + mkdir -p "${TDIR}"/lib || gen_die "Failed to create '${TDIR}/lib'!" + copy_system_binaries "${TDIR}"/lib "${libnss_dns}" + fi fi log_future_cpio_content