mkspec-wrapper.sh: Write install logs to /tmp/rpmbuild-<username>

Move rpmbuild installation to below /tmp/rpmbuild-<username>, in
order to avoid permission clashes. Note that this still produces
clashes if multiple packages are built concurrently by the same user.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2016-07-26 15:02:21 +00:00
commit ae02a96808

View file

@ -1,10 +1,12 @@
#!/bin/sh -x
MYNAME=`basename $0`
ID=`whoami`
if [ ! "$INSTALL_LOG" ]; then
#INSTALL_LOG=/var/tmp/%{name}-buildroot/install.log
INSTALL_LOG=/tmp/rpmbuild/install.log
INSTALL_LOG=/tmp/rpmbuild-$ID/install.log
fi
MYNAME=`basename $0`
MKSPEC_SH="$1"
shift