aboutsummaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2008-03-13 17:54:03 +0800
committerpav <pav@FreeBSD.org>2008-03-13 17:54:03 +0800
commitc8e89bacdb808547bb88f42ec5d25e8a9a27e4eb (patch)
treeb75f9a13351977b4c2155b2df07402aee12ecb07 /Tools
parent4b3b4acb89473c91814197b76faa4ec3cb590753 (diff)
downloadfreebsd-ports-gnome-c8e89bacdb808547bb88f42ec5d25e8a9a27e4eb.tar.gz
freebsd-ports-gnome-c8e89bacdb808547bb88f42ec5d25e8a9a27e4eb.tar.zst
freebsd-ports-gnome-c8e89bacdb808547bb88f42ec5d25e8a9a27e4eb.zip
- Add the port's Makefile ident string to the build log headers
PR: 113234 Submitted by: Andrej Zverev <andrey.zverev@electro-com.ru> - Sync with actual script on pointyhat (whitespace, mostly)
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/buildscript9
1 files changed, 7 insertions, 2 deletions
diff --git a/Tools/portbuild/scripts/buildscript b/Tools/portbuild/scripts/buildscript
index 2a86d33bcf43..2aa96ec14a06 100755
--- a/Tools/portbuild/scripts/buildscript
+++ b/Tools/portbuild/scripts/buildscript
@@ -16,6 +16,7 @@ cleanup() {
fi
fi
+
if [ -e ${dir}/.keep ]; then
cd ${dir}
objdir=$(make -V WRKDIR)
@@ -111,12 +112,13 @@ FD=$5
BD=$6
RD=$7
-export PATH=/pkg/libexec/ccache/:$PATH
-export CCACHE_PATH=/usr/bin:/usr/local/bin
+#export PATH=/ccache/libexec/ccache/:$PATH
+#export CCACHE_PATH=/usr/bin:/usr/local/bin
export MALLOC_OPTIONS=AJ
L=`echo ${LOCALBASE} | sed 's,^/,,'`
X=`echo ${X11BASE} | sed 's,^/,,'`
+Z=`ident ${dir}/Makefile | grep 'FreeBSD:' | sed 's/^[ \t]*//'`
if [ $phase = 1 ]; then
@@ -124,6 +126,7 @@ if [ $phase = 1 ]; then
echo "building for: $(uname -mr)"
echo "maintained by: $(make maintainer)"
echo "port directory: ${dir}"
+ echo "Makefile ident: ${Z}"
echo "build started at $(date)"
echo "FETCH_DEPENDS=${FD}"
@@ -163,6 +166,7 @@ EOF
# Record a "pristine" mtree.
mtree -X /tmp/mtree.preexclude -xcn -k uid,gid,mode -p / > /tmp/mtree.pristine
+
add_pkg $FD
cd $dir || exit 1
@@ -393,6 +397,7 @@ EOF
kill $(jobid %1)
fi
+ # XXX Don't keep distfiles if checksum mismatches
cd ${dir}
keep_distfiles=$(make -V ALWAYS_KEEP_DISTFILES)
distdir=$(make -V DISTDIR)