public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Lars Wendler" <polynomial-c@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/lvm2/
Date: Thu, 11 Oct 2018 10:39:45 +0000 (UTC)	[thread overview]
Message-ID: <1539254372.96e8fad46595fa0e00540402d5cc2cdde2d28333.polynomial-c@gentoo> (raw)

commit:     96e8fad46595fa0e00540402d5cc2cdde2d28333
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 11 10:11:37 2018 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Thu Oct 11 10:39:32 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96e8fad4

sys-fs/lvm2: Removed two dead configure options

-reworked src_configure() quite a bit
-removed lvm1 USE flag
-removed unused eutils eclass

Closes: https://bugs.gentoo.org/662834
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

 sys-fs/lvm2/lvm2-2.02.181.ebuild | 122 ++++++++++++++++++---------------------
 1 file changed, 57 insertions(+), 65 deletions(-)

diff --git a/sys-fs/lvm2/lvm2-2.02.181.ebuild b/sys-fs/lvm2/lvm2-2.02.181.ebuild
index 9e8a0dfcb8f..749cef8bdd5 100644
--- a/sys-fs/lvm2/lvm2-2.02.181.ebuild
+++ b/sys-fs/lvm2/lvm2-2.02.181.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-inherit autotools eutils linux-info multilib systemd toolchain-funcs udev flag-o-matic
+inherit autotools linux-info multilib systemd toolchain-funcs udev flag-o-matic
 
 DESCRIPTION="User-land utilities for LVM2 (device-mapper) software"
 HOMEPAGE="https://sourceware.org/lvm2/"
@@ -12,8 +12,8 @@ SRC_URI="ftp://sourceware.org/pub/lvm2/${PN/lvm/LVM}.${PV}.tgz
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
-IUSE="readline static static-libs systemd clvm cman corosync lvm1 lvm2create_initrd openais sanlock selinux +udev +thin device-mapper-only"
-REQUIRED_USE="device-mapper-only? ( !clvm !cman !corosync !lvm1 !lvm2create_initrd !openais !sanlock !thin )
+IUSE="readline static static-libs systemd clvm cman corosync lvm2create_initrd openais sanlock selinux +udev +thin device-mapper-only"
+REQUIRED_USE="device-mapper-only? ( !clvm !cman !corosync !lvm2create_initrd !openais !sanlock !thin )
 	systemd? ( udev )
 	clvm? ( !systemd )"
 
