From: "Ben Kohler" <bkohler@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/genkernel:master commit in: gkbuilds/
Date: Mon, 29 Apr 2024 16:20:50 +0000 (UTC) [thread overview]
Message-ID: <1714407626.89280d3b386a0efa0260bdf0f36ca29fe17a36d4.bkohler@gentoo> (raw)
commit: 89280d3b386a0efa0260bdf0f36ca29fe17a36d4
Author: Ben Kohler <bkohler <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 29 16:20:26 2024 +0000
Commit: Ben Kohler <bkohler <AT> gentoo <DOT> 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 <bkohler <AT> 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'!"
+}
next reply other threads:[~2024-04-29 16:20 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-29 16:20 Ben Kohler [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-05-23 19:12 [gentoo-commits] proj/genkernel:master commit in: gkbuilds/ Ben Kohler
2024-05-22 14:59 Ben Kohler
2024-05-03 17:10 Ben Kohler
2024-04-29 17:26 Ben Kohler
2024-04-29 17:13 Ben Kohler
2024-04-29 17:13 Ben Kohler
2024-04-29 16:20 Ben Kohler
2024-04-29 15:42 Ben Kohler
2024-04-27 13:55 Ben Kohler
2023-07-05 20:41 Sam James
2022-07-04 4:48 Robin H. Johnson
2022-05-16 5:34 Robin H. Johnson
2022-05-16 5:34 Robin H. Johnson
2021-11-15 18:32 Thomas Deutschmann
2021-11-15 18:32 Thomas Deutschmann
2021-10-01 18:44 Thomas Deutschmann
2021-07-06 18:07 Thomas Deutschmann
2021-03-15 20:02 Thomas Deutschmann
2021-02-18 13:32 Thomas Deutschmann
2021-02-18 13:32 Thomas Deutschmann
2021-02-08 22:10 Thomas Deutschmann
2020-08-28 20:18 Thomas Deutschmann
2020-08-28 20:18 Thomas Deutschmann
2020-08-28 20:18 Thomas Deutschmann
2020-08-27 17:53 Thomas Deutschmann
2020-08-25 16:48 Thomas Deutschmann
2020-08-19 1:14 Thomas Deutschmann
2020-07-23 23:57 Thomas Deutschmann
2020-07-21 0:23 Thomas Deutschmann
2020-07-16 15:03 Thomas Deutschmann
2020-07-16 15:03 Thomas Deutschmann
2020-07-16 15:03 Thomas Deutschmann
2020-07-16 15:03 Thomas Deutschmann
2020-06-20 2:17 Thomas Deutschmann
2020-06-16 13:53 Thomas Deutschmann
2020-06-16 13:53 Thomas Deutschmann
2020-05-14 21:56 Thomas Deutschmann
2020-04-07 23:03 Thomas Deutschmann
2020-02-15 21:08 Thomas Deutschmann
2020-02-15 21:08 Thomas Deutschmann
2019-12-31 2:41 Thomas Deutschmann
2019-12-14 0:26 Thomas Deutschmann
2019-11-25 15:02 Thomas Deutschmann
2019-10-02 22:45 Thomas Deutschmann
2019-09-01 20:35 Thomas Deutschmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1714407626.89280d3b386a0efa0260bdf0f36ca29fe17a36d4.bkohler@gentoo \
--to=bkohler@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox