Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80403 - cannot use LVM on /usr if readline+ncurses+gpm USE settinges enabled
Summary: cannot use LVM on /usr if readline+ncurses+gpm USE settinges enabled
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 80936 83953 84047 84203 84649 84755 84840 88388 91814 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-02-01 16:31 UTC by Glenn L. McGrath
Modified: 2005-05-07 16:02 UTC (History)
14 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Glenn L. McGrath 2005-02-01 16:31:56 UTC
Problem
=======
LVM will link against /lib/libreadline.so.? if readline is enabled in use setting.

libreadline will link against /lib/libncurses.so.5 if ncurses is enabled in use settings.

libncurses will link against /usr/lib/libgpm.so.1 if gpm is enabled in ncurses.

As libgpm is in the /usr partition the lvm tools (used by the boot scripts) will fail to link unless /usr is already mounted.


Solutions
=========

Move /usr/lib/libgpm* to /lib/libgpm*, in which case a bug should be ifles against gpm, this is probably the best long term solution.

or

Disable the readline use setting for lvm, this looks to me to be the best short term fix.


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Sven Wegener gentoo-dev 2005-02-06 07:00:01 UTC
*** Bug 80936 has been marked as a duplicate of this bug. ***
Comment 2 SpanKY gentoo-dev 2005-02-06 17:15:24 UTC
-r3 now installs libgpm.so into /lib
Comment 3 Wolfram Schlich (RETIRED) gentoo-dev 2005-02-07 03:59:12 UTC
hmm:
--8<--
[wschlich@prometheus(pts/13):wschlich]$ epm -qG gpm
sys-libs/gpm-1.20.1-r3
[wschlich@prometheus(pts/13):wschlich]$ epm -ql gpm | grep lib
/usr/lib/libgpm.a
/usr/lib/libgpm.so
/lib/libgpm.so.1.19.0
/lib/libgpm.so.1
/lib/libgpm.so
[wschlich@prometheus(pts/13):wschlich]$
--8<--
why's there still something in /usr/lib/?!
Comment 4 Wolfram Schlich (RETIRED) gentoo-dev 2005-03-03 15:14:45 UTC
*** Bug 83953 has been marked as a duplicate of this bug. ***
Comment 5 Wolfram Schlich (RETIRED) gentoo-dev 2005-03-03 15:18:41 UTC
What about my question regarding comment #3 ? *push*
Comment 6 SpanKY gentoo-dev 2005-03-03 15:26:37 UTC
your output is correct
Comment 7 Vladimir Berezniker 2005-03-03 16:00:08 UTC
-r4 is still ~x86 and as such does not get installed unless it is in package.keywords so upgrading lvm2 can break existing systems.

My fix was to copy libgpm from livecd, but the sudden lvm breakage was a very unplesant surprise.
Comment 8 Will McQueen 2005-03-03 21:01:38 UTC
Ditto.
Comment 9 Carsten Lohrke (RETIRED) gentoo-dev 2005-03-04 01:51:18 UTC
*** Bug 84047 has been marked as a duplicate of this bug. ***
Comment 10 Wolfram Schlich (RETIRED) gentoo-dev 2005-03-04 02:17:28 UTC
yup. so can someone _please_ mark -r4 stable?
Comment 11 Wolfram Schlich (RETIRED) gentoo-dev 2005-03-05 04:51:37 UTC
several people already reported their LVM2 break,
so let's DO SOMETHING NOW before even more systems just break
and cause headaches to their admins.
Comment 12 SpanKY gentoo-dev 2005-03-08 16:20:29 UTC
*** Bug 84203 has been marked as a duplicate of this bug. ***
Comment 13 SpanKY gentoo-dev 2005-03-09 15:38:20 UTC
*** Bug 84649 has been marked as a duplicate of this bug. ***
Comment 14 SpanKY gentoo-dev 2005-03-10 08:59:46 UTC
*** Bug 84755 has been marked as a duplicate of this bug. ***
Comment 15 Rolf Rander Næss 2005-03-10 11:17:41 UTC
Another workaround is simply:
USE="-readline" emerge --newuse lvm2
Comment 16 Wolfram Schlich (RETIRED) gentoo-dev 2005-03-12 02:55:32 UTC
ok, =sys-libs/gpm-1.20.1-r4 is stable for most arches now.
alpha, mips, ppc, ppc64, can you please test and stabilize for your arches? TIA!
Comment 17 Markus Rothe (RETIRED) gentoo-dev 2005-03-12 03:20:02 UTC
stable on ppc64
Comment 18 SpanKY gentoo-dev 2005-03-13 01:42:21 UTC
*** Bug 84840 has been marked as a duplicate of this bug. ***
Comment 19 Carsten Lohrke (RETIRED) gentoo-dev 2005-04-08 11:40:59 UTC
*** Bug 88388 has been marked as a duplicate of this bug. ***
Comment 20 Colonel Paneek 2005-05-03 02:17:16 UTC
The libgpm dependency also occurs with /bin/dir, /bin/vdir, and /bin/ls in coreutils.

Can we have coreutils-5.2.1-r5 depend on >sys-libs/gpm-1.20.1 please?
Comment 21 SpanKY gentoo-dev 2005-05-03 05:35:03 UTC
you analyzed wrong, /bin/ls does not depend on gpm
Comment 22 Donnie Berkholz (RETIRED) gentoo-dev 2005-05-03 11:40:03 UTC
It does if ncurses is build w/ USE=gpm
Comment 23 SpanKY gentoo-dev 2005-05-03 11:52:25 UTC
no, your ncurses is linked with gpm, your /bin/ls is not ... it is simply linked with ncurses only
Comment 24 Donnie Berkholz (RETIRED) gentoo-dev 2005-05-03 12:14:20 UTC
Well, it broke for me with the old gpm. I could rebreak it and paste some output here, if you really want to see it.
Comment 25 Colonel Paneek 2005-05-03 14:57:42 UTC
ldd /bin/ls
        linux-gate.so.1 =>  (0xffffe000)
        librt.so.1 => /lib/librt.so.1 (0xb7fc9000)
        libncurses.so.5 => /lib/libncurses.so.5 (0xb7f82000)
        libc.so.6 => /lib/libc.so.6 (0xb7e6d000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb7e1b000)
        /lib/ld-linux.so.2 (0xb7feb000)
        libgpm.so.1 => /lib/libgpm.so.1 (0xb7e15000)

USE="-qt -arts -alsa apache2 avi cscope cups dvd flash foomaticdb gimpprint gnome hardened hardenedphp imap mysql mod_php nls oggvorbis opengl pam php ppds pamsdl ssl tcpd X maildir imap"

Using sys-apps/coreutils-5.2.1-r5 and sys-libs/gpm-1.20.1-r4
Comment 26 BlaisorBlade 2005-05-04 12:27:56 UTC
Replying to:
------ Additional Comment #23 From SpanKY 2005-05-03 11:52 PST ------- 

no, your ncurses is linked with gpm, your /bin/ls is not ... it is simply linked with ncurses only
---
SpanKY, *please* note that link dependencies are recursive, as shown by the posted "ldd" sample. grep gpm /bin/ls would fail on his case, but still the library is required for loading, as shown by ldd (and by the failures we got).
Comment 27 SpanKY gentoo-dev 2005-05-05 07:17:52 UTC
it all depends on how you interpret it

ls is NOT directly linked with gpm, but it is linked with ncurses which is linked with gpm
Comment 28 Jakub Moc (RETIRED) gentoo-dev 2005-05-07 16:02:17 UTC
*** Bug 91814 has been marked as a duplicate of this bug. ***