Bugs item #1801058, was opened at 2007-09-24 13:17
Message generated for change (Comment added) made by sjoerd
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1801058&group_id=56967

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Build
Group: Clients 1.20
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Sjoerd Mullender (sjoerd)
Assigned to: Sjoerd Mullender (sjoerd)
Summary: make rpm in clients fails

Initial Comment:
make rpm in clients in the test web fails with mktemp: 

+ /usr/lib/rpm/redhat/brp-java-repack-jars
cannot make temp dir 
/tmp/monet.GNU.32.32.d.19936.tmpdir/monetdb-1.0-mcl.jar.tmpdir.bXXEJ28396/monetdb-1.6-jdbc.jar.tmpdir.DxPBC28514:
 No such file or directory
error: Bad exit status from /tmp/rpm-tmp.48127 (%install)

The reason for this is a bug in the script brp-java-repack-jars.  The script 
sets the variable TMPDIR to the output of mktemp, and then later does an rm -rf 
$TMPDIR.  Then it uses mktemp again (if there are multiple jars in an rpm).  
Normally this is not a problem, but if TMPDIR is set in the environment, the 
assignment changes the environment variable instead of just setting a local 
variable.  This means that the second call to mktemp sees an environment 
variable TMPDIR which points to a by this time non-existent directory.  (It 
TMPDIR was not set in the environment, setting it doesn't put it into the 
environment, so it has no effect on subsequent calls to mktemp.)

Needless to say, the test tools set TMPDIR in the environment.

----------------------------------------------------------------------

>Comment By: Sjoerd Mullender (sjoerd)
Date: 2007-09-24 21:57

Message:
Logged In: YES 
user_id=43607
Originator: YES

Indeed.
I don't know whether that is a problem on any of our testing platforms. 
Compilation during the make rpm will then use /tmp (or is it /var/tmp?)
which may or may not be big enough.

----------------------------------------------------------------------

Comment By: Stefan Manegold (stmane)
Date: 2007-09-24 18:19

Message:
Logged In: YES 
user_id=572415
Originator: NO

A work-around (*HACK!*) would be to temporarily unset TMPDIR in the
TestTools while calling `make rpm`/`rpmbuild` ...


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1801058&group_id=56967

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to