Remove old bulk build code. Use pbulk.diff -r1.85 -r1.86 pkgsrc/Makefile
(wiz)
@@ -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 | |
29 | USE_TOOLS+= [ awk cat cmp echo env expr false fgrep grep mv rm sed \ | 29 | USE_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 | |
33 | USE_TOOLS+= basename touch | 33 | USE_TOOLS+= basename touch | |
34 | 34 | |||
35 | # additional tools used by bsd.bulk-pkg.mk | |||
36 | USE_TOOLS+= egrep find ls sh tee true tsort | |||
37 | ||||
38 | PKGSRCTOP= yes | 35 | PKGSRCTOP= 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) | |
43 | SUBDIR+= ${SITE_SPECIFIC_PKGS} | 40 | SUBDIR+= ${SITE_SPECIFIC_PKGS} | |
44 | SUBDIR+= ${HOST_SPECIFIC_PKGS} | 41 | SUBDIR+= ${HOST_SPECIFIC_PKGS} | |
45 | SUBDIR+= ${GROUP_SPECIFIC_PKGS} | 42 | SUBDIR+= ${GROUP_SPECIFIC_PKGS} | |
46 | SUBDIR+= ${USER_SPECIFIC_PKGS} | 43 | SUBDIR+= ${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. |
@@ -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 | # | |
380 | USE_TOOLS+= \ | 380 | USE_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 | |
387 | USE_TOOLS+= expr | 387 | USE_TOOLS+= expr | |
388 | 388 | |||
389 | # bsd.bulk-pkg.mk uses certain tools | |||
390 | .if defined(BATCH) | |||
391 | USE_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" | |
396 | USE_TOOLS+= file | 391 | USE_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) | |
741 | tags: | 736 | tags: | |
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} | |
766 | PKG_ERROR_HANDLER.${_class_}?= { \ | 753 | PKG_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; \ |
@@ -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 ; \ |