Bug 162749 - Can not rebuild last official php by user
Can not rebuild last official php by user
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: php (Show other bugs)
All Linux
medium Severity low
: ---
: ---
Assigned To: Joe Orton
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2005-07-08 05:30 EDT by Andy Shevchenko
Modified: 2007-11-30 17:07 EST (History)
0 users

See Also:
Fixed In Version: 4.3.9-3.8
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-08-20 04:11:28 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Andy Shevchenko 2005-07-08 05:30:43 EDT
Description of problem:
I can not rebuild php from last official updates for rhel3/4 by user.

Actual results:
++ mktemp -dp /home/build/BUILD/php-4.3.9
+ pkg=/tmp/tmp.DVdsU30507
+ pushd /tmp/tmp.DVdsU30507+ tar -xvf ../pear/packages/XML_RPC-1.1.0.tartar: ../
pear/packages/XML_RPC-1.1.0.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
error: Bad exit status from /var/tmp/rpm-tmp.79533 (%prep)
    Bad exit status from /var/tmp/rpm-tmp.79533 (%prep)

Expected results:
Normal building.

My investigation shows that mktemp util have been got $TMPDIR value instead of -
p argument due to priority.

As result I propose 2 ways for fixing issue:
- unset TMPDIR in user environment
- or include unset TMPDIR into spec file.
Comment 1 Joe Orton 2005-07-08 05:52:44 EDT
Thanks for the report and analysis.

Indeed; changing the mktemp line to:

pkg=`unset TMPDIR; mktemp -dp ${PWD}`

should work.
Comment 2 Joe Orton 2005-08-20 04:11:28 EDT
This was fixed in the RHSA-2005:748 update.

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