Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 207919 - dev-util/qmtest-2.4 - Paths in config.pyc are incorrectly pointing into the /var/tmp/portage tree
Summary: dev-util/qmtest-2.4 - Paths in config.pyc are incorrectly pointing into the /...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Joel Martin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-28 16:04 UTC by Johan Bevemyr
Modified: 2008-05-02 21:29 UTC (History)
2 users (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 Johan Bevemyr 2008-01-28 16:04:55 UTC
A path in the compiled version of config.py is wrong. It is correct in the config.py file. 

If I delete the config.pyc file then qmtest works. The problem appears
to be that the qm.prefix path is set to /var/tmp/portage/dev-util/qmtest-2.4/image/ when it should be set to 
/usr.

Reproducible: Always

Steps to Reproduce:
1. run qmtest
2. get crash
3.

Actual Results:  
jb@io /usr/lib/python2.4/site-packages/qm $ qmtest
Traceback (most recent call last):
  File "/usr/bin/qmtest", line 126, in ?
    qm.diagnostic.load_messages("test")
  File "usr/lib/python2.4/site-packages/qm/diagnostic.py", line 204, in load_messages
  File "usr/lib/python2.4/site-packages/qm/diagnostic.py", line 154, in get_diagnostic_set
  File "usr/lib/python2.4/site-packages/qm/diagnostic.py", line 83, in ReadFromFile
IOError: [Errno 2] No such file or directory: '/var/tmp/portage/dev-util/qmtest-2.4/image/share/qmtest/diagnostics/common.txt'
jb@io /usr/lib/python2.4/site-packages/qm $   

Expected Results:  
jb@io /usr/lib/python2.4/site-packages/qm $ qmtest
qmtest: error: Specify a command.

Run 'qmtest --help' to get instructions about how to use QMTest.
jb@io /usr/lib/python2.4/site-packages/qm $
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-01-28 16:11:07 UTC
This gets python stuff all wrong...

http://www.gentoo.org/proj/en/Python/developersguide.xml
Comment 2 Joel Martin (RETIRED) gentoo-dev 2008-01-28 16:22:28 UTC
Yep, I have cleanup here pending. I just haven't had a chance to test it and commit.
Comment 3 Joel Martin (RETIRED) gentoo-dev 2008-05-02 21:29:40 UTC
Okay, all the issues here should be resolved. 2.3 and 2.4 both use distutils and 2.4 now fixes the broken paths during the install phase.