<?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>130118</bug_id>
          
          <creation_ts>2006-04-15 19:56 0000</creation_ts>
          <short_desc>media-gfx/iscan will not build with gcc-4.2.0 (correction for ebuild)</short_desc>
          <delta_ts>2006-04-16 05:04:53 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>2006.0</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>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>scottsshort@gmail.com</reporter>
          <assigned_to>sbriesen@gentoo.org</assigned_to>
          <cc>scottsshort@gmail.com</cc>

      

      
          <long_desc isprivate="0">
            <who>scottsshort@gmail.com</who>
            <bug_when>2006-04-15 19:56:34 0000</bug_when>
            <thetext>Portage 2.1_pre7-r5 (default-linux/x86/2006.0, gcc-4.2.0-alpha20060408, glibc-2.4-r1, 2.6.16-beyond2 i686)
=================================================================
System uname: 2.6.16-beyond2 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.12.0_pre17
ccache version 2.4 [enabled]
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-march=athlon-xp -O3 -fomit-frame-pointer -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-march=athlon-xp -O3 -fomit-frame-pointer -pipe&quot;
DISTDIR=&quot;/portage/distfiles&quot;
FEATURES=&quot;autoconfig ccache distlocks fixpackages metadata-transfer sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;http://www.gtlib.gatech.edu/pub/gentoo http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;x86 X alsa apache2 apm arts asf avi berkdb bitmap-fonts browserplugin bzip2 cli crypt ctype cups curl dba dri eds emacs emboss encode esd expat fastbuild foomaticdb force-cgi-redirect fortran ftp gd gdbm gif gimp gimpprint gmp gnutls gpm gstreamer gtk gtk2 imagemagick imlib ipv6 isdnlog java jpeg jpeg2k libg++ libwww logrotate mad md5sum memlimit mikmod motif mozilla moznoirc moznomail mp3 mpeg ncurses nls nptl nptlonly nsplugin numeric nvidia objc objc++ offensive ogg opengl oss pam pcre pdflib perl pic png posix ppds pppd python quicktime readline real rtc sdl session simplexml soap sockets spell spl ssl tcpd tokenizer toolbar truetype truetype-fonts type1-fonts udev usb vorbis win32codecs wmf xchat xemacs xine xml xml2 xmms xsl xv zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_nvidia video_cards_via video_cards_vga&quot;
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS

I just made a simple correction to the ebuild &amp; it compiles clean now. 
Change 3.4|4.[01]) to [20] 

pkg_setup() {
    local i
    if ! use x86 &amp;&amp; ( use X || use gimp ); then
        ewarn
        ewarn &quot;The iscan application needs CSS x86-only libs and&quot;
        ewarn &quot;thus can&apos;t be built currently. You can still use&quot;
        ewarn &quot;&apos;xscanimage&apos;, &apos;xsane&apos; or &apos;kooka&apos; with sane-epkowa&quot;
        ewarn &quot;backend. But some low-end scanners are also not&quot;
        ewarn &quot;supported, because they need these x86 libs, too.&quot;
        ewarn
    fi

    # Select correct tarball for installed GCC. This is not a perfect
    # solution and should be expanded to other working GCC versions.
    einfo &quot;GCC version: $(gcc-fullversion)&quot;
    case &quot;$(gcc-version)&quot; in
        3.[23])
            if use x86; then
                MY_A=&quot;${SRC_GCC33##*/}&quot;
                for i in ${BIN_GCC33}; do MY_A=&quot;${MY_A} ${i##*/}&quot;; done
            else  # fallback to GCC 3.4, should not harm.
                MY_A=&quot;${SRC_GCC34##*/}&quot;
                for i in ${BIN_GCC34}; do MY_A=&quot;${MY_A} ${i##*/}&quot;; done
            fi
            ;;
        3.4|4.[01])  # 4.x seems to work (tested with Perfection 3490 PHOTO)
            MY_A=&quot;${SRC_GCC34##*/}&quot;
            for i in ${BIN_GCC34}; do MY_A=&quot;${MY_A} ${i##*/}&quot;; done
            ;;
        *)
            if use x86; then
                die &quot;Your GCC version is not supported. You need either 3.2, 3.3, 3.4 or 4.x!&quot;
            else
                MY_A=&quot;${SRC_GCC34##*/}&quot;  # fallback to GCC 3.4, should not harm.
                for i in ${BIN_GCC34}; do MY_A=&quot;${MY_A} ${i##*/}&quot;; done
            fi
            ;;
    esac
}</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-04-16 02:41:47 0000</bug_when>
            <thetext>Please, attach a unified diff next time, instead of pasting an (unfixed) ebuild snip.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sbriesen@gentoo.org</who>
            <bug_when>2006-04-16 04:12:32 0000</bug_when>
            <thetext>&gt; Change 3.4|4.[01]) to [20]

wrong. Learn shellscript. ;-)

4.[01] means 4.0 *and* 4.1. You want 4.[012] if 4.2 also works (untested by me, so it wasn&apos;t enabled).

I will fix it later...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sbriesen@gentoo.org</who>
            <bug_when>2006-04-16 04:17:23 0000</bug_when>
            <thetext>in CVS. But no new revision (stays -r1).</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sbriesen@gentoo.org</who>
            <bug_when>2006-04-16 04:18:00 0000</bug_when>
            <thetext>forgot to &quot;fix&quot; this bug. ;-)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>scottsshort@gmail.com</who>
            <bug_when>2006-04-16 05:04:53 0000</bug_when>
            <thetext>(In reply to comment #2)
&gt; &gt; Change 3.4|4.[01]) to [20]
&gt; 
&gt; wrong. Learn shellscript. ;-)
&gt; 
&gt; 4.[01] means 4.0 *and* 4.1. You want 4.[012] if 4.2 also works (untested by me,
&gt; so it wasn&apos;t enabled).
&gt; 
&gt; I will fix it later...
&gt; 

Thanks, I know I need to learn shellscript (I&apos;m a first year computer science student). But I am trying to contribute/help as much as I can. I have run this build with a perfection 3170 photo scanner for a good bit &amp; there are no problems that I can see. I&apos;ll correct my overlay. [012] again, thanks, Scott.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>