Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 520640 - sys-fs/lvm2-2.02.109[lvm1] configure: error: --with-lvm1 parameter invalid
Summary: sys-fs/lvm2-2.02.109[lvm1] configure: error: --with-lvm1 parameter invalid
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-22 20:03 UTC by Brian Evans (RETIRED)
Modified: 2014-08-22 22:44 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
config.log (config.log,87.21 KB, text/plain)
2014-08-22 20:03 UTC, Brian Evans (RETIRED)
Details
build.log (build.log,13.14 KB, text/plain)
2014-08-22 20:03 UTC, Brian Evans (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Evans (RETIRED) gentoo-dev 2014-08-22 20:03:18 UTC
Created attachment 383418 [details]
config.log

checking default name mangling... auto
checking whether to enable lvm1 fallback... no
checking whether to include support for lvm1 metadata... shared
configure: error: --with-lvm1 parameter invalid

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/sys-fs/lvm2-2.02.109/work/LVM2.2.02.109/config.log
 * ERROR: sys-fs/lvm2-2.02.109::gentoo failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *          ebuild.sh, line   93:  Called src_configure
 *        environment, line 3876:  Called econf '--enable-readline' '--disable-selinux' '--enable-pkgconfig' '--with-confdir=/etc' '--exec-prefix=' '--sbindir=/sbin' '--with-staticdir=/sbin' '--libdir=/lib64' '--with-usrlibdir=/usr/lib64' '--with-default-dm-run-dir=/run' '--with-default-run-dir=/run/lvm' '--with-default-locking-dir=/run/lock/lvm' '--with-default-pid-dir=/run' '--enable-udev_rules' '--enable-udev_sync' '--with-udevdir=/lib/udev/rules.d' '--disable-udev-systemd-background-jobs' '--with-systemdsystemunitdir=/usr/lib/systemd/system' '--enable-dmeventd' '--enable-cmdlib' '--enable-applib' '--enable-fsadm' '--enable-lvmetad' '--with-mirrors=internal' '--with-snapshots=internal' '--with-thin=internal' '--with-cache=internal' '--with-thin-check=/sbin/thin_check' '--with-cache-check=/sbin/cache_check' '--with-thin-dump=/sbin/thin_dump' '--with-cache-dump=/sbin/cache_dump' '--with-thin-repair=/sbin/thin_repair' '--with-cache-repair=/sbin/cache_repair' '--with-thin-restore=/sbin/thin_restore' '--with-cache-restore=/sbin/cache_restore' '--with-lvm1=shared' '--with-clvmd=none' '--with-cluster=none' 'CLDFLAGS=-Wl,-O1 -Wl,--as-needed'
 *   phase-helpers.sh, line  584:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
Comment 1 Brian Evans (RETIRED) gentoo-dev 2014-08-22 20:03:46 UTC
Created attachment 383420 [details]
build.log
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2014-08-22 21:44:01 UTC
Fixed in Portage by a 1-liner sed:

sed -i -e 's:|share):|shared):' configure.in || die #520640

The fix was:

--- configure.in
+++ configure.in
@@ -271,7 +271,7 @@
 AC_MSG_RESULT($LVM1)
 
 case "$LVM1" in
-  none|share) ;;
+  none|shared) ;;
   internal) AC_DEFINE([LVM1_INTERNAL], 1,
 		      [Define to 1 to include built-in support for LVM1 metadata.]) ;;
   *) AC_MSG_ERROR([--with-lvm1 parameter invalid]) ;;

Alasdair, can you fix this in LVM2 upstream repository?
Comment 3 Alasdair Kergon 2014-08-22 22:44:47 UTC
Will be fixed in 2.02.110