@@ -120,61 +120,53 @@ src_prepare() {
 	sed -i -e "s:/usr/bin/true:$(type -P true):" scripts/blk_availability_systemd_red_hat.service.in || die #517514
 
 	# Without thin-privision-tools, there is nothing to install for target install_man7:
-	use thin || { sed -i -e '/^install_lvm2/s:install_man7::' man/Makefile.in || die; }
+	if ! use thin ; then
+		sed -i -e '/^install_lvm2/s:install_man7::' man/Makefile.in || die
+	fi
 
 	eautoreconf
 }
 
 src_configure() {
 	filter-flags -flto
-	local myconf=()
-	local buildmode
-
-	myconf+=( $(use_enable !device-mapper-only dmeventd) )
-	myconf+=( $(use_enable !device-mapper-only cmdlib) )
-	myconf+=( $(use_enable !device-mapper-only applib) )
-	myconf+=( $(use_enable !device-mapper-only fsadm) )
-	myconf+=( $(use_enable !device-mapper-only lvmetad) )
-	use device-mapper-only && myconf+=( --disable-udev-systemd-background-jobs )
+	local myeconfargs=()
 
 	# Most of this package does weird stuff.
 	# The build options are tristate, and --without is NOT supported
 	# options: 'none', 'internal', 'shared'
-	if use static; then
-		buildmode="internal"
+	myeconfargs+=(
+		$(use_enable !device-mapper-only dmeventd)
+		$(use_enable !device-mapper-only cmdlib)
+		$(use_enable !device-mapper-only applib)
+		$(use_enable !device-mapper-only fsadm)
+		$(use_enable !device-mapper-only lvmetad)
+		$(usex device-mapper-only --disable-udev-systemd-background-jobs '')
+
 		# This only causes the .static versions to become available
-		myconf+=( --enable-static_link )
-	else
-		buildmode="shared"
-	fi
-	dmbuildmode=$(use !device-mapper-only && echo internal || echo none)
+		$(usex static --enable-static_link '')
+
+		# dmeventd requires mirrors to be internal, and snapshot available
+		# so we cannot disable them
+		--with-mirrors="$(usex device-mapper-only none internal)"
+		--with-snapshots="$(usex device-mapper-only none internal)"
+
+		# disable O_DIRECT support on hppa, breaks pv detection (#99532)
+		$(usex hppa --disable-o_direct '')
+	)
 
-	# dmeventd requires mirrors to be internal, and snapshot available
-	# so we cannot disable them
-	myconf+=( --with-mirrors=${dmbuildmode} )
-	myconf+=( --with-snapshots=${dmbuildmode} )
 	if use thin; then
-		myconf+=( --with-thin=internal --with-cache=internal )
+		myeconfargs+=( --with-thin=internal --with-cache=internal )
 		local texec
 		for texec in check dump repair restore; do
-			myconf+=( --with-thin-${texec}="${EPREFIX}"/sbin/thin_${texec} )
-			myconf+=( --with-cache-${texec}="${EPREFIX}"/sbin/cache_${texec} )
+			myeconfargs+=( --with-thin-${texec}="${EPREFIX}"/sbin/thin_${texec} )
+			myeconfargs+=( --with-cache-${texec}="${EPREFIX}"/sbin/cache_${texec} )
 		done
 	else
-		myconf+=( --with-thin=none --with-cache=none )
+		myeconfargs+=( --with-thin=none --with-cache=none )
 	fi
 
-	if use lvm1; then
-		myconf+=( --with-lvm1=${buildmode} )
-	else
-		myconf+=( --with-lvm1=none )
-	fi
-
-	# disable O_DIRECT support on hppa, breaks pv detection (#99532)
-	use hppa && myconf+=( --disable-o_direct )
-
 	if use clvm; then
-		myconf+=( --with-cluster=${buildmode} )
+		myeconfargs+=( --with-cluster="$(usex static internal shared)" )
 		# 4-state! Make sure we get it right, per bug 210879
 		# Valid options are: none, cman, gulm, all
 		#
@@ -191,35 +183,35 @@ src_configure() {
 		use corosync && clvmd="${clvmd:+$clvmd,}corosync"
 		use openais && clvmd="${clvmd:+$clvmd,}openais"
 		[ -z "${clvmd}" ] && clvmd="none"
-		myconf+=( --with-clvmd=${clvmd} )
-		myconf+=( --with-pool=${buildmode} )
-		myconf+=( --enable-lvmlockd-dlm )
+		myeconfargs+=( --with-clvmd=${clvmd} )
+		myeconfargs+=( --enable-lvmlockd-dlm )
 	else
-		myconf+=( --with-clvmd=none --with-cluster=none )
+		myeconfargs+=( --with-clvmd=none --with-cluster=none )
 	fi
 
-	econf \
-		$(use_enable readline) \
-		$(use_enable selinux) \
-		--enable-pkgconfig \
-		--with-confdir="${EPREFIX}"/etc \
-		--exec-prefix="${EPREFIX}" \
-		--sbindir="${EPREFIX}/sbin" \
-		--with-staticdir="${EPREFIX}"/sbin \
-		--libdir="${EPREFIX}/$(get_libdir)" \
-		--with-usrlibdir="${EPREFIX}/usr/$(get_libdir)" \
-		--with-default-dm-run-dir=/run \
-		--with-default-run-dir=/run/lvm \
-		--with-default-locking-dir=/run/lock/lvm \
-		--with-default-pid-dir=/run \
-		$(use_enable udev udev_rules) \
-		$(use_enable udev udev_sync) \
-		$(use_with udev udevdir "$(get_udevdir)"/rules.d) \
-		$(use_enable sanlock lvmlockd-sanlock) \
-		$(use_enable systemd udev-systemd-background-jobs) \
-		--with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \
-		${myconf[@]} \
+	myeconfargs+=(
+		$(use_enable readline)
+		$(use_enable selinux)
+		--enable-pkgconfig
+		--with-confdir="${EPREFIX}"/etc
+		--exec-prefix="${EPREFIX}"
+		--sbindir="${EPREFIX}/sbin"
+		--with-staticdir="${EPREFIX}"/sbin
+		--libdir="${EPREFIX}/$(get_libdir)"
+		--with-usrlibdir="${EPREFIX}/usr/$(get_libdir)"
+		--with-default-dm-run-dir=/run
+		--with-default-run-dir=/run/lvm
+		--with-default-locking-dir=/run/lock/lvm
+		--with-default-pid-dir=/run
+		$(use_enable udev udev_rules)
+		$(use_enable udev udev_sync)
+		$(use_with udev udevdir "$(get_udevdir)"/rules.d)
+		$(use_enable sanlock lvmlockd-sanlock)
+		$(use_enable systemd udev-systemd-background-jobs)
+		--with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
 		CLDFLAGS="${LDFLAGS}"
+	)
+	econf "${myeconfargs[@]}"
 }
 
 src_compile() {
@@ -273,7 +265,7 @@ src_install() {
 		dolib.a daemons/dmeventd/libdevmapper-event.a
 		#gen_usr_ldscript libdevmapper-event.so
 	else
-		rm -f "${ED}"usr/$(get_libdir)/{libdevmapper-event,liblvm2cmd,liblvm2app,libdevmapper}.a
+		rm -f "${ED%/}"/usr/$(get_libdir)/{libdevmapper-event,liblvm2cmd,liblvm2app,libdevmapper}.a
 	fi
 
 	if use lvm2create_initrd; then


             reply	other threads:[~2018-10-11 10:39 UTC|newest]

Thread overview: 227+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-11 10:39 Lars Wendler [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-11-20 14:36 [gentoo-commits] repo/gentoo:master commit in: sys-fs/lvm2/ Sam James
2024-11-18 10:28 Arthur Zamarin
2024-11-18  1:43 Sam James
2024-11-17 16:15 Mike Gilbert
2024-05-02 14:55 Mike Gilbert
2024-04-26 18:38 Mike Gilbert
2024-04-26 13:25 Andreas K. Hüttel
2024-01-21  7:58 Viorel Munteanu
2024-01-14  1:38 Sam James
2023-12-22  7:23 Arthur Zamarin
2023-12-16  7:09 Arthur Zamarin
2023-12-16  3:08 Sam James
2023-12-08 20:54 Arthur Zamarin
2023-12-02 11:13 Arthur Zamarin
2023-11-26 23:29 Sam James
2023-10-16 19:56 Mike Gilbert
2023-10-12 14:34 David Seifert
2023-09-07 20:26 WANG Xuerui
2023-09-06  9:19 Sam James
2023-09-06  8:47 Sam James
2023-08-23  8:14 David Seifert
2023-08-02 22:02 Sam James
2023-06-24  2:59 Sam James
2023-06-02 13:29 David Seifert
2023-06-01 21:17 Sam James
2023-06-01 21:14 Sam James
2023-06-01 21:10 Sam James
2023-05-31 16:50 Sam James
2023-05-31 16:01 Sam James
2023-05-31 12:42 Arthur Zamarin
2023-05-31 12:42 Arthur Zamarin
2023-05-31 12:42 Arthur Zamarin
2023-05-17 19:29 David Seifert
2023-05-14 17:11 Sam James
2023-05-14  0:41 Sam James
2023-05-10 21:23 David Seifert
2023-05-06  9:23 Arthur Zamarin
2023-05-06  9:23 Arthur Zamarin
2023-05-06  9:22 Arthur Zamarin
2023-05-06  9:19 Arthur Zamarin
2023-05-06  9:17 Arthur Zamarin
2023-05-01  5:56 Sam James
2023-04-28 15:55 Arthur Zamarin
2023-04-27 23:29 Sam James
2023-04-23 16:13 David Seifert
2023-03-31 11:35 Arthur Zamarin
2023-03-31 11:35 Arthur Zamarin
2023-03-31 11:35 Arthur Zamarin
2023-03-25 10:24 David Seifert
2023-03-25  6:35 Arthur Zamarin
2023-03-24 14:28 Arthur Zamarin
2023-03-23 11:24 Sam James
2023-03-23 11:24 Sam James
2023-03-23 11:24 Sam James
2023-01-15 15:12 Sam James
2023-01-13 10:50 Sam James
2023-01-13 10:50 Sam James
2023-01-13 10:50 Sam James
2023-01-13 10:50 Sam James
2023-01-01 21:05 Sam James
2022-12-20 20:39 Sam James
2022-12-20  9:14 Sam James
2022-12-19 18:52 David Seifert
2022-12-19 18:30 Arthur Zamarin
2022-12-19 18:30 Arthur Zamarin
2022-12-19 18:21 Arthur Zamarin
2022-11-28 11:31 David Seifert
2022-11-28  2:34 Mike Gilbert
2022-11-26 11:51 David Seifert
2022-11-21 19:53 Mike Gilbert
2022-11-21 19:53 Mike Gilbert
2022-11-17 23:18 Sam James
2022-10-28 10:38 Sam James
2022-10-27 20:43 Mike Gilbert
2022-10-27 13:48 Mike Gilbert
2022-10-26 19:19 Mike Gilbert
2022-10-26 18:11 Mike Gilbert
2022-10-22 15:01 Arthur Zamarin
2022-10-20 10:56 Jakov Smolić
2022-10-20 10:52 Jakov Smolić
2022-10-19  6:36 Agostino Sarubbo
2022-10-19  6:36 Agostino Sarubbo
2022-10-19  6:35 Agostino Sarubbo
2022-10-19  6:35 Agostino Sarubbo
2022-10-19  0:28 Sam James
2022-10-18 18:09 David Seifert
2022-07-07 18:06 Mike Gilbert
2022-07-07 18:02 Mike Gilbert
2022-07-07 18:02 Mike Gilbert
2022-06-24 16:25 Mike Gilbert
2022-05-08 16:12 WANG Xuerui
2022-04-24 15:14 Mike Gilbert
2022-01-15 23:31 James Le Cuirot
2021-11-22 17:51 Mike Gilbert
2021-11-09 16:01 Mike Gilbert
2021-11-09 16:01 Mike Gilbert
2021-11-09 16:01 Mike Gilbert
2021-11-07  7:13 Sam James
2021-11-07  4:31 Sam James
2021-09-19 21:37 Mike Gilbert
2021-09-19 21:37 Mike Gilbert
2021-09-07 17:37 Mike Gilbert
2021-09-05  0:50 Mike Gilbert
2021-09-03 21:05 Sam James
2021-09-03 20:50 Mike Gilbert
2021-08-17  0:56 Sam James
2021-08-13 21:54 Sam James
2021-08-13 21:54 Sam James
2021-08-13  1:10 Sam James
2021-08-11 20:36 Lars Wendler
2021-08-11  6:41 Agostino Sarubbo
2021-08-11  0:24 Sam James
2021-08-11  0:02 Sam James
2021-08-10 15:36 Agostino Sarubbo
2021-07-12 14:00 Mike Gilbert
2021-05-09  8:43 Lars Wendler
2021-01-24 21:05 Mike Gilbert
2021-01-08 19:35 Lars Wendler
2020-12-06  6:19 Mike Gilbert
2020-08-24 12:36 Thomas Deutschmann
2020-08-24 12:36 Thomas Deutschmann
2020-08-10  4:49 Lars Wendler
2020-05-13 22:39 Jonas Stein
2020-04-22 16:45 Mart Raudsepp
2020-04-21 19:45 Sergei Trofimovich
2020-04-20 18:04 Agostino Sarubbo
2020-04-20 18:03 Agostino Sarubbo
2020-04-20 13:29 Agostino Sarubbo
2020-04-20 13:27 Agostino Sarubbo
2020-04-20  9:29 Agostino Sarubbo
2020-04-20  7:54 Agostino Sarubbo
2020-04-19 19:00 Agostino Sarubbo
2020-04-09 17:38 Göktürk Yüksek
2020-03-26 20:24 Lars Wendler
2020-03-26 20:24 Lars Wendler
2020-02-23 12:29 Luca Barbato
2020-02-11 13:48 Lars Wendler
2019-12-01 19:28 Lars Wendler
2019-11-28 23:21 Thomas Deutschmann
2019-11-28 10:26 Lars Wendler
2019-11-28  9:09 Lars Wendler
2019-11-27 22:27 Thomas Deutschmann
2019-10-27 15:31 Michał Górny
2019-09-08 18:10 Mike Gilbert
2019-09-06 19:44 Thomas Deutschmann
2019-09-06 19:44 Thomas Deutschmann
2019-09-06 19:44 Thomas Deutschmann
2019-07-28 10:55 Mikle Kolyada
2019-07-28 10:55 Mikle Kolyada
2019-07-24 10:07 Lars Wendler
2019-07-23  0:03 Aaron Bauman
2019-06-18  8:22 Lars Wendler
2019-06-12 14:37 Lars Wendler
2019-06-11 22:15 Sergei Trofimovich
2019-06-08 18:20 Agostino Sarubbo
2019-06-07  8:01 Agostino Sarubbo
2019-06-06  6:58 Agostino Sarubbo
2019-06-06  6:54 Agostino Sarubbo
2019-06-06  6:51 Agostino Sarubbo
2019-06-05 18:14 Sergei Trofimovich
2019-06-05 13:17 Agostino Sarubbo
2019-06-04 22:13 Thomas Deutschmann
2019-05-07 20:09 Robin H. Johnson
2019-05-02 21:12 Mikle Kolyada
2019-04-28 20:39 Mikle Kolyada
2019-04-17 11:57 Mikle Kolyada
2019-04-16  3:41 Aaron Bauman
2019-04-08 18:34 Lars Wendler
2019-04-07 21:16 Sergei Trofimovich
2019-04-02  9:11 Mikle Kolyada
2019-04-01 17:21 Thomas Deutschmann
2019-02-12 12:42 Mikle Kolyada
2019-02-12 12:42 Mikle Kolyada
2018-12-12 11:57 Lars Wendler
2018-12-11 21:46 Robin H. Johnson
2018-12-11 21:46 Robin H. Johnson
2018-08-31 16:16 Robin H. Johnson
2018-08-05  5:50 Robin H. Johnson
2018-06-06  5:59 Jeroen Roovers
2018-05-19 21:31 Robin H. Johnson
2018-05-19 18:15 Sergei Trofimovich
2018-05-19 18:15 Sergei Trofimovich
2018-05-19 18:15 Sergei Trofimovich
2018-03-26  3:55 Matt Turner
2018-03-26  3:55 Matt Turner
2018-03-26  3:55 Matt Turner
2018-03-26  3:55 Matt Turner
2018-03-17 19:44 Matt Turner
2018-03-17 19:44 Matt Turner
2018-03-17 19:44 Matt Turner
2018-03-17 19:44 Matt Turner
2018-02-23 10:15 Sergei Trofimovich
2017-11-23 23:02 Robin H. Johnson
2017-08-07 19:41 Robin H. Johnson
2017-07-12  8:13 Sergei Trofimovich
2017-07-12  8:13 Sergei Trofimovich
2017-07-12  8:13 Sergei Trofimovich
2017-05-04 18:58 Robin H. Johnson
2017-04-30  8:22 Jeroen Roovers
2017-04-27 11:23 Agostino Sarubbo
2017-04-20 11:11 Sergey Popov
2017-04-19 11:41 Michael Weber
2017-04-19  7:31 Michael Weber
2017-04-01 16:06 Agostino Sarubbo
2017-03-25 14:43 Agostino Sarubbo
2016-10-01 13:40 Jeroen Roovers
2016-05-26 12:37 Tobias Klausmann
2016-04-02  5:07 Mike Frysinger
2016-03-24  6:03 Markus Meier
2016-03-20 11:53 Agostino Sarubbo
2016-03-17 10:50 Agostino Sarubbo
2016-03-15  4:06 Doug Goldstein
2016-03-05 16:32 Mikle Kolyada
2016-02-26 21:26 Doug Goldstein
2015-12-28  0:30 Robin H. Johnson
2015-11-07 23:18 Mikle Kolyada
2015-11-02 10:55 Sergey Popov
2015-10-16 11:07 Mikle Kolyada
2015-10-03 16:55 Julian Ospald
2015-10-03  8:55 Markus Meier
2015-10-03  8:07 Jeroen Roovers
2015-10-03  7:06 Jeroen Roovers
2015-10-01 12:44 Tobias Klausmann
2015-09-30 13:43 Agostino Sarubbo
2015-09-29 10:18 Agostino Sarubbo
2015-08-21 17:08 Mike Frysinger

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=1539254372.96e8fad46595fa0e00540402d5cc2cdde2d28333.polynomial-c@gentoo \
    --to=polynomial-c@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