Red Hat Bugzilla – Bug 235614
brp-java-repack-jars redefines TMPDIR while using mktemp
Last modified: 2007-11-30 17:12:01 EST
Description of problem:
mktemp uses the TMPDIR environment variable. The brp-java-repack-jars script
resets TMPDIR to arbitrary values that don't necessarily exist, and then tries
to use mktemp. Failures ensue.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. try to build, for example, a jpackage.org nosrc rpm
2. watch it not work.
3. there is no step three.
it fails with an error message about a temporary directory not existing.
it shouldn't be looking there anyway
replace all instances of TMPDIR in this script with something like JTMPDIR and
the problem is solved
This is still a problem in current Fedora Rawhide (pre-f8, at this point), and
in RHEL5. It's an easy fix -- please make it.
Push will be fixed for rawhide later today
Also, this probably deserves to get put in an update for RHEL5 eventually.
Cloned as a RHEL5 bug.