<?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>48798</bug_id>
          
          <creation_ts>2004-04-23 10:30 0000</creation_ts>
          <short_desc>net-www/dillo-0.8.0-r1 fails with gcc-3.4: invalid operands to binary -</short_desc>
          <delta_ts>2004-04-27 16:36:44 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>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>48797</dependson>
          <blocked>48528</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>ed@catmur.co.uk</reporter>
          <assigned_to>gcc-porting@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>ed@catmur.co.uk</who>
            <bug_when>2004-04-23 10:30:40 0000</bug_when>
            <thetext>gcc -DHAVE_CONFIG_H -I. -I. -I..  -DDILLORC_SYS=&apos;&quot;/etc/dillorc&quot;&apos;  -DLOCALEDIR=&apos;&quot;/usr/share/locale&quot;&apos; -I/usr/local/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/libpng12 -O2 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/X11R6/include -DENABLE_IPV6 -DENABLE_META_REFRESH -D_REENTRANT -D_THREAD_SAFE -Wall -W -Wno-unused-parameter -Waggregate-return -c `test -f &apos;i18n.c&apos; || echo &apos;./&apos;`i18n.c
i18n.c: In function `a_I18n_get_encoding&apos;:
i18n.c:250: error: invalid operands to binary -
i18n.c:252: error: invalid operands to binary -
make[3]: *** [i18n.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/dillo-0.8.0-r1/work/dillo-0.8.0/src&apos;

Blocker is bug 48797.

Workaround is to compile without -O CFLAGS (except -Os), or to define __NO_STRING_INLINES to use the function definition of strpbrk instead of the macro.

Suggest the latter. Will post ebuild patch.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ed@catmur.co.uk</who>
            <bug_when>2004-04-23 10:32:33 0000</bug_when>
            <thetext>Created an attachment (id=29902)
Patch to net-www/dillo/dillo-0.8.0-r1.ebuild
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ed@catmur.co.uk</who>
            <bug_when>2004-04-23 10:37:26 0000</bug_when>
            <thetext>Created an attachment (id=29903)
Patch to net-www/dillo/dillo-0.8.0-r1.ebuild

Sorry, wrong patch.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2004-04-27 00:34:54 0000</bug_when>
            <thetext>added a slightly diff approach to portage, thanks :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ed@catmur.co.uk</who>
            <bug_when>2004-04-27 09:29:49 0000</bug_when>
            <thetext>Reopening: your patch does not apply correctly. 

This is because src/i18n.c does not exist until ${DILLO_I18N_P}.diff is applied. ${DILLO_I18N_P}.diff.bz2 appears to be a patch from an external source, so we can&apos;t just modify it directly, which is a pity.

Need to swap the lines

    epatch ${FILESDIR}/${PV}-gcc34.patch
    epatch ../${DILLO_I18N_P}.diff

giving

    epatch ../${DILLO_I18N_P}.diff
    epatch ${FILESDIR}/${PV}-gcc34.patch
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2004-04-27 16:36:44 0000</bug_when>
            <thetext>resolved at a different bug</thetext>
          </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>29902</attachid>
            <date>2004-04-23 10:32 0000</date>
            <desc>Patch to net-www/dillo/dillo-0.8.0-r1.ebuild</desc>
            <filename>dillo.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIG5ldC13d3cvZGlsbG8vZGlsbG8tMC44LjAtcjEuZWJ1aWxkCTIwMDQvMDQvMjMgMTc6Mjg6
MTIJMS4xCisrKyBuZXQtd3d3L2RpbGxvL2RpbGxvLTAuOC4wLXIxLmVidWlsZAkyMDA0LzA0LzIz
IDE3OjI5OjA3CkBAIC02NSw3ICs2NSw4IEBACiAJCS0tZW5hYmxlLW1ldGEtcmVmcmVzaCBcCiAJ
CS0tZW5hYmxlLXVzZXItYWdlbnQgXAogCQl8fCBkaWUKLQllbWFrZSB8fCBtYWtlIHx8IGRpZQor
CUNGTEFHUz0iJHtDRkxBR1N9IC1EX19OT19TVFJJTkdfSU5MSU5FUyIgXAorCQllbWFrZSB8fCBt
YWtlIHx8IGRpZQogfQogCiBzcmNfaW5zdGFsbCgpIHsK
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>29903</attachid>
            <date>2004-04-23 10:37 0000</date>
            <desc>Patch to net-www/dillo/dillo-0.8.0-r1.ebuild</desc>
            <filename>dillo.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIG5ldC13d3cvZGlsbG8vZGlsbG8tMC44LjAtcjEuZWJ1aWxkCTIwMDQvMDQvMjMgMTc6Mjg6
MTIJMS4xCisrKyBuZXQtd3d3L2RpbGxvL2RpbGxvLTAuOC4wLXIxLmVidWlsZAkyMDA0LzA0LzIz
IDE3OjM1OjExCkBAIC01Niw2ICs1Niw3IEBACiAKIHNyY19jb21waWxlKCkgewogCXJlcGxhY2Ut
ZmxhZ3MgIi1PMiAtbWNwdT1rNiIgIi1PMiAtbWNwdT1wZW50aXVtIgorCWFwcGVuZC1mbGFncyAi
LURfX05PX1NUUklOR19JTkxJTkVTIgogCiAJZWNvbmYgYHVzZV9lbmFibGUgaXB2NmAgXAogCQlg
dXNlX2VuYWJsZSBubHNgIFwK
</data>        

          </attachment>
    </bug>

</bugzilla>