Hello, i'm using sys-apps/portage-2.1.2-r9 and the test was done with the last media-libs/imlib2-1.3.0 ebuild. imlib2-1.3.0 ebuild is unable to set correctly the --enable-amd64 flag --enable-amd64 is normally auto detected by imlib2 configure script but like in imblib2 ebuild, emerge is unable to detect it well. I didn't check other packages but it seems not particular to imlib2. Also it could affect more packages as expected, that is why i opened the report in "Core System". Jj Reproducible: Always Steps to Reproduce: 1.(on amd64 only) 2.emerge =media-libs/imlib2-1.3.0 3.flag --enable-amd64 won't be set Actual Results: [code] # ebuild /usr/portage/media-libs/imlib2/imlib2-1.3.0.ebuild compile * imlib2-1.3.0.tar.gz MD5 ;-) ... [ ok ] * imlib2-1.3.0.tar.gz RMD160 ;-) ... [ ok ] * imlib2-1.3.0.tar.gz SHA1 ;-) ... [ ok ] * imlib2-1.3.0.tar.gz SHA256 ;-) ... [ ok ] * imlib2-1.3.0.tar.gz size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking imlib2-1.3.0.tar.gz ;-) ... [ ok ] >>> Checking imlib2-1.3.0.tar.gz's mtime... >>> /usr/portage/media-libs/imlib2/imlib2-1.3.0.ebuild has been updated; recreating WORKDIR... >>> Unpacking source... >>> Unpacking imlib2-1.3.0.tar.gz to /var/tmp/portage/media-libs/imlib2-1.3.0/work * Applying imlib2-1.3.0-buf-checks.patch ... [ ok ] * Applying imlib2-1.3.0-no-X.patch ... [ ok ] >>> Source unpacked. >>> Compiling source in /var/tmp/portage/media-libs/imlib2-1.3.0/work/imlib2-1.3.0 ... + local mymmx= ++ tc-arch ++ tc-ninja_magic_to_arch portage ++ local type=portage ++ local host= ++ [[ -z '' ]] ++ host=x86_64-pc-linux-gnu ++ case ${host} in ++ ninj x86_64 amd64 ++ [[ portage == \k\e\r\n ]] ++ echo amd64 + [[ amd64 == \a\m\d\6\4 ]] ++ use_enable mmx amd64 ++ '[' -z mmx ']' ++ local UE_SUFFIX= ++ '[' '!' -z '' ']' ++ local UWORD=amd64 ++ '[' -z amd64 ']' ++ useq mmx ++ local u=mmx ++ local found=0 ++ [[ m == \! ]] ++ hasq mmx X bzip2 gif jpeg mmx mp3 png tiff zlib nls doc ++ [[ X bzip2 gif jpeg mmx mp3 png tiff zlib nls doc == *\ \m\m\x\ * ]] ++ hasq mmx X a52 aac acl acpi alsa alsa_cards_intel8x0 [..] ++ return 1 ++ echo --disable-amd64 ++ return 0 + mymmx='--disable-amd64 --disable-mmx' ++ use_with X x ++ '[' -z X ']' ++ local UW_SUFFIX= ++ '[' '!' -z '' ']' ++ local UWORD=x ++ '[' -z x ']' ++ useq X ++ local u=X ++ local found=0 ++ [[ X == \! ]] [..] vorbis wmf xinetd xml xorg xpm xv xvid zlib == *\ \m\p\3\ * ]] ++ return 0 ++ echo --with-id3 ++ return 0 + export 'MY_ECONF= --with-x --with-jpeg --with-png --with-tiff --with-gif --with-zlib --with-bzip2 --with-id3 --disable-amd64 --disable-mmx ' + MY_ECONF=' --with-x --with-jpeg --with-png --with-tiff --with-gif --with-zlib --with-bzip2 --with-id3 --disable-amd64 --disable-mmx ' + set +x * Running eautoreconf in '/var/tmp/portage/media-libs/imlib2-1.3.0/work/imlib2-1.3.0' ... * Running aclocal ... Interrupted. [/code] We get: mymmx='--disable-amd64 --disable-mmx' <--the amd64 flag is still not activated ^^^^^^^^^^^^^ Expected Results: mymmx='--enable-amd64 --disable-mmx' ^^^^^^^^^^^^ Portion of code that gives the above result: [code] src_compile() { set -x # imlib2 has diff configure options for x86/amd64 mmx local mymmx="" if [[ $(tc-arch) == "amd64" ]] ; then mymmx="$(use_enable mmx amd64) --disable-mmx" else mymmx="--disable-amd64 $(use_enable mmx)" fi export MY_ECONF=" $(use_with X x) \ $(use_with jpeg) \ $(use_with png) \ $(use_with tiff) \ $(use_with gif) \ $(use_with zlib) \ $(use_with bzip2) \ $(use_with mp3 id3) \ ${mymmx} \ " ; set +x [/code]
Has nothing to do w/ portage. *** This bug has been marked as a duplicate of bug 164923 ***