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 9FC9C1581E7 for ; Mon, 29 Apr 2024 16:20:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9FA18E2A10; Mon, 29 Apr 2024 16:20:53 +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 827A4E2A10 for ; Mon, 29 Apr 2024 16:20:53 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 70BD3340DE6 for ; Mon, 29 Apr 2024 16:20:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AD7F2177C for ; Mon, 29 Apr 2024 16:20:50 +0000 (UTC) From: "Ben Kohler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ben Kohler" Message-ID: <1714407626.89280d3b386a0efa0260bdf0f36ca29fe17a36d4.bkohler@gentoo> Subject: [gentoo-commits] proj/genkernel:master commit in: gkbuilds/ X-VCS-Repository: proj/genkernel X-VCS-Files: gkbuilds/lvm-2.03.22.gkbuild X-VCS-Directories: gkbuilds/ X-VCS-Committer: bkohler X-VCS-Committer-Name: Ben Kohler X-VCS-Revision: 89280d3b386a0efa0260bdf0f36ca29fe17a36d4 X-VCS-Branch: master Date: Mon, 29 Apr 2024 16:20:50 +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: bc5ca44c-3620-4a19-9929-8f00cc20cc5c X-Archives-Hash: 01bf4dc824cc0d0f3e6b66835fe9bea5 commit: 89280d3b386a0efa0260bdf0f36ca29fe17a36d4 Author: Ben Kohler gentoo org> AuthorDate: Mon Apr 29 16:20:26 2024 +0000 Commit: Ben Kohler gentoo org> CommitDate: Mon Apr 29 16:20:26 2024 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=89280d3b gkbuilds/lvm: move 2.03 changes to new file Signed-off-by: Ben Kohler gentoo.org> gkbuilds/lvm-2.03.22.gkbuild | 78 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/gkbuilds/lvm-2.03.22.gkbuild b/gkbuilds/lvm-2.03.22.gkbuild new file mode 100644 index 0000000..b806d77 --- /dev/null +++ b/gkbuilds/lvm-2.03.22.gkbuild @@ -0,0 +1,78 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +src_configure() { + # devicemapper needs to find udev + append-ldflags -Wl,-rpath-link,${BROOT}/usr/lib + + export ac_cv_header_security_pam_misc_h=no + export ac_cv_header_security_pam_appl_h=no + + local myconf=( + --enable-static_link + --enable-pkgconfig + --enable-dmeventd + --enable-cmdlib + --disable-lvmetad + --with-clvmd=none + --with-cluster=none + --disable-readline + --disable-selinux + --with-mirrors=internal + --with-snapshots=internal + --with-thin=internal + --with-cache=internal + --disable-udev-systemd-background-jobs + --enable-udev_sync + --enable-udev_rules + ) + + local texec + for texec in check dump repair restore + do + myconf+=( --with-thin-${texec}=/usr/sbin/thin_${texec} ) + myconf+=( --with-cache-${texec}=/usr/sbin/cache_${texec} ) + done + + # Hard-wire this to bash as some shells (dash) don't know + # "-o pipefail" #682404, #716496 + CONFIG_SHELL="/bin/bash" \ + gkconf "${myconf[@]}" +} + +src_install() { + default + + rm -rf \ + "${D}"/etc \ + "${D}"/usr/sbin/* \ + "${D}"/share + + cp -a libdm/dm-tools/dmsetup.static"${D}"/usr/sbin/lvm \ + || die "Failed to copy '${S}/tools/lvm.static' to '${D}/usr/sbin/lvm'!" + + "${STRIP}" --strip-all "${D}"/usr/sbin/lvm \ + || die "Failed to strip '${D}/usr/sbin/lvm'!" + + cp -a tools/dmsetup.static "${D}"/usr/sbin/dmsetup \ + || die "Failed to copy '${S}/tools/dmsetup.static' to '${D}/usr/sbin/dmsetup'!" + + "${STRIP}" --strip-all "${D}"/usr/sbin/dmsetup \ + || die "Failed to strip '${D}/usr/sbin/dmsetup'!" + + ln -s dmsetup "${D}"/usr/sbin/dmstats \ + || die "Failed to create symlink '${D}/usr/sbin/dmstats' to '${D}/usr/sbin/dmsetup'!" + + # For backward compatibility (packages like multipath-tools are + # expecting /sbin/dmsetup in udev rules). + mkdir "${D}"/sbin || die "Failed to create '${D}/sbin'!" + + ln -s ../usr/sbin/dmsetup "${D}"/sbin/dmsetup \ + || die "Failed to create symlink '${D}/sbin/dmsetup' to '${D}/usr/sbin/dmsetup'!" + + ln -s ../usr/sbin/dmstats "${D}"/sbin/dmstats \ + || die "Failed to create symlink '${D}/sbin/dmstats' to '${D}/usr/sbin/dmstats'!" + + ln -s ../usr/sbin/lvm "${D}"/sbin/lvm \ + || die "Failed to create symlink '${D}/sbin/lvm' to '${D}/usr/sbin/lvm'!" +}