When the bulk build code encounters a directory in *SPECIFIC_PKGS
that does not exist, it stopped. Now it instead adds an entry to the main broken file and marks it as not package with maintainer "directory_does_not_exist" in the HTML output. (Not packaged directories are not mentioned in the text version.)
This commit is contained in:
parent
0fb7a85ff4
commit
7400a7cf16
2 changed files with 27 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
||||||
# $NetBSD: bsd.bulk-pkg.mk,v 1.120 2006/07/03 00:00:56 rillig Exp $
|
# $NetBSD: bsd.bulk-pkg.mk,v 1.121 2006/07/26 17:00:03 wiz Exp $
|
||||||
|
|
||||||
#
|
#
|
||||||
# Copyright (c) 1999, 2000 Hubert Feyrer <hubertf@NetBSD.org>
|
# Copyright (c) 1999, 2000 Hubert Feyrer <hubertf@NetBSD.org>
|
||||||
|
@ -248,7 +248,12 @@ bulk-cache:
|
||||||
@${BULK_MSG} "Extracting database for SPECIFIC_PKGS subset of pkgsrc"
|
@${BULK_MSG} "Extracting database for SPECIFIC_PKGS subset of pkgsrc"
|
||||||
@${BULK_MSG_CONT} "along with their dependencies"
|
@${BULK_MSG_CONT} "along with their dependencies"
|
||||||
. for __tmp__ in ${SUBDIR} ${BULK_PREREQ} lang/perl5 pkgtools/pkglint
|
. for __tmp__ in ${SUBDIR} ${BULK_PREREQ} lang/perl5 pkgtools/pkglint
|
||||||
cd ${PKGSRCDIR}/${__tmp__} && ${SETENV} BMAKE=${MAKE:Q} AWK=${AWK:Q} EXPR=${EXPR:Q} ${SH} ../../mk/scripts/mkdatabase -a -f ${BULK_DBFILE:Q}
|
@if [ ! -d ${PKGSRCDIR}/${__tmp__} ]; then \
|
||||||
|
${BULK_MSG} "WARN: Skipping nonexisting directory ${__tmp__}"; \
|
||||||
|
${ECHO} " 0 ${__tmp__} 0" >> ${BULKFILESDIR:Q}/${BROKENFILE:Q}; \
|
||||||
|
else \
|
||||||
|
cd ${PKGSRCDIR}/${__tmp__} && ${SETENV} BMAKE=${MAKE:Q} AWK=${AWK:Q} EXPR=${EXPR:Q} ${SH} ../../mk/scripts/mkdatabase -a -f ${BULK_DBFILE:Q}; \
|
||||||
|
fi
|
||||||
. endfor
|
. endfor
|
||||||
@${BULK_MSG} "Extracting dependency tree file"
|
@${BULK_MSG} "Extracting dependency tree file"
|
||||||
${AWK} '/^(build_)?depends/ {pkgs[$$2] = 1; cat=$$2; sub(/\/.*/, "", cat); \
|
${AWK} '/^(build_)?depends/ {pkgs[$$2] = 1; cat=$$2; sub(/\/.*/, "", cat); \
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/pkg/bin/perl
|
#!/usr/pkg/bin/perl
|
||||||
# $NetBSD: post-build,v 1.63 2006/01/21 11:29:32 rillig Exp $
|
# $NetBSD: post-build,v 1.64 2006/07/26 17:00:03 wiz Exp $
|
||||||
#
|
#
|
||||||
# Collect stuff after a pkg bulk build
|
# Collect stuff after a pkg bulk build
|
||||||
#
|
#
|
||||||
|
@ -322,8 +322,20 @@ sub pkgResult ($$) {
|
||||||
my $pkg = $pinfo->{pkg};
|
my $pkg = $pinfo->{pkg};
|
||||||
my $nbrokenby = $pinfo->{nbrokenby};
|
my $nbrokenby = $pinfo->{nbrokenby};
|
||||||
my $nerrors = $pinfo->{nerrors};
|
my $nerrors = $pinfo->{nerrors};
|
||||||
|
my $pkgdirmissing = 0;
|
||||||
|
my $DIR;
|
||||||
|
|
||||||
my @idents = `$vars{FIND} $vars{USR_PKGSRC}/$pkg -type f -print | xargs grep \\\$NetBSD`;
|
if (not opendir($DIR, "$vars{USR_PKGSRC}/$pkg")) {
|
||||||
|
$pkgdirmissing=1;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
closedir($DIR);
|
||||||
|
}
|
||||||
|
|
||||||
|
my @idents = "";
|
||||||
|
if (not $pkgdirmissing) {
|
||||||
|
@idents = `$vars{FIND} $vars{USR_PKGSRC}/$pkg -type f -print | xargs grep \\\$NetBSD`;
|
||||||
|
}
|
||||||
my $datetime = "";
|
my $datetime = "";
|
||||||
my $file = "";
|
my $file = "";
|
||||||
my $ver = "";
|
my $ver = "";
|
||||||
|
@ -336,7 +348,12 @@ sub pkgResult ($$) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
my $maintainer = `grep ^MAINTAINER $vars{USR_PKGSRC}/$pkg/Makefile`;
|
my $maintainer;
|
||||||
|
if (not $pkgdirmissing) {
|
||||||
|
$maintainer = `grep ^MAINTAINER $vars{USR_PKGSRC}/$pkg/Makefile`;
|
||||||
|
} else {
|
||||||
|
$maintainer = "directory_does_not_exist";
|
||||||
|
}
|
||||||
$maintainer =~ s/MAINTAINER=[ \t]*//;
|
$maintainer =~ s/MAINTAINER=[ \t]*//;
|
||||||
if (! $maintainer) {
|
if (! $maintainer) {
|
||||||
$maintainer = `cd $vars{USR_PKGSRC}/$pkg ; $BMAKE show-var VARNAME=MAINTAINER`;
|
$maintainer = `cd $vars{USR_PKGSRC}/$pkg ; $BMAKE show-var VARNAME=MAINTAINER`;
|
||||||
|
|
Loading…
Reference in a new issue