Bug 98530 - clvm static linking is bogus
Bug#: 98530 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: xmerlin@gentoo.org Reported By: agriffis@gentoo.org
Component: Applications
URL: 
Summary: clvm static linking is bogus
Keywords:  
Status Whiteboard: 
Opened: 2005-07-09 20:38 0000
Description:   Opened: 2005-07-09 20:38 0000
This code isn't doing anything because you're misusing the use_enable command. 
The bug must have been fixed by other changes on the livecd that were unrelated
to this change.

src_compile() {
    # Static compile of lvm2 so that the install described in the handbook
works
    # http://www.gentoo.org/doc/en/lvm2.xml
    # fixes http://bugs.gentoo.org/show_bug.cgi?id=84463
    local myconf=""
    use nolvmstatic || myconf="$(use_enable static_link)"

The use_enable command here will *always* generate the line
    --disable-static_link
because there is no USE-flag called static_link.  The correct way to write this
would be one of:

    if use nolvmstatic; then
        myconf="${myconf} --disable-static_link"
    else
        myconf="${myconf} --enable-static_link"
    fi

or for a more advanced use_enable command:

    myconf="${myconf} $(use_enable !nolvmstatic static_link)"

HOWEVER if you do either of these, the build actually fails in my
experimentation.  Personally I'd suggest yanking that stuff from the ebuild
altogether, and don't forget to remove nolvmstatic from IUSE and use.local.desc
(for clvm only)

------- Comment #1 From Christian Zoffoli 2005-07-10 05:33:30 0000 -------
clvm was created starting from the lvm ebuild and adding a couple of options,
so
the bug born there.

I'll work on it to clean up a bit.

------- Comment #2 From Christian Zoffoli 2005-07-14 09:58:30 0000 -------
fixed in cvs.