Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 357911 - app-portage/portage-utils-0.4 fails test with python >3.x
Summary: app-portage/portage-utils-0.4 fails test with python >3.x
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Portage Utils Team
URL:
Whiteboard:
Keywords:
: 377613 (view as bug list)
Depends on: 357313
Blocks:
  Show dependency tree
 
Reported: 2011-03-08 12:09 UTC by Steffen Bergner
Modified: 2011-08-06 10:26 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Bergner 2011-03-08 12:09:43 UTC
linux01 ~ # eselect python list
Available Python interpreters:
  [1]   python2.7
  [2]   python3.1 *
linux01 ~ # eselect python set 1

works.


linux01 ~ # eselect python set 2 

doesn't work

-> print atom1+" "+rel+" "+atom2 <- not working with python 3.x

maybe -> print(atom1+" "+rel+" "+atom2) <- helps?

seen with bugfix 357313 
(http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-projects/pax-utils/tests/source/space.py?r1=1.1&r2=1.2)

USE_PYTHON="2.7 3.1" 
-----------------------------------------
...
>>> Source compiled.
>>> Test phase [check]: app-portage/portage-utils-0.4
./q --install
Installing symlinks:
 qatom ...      [OK]
 qcache ...     [OK]
 qcheck ...     [OK]
 qdepends ...   [OK]
 qfile ...      [OK]
 qglsa ...      [OK]
 qgrep ...      [OK]
 qlist ...      [OK]
 qlop ...       [OK]
 qmerge ...     [OK]
 qpkg ...       [OK]
 qsearch ...    [OK]
 qsize ...      [OK]
 qtbz2 ...      [OK]
 quse ...       [OK]
 qxpak ...      [OK]
make -C tests check
make[1]: Entering directory `/var/tmp/portage/app-portage/portage-utils-0.4/work/portage-utils-0.4/tests'
for test in reinitialize atom_compare atom_explode qfile quse install source ; do \
        cd $test ; \
        make check || exit 1 ; \
        cd .. ; \
done
make[2]: Entering directory `/var/tmp/portage/app-portage/portage-utils-0.4/work/portage-utils-0.4/tests/reinitialize'
./dotest
q: Updating ebuild cache ...
q: initialize_flat(): unlinking '/usr/portage/.ebuild.x' failed: Permission denied
PASSED
make[2]: Leaving directory `/var/tmp/portage/app-portage/portage-utils-0.4/work/portage-utils-0.4/tests/reinitialize'
make[2]: Entering directory `/var/tmp/portage/app-portage/portage-utils-0.4/work/portage-utils-0.4/tests/atom_compare'
../../q atom -c `cat static.tests` > static
#q atom -c `cat static.tests` > static
./atom-compare.py `cat static.tests` > portage
  File "./atom-compare.py", line 20
    print atom1+" "+rel+" "+atom2
              ^
SyntaxError: invalid syntax
make[2]: *** [portage] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-portage/portage-utils-0.4/work/portage-utils-0.4/tests/atom_compare'
make[1]: *** [check] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-portage/portage-utils-0.4/work/portage-utils-0.4/tests'
make: *** [check] Error 2
 * ERROR: app-portage/portage-utils-0.4 failed (test phase):
 *   Make check failed. See above for details.
 *
 * Call stack:
 *     ebuild.sh, line   56:  Called src_test
 *   environment, line 2684:  Called _eapi0_src_test
 *     ebuild.sh, line  638:  Called die
 * The specific snippet of code:
 *                      hasq test $FEATURES && die "Make check failed. See above for details."
 *
 * If you need support, post the output of 'emerge --info =app-portage/portage-utils-0.4',
 * the complete build log and the output of 'emerge -pqv =app-portage/portage-utils-0.4'.
 * The complete build log is located at '/var/tmp/portage/app-portage/portage-utils-0.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-portage/portage-utils-0.4/temp/environment'.
 * S: '/var/tmp/portage/app-portage/portage-utils-0.4/work/portage-utils-0.4'

>>> Failed to emerge app-portage/portage-utils-0.4, Log file:

