<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>98530</bug_id>
          
          <creation_ts>2005-07-09 20:38 0000</creation_ts>
          <short_desc>clvm static linking is bogus</short_desc>
          <delta_ts>2005-07-14 09:58:30 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>agriffis@gentoo.org</reporter>
          <assigned_to>xmerlin@gentoo.org</assigned_to>
          <cc>qa@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>agriffis@gentoo.org</who>
            <bug_when>2005-07-09 20:38:33 0000</bug_when>
            <thetext>This code isn&apos;t doing anything because you&apos;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=&quot;&quot;
    use nolvmstatic || myconf=&quot;$(use_enable static_link)&quot;

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=&quot;${myconf} --disable-static_link&quot;
    else
        myconf=&quot;${myconf} --enable-static_link&quot;
    fi

or for a more advanced use_enable command:

    myconf=&quot;${myconf} $(use_enable !nolvmstatic static_link)&quot;

HOWEVER if you do either of these, the build actually fails in my experimentation.  Personally I&apos;d suggest yanking that stuff from the ebuild altogether, and don&apos;t forget to remove nolvmstatic from IUSE and use.local.desc (for clvm only)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>xmerlin@gentoo.org</who>
            <bug_when>2005-07-10 05:33:30 0000</bug_when>
            <thetext>clvm was created starting from the lvm ebuild and adding a couple of options, so
the bug born there.

I&apos;ll work on it to clean up a bit.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>xmerlin@gentoo.org</who>
            <bug_when>2005-07-14 09:58:30 0000</bug_when>
            <thetext>fixed in cvs.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>