Mon Jun 2 10:24:05 2014 UTC ()
Remove old bulk build code. Use pbulk.


(wiz)
diff -r1.85 -r1.86 pkgsrc/Makefile
diff -r1.1999 -r1.2000 pkgsrc/mk/bsd.pkg.mk
diff -r1.6 -r0 pkgsrc/mk/bulk/TODO
diff -r1.152 -r0 pkgsrc/mk/bulk/bsd.bulk-pkg.mk
diff -r1.106 -r0 pkgsrc/mk/bulk/build
diff -r1.39 -r0 pkgsrc/mk/bulk/build.conf-example
diff -r1.12 -r0 pkgsrc/mk/bulk/do-sandbox-build
diff -r1.5 -r0 pkgsrc/mk/bulk/do-sandbox-upload
diff -r1.5 -r0 pkgsrc/mk/bulk/environment.txt
diff -r1.7 -r0 pkgsrc/mk/bulk/parallel.txt
diff -r1.71 -r0 pkgsrc/mk/bulk/post-build
diff -r1.14 -r0 pkgsrc/mk/bulk/post-build-conf
diff -r1.76 -r0 pkgsrc/mk/bulk/pre-build
diff -r1.25 -r0 pkgsrc/mk/bulk/printdepends
diff -r1.32 -r0 pkgsrc/mk/bulk/printindex
diff -r1.8 -r0 pkgsrc/mk/bulk/printindex.1
diff -r1.16 -r0 pkgsrc/mk/bulk/sort-packages
diff -r1.15 -r0 pkgsrc/mk/bulk/tflat
diff -r1.48 -r0 pkgsrc/mk/bulk/upload
diff -r1.5 -r1.6 pkgsrc/mk/misc/toplevel.mk

cvs diff -r1.85 -r1.86 pkgsrc/Makefile (expand / switch to unified diff)

