Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 3992

Summary: Errors in portage Python scripts
Product: Portage Development Reporter: Jon M. Hanson <hansonj>
Component: UnclassifiedAssignee: Daniel Robbins (RETIRED) <drobbins>
Status: RESOLVED FIXED    
Severity: normal CC: hansonj
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jon M. Hanson 2002-06-21 13:12:36 UTC
I was updating my portage application and noticed that it failed with several  syntax errors in the Python scripts. Below is a trascript of what occured.  jmhanson-linux2 portage # ls ChangeLog  portage-1.4-r4.ebuild     portage-2.0.4.ebuild files      portage-1.9.13-r1.ebuild jmhanson-linux2 portage # portage bash: portage: command not found jmhanson-linux2 portage # emerge portage-2.0.4.ebuild Calculating dependencies ...done! >>> emerge sys-apps/portage-2.0.4 to / >>> Unpacking source... >>> Source unpacked. gcc -O2 -march=i486 -pipe    sandbox.c   -o sandbox gcc -O2 -march=i486 -pipe   -c -o libsandbox.o libsandbox.c gcc -O2 -march=i486 -pipe  libsandbox.o -o libsandbox.so -ldl --shared  >>> Install portage-2.0.4 into /var/tmp/portage/portage-2.0.4/image/ category sys-apps running install running build running build_ext building 'missingos' extension creating build creating build/temp.linux-i686-2.2 gcc -DNDEBUG -march=i686 -O3 -pipe -mcpu=i686 -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -malign-functions=4 -fPIC -I/usr/include/python2.2 -c missingos.c -o build/temp.linux-i686-2.2/missingos.o -march=i686 -O3 -pipe -mcpu=i686 -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -malign-functions=4 creating build/lib.linux-i686-2.2 gcc -shared build/temp.linux-i686-2.2/missingos.o -o build/lib.linux-i686-2.2/missingos.so running install_lib creating /var/tmp/portage/portage-2.0.4/image/usr creating /var/tmp/portage/portage-2.0.4/image/usr/lib creating /var/tmp/portage/portage-2.0.4/image/usr/lib/python2.2 creating /var/tmp/portage/portage-2.0.4/image/usr/lib/python2.2/site-packages copying build/lib.linux-i686-2.2/missingos.so -> /var/tmp/portage/portage-2.0.4/image/usr/lib/python2.2/site-packages warning: install: modules installed to '/var/tmp/portage/portage-2.0.4/image/usr/lib/python2.2/site-packages/', which is not in Python's module search path (sys.path) -- you'll have to change the search path yourself strip: /var/tmp/portage/portage-2.0.4/image/usr/lib/python2.2/site-packages/missingos.so /var/tmp/portage/portage-2.0.4/image/usr/lib/portage/bin/tbz2tool /var/tmp/portage/portage-2.0.4/image/usr/lib/portage/bin/sandbox /var/tmp/portage/portage-2.0.4/image/lib/libsandbox.so >>> Completed installing into /var/tmp/portage/portage-2.0.4/image/  >>> Merging sys-apps/portage-2.0.4 to / --- /etc/ --- /etc/make.globals --- /etc/make.conf --- /usr/ --- /usr/lib/ --- /usr/lib/python2.2/ --- /usr/lib/python2.2/site-packages/ >>> /usr/lib/python2.2/site-packages/missingos.so >>> /usr/lib/python2.2/site-packages/xpak.py >>> /usr/lib/python2.2/site-packages/portage.py >>> /usr/lib/python2.2/site-packages/output.py --- /usr/lib/portage/ --- /usr/lib/portage/bin/ >>> /usr/lib/portage/bin/chkcontents >>> /usr/lib/portage/bin/db-update.py >>> /usr/lib/portage/bin/dobin >>> /usr/lib/portage/bin/dodir >>> /usr/lib/portage/bin/dodoc >>> /usr/lib/portage/bin/doexe >>> /usr/lib/portage/bin/dohard >>> /usr/lib/portage/bin/dohtml >>> /usr/lib/portage/bin/doinfo >>> /usr/lib/portage/bin/doins >>> /usr/lib/portage/bin/dojar >>> /usr/lib/portage/bin/dolib >>> /usr/lib/portage/bin/dolib.a >>> /usr/lib/portage/bin/dolib.so >>> /usr/lib/portage/bin/doman >>> /usr/lib/portage/bin/domo >>> /usr/lib/portage/bin/dopython >>> /usr/lib/portage/bin/dosbin >>> /usr/lib/portage/bin/dosed >>> /usr/lib/portage/bin/dosym >>> /usr/lib/portage/bin/ebuild >>> /usr/lib/portage/bin/ebuild.sh >>> /usr/lib/portage/bin/emake >>> /usr/lib/portage/bin/emerge >>> /usr/lib/portage/bin/env-update >>> /usr/lib/portage/bin/find-packages >>> /usr/lib/portage/bin/find-requires >>> /usr/lib/portage/bin/fowners >>> /usr/lib/portage/bin/fperms >>> /usr/lib/portage/bin/megadigest >>> /usr/lib/portage/bin/megadownload >>> /usr/lib/portage/bin/megatouch >>> /usr/lib/portage/bin/newbin >>> /usr/lib/portage/bin/newdoc >>> /usr/lib/portage/bin/newexe >>> /usr/lib/portage/bin/newins >>> /usr/lib/portage/bin/newlib.a >>> /usr/lib/portage/bin/newlib.so >>> /usr/lib/portage/bin/newman >>> /usr/lib/portage/bin/newsbin >>> /usr/lib/portage/bin/pdb >>> /usr/lib/portage/bin/pdb.cgi >>> /usr/lib/portage/bin/pkglist >>> /usr/lib/portage/bin/pkgmerge >>> /usr/lib/portage/bin/pkgmerge.new >>> /usr/lib/portage/bin/pkgname >>> /usr/lib/portage/bin/pkgsearch >>> /usr/lib/portage/bin/prepall >>> /usr/lib/portage/bin/prepalldocs >>> /usr/lib/portage/bin/prepallinfo >>> /usr/lib/portage/bin/prepallman >>> /usr/lib/portage/bin/prepallstrip >>> /usr/lib/portage/bin/prepinfo >>> /usr/lib/portage/bin/preplib >>> /usr/lib/portage/bin/preplib.so >>> /usr/lib/portage/bin/prepman >>> /usr/lib/portage/bin/prepstrip >>> /usr/lib/portage/bin/queryhost.sh >>> /usr/lib/portage/bin/quickpkg >>> /usr/lib/portage/bin/repoman >>> /usr/lib/portage/bin/tbz2tool >>> /usr/lib/portage/bin/testsandbox.sh >>> /usr/lib/portage/bin/xpak >>> /usr/lib/portage/bin/sandbox --- /usr/lib/portage/lib/ >>> /usr/lib/portage/lib/sandbox.bashrc --- /usr/bin/ --- /usr/sbin/ --- /usr/share/ --- /usr/share/man/ --- /usr/share/man/man1/ >>> /usr/share/man/man1/chkcontents.1.gz >>> /usr/share/man/man1/ebuild.1.gz >>> /usr/share/man/man1/emerge.1.gz >>> /usr/share/man/man1/pkglist.1.gz >>> /usr/share/man/man1/pkgsearch.1.gz --- /usr/share/man/man5/ >>> /usr/share/man/man5/ebuild.5.gz >>> /usr/share/man/man5/make.conf.5.gz >>> /usr/share/man/man5/make.defaults.5.gz --- /usr/share/doc/ --- /usr/share/doc/portage-2.0.4/ >>> /usr/share/doc/portage-2.0.4/ChangeLog.gz --- /lib/ >>> /lib/libsandbox.so --- /var/ --- /var/tmp/ >>> /var/tmp/.keep >>> /usr/lib/portage/bin/pmake -> emake >>> /usr/lib/portage/bin/donewins -> newins >>> /usr/bin/emerge -> ../lib/portage/bin/emerge >>> /usr/bin/xpak -> ../lib/portage/bin/xpak >>> /usr/bin/repoman -> ../lib/portage/bin/repoman >>> /usr/bin/tbz2tool -> ../lib/portage/bin/tbz2tool >>> /usr/sbin/pkgmerge -> ../lib/portage/bin/pkgmerge >>> /usr/sbin/ebuild -> ../lib/portage/bin/ebuild >>> /usr/sbin/ebuild.sh -> ../lib/portage/bin/ebuild.sh >>> /usr/sbin/env-update -> ../lib/portage/bin/env-update  >>> Safely unmerging already-installed instance... >>> Config file management enabled for /etc/ >>> Config file management enabled for /usr/kde/3/share/config/ --- !mtime obj /var/tmp/.keep --- !empty dir /var/tmp --- !empty dir /var --- !mtime obj /usr/share/man/man5/make.defaults.5.gz --- !mtime obj /usr/share/man/man5/make.conf.5.gz --- !mtime obj /usr/share/man/man5/ebuild.5.gz --- !empty dir /usr/share/man/man5 --- !mtime obj /usr/share/man/man1/pkgsearch.1.gz --- !mtime obj /usr/share/man/man1/pkglist.1.gz --- !mtime obj /usr/share/man/man1/emerge.1.gz --- !mtime obj /usr/share/man/man1/ebuild.1.gz --- !mtime obj /usr/share/man/man1/chkcontents.1.gz --- !empty dir /usr/share/man/man1 --- !empty dir /usr/share/man --- !mtime obj /usr/share/doc/portage-2.0.4/ChangeLog.gz --- !empty dir /usr/share/doc/portage-2.0.4 --- !empty dir /usr/share/doc --- !empty dir /usr/share --- !mtime sym /usr/sbin/pkgmerge --- !mtime sym /usr/sbin/env-update --- !mtime sym /usr/sbin/ebuild.sh --- !mtime sym /usr/sbin/ebuild --- !empty dir /usr/sbin --- !mtime obj /usr/lib/python2.2/site-packages/xpak.py --- !mtime obj /usr/lib/python2.2/site-packages/portage.py --- !mtime obj /usr/lib/python2.2/site-packages/output.py --- !mtime obj /usr/lib/python2.2/site-packages/missingos.so --- !empty dir /usr/lib/python2.2/site-packages --- !empty dir /usr/lib/python2.2 --- !mtime obj /usr/lib/portage/lib/sandbox.bashrc --- !empty dir /usr/lib/portage/lib --- !mtime obj /usr/lib/portage/bin/xpak --- !mtime obj /usr/lib/portage/bin/testsandbox.sh --- !mtime obj /usr/lib/portage/bin/tbz2tool --- !mtime obj /usr/lib/portage/bin/sandbox --- !mtime obj /usr/lib/portage/bin/repoman --- !mtime obj /usr/lib/portage/bin/quickpkg --- !mtime obj /usr/lib/portage/bin/queryhost.sh --- !mtime obj /usr/lib/portage/bin/prepstrip --- !mtime obj /usr/lib/portage/bin/prepman --- !mtime obj /usr/lib/portage/bin/preplib.so --- !mtime obj /usr/lib/portage/bin/preplib --- !mtime obj /usr/lib/portage/bin/prepinfo --- !mtime obj /usr/lib/portage/bin/prepallstrip --- !mtime obj /usr/lib/portage/bin/prepallman --- !mtime obj /usr/lib/portage/bin/prepallinfo --- !mtime obj /usr/lib/portage/bin/prepalldocs --- !mtime obj /usr/lib/portage/bin/prepall --- !mtime sym /usr/lib/portage/bin/pmake --- !mtime obj /usr/lib/portage/bin/pkgsearch --- !mtime obj /usr/lib/portage/bin/pkgname --- !mtime obj /usr/lib/portage/bin/pkgmerge.new --- !mtime obj /usr/lib/portage/bin/pkgmerge --- !mtime obj /usr/lib/portage/bin/pkglist --- !mtime obj /usr/lib/portage/bin/pdb.cgi --- !mtime obj /usr/lib/portage/bin/pdb --- !mtime obj /usr/lib/portage/bin/newsbin --- !mtime obj /usr/lib/portage/bin/newman --- !mtime obj /usr/lib/portage/bin/newlib.so --- !mtime obj /usr/lib/portage/bin/newlib.a --- !mtime obj /usr/lib/portage/bin/newins --- !mtime obj /usr/lib/portage/bin/newexe --- !mtime obj /usr/lib/portage/bin/newdoc --- !mtime obj /usr/lib/portage/bin/newbin --- !mtime obj /usr/lib/portage/bin/megatouch --- !mtime obj /usr/lib/portage/bin/megadownload --- !mtime obj /usr/lib/portage/bin/megadigest --- !mtime obj /usr/lib/portage/bin/fperms --- !mtime obj /usr/lib/portage/bin/fowners --- !mtime obj /usr/lib/portage/bin/find-requires --- !mtime obj /usr/lib/portage/bin/find-packages --- !mtime obj /usr/lib/portage/bin/env-update --- !mtime obj /usr/lib/portage/bin/emerge --- !mtime obj /usr/lib/portage/bin/emake --- !mtime obj /usr/lib/portage/bin/ebuild.sh --- !mtime obj /usr/lib/portage/bin/ebuild --- !mtime obj /usr/lib/portage/bin/dosym --- !mtime obj /usr/lib/portage/bin/dosed --- !mtime obj /usr/lib/portage/bin/dosbin --- !mtime obj /usr/lib/portage/bin/dopython --- !mtime sym /usr/lib/portage/bin/donewins --- !mtime obj /usr/lib/portage/bin/domo --- !mtime obj /usr/lib/portage/bin/doman --- !mtime obj /usr/lib/portage/bin/dolib.so --- !mtime obj /usr/lib/portage/bin/dolib.a --- !mtime obj /usr/lib/portage/bin/dolib --- !mtime obj /usr/lib/portage/bin/dojar --- !mtime obj /usr/lib/portage/bin/doins --- !mtime obj /usr/lib/portage/bin/doinfo --- !mtime obj /usr/lib/portage/bin/dohtml --- !mtime obj /usr/lib/portage/bin/dohard --- !mtime obj /usr/lib/portage/bin/doexe --- !mtime obj /usr/lib/portage/bin/dodoc --- !mtime obj /usr/lib/portage/bin/dodir --- !mtime obj /usr/lib/portage/bin/dobin --- !mtime obj /usr/lib/portage/bin/db-update.py --- !mtime obj /usr/lib/portage/bin/chkcontents --- !empty dir /usr/lib/portage/bin --- !empty dir /usr/lib/portage --- !empty dir /usr/lib --- !mtime sym /usr/bin/xpak --- !mtime sym /usr/bin/tbz2tool --- !mtime sym /usr/bin/repoman --- !mtime sym /usr/bin/emerge --- !empty dir /usr/bin --- !empty dir /usr --- !mtime obj /lib/libsandbox.so --- !empty dir /lib --- !mtime obj /etc/make.conf --- !empty dir /etc >>> original instance of package unmerged safely. >>> Database upgrade... >>> Writing out new virtuals file... >>> Backing up to /tmp/db-upgrade-bak... >>> Done. Listing /usr/lib/python2.2/site-packages ... Compiling /usr/lib/python2.2/site-packages/libxml2.py ...   File "/usr/lib/python2.2/site-packages/libxml2.py", line 2212     if ret == None:raise treeError('xmlGetID() fail                                                   ^ SyntaxError: invalid token Compiling /usr/lib/python2.2/site-packages/output.py ... Compiling /usr/lib/python2.2/site-packages/portage.py ... Compiling /usr/lib/python2.2/site-packages/xpak.py ... Listing /usr/lib/python2.2/site-packages ... Compiling /usr/lib/python2.2/site-packages/libxml2.py ...   File "/usr/lib/python2.2/site-packages/libxml2.py", line 2212     if ret == None:raise treeError('xmlGetID() fail                                                   ^ SyntaxError: invalid token Compiling /usr/lib/python2.2/site-packages/output.py ... Compiling /usr/lib/python2.2/site-packages/portage.py ... Compiling /usr/lib/python2.2/site-packages/xpak.py ... >>> Regenerating /etc/ld.so.cache... >>> sys-apps/portage-2.0.4 merged.   * Regenerating GNU info directory index...  * Processed 52 info files.  * IMPORTANT: 1 config files in /etc need updating.  * Type emerge --help config to learn how to update config files.
Comment 1 Daniel Robbins (RETIRED) gentoo-dev 2002-06-23 15:49:19 UTC
The output didn't paste correctly; could you add it as an attachment?
Comment 2 Jon M. Hanson 2002-06-24 10:57:59 UTC
I'm going to have to mail the attachment to you. Bugzilla is refusing to  attach the file. After I select the file on my computer to upload, Bugzilla  asks me to login again. After I enter my login information again it says that  there was no file selected to attach. Can you attach it to this report?  What the attachment contains is the result of trying to update Portage following the instructions in the Portage User Guide. I did a:  emerge --clean rsync  The next step I did is the very first line in the file I'm going to e-mail to you. 
Comment 3 Daniel Robbins (RETIRED) gentoo-dev 2002-06-24 11:51:29 UTC
OK, got the email and will be fixed in the next Portage release.
Comment 4 Jon M. Hanson 2002-06-24 18:57:25 UTC
I just wanted to add that I did not see this problem when I did the following steps:  emerge rsync emerge --update world  The last emerge picked up the new portage and built it without any of the errors I reported when emerging portage by itself (following the directions in the Portage User Guide).