summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsketch <sketch@pkgsrc.org>2005-05-18 20:12:49 +0000
committersketch <sketch@pkgsrc.org>2005-05-18 20:12:49 +0000
commit981908643c3840140ea285e79c355f27c3f0e13a (patch)
tree9ccd065c60d836bb39a9b204215633aa8ab88431
parent17eed7287a6b49d9c01f5acbfb23ed05cd4221ad (diff)
downloadpkgsrc-981908643c3840140ea285e79c355f27c3f0e13a.tar.gz
Reinstall BULK_PREREQ before running the post-build script as there may be
dependancies required for that script, an smtpd for example, as well.
-rw-r--r--mk/bulk/build11
1 files changed, 10 insertions, 1 deletions
diff --git a/mk/bulk/build b/mk/bulk/build
index 06bb213aefd..e28da38c39a 100644
--- a/mk/bulk/build
+++ b/mk/bulk/build
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: build,v 1.49 2005/05/03 16:34:02 jlam Exp $
+# $NetBSD: build,v 1.50 2005/05/18 20:12:49 sketch Exp $
#
# Copyright (c) 1999, 2000 Hubert Feyrer <hubertf@NetBSD.org>
@@ -356,6 +356,15 @@ echo "Post processing bulk build results..."
#rm $DEPENDSTREEFILE $DEPENDSFILE $SUPPORTSFILE $INDEXFILE $ORDERFILE
+# Re-install BULK_PREREQ as we may need functionality (e.g. SMTP) provided by
+# them for post-build to run.
+echo "Re-installing prerequisite packages specified with BULK_PREREQ..."
+for pkgdir in $BULK_PREREQ
+do
+ echo $pkgdir
+ ( cd ${USR_PKGSRC}/$pkgdir && ${BMAKE} bulk-install )
+done
+
# Perl was wiped, reinstall it!
( cd pkgtools/pkglint && cd ${PERL5_PKGSRCDIR} && ${BMAKE} bulk-install )
perl mk/bulk/post-build | ${MAIL_CMD} -s "pkgsrc ${OPSYS} ${OS_VERSION}/${MACHINE_ARCH} bulk build results `date +%Y-%m-%d`" $ADMIN