--- pkgsrc/Makefile 2009/05/16 07:21:05 1.85
+++ pkgsrc/Makefile 2014/06/02 10:24:05 1.86
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.85 2009/05/16 07:21:05 rillig Exp $ 1# $NetBSD: Makefile,v 1.86 2014/06/02 10:24:05 wiz Exp $
2# 2#
3# This is the top-level Makefile of pkgsrc. It contains a list of the 3# This is the top-level Makefile of pkgsrc. It contains a list of the
4# categories of packages, as well as some targets that operate on the 4# categories of packages, as well as some targets that operate on the
5# whole pkgsrc system. 5# whole pkgsrc system.
6# 6#
7# User-settable variables: 7# User-settable variables:
8# 8#
9# SPECIFIC_PKGS 9# SPECIFIC_PKGS
10# (See mk/defaults/mk.conf) 10# (See mk/defaults/mk.conf)
11# 11#
12# SITE_SPECIFIC_PKGS 12# SITE_SPECIFIC_PKGS
13# HOST_SPECIFIC_PKGS 13# HOST_SPECIFIC_PKGS
14# GROUP_SPECIFIC_PKGS 14# GROUP_SPECIFIC_PKGS
@@ -22,29 +22,26 @@ @@ -22,29 +22,26 @@
22# See also: 22# See also:
23# mk/misc/toplevel.mk 23# mk/misc/toplevel.mk
24# 24#
25 25
26# Note: The tools definitions must come before bsd.prefs.mk is included. 26# Note: The tools definitions must come before bsd.prefs.mk is included.
27 27
28# tools used by this Makefile 28# tools used by this Makefile
29USE_TOOLS+= [ awk cat cmp echo env expr false fgrep grep mv rm sed \ 29USE_TOOLS+= [ awk cat cmp echo env expr false fgrep grep mv rm sed \
30 sort wc 30 sort wc
31 31
32# additional tools used by bsd.pkg.subdir.mk 32# additional tools used by bsd.pkg.subdir.mk
33USE_TOOLS+= basename touch 33USE_TOOLS+= basename touch
34 34
35# additional tools used by bsd.bulk-pkg.mk 
36USE_TOOLS+= egrep find ls sh tee true tsort 
37 
38PKGSRCTOP= yes 35PKGSRCTOP= yes
39 36
40.include "mk/bsd.prefs.mk" 37.include "mk/bsd.prefs.mk"
41 38
42.if defined(SPECIFIC_PKGS) 39.if defined(SPECIFIC_PKGS)
43SUBDIR+= ${SITE_SPECIFIC_PKGS} 40SUBDIR+= ${SITE_SPECIFIC_PKGS}
44SUBDIR+= ${HOST_SPECIFIC_PKGS} 41SUBDIR+= ${HOST_SPECIFIC_PKGS}
45SUBDIR+= ${GROUP_SPECIFIC_PKGS} 42SUBDIR+= ${GROUP_SPECIFIC_PKGS}
46SUBDIR+= ${USER_SPECIFIC_PKGS} 43SUBDIR+= ${USER_SPECIFIC_PKGS}
47.else 44.else
48# Packages in the x11 category tend to require a lot more parse time 45# Packages in the x11 category tend to require a lot more parse time
49# than the rest of the packages. Reorder it to the beginning to avoid 46# than the rest of the packages. Reorder it to the beginning to avoid
50# stalling parallel scans near the end of a run. 47# stalling parallel scans near the end of a run.

cvs diff -r1.1999 -r1.2000 pkgsrc/mk/bsd.pkg.mk (expand / switch to unified diff)

--- pkgsrc/mk/bsd.pkg.mk 2014/05/06 14:48:06 1.1999
+++ pkgsrc/mk/bsd.pkg.mk 2014/06/02 10:24:05 1.2000
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: bsd.pkg.mk,v 1.1999 2014/05/06 14:48:06 jperkin Exp $ 1# $NetBSD: bsd.pkg.mk,v 1.2000 2014/06/02 10:24:05 wiz Exp $
2# 2#
3# This file is in the public domain. 3# This file is in the public domain.
4# 4#
5# Please see the pkgsrc/doc/guide manual for details on the 5# Please see the pkgsrc/doc/guide manual for details on the
6# variables used in this make file template. 6# variables used in this make file template.
7# 7#
8# Default sequence for "all" is: 8# Default sequence for "all" is:
9# 9#
10# bootstrap-depends 10# bootstrap-depends
11# fetch 11# fetch
12# checksum 12# checksum
13# depends 13# depends
14# tools 14# tools
@@ -376,31 +376,26 @@ _BUILD_DEFS+= PKG_SYSCONFBASEDIR PKG_SY @@ -376,31 +376,26 @@ _BUILD_DEFS+= PKG_SYSCONFBASEDIR PKG_SY
376# These are all of the tools use by pkgsrc Makefiles. This should 376# These are all of the tools use by pkgsrc Makefiles. This should
377# eventually be split up into lists of tools required by different 377# eventually be split up into lists of tools required by different
378# phases of a pkgsrc build. 378# phases of a pkgsrc build.
379# 379#
380USE_TOOLS+= \ 380USE_TOOLS+= \
381 [ awk basename cat chgrp chmod chown cmp cp cut dirname echo \ 381 [ awk basename cat chgrp chmod chown cmp cp cut dirname echo \
382 egrep env false find grep head hostname id install ln ls \ 382 egrep env false find grep head hostname id install ln ls \
383 mkdir mv printf pwd rm rmdir sed sh sort \ 383 mkdir mv printf pwd rm rmdir sed sh sort \
384 tail test touch tr true wc xargs 384 tail test touch tr true wc xargs
385 385
386# bsd.wrapper.mk 386# bsd.wrapper.mk
387USE_TOOLS+= expr 387USE_TOOLS+= expr
388 388
389# bsd.bulk-pkg.mk uses certain tools 
390.if defined(BATCH) 
391USE_TOOLS+= tee tsort 
392.endif 
393 
394# scripts/shlib-type 389# scripts/shlib-type
395.if ${_OPSYS_SHLIB_TYPE} == "ELF/a.out" 390.if ${_OPSYS_SHLIB_TYPE} == "ELF/a.out"
396USE_TOOLS+= file 391USE_TOOLS+= file
397.endif 392.endif
398 393
399# INSTALL/DEINSTALL script framework 394# INSTALL/DEINSTALL script framework
400.include "pkginstall/bsd.pkginstall.mk" 395.include "pkginstall/bsd.pkginstall.mk"
401 396
402# Locking 397# Locking
403.include "internal/locking.mk" 398.include "internal/locking.mk"
404 399
405# Tools 400# Tools
406.include "tools/bsd.tools.mk" 401.include "tools/bsd.tools.mk"
@@ -737,34 +732,26 @@ depend: @@ -737,34 +732,26 @@ depend:
737 732
738# Same goes for tags 733# Same goes for tags
739.PHONY: tags 734.PHONY: tags
740.if !target(tags) 735.if !target(tags)
741tags: 736tags:
742.endif 737.endif
743 738
744.include "plist/bsd.plist.mk" 739.include "plist/bsd.plist.mk"
745 740
746.include "bsd.utils.mk" 741.include "bsd.utils.mk"
747 742
748.include "subst.mk" 743.include "subst.mk"
749 744
750# 
751# For bulk build targets (bulk-install, bulk-package), the 
752# BATCH variable must be set in /etc/mk.conf: 
753# 
754.if defined(BATCH) 
755. include "bulk/bsd.bulk-pkg.mk" 
756.endif 
757 
758# README generation code. 745# README generation code.
759.include "bsd.pkg.readme.mk" 746.include "bsd.pkg.readme.mk"
760 747
761# Create a PKG_ERROR_HANDLER shell command for each class listed in 748# Create a PKG_ERROR_HANDLER shell command for each class listed in
762# PKG_ERROR_CLASSES. The error handler is meant to be invoked within 749# PKG_ERROR_CLASSES. The error handler is meant to be invoked within
763# a make target. 750# a make target.
764# 751#
765.for _class_ in ${PKG_ERROR_CLASSES} 752.for _class_ in ${PKG_ERROR_CLASSES}
766PKG_ERROR_HANDLER.${_class_}?= { \ 753PKG_ERROR_HANDLER.${_class_}?= { \
767 ec=$$?; \ 754 ec=$$?; \
768 for str in ${PKG_ERROR_MSG.${_class_}}; do \ 755 for str in ${PKG_ERROR_MSG.${_class_}}; do \
769 ${PHASE_MSG} "$$str"; \ 756 ${PHASE_MSG} "$$str"; \
770 done; \ 757 done; \

File Deleted: pkgsrc/mk/bulk/Attic/TODO

File Deleted: pkgsrc/mk/bulk/Attic/bsd.bulk-pkg.mk

File Deleted: pkgsrc/mk/bulk/Attic/build

File Deleted: pkgsrc/mk/bulk/Attic/build.conf-example

File Deleted: pkgsrc/mk/bulk/Attic/do-sandbox-build

File Deleted: pkgsrc/mk/bulk/Attic/do-sandbox-upload

File Deleted: pkgsrc/mk/bulk/Attic/environment.txt

File Deleted: pkgsrc/mk/bulk/Attic/parallel.txt

File Deleted: pkgsrc/mk/bulk/Attic/post-build

File Deleted: pkgsrc/mk/bulk/Attic/post-build-conf

File Deleted: pkgsrc/mk/bulk/Attic/pre-build

File Deleted: pkgsrc/mk/bulk/Attic/printdepends

File Deleted: pkgsrc/mk/bulk/Attic/printindex

File Deleted: pkgsrc/mk/bulk/Attic/printindex.1

File Deleted: pkgsrc/mk/bulk/Attic/sort-packages

File Deleted: pkgsrc/mk/bulk/Attic/tflat

File Deleted: pkgsrc/mk/bulk/Attic/upload

cvs diff -r1.5 -r1.6 pkgsrc/mk/misc/toplevel.mk (expand / switch to unified diff)

--- pkgsrc/mk/misc/toplevel.mk 2011/09/08 20:17:16 1.5
+++ pkgsrc/mk/misc/toplevel.mk 2014/06/02 10:24:05 1.6
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: toplevel.mk,v 1.5 2011/09/08 20:17:16 abs Exp $ 1# $NetBSD: toplevel.mk,v 1.6 2014/06/02 10:24:05 wiz Exp $
2# 2#
3# This file contains the make targets that can be used from the 3# This file contains the make targets that can be used from the
4# top-level Makefile. They are in this separate file to keep the 4# top-level Makefile. They are in this separate file to keep the
5# top-level file short and clean. 5# top-level file short and clean.
6# 6#
7# 7#
8 8
9# If PACKAGES is set to the default (${PKGSRCDIR}/packages), the current 9# If PACKAGES is set to the default (${PKGSRCDIR}/packages), the current
10# ${MACHINE_ARCH} and "release" (uname -r) will be used. Otherwise a directory 10# ${MACHINE_ARCH} and "release" (uname -r) will be used. Otherwise a directory
11# structure of ...pkgsrc/packages/`uname -r`/${MACHINE_ARCH} is assumed. 11# structure of ...pkgsrc/packages/`uname -r`/${MACHINE_ARCH} is assumed.
12# The PKG_URL is set from FTP_PKG_URL_* or CDROM_PKG_URL_*, depending on 12# The PKG_URL is set from FTP_PKG_URL_* or CDROM_PKG_URL_*, depending on
13# the target used to generate the README.html file. 13# the target used to generate the README.html file.
14.PHONY: README.html 14.PHONY: README.html
@@ -19,33 +19,26 @@ README.html: .PRECIOUS @@ -19,33 +19,26 @@ README.html: .PRECIOUS
19 BMAKE=${MAKE} \ 19 BMAKE=${MAKE} \
20 ./mk/scripts/mkreadme --pkgsrc ${.CURDIR} \ 20 ./mk/scripts/mkreadme --pkgsrc ${.CURDIR} \
21 --packages ${PACKAGES} ${_README_TYPE_FLAG} \ 21 --packages ${PACKAGES} ${_README_TYPE_FLAG} \
22 --prune 22 --prune
23.else 23.else
24 @${ECHO} "ERROR: please do not use the README.html target directly." 24 @${ECHO} "ERROR: please do not use the README.html target directly."
25 @${ECHO} " Instead use either the \"readme\" or \"cdrom-readme\"" 25 @${ECHO} " Instead use either the \"readme\" or \"cdrom-readme\""
26 @${ECHO} " target." 26 @${ECHO} " target."
27 @${FALSE} 27 @${FALSE}
28.endif 28.endif
29 29
30.include "../bsd.pkg.subdir.mk" 30.include "../bsd.pkg.subdir.mk"
31 31
32# the bulk-cache and clean-bulk-cache targets are a global-pkgsrc 
33# thing and thus it makes sense to run it from the top level pkgsrc 
34# directory. 
35.if make(bulk-cache) || make(clean-bulk-cache) 
36.include "../bulk/bsd.bulk-pkg.mk" 
37.endif 
38 
39.PHONY: ${.CURDIR}/PKGDB 32.PHONY: ${.CURDIR}/PKGDB
40${.CURDIR}/PKGDB: 33${.CURDIR}/PKGDB:
41 @${RM} -f ${.CURDIR}/PKGDB 34 @${RM} -f ${.CURDIR}/PKGDB
42 @${ECHO_MSG} "Extracting complete dependency database. This may take a while..." 35 @${ECHO_MSG} "Extracting complete dependency database. This may take a while..."
43 @DB=${.CURDIR}/PKGDB ; \ 36 @DB=${.CURDIR}/PKGDB ; \
44 PKGSRCDIR=${.CURDIR} ; \ 37 PKGSRCDIR=${.CURDIR} ; \
45 npkg=1; \ 38 npkg=1; \
46 list=`${GREP} '^[[:space:]]*'SUBDIR */Makefile | ${SED} 's,/Makefile.*=[[:space:]]*,/,'` ; \ 39 list=`${GREP} '^[[:space:]]*'SUBDIR */Makefile | ${SED} 's,/Makefile.*=[[:space:]]*,/,'` ; \
47 for pkgdir in $$list ; do \ 40 for pkgdir in $$list ; do \
48 if [ ! -d $$pkgdir ]; then \ 41 if [ ! -d $$pkgdir ]; then \
49 echo " " ; \ 42 echo " " ; \
50 echo "WARNING: the package directory $$pkgdir is listed in" > /dev/stderr ; \ 43 echo "WARNING: the package directory $$pkgdir is listed in" > /dev/stderr ; \
51 echo $$pkgdir | ${SED} 's;/.*;/Makefile;g' > /dev/stderr ; \ 44 echo $$pkgdir | ${SED} 's;/.*;/Makefile;g' > /dev/stderr ; \