summaryrefslogtreecommitdiff
path: root/mk/bulk
diff options
context:
space:
mode:
authorrillig <rillig>2006-11-26 08:39:52 +0000
committerrillig <rillig>2006-11-26 08:39:52 +0000
commite8c78bca9695b35aa9dea65f3e7fe69efd534d35 (patch)
tree2156545de90f75139b9c568691ceaed60175b02f /mk/bulk
parent45574e5ace1b20fed7e7a453904122d4535eded8 (diff)
downloadpkgsrc-e8c78bca9695b35aa9dea65f3e7fe69efd534d35.tar.gz
The bulk builds now use the new target can-be-built-here, which checks
if some of PKG_SKIP_REASON, PKG_FAIL_REASON, NOT_FOR_*, ONLY_FOR_* are set. The code uses some shell trickery to avoid the use of subshells, since these would prevent the variable assignments from being effective.
Diffstat (limited to 'mk/bulk')
-rw-r--r--mk/bulk/printindex22
-rw-r--r--mk/bulk/printindex.15
2 files changed, 24 insertions, 3 deletions
diff --git a/mk/bulk/printindex b/mk/bulk/printindex
index f5cbb9f4076..82ad5058452 100644
--- a/mk/bulk/printindex
+++ b/mk/bulk/printindex
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: printindex,v 1.28 2005/11/28 01:14:35 rillig Exp $
+# $NetBSD: printindex,v 1.29 2006/11/26 08:39:52 rillig Exp $
#
# Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -134,6 +134,9 @@ case $list in
exit 1
esac
+newline="
+"
+
#
# Print the table of PKGPATH and PKGNAME.
#
@@ -158,9 +161,24 @@ for pkgdir in $list :detect_duplicates: $BULK_PREREQ; do
esac
if cd "${pkgsrcdir}/${pkgdir}"; then
- if pkgname=`${BMAKE} show-var VARNAME=PKGNAME`; then
+ if output=`${BMAKE} show-var VARNAME=PKGNAME can-be-built-here`; then
+ reasons=""
+ {
+ read pkgname
+ read can_be_built_here
+ while read reason; do
+ reasons="$reasons$reason$newline"
+ done
+ } <<EOF
+$output
+EOF
echo "${pkgdir} ${pkgname}"
done_pkgs="${done_pkgs} =${pkgdir}="
+
+ if [ "$can_be_built_here" != "yes" ]; then
+ ${mkbulkdir} "${bulkfilesdir}/${pkgdir}"
+ echo "$reasons" > "${bulkfilesdir}/${pkgdir}/${brokenfile}"
+ fi
else
echo "$0: error: could not extract PKGNAME for ${pkgdir} -- skipping." 1>&2
diff --git a/mk/bulk/printindex.1 b/mk/bulk/printindex.1
index a6da64b3c31..c8b79178362 100644
--- a/mk/bulk/printindex.1
+++ b/mk/bulk/printindex.1
@@ -1,4 +1,4 @@
-.\" $NetBSD: printindex.1,v 1.6 2006/01/19 10:21:12 rillig Exp $
+.\" $NetBSD: printindex.1,v 1.7 2006/11/26 08:39:52 rillig Exp $
.\"
.\" Copyright (c) 2005 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -46,6 +46,9 @@
.Sh DESCRIPTION
Generates a mapping from pkgsrc directories to the current package
version and prints it on stdout.
+It also checks whether the package can be built on this system at all
+and marks those that cannot be built as broken.
+.Pp
Each line of the output has two fields:
the package directory (in the form
.Ql category/package )