Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 87476 - SRPMS: fails if . in PATH before /usr/bin/
Summary: SRPMS: fails if . in PATH before /usr/bin/
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: PyQt
Version: 8.0
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Ngo Than
QA Contact:
Depends On:
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:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2003-04-30 14:40:32 UTC

Attachments (Terms of Use)
Log produced by `rpmbuild -bc --define "_topdir $(pwd)" SPECS/PyQt.spec` (deleted)
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 (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 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 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: 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 Ngo Than 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.