Apache OpenOffice (AOO) Bugzilla – Issue 36210
Installation into a different directory fails because mktemp fails
Last modified: 2013-07-30 02:23:13 UTC
If an install is attempted into a directory which is different from where the software is unpacked (e.g. /Install/OOo_1.1.3_LinuxIntel_install/install --prefix=/opt), it fails. Mktemp is failing because it is called with the following: /tmp/$0.XXXXXX Since $0 contains slashes, mktemp fails. Here's a proposed patch: $ diff -c install install.orig *** install Wed Oct 27 09:24:20 2004 --- install.orig Fri Sep 10 08:41:52 2004 *************** *** 104,111 **** # for more information, please see: # www.dwheeler.com/secure-programs/Secure-Programs-HOWTO/avoid-race.html ! TMPFILENAME='/tmp/'`basename $0`.'.XXXXXX' ! TMPFILE=`mktemp -q $TMPFILENAME` if [ $? -ne 0 ]; then echo "$0: Can't create temp file, exiting..." exit 1 --- 104,110 ---- # for more information, please see: # www.dwheeler.com/secure-programs/Secure-Programs-HOWTO/avoid-race.html ! TMPFILE=`mktemp -q /tmp/$0.XXXXXX` if [ $? -ne 0 ]; then echo "$0: Can't create temp file, exiting..." exit 1 $
setting to NEW, because issue sounds reasonable and average volunteer from QA team cannot do much about this.
Please have a look
issue obsolete because OOo will switch to native installers with 2.0?
Reset assignee on issues not touched by assignee in more than 2000 days.