<?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>80414</bug_id>
          
          <creation_ts>2005-02-01 20:20 0000</creation_ts>
          <short_desc>fbi depends on both libungif and libgif</short_desc>
          <delta_ts>2005-03-23 06:25:38 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>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>x86</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>
          <dependson>18820</dependson>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>stsp@binarchy.net</reporter>
          <assigned_to>spock@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>stsp@binarchy.net</who>
            <bug_when>2005-02-01 20:20:51 0000</bug_when>
            <thetext>fbi-1.31.ebuild has a hardcoded dependency on both libungif and giflib.
This is not necessary.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>stsp@binarchy.net</who>
            <bug_when>2005-02-01 20:23:16 0000</bug_when>
            <thetext>Created an attachment (id=50190)
this patch makes fbi depend on either giflib or libungif

I tested this patch twice, having only giflib installed the first time 
and libungif the second time. Works fine here.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>spock@gentoo.org</who>
            <bug_when>2005-02-05 15:03:16 0000</bug_when>
            <thetext>Actually, it&apos;s not that easy. Please notice that with only giflib installed, gif.c  never gets compiled and with only libungif installed, the compilation fails (bug #78243).</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>stsp@binarchy.net</who>
            <bug_when>2005-02-05 16:07:12 0000</bug_when>
            <thetext>I knew about bug #78243, but I couldn&apos;t reproduce it the other day.
Now I even know why :)

I just looked into this again, and you are partially right:
Compilation fails if giflib is not installed _and_ USE=gif is set.

This is the relevant line from the libungif ebuild:

    use gif &amp;&amp; rm -r &quot;${D}&quot;/usr/bin &quot;${D}&quot;/usr/include/gif_lib.h

It removes gif_lib.h, assuming giflib already provides it.
fbi then fails to include the header.

The fbi makefile only checks for libungif and ignores giflib as you rightly
pointed out. fbi compiles fine with gif_lib.h from libungif (just tested).

fbi should check the gif useflag and depend on both libgif
and libungif if the flag is set, and on only libungif is the flag is not set.

I could imagine that there are other ebuilds in the tree that trip
over giflib/libungif madness. It&apos;s a nuisance, really. Damn patents...

There actually is an open bug on this: bug #18820</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>spock@gentoo.org</who>
            <bug_when>2005-02-06 09:15:28 0000</bug_when>
            <thetext>If the &apos;gif&apos; flag is not set, fbi shouldn&apos;t depend on either library, as it is likely that the user simply doesn&apos;t want support for the GIF fileformat.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>stsp@binarchy.net</who>
            <bug_when>2005-02-06 09:54:08 0000</bug_when>
            <thetext>that&apos;s exactly why the gif useflag is currently ambigious.
again, please see bug #18820 and add your comments.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>spock@gentoo.org</who>
            <bug_when>2005-03-23 06:25:26 0000</bug_when>
            <thetext>Fixed in -r1.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>spock@gentoo.org</who>
            <bug_when>2005-03-23 06:25:38 0000</bug_when>
            <thetext>Fixed in -r1.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>50190</attachid>
            <date>2005-02-01 20:23 0000</date>
            <desc>this patch makes fbi depend on either giflib or libungif</desc>
            <filename>fbi-1.31.ebuild.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGZiaS0xLjMxLmVidWlsZC5vbGQJMjAwNS0wMS0yNiAyMTozODoyNy4wMDAwMDAwMDAgKzAx
MDAKKysrIGZiaS0xLjMxLmVidWlsZAkyMDA1LTAyLTAyIDA1OjEwOjMyLjk1OTEzNjMxMyArMDEw
MApAQCAtMTUsNyArMTUsNyBAQAogCiBERVBFTkQ9ImpwZWc/ICggPj1tZWRpYS1saWJzL2pwZWct
NmIgKQogCXBuZz8gKCBtZWRpYS1saWJzL2xpYnBuZyApCi0JZ2lmPyAoIG1lZGlhLWxpYnMvZ2lm
bGliIG1lZGlhLWxpYnMvbGlidW5naWYgKQorCWdpZj8gKCB8fCAobWVkaWEtbGlicy9naWZsaWIg
bWVkaWEtbGlicy9saWJ1bmdpZikgKQogCXRpZmY/ICggbWVkaWEtbGlicy90aWZmICkKIAljdXJs
PyAoIG5ldC1taXNjL2N1cmwgKQogCWxpcmM/ICggYXBwLW1pc2MvbGlyYyApCg==
</data>        

          </attachment>
    </bug>

</bugzilla>