>>>  '/var/tmp/portage/app-portage/portage-utils-0.4/temp/build.log'
Comment 1 Steffen Bergner 2011-03-08 12:11:07 UTC
FEATURES="test ccache" emerge -1v =portage-utils-0.4
Comment 2 SpanKY gentoo-dev 2011-03-08 20:08:53 UTC
already been fixed via Bug 357313
Comment 3 SpanKY gentoo-dev 2011-03-17 03:59:06 UTC
portage-utils no longer has space.py at all.  ive converted it to sed/awk.
Comment 4 Steffen Bergner 2011-03-17 06:36:57 UTC
(In reply to comment #3)
> portage-utils no longer has space.py at all.  ive converted it to sed/awk.

thanks, sounds promising, will verify it
Comment 5 Steffen Bergner 2011-03-17 08:03:43 UTC
test problem...

python 2.x style:
print atom1+" "+rel+" "+atom2 

I guess python 3.x syntax:
print(atom1+" "+rel+" "+atom2)

-----------
linux01 linux # eselect python list
Available Python interpreters:
  [1]   python2.7
  [2]   python3.1 *

linux01 linux # emerge -1v app-portage/portage-utils

 * portage-utils-0.5.tar.xz RMD160 SHA1 SHA256 size ;-) ...                                                                                    [ ok ]
 * Package:    app-portage/portage-utils-0.5
 * Repository: gentoo
 * Maintainer: portage-utils@gentoo.org
 * USE:        elibc_glibc kernel_linux test userland_GNU x86
 * FEATURES:   ccache sandbox test userpriv usersandbox
>>> Unpacking source...
>>> Unpacking portage-utils-0.5.tar.xz to /var/tmp/portage/app-portage/portage-utils-0.5/work
>>> Source unpacked in /var/tmp/portage/app-portage/portage-utils-0.5/work
>>> Preparing source in /var/tmp/portage/app-portage/portage-utils-0.5/work/portage-utils-0.5 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-portage/portage-utils-0.5/work/portage-utils-0.5 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-portage/portage-utils-0.5/work/portage-utils-0.5 ...
make
sed -n '/^DECLARE_APPLET/s:.*(\(.*\)).*:#include "\1.c":p' applets.h > include_applets.h
i686-pc-linux-gnu-gcc -DEPREFIX=\"/\" -DVERSION=\"0.5\" -DAPPLET_q -DAPPLET_qatom -DAPPLET_qcache -DAPPLET_qcheck -DAPPLET_qdepends -DAPPLET_qfile -DAPPLET_qgrep -DAPPLET_qlist -DAPPLET_qlop -DAPPLET_qmerge -DAPPLET_qpkg -DAPPLET_qsearch -DAPPLET_qsize -DAPPLET_qtbz2 -DAPPLET_quse -DAPPLET_qxpak -minline-stringops-dynamically -fomit-frame-pointer -fprefetch-loop-arrays -funroll-loops -maccumulate-outgoing-args -march=pentium3 -msse -mtune=pentium3 -O3 -pipe -Wunsafe-loop-optimizations -D_FORTIFY_SOURCE=2 --param l1-cache-size=16 --param l1-cache-line-size=32 --param l2-cache-size=256 -std=gnu99 -MM main.c > .depend
: q : qatom : qcache : qcheck : qdepends : qfile : qgrep : qlist : qlop : qmerge : qpkg : qsearch : qsize : qtbz2 : quse : qxpak :
i686-pc-linux-gnu-gcc -minline-stringops-dynamically -fomit-frame-pointer -fprefetch-loop-arrays -funroll-loops -maccumulate-outgoing-args -march=pentium3 -msse -mtune=pentium3 -O3 -pipe -Wunsafe-loop-optimizations -D_FORTIFY_SOURCE=2 --param l1-cache-size=16 --param l1-cache-line-size=32 --param l2-cache-size=256 -std=gnu99 -Wl,-O9 main.c -o q
libq/xmkdir.c:110:15: warning: 'rmdir_r' defined but not used
>>> Source compiled.
>>> Test phase [check]: app-portage/portage-utils-0.5
./q --install
Installing symlinks:
 qatom ...      [OK]
 qcache ...     [OK]
 qcheck ...     [OK]
 qdepends ...   [OK]
 qfile ...      [OK]
 qglsa ...      [OK]
 qgrep ...      [OK]
 qlist ...      [OK]
 qlop ...       [OK]
 qmerge ...     [OK]
 qpkg ...       [OK]
 qsearch ...    [OK]
 qsize ...      [OK]
 qtbz2 ...      [OK]
 quse ...       [OK]
 qxpak ...      [OK]
