Bug 87476 - SRPMS: buid.py fails if . in PATH before /usr/bin/
Summary: SRPMS: buid.py fails if . in PATH before /usr/bin/
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: PyQt
Version: 8.0
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Than Ngo
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-03-27 14:11 UTC by Sysoltsev Slawa
Modified: 2007-03-27 04:02 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2003-04-30 14:40:32 UTC
Embargoed:


Attachments (Terms of Use)
Log produced by `rpmbuild -bc --define "_topdir $(pwd)" SPECS/PyQt.spec` (8.87 KB, text/plain)
2003-03-27 14:13 UTC, Sysoltsev Slawa
no flags Details

Description Sysoltsev Slawa 2003-03-27 14:11:44 UTC
Description of problem:
Building PyQt from sources I got the problem, that build.py (configure script) 
recognizes "sip" directory in sources as it would "sip" code generator (which 
actually is in /usr/bin/).
I have . in my PATH variable near to the beginning, so it appears before /usr/bin, 
where sip is situated. In sources there is "sip" directory, so build.py script 
determines that this DIRECTORY is my acute sip code generaror and fails to 
execute it. Here is part of its output:
....
******************************************************************************
/home/users/vsysoltx/tc_4/WORK_DIR/BUILD/PyQt-3.3.2/sip will be used as the 
SIP
code generator.
******************************************************************************
******************************************************************************
Error: /home/users/vsysoltx/tc_4/WORK_DIR/BUILD/PyQt-3.3.2/sip failed with an
exit code of 127.
...

You should fix the build.py not do such an error. It is quite easy to check wheteher 
something file or directory in searchPath function and skip directories. I would fix it 
and send you the patch but I unfortunately don't know python.



Version-Release number of selected component (if applicable):


How reproducible:
always

Steps to Reproduce:
1. export PATH=.:$PATH
2. Try to build PyQt from SRPMS

    
Actual results:
build.py fails

Expected results:
Succesfully built package

Additional info:
I'll attach the full log.
I use may be quite old version of PyQt package (3.3.2, got this quite long ago). As 
soon as RH9.0 is released I will use new one. Just check that there is no such 
error in it.

Comment 1 Sysoltsev Slawa 2003-03-27 14:13:08 UTC
Created attachment 90743 [details]
Log produced by `rpmbuild -bc --define "_topdir $(pwd)" SPECS/PyQt.spec`

Comment 2 Than Ngo 2003-04-30 14:40:32 UTC
it's fixed in PyQt-3.6-2 or newer


Note You need to log in before you can comment on or make changes to this bug.