mk: Add PKGSRC_USE_MKTOOLS support. When enabled, pull in the pkgtools/mktools package to use C-based tools for certain parts of the pkgsrc mk infrastructure. Default is off for now while any portability issues are shaken out, but it has been tested successfully on at least illumos, macOS, and NetBSD. The first tool is mk-buildlink-symlinks which creates the buildlink3 symlinks as part of the "wrapper" phase. This significantly improves performance, especially with packages that have a lot of buildlink3 dependencies. For example, the time for "bmake wrapper" in x11/kde-workspace4 goes from: real 3:20.696394375 user 50.553556463 sys 2:23.883823896 to: real 19.873100598 user 8.141441461 sys 11.740602820 It's expected that other tools will be added over time to speed up other parts of the infrastructure.diff -r1.71 -r1.72 pkgsrc/mk/bsd.pkg.use.mk
(jperkin)
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: bsd.pkg.use.mk,v 1.71 2022/05/09 15:35:31 nia Exp $ | 1 | # $NetBSD: bsd.pkg.use.mk,v 1.72 2022/06/07 10:04:25 jperkin Exp $ | |
2 | # | 2 | # | |
3 | # Turn USE_* macros into proper depedency logic. Included near the top of | 3 | # Turn USE_* macros into proper depedency logic. Included near the top of | |
4 | # bsd.pkg.mk, after bsd.prefs.mk. | 4 | # bsd.pkg.mk, after bsd.prefs.mk. | |
5 | 5 | |||
6 | # Package-settable variables: | 6 | # Package-settable variables: | |
7 | # | 7 | # | |
8 | # USE_BSD_MAKEFILE | 8 | # USE_BSD_MAKEFILE | |
9 | # Should be set to "yes" whenever a package uses a BSD-style | 9 | # Should be set to "yes" whenever a package uses a BSD-style | |
10 | # Makefile. These Makefiles typically end with a line including | 10 | # Makefile. These Makefiles typically end with a line including | |
11 | # <bsd.prog.mk>. | 11 | # <bsd.prog.mk>. | |
12 | # Keywords: bsd make bsd.prog.mk | 12 | # Keywords: bsd make bsd.prog.mk | |
13 | 13 | |||
14 | # USE_IMAKE | 14 | # USE_IMAKE | |
@@ -99,13 +99,20 @@ PKG_SHLIBTOOL?= ${LOCALBASE}/bin/shlibt | @@ -99,13 +99,20 @@ PKG_SHLIBTOOL?= ${LOCALBASE}/bin/shlibt | |||
99 | .endif | 99 | .endif | |
100 | LIBTOOL?= ${WRAPPER_BINDIR}/libtool | 100 | LIBTOOL?= ${WRAPPER_BINDIR}/libtool | |
101 | SHLIBTOOL?= ${WRAPPER_BINDIR}/shlibtool | 101 | SHLIBTOOL?= ${WRAPPER_BINDIR}/shlibtool | |
102 | .if defined(USE_LIBTOOL) | 102 | .if defined(USE_LIBTOOL) | |
103 | LIBTOOL_REQD?= 2.4.2nb9 | 103 | LIBTOOL_REQD?= 2.4.2nb9 | |
104 | .if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) | 104 | .if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) | |
105 | TOOL_DEPENDS+= cross-libtool-base-${MACHINE_ARCH}>=${_OPSYS_LIBTOOL_REQD:U${LIBTOOL_REQD}}:../../cross/cross-libtool-base | 105 | TOOL_DEPENDS+= cross-libtool-base-${MACHINE_ARCH}>=${_OPSYS_LIBTOOL_REQD:U${LIBTOOL_REQD}}:../../cross/cross-libtool-base | |
106 | .else | 106 | .else | |
107 | TOOL_DEPENDS+= libtool-base>=${_OPSYS_LIBTOOL_REQD:U${LIBTOOL_REQD}}:../../devel/libtool-base | 107 | TOOL_DEPENDS+= libtool-base>=${_OPSYS_LIBTOOL_REQD:U${LIBTOOL_REQD}}:../../devel/libtool-base | |
108 | .endif | 108 | .endif | |
109 | CONFIGURE_ENV+= LIBTOOL="${LIBTOOL} ${LIBTOOL_FLAGS}" | 109 | CONFIGURE_ENV+= LIBTOOL="${LIBTOOL} ${LIBTOOL_FLAGS}" | |
110 | MAKE_ENV+= LIBTOOL="${LIBTOOL} ${LIBTOOL_FLAGS}" | 110 | MAKE_ENV+= LIBTOOL="${LIBTOOL} ${LIBTOOL_FLAGS}" | |
111 | .endif | 111 | .endif | |
112 | ||||
113 | # PKGSRC_USE_MKTOOLS. Cyclic dependencies prevent us from using mktools | |||
114 | # when building cwrappers, so use the shell tools in that instance. | |||
115 | .if ${_PKGSRC_USE_MKTOOLS} == "yes" && empty(PKGPATH:Mpkgtools/cwrappers) | |||
116 | TOOL_DEPENDS+= mktools-[0-9]*:../../pkgtools/mktools | |||
117 | PKG_MKSYMLINKS?= ${LOCALBASE}/libexec/mktools/mk-buildlink-symlinks | |||
118 | .endif |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: bsd.prefs.mk,v 1.421 2022/05/01 08:03:40 nia Exp $ | 1 | # $NetBSD: bsd.prefs.mk,v 1.422 2022/06/07 10:04:25 jperkin Exp $ | |
2 | # | 2 | # | |
3 | # This file includes the mk.conf file, which contains the user settings. | 3 | # This file includes the mk.conf file, which contains the user settings. | |
4 | # | 4 | # | |
5 | # Packages should include this file before any of the .if directives, as | 5 | # Packages should include this file before any of the .if directives, as | |
6 | # well as before modifying variables like CFLAGS, LDFLAGS, and so on. | 6 | # well as before modifying variables like CFLAGS, LDFLAGS, and so on. | |
7 | # Otherwise the behavior may be unexpected. | 7 | # Otherwise the behavior may be unexpected. | |
8 | # | 8 | # | |
9 | # When mk.conf is included by this file, the following variables are | 9 | # When mk.conf is included by this file, the following variables are | |
10 | # defined: | 10 | # defined: | |
11 | # | 11 | # | |
12 | # ACCEPTABLE_LICENSES | 12 | # ACCEPTABLE_LICENSES | |
13 | # This variable is set to the list of Open Source licenses. See | 13 | # This variable is set to the list of Open Source licenses. See | |
14 | # mk/license.mk for details. | 14 | # mk/license.mk for details. | |
@@ -864,26 +864,34 @@ _PKGSRC_USE_CTF= no | @@ -864,26 +864,34 @@ _PKGSRC_USE_CTF= no | |||
864 | 864 | |||
865 | # Enable cwrappers if not building the wrappers themselves, and if the user has | 865 | # Enable cwrappers if not building the wrappers themselves, and if the user has | |
866 | # explicitly requested them, or if they haven't but the compiler/platform is | 866 | # explicitly requested them, or if they haven't but the compiler/platform is | |
867 | # known to support them. | 867 | # known to support them. | |
868 | .if empty(PKGPATH:Mpkgtools/cwrappers) && \ | 868 | .if empty(PKGPATH:Mpkgtools/cwrappers) && \ | |
869 | (${USE_CWRAPPERS:tl} == "yes" || \ | 869 | (${USE_CWRAPPERS:tl} == "yes" || \ | |
870 | (${USE_CWRAPPERS:tl} == "auto" && \ | 870 | (${USE_CWRAPPERS:tl} == "auto" && \ | |
871 | ${_OPSYS_SUPPORTS_CWRAPPERS:Uno} == "yes")) | 871 | ${_OPSYS_SUPPORTS_CWRAPPERS:Uno} == "yes")) | |
872 | _USE_CWRAPPERS= yes | 872 | _USE_CWRAPPERS= yes | |
873 | .else | 873 | .else | |
874 | _USE_CWRAPPERS= no | 874 | _USE_CWRAPPERS= no | |
875 | .endif | 875 | .endif | |
876 | 876 | |||
877 | # Use C-based tools to speed up pkgsrc infrastructure tasks. | |||
878 | .if empty(PKGPATH:Mpkgtools/mktools) && \ | |||
879 | ${PKGSRC_USE_MKTOOLS:tl} == "yes" | |||
880 | _PKGSRC_USE_MKTOOLS= yes | |||
881 | .else | |||
882 | _PKGSRC_USE_MKTOOLS= no | |||
883 | .endif | |||
884 | ||||
877 | # Wrapper framework definitions | 885 | # Wrapper framework definitions | |
878 | .include "wrapper/wrapper-defs.mk" | 886 | .include "wrapper/wrapper-defs.mk" | |
879 | 887 | |||
880 | # Binary emulator framework definitions | 888 | # Binary emulator framework definitions | |
881 | .if defined(EMUL_PLATFORMS) && !empty(EMUL_PLATFORMS) | 889 | .if defined(EMUL_PLATFORMS) && !empty(EMUL_PLATFORMS) | |
882 | . include "emulator/emulator-vars.mk" | 890 | . include "emulator/emulator-vars.mk" | |
883 | .endif | 891 | .endif | |
884 | 892 | |||
885 | # System features framework | 893 | # System features framework | |
886 | .include "features/features-vars.mk" | 894 | .include "features/features-vars.mk" | |
887 | 895 | |||
888 | .if ${_USE_NEW_PKGINSTALL:Uno} != "no" | 896 | .if ${_USE_NEW_PKGINSTALL:Uno} != "no" | |
889 | # Init services framework | 897 | # Init services framework |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: bsd.buildlink3.mk,v 1.247 2021/06/08 10:10:02 bouyer Exp $ | 1 | # $NetBSD: bsd.buildlink3.mk,v 1.248 2022/06/07 10:04:25 jperkin Exp $ | |
2 | # | 2 | # | |
3 | # Copyright (c) 2004 The NetBSD Foundation, Inc. | 3 | # Copyright (c) 2004 The NetBSD Foundation, Inc. | |
4 | # All rights reserved. | 4 | # All rights reserved. | |
5 | # | 5 | # | |
6 | # This code is derived from software contributed to The NetBSD Foundation | 6 | # This code is derived from software contributed to The NetBSD Foundation | |
7 | # by Johnny C. Lam. | 7 | # by Johnny C. Lam. | |
8 | # | 8 | # | |
9 | # Redistribution and use in source and binary forms, with or without | 9 | # Redistribution and use in source and binary forms, with or without | |
10 | # modification, are permitted provided that the following conditions | 10 | # modification, are permitted provided that the following conditions | |
11 | # are met: | 11 | # are met: | |
12 | # 1. Redistributions of source code must retain the above copyright | 12 | # 1. Redistributions of source code must retain the above copyright | |
13 | # notice, this list of conditions and the following disclaimer. | 13 | # notice, this list of conditions and the following disclaimer. | |
14 | # 2. Redistributions in binary form must reproduce the above copyright | 14 | # 2. Redistributions in binary form must reproduce the above copyright | |
@@ -650,49 +650,90 @@ BUILDLINK_FILES_CMD.${_pkg_}?= \ | @@ -650,49 +650,90 @@ BUILDLINK_FILES_CMD.${_pkg_}?= \ | |||
650 | # _BLNK_FILES_CMD.<pkg> combines BUILDLINK_FILES_CMD.<pkg> and | 650 | # _BLNK_FILES_CMD.<pkg> combines BUILDLINK_FILES_CMD.<pkg> and | |
651 | # BUILDLINK_FILES.<pkg> into one command that outputs all of the files | 651 | # BUILDLINK_FILES.<pkg> into one command that outputs all of the files | |
652 | # for <pkg> relative to ${BUILDLINK_PREFIX.<pkg>}. | 652 | # for <pkg> relative to ${BUILDLINK_PREFIX.<pkg>}. | |
653 | # | 653 | # | |
654 | _BLNK_FILES_CMD.${_pkg_}= ( | 654 | _BLNK_FILES_CMD.${_pkg_}= ( | |
655 | _BLNK_FILES_CMD.${_pkg_}+= ${BUILDLINK_FILES_CMD.${_pkg_}}; | 655 | _BLNK_FILES_CMD.${_pkg_}+= ${BUILDLINK_FILES_CMD.${_pkg_}}; | |
656 | .for _filepattern_ in ${BUILDLINK_FILES.${_pkg_}} | 656 | .for _filepattern_ in ${BUILDLINK_FILES.${_pkg_}} | |
657 | _BLNK_FILES_CMD.${_pkg_}+= ${LS} -1 ${_filepattern_} 2>/dev/null || ${TRUE}; | 657 | _BLNK_FILES_CMD.${_pkg_}+= ${LS} -1 ${_filepattern_} 2>/dev/null || ${TRUE}; | |
658 | .endfor | 658 | .endfor | |
659 | _BLNK_FILES_CMD.${_pkg_}+= ) | 659 | _BLNK_FILES_CMD.${_pkg_}+= ) | |
660 | _BLNK_FILES_CMD.${_pkg_}+= | ${SORT} -u | 660 | _BLNK_FILES_CMD.${_pkg_}+= | ${SORT} -u | |
661 | 661 | |||
662 | ${_BLNK_COOKIE.${_pkg_}}: | 662 | ${_BLNK_COOKIE.${_pkg_}}: | |
663 | ${RUN} \ | 663 | ${RUN} \ | |
664 | case "${BUILDLINK_PREFIX.${_pkg_}}" in \ | 664 | case "${BUILDLINK_PREFIX.${_pkg_}}" in \ | |
665 | *not_found) \ | 665 | *not_found) \ | |
666 | ${ERROR_MSG} "${BUILDLINK_API_DEPENDS.${_pkg_}} is not installed; can't buildlink files."; \ | 666 | ${ERROR_MSG} "${BUILDLINK_API_DEPENDS.${_pkg_}} is not installed; can't buildlink files."; \ | |
667 | exit 1; \ | 667 | exit 1; \ | |
668 | ;; \ | 668 | ;; \ | |
669 | esac | 669 | esac | |
670 | ${RUN} [ ${X11BASE:Q}"" ] || { \ | 670 | ${RUN} [ ${X11BASE:Q}"" ] || { \ | |
671 | ${ERROR_MSG} "[bsd.buildlink3.mk] X11BASE is not set correctly."; \ | 671 | ${ERROR_MSG} "[bsd.buildlink3.mk] X11BASE is not set correctly."; \ | |
672 | exit 1; \ | 672 | exit 1; \ | |
673 | } | 673 | } | |
674 | .if ${_PKGSRC_USE_MKTOOLS} == "yes" | |||
675 | ${RUN} \ | |||
676 | case "${BUILDLINK_PREFIX.${_pkg_}}" in \ | |||
677 | ${LOCALBASE}) buildlink_dir="${BUILDLINK_DIR}" ;; \ | |||
678 | ${X11BASE}) buildlink_dir="${BUILDLINK_X11_DIR}" ;; \ | |||
679 | *) buildlink_dir="${BUILDLINK_DIR}" ;; \ | |||
680 | esac; \ | |||
681 | [ -z "${BUILDLINK_PREFIX.${_pkg_}:Q}" ] || \ | |||
682 | cd ${BUILDLINK_PREFIX.${_pkg_}} && \ | |||
683 | ${_BLNK_FILES_CMD.${_pkg_}} | \ | |||
684 | while read file; do \ | |||
685 | src="${_CROSS_DESTDIR}${BUILDLINK_PREFIX.${_pkg_}}/$$file"; \ | |||
686 | [ -f "$$src" ] || continue; \ | |||
687 | dest="$$buildlink_dir/$$file"; \ | |||
688 | if [ -n "${BUILDLINK_FNAME_TRANSFORM.${_pkg_}:Q}" ]; then \ | |||
689 | dest=`${ECHO} $$dest | ${SED} ${BUILDLINK_FNAME_TRANSFORM.${_pkg_}}`; \ | |||
690 | fi; \ | |||
691 | case "$$src" in \ | |||
692 | *.la) \ | |||
693 | dir="$${dest%/*}"; \ | |||
694 | if [ ! -d "$$dir" ]; then \ | |||
695 | ${MKDIR} "$$dir"; \ | |||
696 | fi; \ | |||
697 | ${_BLNK_LT_ARCHIVE_FILTER.${_pkg_}} \ | |||
698 | "$$src" > "$$dest"; \ | |||
699 | ;; \ | |||
700 | *) \ | |||
701 | ${ECHO} "$$dest -> $$src" >>${.TARGET}; \ | |||
702 | ;; \ | |||
703 | esac; \ | |||
704 | done; \ | |||
705 | if [ -f ${.TARGET} ]; then \ | |||
706 | ${PKG_MKSYMLINKS} < ${.TARGET} || { \ | |||
707 | ${ECHO} "Removing ${.TARGET}"; \ | |||
708 | ${RM} -f ${.TARGET}; \ | |||
709 | exit 1; \ | |||
710 | } \ | |||
711 | else \ | |||
712 | ${TOUCH} ${TOUCH_FLAGS} ${.TARGET}; \ | |||
713 | fi | |||
714 | .else | |||
674 | ${RUN} \ | 715 | ${RUN} \ | |
675 | case "${BUILDLINK_PREFIX.${_pkg_}}" in \ | 716 | case "${BUILDLINK_PREFIX.${_pkg_}}" in \ | |
676 | ${LOCALBASE}) buildlink_dir="${BUILDLINK_DIR}" ;; \ | 717 | ${LOCALBASE}) buildlink_dir="${BUILDLINK_DIR}" ;; \ | |
677 | ${X11BASE}) buildlink_dir="${BUILDLINK_X11_DIR}" ;; \ | 718 | ${X11BASE}) buildlink_dir="${BUILDLINK_X11_DIR}" ;; \ | |
678 | *) buildlink_dir="${BUILDLINK_DIR}" ;; \ | 719 | *) buildlink_dir="${BUILDLINK_DIR}" ;; \ | |
679 | esac; \ | 720 | esac; \ | |
680 | [ -z "${BUILDLINK_PREFIX.${_pkg_}:Q}" ] || \ | 721 | [ -z "${BUILDLINK_PREFIX.${_pkg_}:Q}" ] || \ | |
681 | cd ${BUILDLINK_PREFIX.${_pkg_}} && \ | 722 | cd ${BUILDLINK_PREFIX.${_pkg_}} && \ | |
682 | ${_BLNK_FILES_CMD.${_pkg_}} | \ | 723 | ${_BLNK_FILES_CMD.${_pkg_}} | \ | |
683 | while read file; do \ | 724 | while read file; do \ | |
684 | src="${_CROSS_DESTDIR}${BUILDLINK_PREFIX.${_pkg_}}/$$file"; \ | 725 | src="${_CROSS_DESTDIR}${BUILDLINK_PREFIX.${_pkg_}}/$$file"; \ | |
685 | if [ ! -f "$$src" ]; then \ | 726 | if [ ! -f "$$src" ]; then \ | |
686 | msg="$$src: not found"; \ | 727 | msg="$$src: not found"; \ | |
687 | else \ | 728 | else \ | |
688 | if [ -z "${BUILDLINK_FNAME_TRANSFORM.${_pkg_}:Q}" ]; then \ | 729 | if [ -z "${BUILDLINK_FNAME_TRANSFORM.${_pkg_}:Q}" ]; then \ | |
689 | dest="$$buildlink_dir/$$file"; \ | 730 | dest="$$buildlink_dir/$$file"; \ | |
690 | msg="$$src"; \ | 731 | msg="$$src"; \ | |
691 | else \ | 732 | else \ | |
692 | dest="$$buildlink_dir/$$file"; \ | 733 | dest="$$buildlink_dir/$$file"; \ | |
693 | dest=`${ECHO} $$dest | ${SED} ${BUILDLINK_FNAME_TRANSFORM.${_pkg_}}`; \ | 734 | dest=`${ECHO} $$dest | ${SED} ${BUILDLINK_FNAME_TRANSFORM.${_pkg_}}`; \ | |
694 | msg="$$src -> $$dest"; \ | 735 | msg="$$src -> $$dest"; \ | |
695 | fi; \ | 736 | fi; \ | |
696 | dir=`${DIRNAME} "$$dest"`; \ | 737 | dir=`${DIRNAME} "$$dest"`; \ | |
697 | if [ ! -d "$$dir" ]; then \ | 738 | if [ ! -d "$$dir" ]; then \ | |
698 | ${MKDIR} "$$dir"; \ | 739 | ${MKDIR} "$$dir"; \ | |
@@ -703,26 +744,27 @@ ${_BLNK_COOKIE.${_pkg_}}: | @@ -703,26 +744,27 @@ ${_BLNK_COOKIE.${_pkg_}}: | |||
703 | case "$$src" in \ | 744 | case "$$src" in \ | |
704 | *.la) \ | 745 | *.la) \ | |
705 | ${_BLNK_LT_ARCHIVE_FILTER.${_pkg_}} \ | 746 | ${_BLNK_LT_ARCHIVE_FILTER.${_pkg_}} \ | |
706 | "$$src" > "$$dest"; \ | 747 | "$$src" > "$$dest"; \ | |
707 | msg="$$msg (created)"; \ | 748 | msg="$$msg (created)"; \ | |
708 | ;; \ | 749 | ;; \ | |
709 | *) \ | 750 | *) \ | |
710 | ${LN} -sf "$$src" "$$dest"; \ | 751 | ${LN} -sf "$$src" "$$dest"; \ | |
711 | ;; \ | 752 | ;; \ | |
712 | esac; \ | 753 | esac; \ | |
713 | fi; \ | 754 | fi; \ | |
714 | ${ECHO} "$$msg" >> ${.TARGET}; \ | 755 | ${ECHO} "$$msg" >> ${.TARGET}; \ | |
715 | done | 756 | done | |
757 | .endif | |||
716 | 758 | |||
717 | # _BLNK_LT_ARCHIVE_FILTER.${_pkg_} is a command-line filter used in | 759 | # _BLNK_LT_ARCHIVE_FILTER.${_pkg_} is a command-line filter used in | |
718 | # the previous target for transforming libtool archives (*.la) to | 760 | # the previous target for transforming libtool archives (*.la) to | |
719 | # allow libtool to properly interact with buildlink at link time by | 761 | # allow libtool to properly interact with buildlink at link time by | |
720 | # linking against the libraries pointed to by symlinks in ${BUILDLINK_DIR}. | 762 | # linking against the libraries pointed to by symlinks in ${BUILDLINK_DIR}. | |
721 | # | 763 | # | |
722 | _BLNK_LT_ARCHIVE_FILTER.${_pkg_}= \ | 764 | _BLNK_LT_ARCHIVE_FILTER.${_pkg_}= \ | |
723 | ${SED} ${_BLNK_LT_ARCHIVE_FILTER_SED_SCRIPT.${_pkg_}} | 765 | ${SED} ${_BLNK_LT_ARCHIVE_FILTER_SED_SCRIPT.${_pkg_}} | |
724 | 766 | |||
725 | _BLNK_SEP= \ \`\"':;, | 767 | _BLNK_SEP= \ \`\"':;, | |
726 | _BLNK_LT_ARCHIVE_FILTER_SED_SCRIPT.${_pkg_}= # empty | 768 | _BLNK_LT_ARCHIVE_FILTER_SED_SCRIPT.${_pkg_}= # empty | |
727 | # | 769 | # | |
728 | # Modify the dependency_libs line by changing all full paths to other *.la | 770 | # Modify the dependency_libs line by changing all full paths to other *.la |
@@ -1,37 +1,46 @@ | @@ -1,37 +1,46 @@ | |||
1 | # $NetBSD: mk.conf,v 1.333 2022/06/07 09:35:15 wiz Exp $ | 1 | # $NetBSD: mk.conf,v 1.334 2022/06/07 10:04:25 jperkin Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | # This file provides default values for variables that may be overridden | 4 | # This file provides default values for variables that may be overridden | |
5 | # in the MAKECONF file, which is /etc/mk.conf by default. | 5 | # in the MAKECONF file, which is /etc/mk.conf by default. | |
6 | # | 6 | # | |
7 | # Note: This file is included after the MAKECONF file, so you cannot query | 7 | # Note: This file is included after the MAKECONF file, so you cannot query | |
8 | # these default values in the MAKECONF using the ".if" and ".for" | 8 | # these default values in the MAKECONF using the ".if" and ".for" | |
9 | # preprocessing directives. | 9 | # preprocessing directives. | |
10 | 10 | |||
11 | # ************************************************************************ | 11 | # ************************************************************************ | |
12 | # NOTE TO PEOPLE EDITING THIS FILE - USE LEADING SPACES, NOT LEADING TABS. | 12 | # NOTE TO PEOPLE EDITING THIS FILE - USE LEADING SPACES, NOT LEADING TABS. | |
13 | # ************************************************************************ | 13 | # ************************************************************************ | |
14 | 14 | |||
15 | USE_CWRAPPERS?= auto | 15 | USE_CWRAPPERS?= auto | |
16 | # Build packages using the newer pkgtools/cwrappers infrastructure, which can | 16 | # Build packages using the newer pkgtools/cwrappers infrastructure, which can | |
17 | # significantly speed up builds and use fewer resources. Some compiler and | 17 | # significantly speed up builds and use fewer resources. Some compiler and | |
18 | # platform combinations are not currently handled by cwrappers, so currently | 18 | # platform combinations are not currently handled by cwrappers, so currently | |
19 | # the default is "auto" which enables cwrappers automatically if the platform | 19 | # the default is "auto" which enables cwrappers automatically if the platform | |
20 | # _OPSYS_SUPPORTS_CWRAPPERS variable is set to "yes". | 20 | # _OPSYS_SUPPORTS_CWRAPPERS variable is set to "yes". | |
21 | # | 21 | # | |
22 | # Possible: yes, no, auto | 22 | # Possible: yes, no, auto | |
23 | # Default: auto (automatic detection, see above) | 23 | # Default: auto (automatic detection, see above) | |
24 | 24 | |||
25 | PKGSRC_USE_MKTOOLS?= no | |||
26 | # Use C-based tools for various parts of the infrastructure instead of the | |||
27 | # slower shell-based constructs. Significantly improves performance, but | |||
28 | # not enabled by default until portability across all platforms has been | |||
29 | # confirmed. | |||
30 | # | |||
31 | # Possible: yes, no | |||
32 | # Default: no | |||
33 | ||||
25 | USE_PKG_ADMIN_DIGEST?= no | 34 | USE_PKG_ADMIN_DIGEST?= no | |
26 | # Record file digests instead of extracing the NetBSD RCS ID from files. | 35 | # Record file digests instead of extracing the NetBSD RCS ID from files. | |
27 | # | 36 | # | |
28 | # Possible: yes, no | 37 | # Possible: yes, no | |
29 | # Default: no | 38 | # Default: no | |
30 | 39 | |||
31 | #ALLOW_VULNERABLE_PACKAGES= | 40 | #ALLOW_VULNERABLE_PACKAGES= | |
32 | # allow the user to build packages which are known to be vulnerable to | 41 | # allow the user to build packages which are known to be vulnerable to | |
33 | # security exploits | 42 | # security exploits | |
34 | # Possible: yes, no | 43 | # Possible: yes, no | |
35 | # Default: yes | 44 | # Default: yes | |
36 | 45 | |||
37 | #AUDIT_PACKAGES_FLAGS= | 46 | #AUDIT_PACKAGES_FLAGS= |