make -C tests check
make[1]: Entering directory `/var/tmp/portage/app-portage/portage-utils-0.5/work/portage-utils-0.5/tests'
for test in reinitialize atom_compare atom_explode mkdir qfile qlist qtbz2 quse qxpak install source ; do \
        cd $test ; \
        make check || exit 1 ; \
        cd .. ; \
done
make[2]: Entering directory `/var/tmp/portage/app-portage/portage-utils-0.5/work/portage-utils-0.5/tests/reinitialize'
./dotest
q: Updating ebuild cache ...
q: initialize_flat(): unlinking '/usr/portage/.ebuild.x' failed: Permission denied
PASSED
make[2]: Leaving directory `/var/tmp/portage/app-portage/portage-utils-0.5/work/portage-utils-0.5/tests/reinitialize'
make[2]: Entering directory `/var/tmp/portage/app-portage/portage-utils-0.5/work/portage-utils-0.5/tests/atom_compare'
../../q atom -c `cat static.tests` > static
#q atom -c `cat static.tests` > static
./atom-compare.py `cat static.tests` > portage
  File "./atom-compare.py", line 20
    print atom1+" "+rel+" "+atom2
              ^
SyntaxError: invalid syntax
make[2]: *** [portage] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-portage/portage-utils-0.5/work/portage-utils-0.5/tests/atom_compare'
make[1]: *** [check] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-portage/portage-utils-0.5/work/portage-utils-0.5/tests'
make: *** [check] Error 2
 * ERROR: app-portage/portage-utils-0.5 failed (test phase):
 *   Make check failed. See above for details.
 *
 * Call stack:
 *     ebuild.sh, line   56:  Called src_test
 *   environment, line 2683:  Called _eapi0_src_test
 *     ebuild.sh, line  638:  Called die
 * The specific snippet of code:
 *                      hasq test $FEATURES && die "Make check failed. See above for details."
 *
 * If you need support, post the output of 'emerge --info =app-portage/portage-utils-0.5',
 * the complete build log and the output of 'emerge -pqv =app-portage/portage-utils-0.5'.
 * The complete build log is located at '/var/tmp/portage/app-portage/portage-utils-0.5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-portage/portage-utils-0.5/temp/environment'.
 * S: '/var/tmp/portage/app-portage/portage-utils-0.5/work/portage-utils-0.5'

>>> Failed to emerge app-portage/portage-utils-0.5, Log file:

>>>  '/var/tmp/portage/app-portage/portage-utils-0.5/temp/build.log'
linux01 linux #
Comment 6 Steffen Bergner 2011-03-17 08:06:51 UTC
fix in 0.5? or am I too soon?
Comment 8 Steffen Bergner 2011-03-18 07:21:51 UTC
(In reply to comment #7)
> that is a different issue
> 
> http://sources.gentoo.org/gentoo-projects/portage-utils/tests/atom_compare/atom-compare.py?r1=1.1&r2=1.2

Looks great, thanks a lot, hope this will be the "end".

Anything I can do? (synced a minute ago but not yet applied in the package)
Comment 9 Steffen Bergner 2011-03-24 09:05:48 UTC
Not yet released. When will it be available?
Comment 10 solar (RETIRED) gentoo-dev 2011-03-25 04:07:27 UTC
When enough changes are built up to make it worthwhile to push another release.
Comment 11 SpanKY gentoo-dev 2011-08-06 10:26:10 UTC
*** Bug 377613 has been marked as a duplicate of this bug. ***