Bug 87476

Summary: SRPMS: buid.py fails if . in PATH before /usr/bin/
Product: [Retired] Red Hat Linux Reporter: Sysoltsev Slawa <vyatcheslav.sysoltsev>
Component: PyQtAssignee: Than Ngo <than>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 8.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-04-30 14:40:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Description Flags
Log produced by `rpmbuild -bc --define "_topdir $(pwd)" SPECS/PyQt.spec` none

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 
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:

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