Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 484752 - sys-fs/lvm2-2.02.100 - configure needs --exec-prefix
Summary: sys-fs/lvm2-2.02.100 - configure needs --exec-prefix
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords: PATCH
: 484880 485098 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-09-13 12:41 UTC by Alexander Tsoy
Modified: 2014-02-02 06:25 UTC (History)
6 users (show)

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


Attachments
lvm2-2.02.100.ebuild.patch (lvm2-2.02.100.ebuild.patch,669 bytes, patch)
2013-09-13 12:43 UTC, Alexander Tsoy
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Tsoy 2013-09-13 12:41:50 UTC
root # ebuild /usr/portage/sys-fs/lvm2/lvm2-2.02.100.ebuild configure
root # cd /var/tmp/portage/sys-fs/lvm2-2.02.100/work/LVM2.2.02.100
root # grep LVM_PATH ./lib/misc/configure.h 
#define LVM_PATH "/usr/sbin/lvm"

"--sbindir" configure option has no effect on LVM_PATH value. As a result, lvm2-activation-generator is broken.
Comment 1 Alexander Tsoy 2013-09-13 12:43:26 UTC
Created attachment 358574 [details, diff]
lvm2-2.02.100.ebuild.patch

Probably "--sbindir" is also redundant and can be dropped.
Comment 2 Stefan G. Weichinger 2013-09-13 19:48:00 UTC
(In reply to Alexander Tsoy from comment #1)
> Created attachment 358574 [details, diff] [details, diff]
> lvm2-2.02.100.ebuild.patch
> 
> Probably "--sbindir" is also redundant and can be dropped.

applied that patch now.

Sorry, but my LVs still aren't activated after boot.

# journalctl -b | grep lvm
Sep 13 21:41:51 hiro.oops.intern lvm[343]: No volume groups found
Sep 13 21:41:51 hiro.oops.intern lvm[337]: No volume groups found
Sep 13 21:41:51 hiro.oops.intern lvm[422]: No volume groups found

my PV is a mdadm-raid ... should there be some waiting for the mdadm-raid to be activated? 

I see the LVs after booting .. but not activated.
Comment 3 Alexander Tsoy 2013-09-13 21:35:40 UTC
(In reply to Stefan G. Weichinger from comment #2)
> (In reply to Alexander Tsoy from comment #1)
> > Created attachment 358574 [details, diff] [details, diff] [details, diff]
> > lvm2-2.02.100.ebuild.patch
> > 
> > Probably "--sbindir" is also redundant and can be dropped.
> 
> applied that patch now.
> 
> Sorry, but my LVs still aren't activated after boot.

Hmm.. It works for me.

> 
> # journalctl -b | grep lvm
> Sep 13 21:41:51 hiro.oops.intern lvm[343]: No volume groups found
> Sep 13 21:41:51 hiro.oops.intern lvm[337]: No volume groups found
> Sep 13 21:41:51 hiro.oops.intern lvm[422]: No volume groups found
> 
> my PV is a mdadm-raid ... should there be some waiting for the mdadm-raid to
> be activated? 

My PVs are also on MD arrays. MD devices should be activated by udev before lvm2:

$ sudo grep ^After /run/systemd/generator/lvm2-activation-early.service 
After=systemd-udev-settle.service

> 
> I see the LVs after booting .. but not activated.

I have no idea what is wrong on your system. =/
Comment 4 Pacho Ramos gentoo-dev 2013-09-14 14:40:19 UTC
*** Bug 484880 has been marked as a duplicate of this bug. ***
Comment 5 Pacho Ramos gentoo-dev 2013-09-14 14:41:55 UTC
I guess this isn't needed any longer?
-		--with-dmeventd-path=/sbin/dmeventd \
Comment 6 Alexander Tsoy 2013-09-14 15:02:02 UTC
(In reply to Pacho Ramos from comment #5)
> I guess this isn't needed any longer?
> -		--with-dmeventd-path=/sbin/dmeventd \

From configure ($lvm_exec_prefix is a value passed by --exec-prefix):

# Check whether --with-dmeventd-path was given.
if test "${with_dmeventd_path+set}" = set; then :
  withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
else
  DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd"
fi
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2013-09-14 19:16:07 UTC
patch looks good to me. can someone commit it for me? pacho? i can't anymore today
Comment 8 Mike Gilbert gentoo-dev 2013-09-14 20:49:36 UTC
+*lvm2-2.02.100-r1 (14 Sep 2013)
+
+  14 Sep 2013; Mike Gilbert <floppym@gentoo.org> +lvm2-2.02.100-r1.ebuild,
+  -lvm2-2.02.100.ebuild:
+  Pass --exec-prefix to configure, bug 484752 by Alexander Tsoy.
Comment 9 Harris Landgarten 2013-09-14 22:52:50 UTC
after the 2.02.100-r1 update is get this:

$ sudo systemctl status lvm2-lvmetad.service
lvm2-lvmetad.service - LVM2 metadata daemon
   Loaded: error (Reason: Invalid argument)
   Active: active (running) since Sat 2013-09-14 12:42:37 EDT; 6h ago
     Docs: man:lvmetad(8)
 Main PID: 181 (lvmetad)
   CGroup: /system.slice/lvm2-lvmetad.service
           └─181 /sbin/lvmetad

Sep 14 12:42:37 harrisl-desktop systemd[1]: Starting LVM2 metadata daemon...
Sep 14 12:42:37 harrisl-desktop systemd[1]: Started LVM2 metadata daemon.
Sep 14 18:40:29 harrisl-desktop systemd[1]: [/usr/lib64/systemd/system/lvm2-lvmetad.service:12] Executable path is not absolute, ignoring: ${exec_prefix}/sbin/lvmetad
Sep 14 18:40:29 harrisl-desktop systemd[1]: [/usr/lib64/systemd/system/lvm2-lvmetad.service:13] Executable path is not absolute, ignoring: ${exec_prefix}/sbin/lvmetad -R
Sep 14 18:40:29 harrisl-desktop systemd[1]: lvm2-lvmetad.service lacks ExecStart setting. Refusing.
Sep 14 18:40:29 harrisl-desktop systemd[1]: Cannot add dependency job for unit lvm2-lvmetad.service, ignoring: Unit lvm2-lvmetad.service failed to load: Invalid argument. See system logs and 'sy...' for details.
Hint: Some lines were ellipsized, use -l to show in full.

similar for lmv2-monitor.service

I haven't rebooted so all is still running but I am worried something is broken.
Comment 10 Mike Gilbert gentoo-dev 2013-09-14 23:20:33 UTC
Bah, they are using @sbindir@ in the unit file, which doesn't get fully expanded because it is intended for use in Makefile.in.

+*lvm2-2.02.100-r2 (14 Sep 2013)
+
+  14 Sep 2013; Mike Gilbert <floppym@gentoo.org> +lvm2-2.02.100-r2.ebuild,
+  lvm2-2.02.100-r1.ebuild:
+  Restore --sbindir to work around broken @sbindir@ usage, bug 484752.


This should really be changed upstream, so I'm reopening this bug.
Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2013-09-16 14:03:10 UTC
*** Bug 485098 has been marked as a duplicate of this bug. ***
Comment 12 Samuli Suominen (RETIRED) gentoo-dev 2013-09-16 14:04:35 UTC
(In reply to Mike Gilbert from comment #10)
> Bah, they are using @sbindir@ in the unit file, which doesn't get fully
> expanded because it is intended for use in Makefile.in.
> 
> +*lvm2-2.02.100-r2 (14 Sep 2013)
> +
> +  14 Sep 2013; Mike Gilbert <floppym@gentoo.org> +lvm2-2.02.100-r2.ebuild,
> +  lvm2-2.02.100-r1.ebuild:
> +  Restore --sbindir to work around broken @sbindir@ usage, bug 484752.
> 
> 
> This should really be changed upstream, so I'm reopening this bug.

The .ebuild is fine in tree and everything was set up by just ./configure flags properly, no?
No need to have this bug open here then
Comment 13 Mike Gilbert gentoo-dev 2013-09-16 15:56:13 UTC
(In reply to Samuli Suominen from comment #12)
> The .ebuild is fine in tree and everything was set up by just ./configure
> flags properly, no?
> No need to have this bug open here then

Well the problem still exists upstream; they should not be using configure to do the @sbindir@ substitution, and should instead do it using sed in the Makefile.

There is a description of this in the autoconf manual:

http://www.gnu.org/software/autoconf/manual/autoconf.html#Installation-Directory-Variables
Comment 14 Mike Gilbert gentoo-dev 2013-09-16 16:10:28 UTC
If the Gentoo maintainers of this package want to close it, that's fine.
Comment 15 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2014-02-02 06:25:32 UTC
I believe that agk had some good reasons for it, so I'm closing as upstream issue for now.