head 1.13; access; symbols pkgsrc-2023Q4:1.13.0.10 pkgsrc-2023Q4-base:1.13 pkgsrc-2023Q3:1.13.0.8 pkgsrc-2023Q3-base:1.13 pkgsrc-2023Q2:1.13.0.6 pkgsrc-2023Q2-base:1.13 pkgsrc-2023Q1:1.13.0.4 pkgsrc-2023Q1-base:1.13 pkgsrc-2022Q4:1.13.0.2 pkgsrc-2022Q4-base:1.13 pkgsrc-2022Q3:1.11.0.2 pkgsrc-2022Q3-base:1.11 pkgsrc-2022Q2:1.10.0.16 pkgsrc-2022Q2-base:1.10 pkgsrc-2022Q1:1.10.0.14 pkgsrc-2022Q1-base:1.10 pkgsrc-2021Q4:1.10.0.12 pkgsrc-2021Q4-base:1.10 pkgsrc-2021Q3:1.10.0.10 pkgsrc-2021Q3-base:1.10 pkgsrc-2021Q2:1.10.0.8 pkgsrc-2021Q2-base:1.10 pkgsrc-2021Q1:1.10.0.6 pkgsrc-2021Q1-base:1.10 pkgsrc-2020Q4:1.10.0.4 pkgsrc-2020Q4-base:1.10 pkgsrc-2020Q3:1.10.0.2 pkgsrc-2020Q3-base:1.10 pkgsrc-2020Q2:1.9.0.14 pkgsrc-2020Q2-base:1.9 pkgsrc-2020Q1:1.9.0.10 pkgsrc-2020Q1-base:1.9 pkgsrc-2019Q4:1.9.0.12 pkgsrc-2019Q4-base:1.9 pkgsrc-2019Q3:1.9.0.8 pkgsrc-2019Q3-base:1.9 pkgsrc-2019Q2:1.9.0.6 pkgsrc-2019Q2-base:1.9 pkgsrc-2019Q1:1.9.0.4 pkgsrc-2019Q1-base:1.9 pkgsrc-2018Q4:1.9.0.2 pkgsrc-2018Q4-base:1.9 pkgsrc-2018Q3:1.8.0.76 pkgsrc-2018Q3-base:1.8 pkgsrc-2018Q2:1.8.0.74 pkgsrc-2018Q2-base:1.8 pkgsrc-2018Q1:1.8.0.72 pkgsrc-2018Q1-base:1.8 pkgsrc-2017Q4:1.8.0.70 pkgsrc-2017Q4-base:1.8 pkgsrc-2017Q3:1.8.0.68 pkgsrc-2017Q3-base:1.8 pkgsrc-2017Q2:1.8.0.64 pkgsrc-2017Q2-base:1.8 pkgsrc-2017Q1:1.8.0.62 pkgsrc-2017Q1-base:1.8 pkgsrc-2016Q4:1.8.0.60 pkgsrc-2016Q4-base:1.8 pkgsrc-2016Q3:1.8.0.58 pkgsrc-2016Q3-base:1.8 pkgsrc-2016Q2:1.8.0.56 pkgsrc-2016Q2-base:1.8 pkgsrc-2016Q1:1.8.0.54 pkgsrc-2016Q1-base:1.8 pkgsrc-2015Q4:1.8.0.52 pkgsrc-2015Q4-base:1.8 pkgsrc-2015Q3:1.8.0.50 pkgsrc-2015Q3-base:1.8 pkgsrc-2015Q2:1.8.0.48 pkgsrc-2015Q2-base:1.8 pkgsrc-2015Q1:1.8.0.46 pkgsrc-2015Q1-base:1.8 pkgsrc-2014Q4:1.8.0.44 pkgsrc-2014Q4-base:1.8 pkgsrc-2014Q3:1.8.0.42 pkgsrc-2014Q3-base:1.8 pkgsrc-2014Q2:1.8.0.40 pkgsrc-2014Q2-base:1.8 pkgsrc-2014Q1:1.8.0.38 pkgsrc-2014Q1-base:1.8 pkgsrc-2013Q4:1.8.0.36 pkgsrc-2013Q4-base:1.8 pkgsrc-2013Q3:1.8.0.34 pkgsrc-2013Q3-base:1.8 pkgsrc-2013Q2:1.8.0.32 pkgsrc-2013Q2-base:1.8 pkgsrc-2013Q1:1.8.0.30 pkgsrc-2013Q1-base:1.8 pkgsrc-2012Q4:1.8.0.28 pkgsrc-2012Q4-base:1.8 pkgsrc-2012Q3:1.8.0.26 pkgsrc-2012Q3-base:1.8 pkgsrc-2012Q2:1.8.0.24 pkgsrc-2012Q2-base:1.8 pkgsrc-2012Q1:1.8.0.22 pkgsrc-2012Q1-base:1.8 pkgsrc-2011Q4:1.8.0.20 pkgsrc-2011Q4-base:1.8 pkgsrc-2011Q3:1.8.0.18 pkgsrc-2011Q3-base:1.8 pkgsrc-2011Q2:1.8.0.16 pkgsrc-2011Q2-base:1.8 pkgsrc-2011Q1:1.8.0.14 pkgsrc-2011Q1-base:1.8 pkgsrc-2010Q4:1.8.0.12 pkgsrc-2010Q4-base:1.8 pkgsrc-2010Q3:1.8.0.10 pkgsrc-2010Q3-base:1.8 pkgsrc-2010Q2:1.8.0.8 pkgsrc-2010Q2-base:1.8 pkgsrc-2010Q1:1.8.0.6 pkgsrc-2010Q1-base:1.8 pkgsrc-2009Q4:1.8.0.4 pkgsrc-2009Q4-base:1.8 pkgsrc-2009Q3:1.8.0.2 pkgsrc-2009Q3-base:1.8 pkgsrc-2009Q2:1.7.0.20 pkgsrc-2009Q2-base:1.7 pkgsrc-2009Q1:1.7.0.18 pkgsrc-2009Q1-base:1.7 pkgsrc-2008Q4:1.7.0.16 pkgsrc-2008Q4-base:1.7 pkgsrc-2008Q3:1.7.0.14 pkgsrc-2008Q3-base:1.7 cube-native-xorg:1.7.0.12 cube-native-xorg-base:1.7 pkgsrc-2008Q2:1.7.0.10 pkgsrc-2008Q2-base:1.7 cwrapper:1.7.0.8 pkgsrc-2008Q1:1.7.0.6 pkgsrc-2008Q1-base:1.7 pkgsrc-2007Q4:1.7.0.4 pkgsrc-2007Q4-base:1.7 pkgsrc-2007Q3:1.7.0.2 pkgsrc-2007Q3-base:1.7 pkgsrc-2007Q2:1.6.0.2 pkgsrc-2007Q2-base:1.6 pkgsrc-2007Q1:1.5.0.6 pkgsrc-2007Q1-base:1.5 jlam-pkgviews:1.5.0.4 jlam-pkgviews-base:1.5 pkgsrc-2006Q4:1.5.0.2 pkgsrc-2006Q4-base:1.5 pkgsrc-2006Q3:1.3.0.2 pkgsrc-2006Q3-base:1.3 pkgsrc-2006Q2:1.2.0.2 pkgsrc-2006Q2-base:1.2; locks; strict; comment @# @; 1.13 date 2022.11.03.08.29.32; author jperkin; state Exp; branches; next 1.12; commitid v50J2MHcwbLmte0E; 1.12 date 2022.10.12.10.47.00; author jperkin; state Exp; branches; next 1.11; commitid AIyBVoyeZJUyWpXD; 1.11 date 2022.07.06.18.53.58; author rillig; state Exp; branches; next 1.10; commitid XcOUvdv0m6R5NRKD; 1.10 date 2020.07.08.12.37.13; author jperkin; state Exp; branches; next 1.9; commitid c5mwlmPkVnoN4hfC; 1.9 date 2018.11.12.14.22.58; author jperkin; state Exp; branches; next 1.8; commitid gHxFSFEcfM6Q5FZA; 1.8 date 2009.09.02.14.40.40; author joerg; state Exp; branches; next 1.7; 1.7 date 2007.07.02.14.54.10; author joerg; state Exp; branches; next 1.6; 1.6 date 2007.04.19.16.52.03; author joerg; state Exp; branches; next 1.5; 1.5 date 2006.12.15.20.54.47; author joerg; state Exp; branches; next 1.4; 1.4 date 2006.11.04.07.42.51; author rillig; state Exp; branches; next 1.3; 1.3 date 2006.07.13.14.02.34; author jlam; state Exp; branches; next 1.2; 1.2 date 2006.06.06.15.28.52; author jlam; state Exp; branches; next 1.1; 1.1 date 2006.06.03.23.11.42; author jlam; state Exp; branches; next ; desc @@ 1.13 log @mk: Skip many more CTF and debug files by default. Leave CTF_FILES_SKIP and STRIP_FILES_SKIP purely for packages to set any additional paths to skip. @ text @# $NetBSD: bsd.install-vars.mk,v 1.12 2022/10/12 10:47:00 jperkin Exp $ # # This Makefile fragment is included separately by bsd.pkg.mk and # defines some variables which must be defined earlier than where # bsd.install.mk is included. # # Package-settable variables: # # CTF_SUPPORTED # If set to "no", CTF conversion will not be attempted and any # necessary debug CFLAGS will not be added. # # CTF_FILES_SKIP # A list of shell patterns (like lib/*) relative to ${PREFIX} that # should be excluded from CTF conversion. Note that a * in a pattern # also matches a slash in a pathname. # # INSTALLATION_DIRS_FROM_PLIST # If set to "yes", the static PLIST files of the package will # be used to determine which directories need to be created before # the "real" installation should start. # # If MANZ is defined, then we want the final man pages to be compressed. # If MANZ is not defined, then we want the final man pages to be # uncompressed. # # We need to figure out if during installation, we need either gunzip # or gzip to decompress or compress the installed man pages. If a # package sets MANCOMPRESSED to "yes" or "no", then it's an indication # to the install code that the package itself installed the man pages # either compressed or uncompressed. If a package sets # MANCOMPRESSED_IF_MANZ, then the package uses BSD-style makefiles, # so we need to determine if the BSD-style makefile causes the man # pages to be compressed or not. # .if !defined(_MANCOMPRESSED) . if defined(MANCOMPRESSED) && !empty(MANCOMPRESSED:M[yY][eE][sS]) _MANCOMPRESSED= yes . else _MANCOMPRESSED= no . endif . if defined(MANCOMPRESSED_IF_MANZ) && defined(PKGMAKECONF) _MANCOMPRESSED!= \ { ${ECHO} ".include \""${PKGMAKECONF:Q}"\""; \ ${ECHO} "all:"; \ ${ECHO} ".if defined(MANZ)"; \ ${ECHO} " @@${ECHO} yes"; \ ${ECHO} ".else"; \ ${ECHO} " @@${ECHO} no"; \ ${ECHO} ".endif"; \ } | ${MAKE} -f - all . endif .endif _MANZ= ${MANZ:Dyes:Uno} MAKEVARS+= _MANCOMPRESSED _MANZ # The logic for setting _PKGSRC_USE_CTF is in bsd.prefs.mk, at this point we # are only concerned if we should set up the tools and variables or not. # .if ${_PKGSRC_USE_CTF} == "yes" TOOLS_CREATE+= ctfconvert TOOLS_PATH.ctfconvert= ${TOOLS_PLATFORM.ctfconvert} TOOLS_ARGS.ctfconvert?= -i CTFCONVERT?= ctfconvert CTF_FILES_SKIP?= .endif STRIP_DEBUG?= no STRIP_FILES_SKIP?= .if !empty(_MANCOMPRESSED:M[yY][eE][sS]) && empty(_MANZ:M[yY][eE][sS]) USE_TOOLS+= gunzip .endif .if empty(_MANCOMPRESSED:M[yY][eE][sS]) && !empty(_MANZ:M[yY][eE][sS]) USE_TOOLS+= gzip .endif @ 1.12 log @mk: Skip include and info dirs for CTF and debug. @ text @d1 1 a1 1 # $NetBSD: bsd.install-vars.mk,v 1.11 2022/07/06 18:53:58 rillig Exp $ d66 1 a66 1 CTF_FILES_SKIP?= include/* info/* share/* ${PKGMANDIR}/* d70 1 a70 1 STRIP_FILES_SKIP?= include/* info/* share/* ${PKGMANDIR}/* @ 1.11 log @mk/install: fix indentation and alignment, no functional change @ text @d1 1 a1 1 # $NetBSD: bsd.install-vars.mk,v 1.10 2020/07/08 12:37:13 jperkin Exp $ d66 1 a66 1 CTF_FILES_SKIP?= share/* ${PKGMANDIR}/* d70 1 a70 1 STRIP_FILES_SKIP?= share/* ${PKGMANDIR}/* @ 1.10 log @mk: Skip unnecessary dirs for CTF/debug conversion. There won't (or at least should never!) be any files under share/ or man/ that require conversion for CTF or debug support, so set sensible defaults for both CTF_FILES_SKIP and STRIP_FILES_SKIP. Further additions are welcome. While here rearrange the ordering of the debug skips to match CTF and deliver a small performance improvement by avoiding unnecessary file tests. Combined, these reduce the runtime for "make install-ctf install-strip-debug" in lang/rust down from wall/user/sys 10m33s/2m34s/9m30s to 1m13s/0m46s/1m4s. @ text @d1 1 a1 1 # $NetBSD: bsd.install-vars.mk,v 1.9 2018/11/12 14:22:58 jperkin Exp $ d39 1 a39 1 _MANCOMPRESSED= yes d41 1 a41 1 _MANCOMPRESSED= no @ 1.9 log @mk: Add CTF infrastructure support. Platform support is determined by _OPSYS_SUPPORTS_CTF from mk/platform, the user enables support by setting PKGSRC_USE_CTF=yes, and packages can explicitly disable support with CTF_SUPPORTED=no or skip certain files with CTF_FILES_SKIP. The path to ctfconvert is configured via TOOLS_PLATFORM.ctfconvert. If all of the requisite variables are enabled, a compiler-specific debug flag is passed via the wrappers to ensure we have DWARF information to convert, _INSTALL_UNSTRIPPED is explicitly defined to avoid binaries being stripped prior to conversion, and the conversion is performed during the install stage. It is recommended that users who enable the feature also set STRIP_DEBUG=yes to reduce the final binary size once the conversion has been performed. This has been used for the past year in Joyent SmartOS builds. FreeBSD is marked as supported but is untested. @ text @d1 1 a1 1 # $NetBSD: bsd.install-vars.mk,v 1.8 2009/09/02 14:40:40 joerg Exp $ d66 1 a66 1 CTF_FILES_SKIP?= # none d69 2 a70 1 STRIP_DEBUG?= no @ 1.8 log @Add STRIP_DEBUG option, which removes debug information from all files, leaving basic symbol tables intact. Document that INSTALL_UNSTRIPPED doesn't work for all packages. @ text @d1 1 a1 1 # $NetBSD: bsd.install-vars.mk,v 1.7 2007/07/02 14:54:10 joerg Exp $ d9 9 d58 11 @ 1.7 log @Remove USE_MTREE support. Keep one copy (the NetBSD version) for the purpose of print-PLIST in plist/common-dirs.mtree. Discussed with wiz@@, no objections on tech-pkg@@. @ text @d1 1 a1 1 # $NetBSD: bsd.install-vars.mk,v 1.6 2007/04/19 16:52:03 joerg Exp $ d49 2 @ 1.6 log @Drop NO_MTREE by making it the default. Introduce USE_MTREE to get the old behaviour back. Discussed on tech-pkg@@. @ text @d1 1 a1 1 # $NetBSD: bsd.install-vars.mk,v 1.5 2006/12/15 20:54:47 joerg Exp $ a14 4 .if defined(USE_MTREE) USE_TOOLS+= mtree:bootstrap .endif @ 1.5 log @Set NO_MTREE for packages flagged as allowing DESTDIR. They are supposed to work without precreated directories anyway. @ text @d1 1 a1 1 # $NetBSD: bsd.install-vars.mk,v 1.4 2006/11/04 07:42:51 rillig Exp $ d15 2 a16 18 # If a package sets PKG_DESTDIR_SUPPORT to a non-empty value, # it is supposed to deal with missing directories already. # .if !empty(PKG_DESTDIR_SUPPORT) NO_MTREE= yes .endif # If a package sets INSTALLATION_DIRS, then it's known to pre-create # all of the directories that it needs at install-time, so we don't need # mtree to do it for us. # .if defined(INSTALLATION_DIRS) && !empty(INSTALLATION_DIRS) NO_MTREE= yes .endif INSTALLATION_DIRS_FROM_PLIST?= no .if !empty(INSTALLATION_DIRS_FROM_PLIST:M[Yy][Ee][Ss]) NO_MTREE= yes a18 10 # # Certain classes of packages never need to run mtree during installation # because they manage the creation of their own directories. # .if (${PKG_INSTALLATION_TYPE} == "pkgviews") && defined(CROSSBASE) NO_MTREE= yes .endif USE_TOOLS+= ${NO_MTREE:D:Umtree\:bootstrap} @ 1.4 log @When a package sets INSTALLATION_DIRS_FROM_PLIST to "yes", it does not need to specify INSTALLATION_DIRS itself. Instead, the list is generated from the static PLIST files. Like for INSTALLATION_DIRS, mtree is disabled when this variable is set. @ text @d1 1 a1 1 # $NetBSD: bsd.install-vars.mk,v 1.3 2006/07/13 14:02:34 jlam Exp $ d15 7 @ 1.3 log @* Add a new stage "bootstrap-depends" that happens before all other stages, and that installs dependencies listed in BOOTSTRAP_DEPENDS. The bootstrap-depends step works just like the normal depends step and honors the value of DEPENDS_TARGET. It's now possible to add dependencies solely to facilitate fetching the distfiles, e.g. BOOTSTRAP_DEPENDS+= curl-[0-9]*:../../www/curl * Teach the tools framework about ":bootstrap" as a tools modifier which indicates the tool should be added as a dependency via BOOTSTRAP_DEPENDS. * Add "digest" to the tools framework. * Use USE_TOOLS+=digest:bootstrap to force pkgsrc to install digest before anything else. Get rid of unused "uptodate-digest" target and related digest version-checking code. * Finish the refactoring work: split checksum-related code out of bsd.pkg.mk and into pkgsrc/mk/checksum and replace the "checksum" target command list with a script that does all the real work. * Make DIGEST_ALGORITHMS and PATCH_DIGEST_ALGORITHM into private variables by prepending them with an underscore. Also, rename _PATCH_DIGEST_ALGORITHM to _PATCH_DIGEST_ALGORITHMS and adjust the makepatchsum target to allow that variable to contain a list of algorithms, all of which are used when creating the patch checksums for ${DISTINFO_FILE}. @ text @d1 1 a1 1 # $NetBSD: bsd.install-vars.mk,v 1.2 2006/06/06 15:28:52 jlam Exp $ d7 7 d22 6 @ 1.2 log @Move some variable definitions out of bsd.prefs.mk and back into bsd.pkg.mk. They didn't actually need to be defined in bsd.prefs.mk, just somewhere before the "main" bsd..mk files were included. This moves some conditional (?=) definitions back into bsd.pkg.mk so they won't conflict with any conditional definitions in package Makefiles. This should fix the "checksum" problems in lang/php-gd as noted here: http://mail-index.netbsd.org/pkgsrc-users/2006/06/05/0012.html where EXTRACT_SUFX had the wrong value due to the order in while *.mk files were included. @ text @d1 1 a1 1 # $NetBSD: bsd.install-vars.mk,v 1.1 2006/06/03 23:11:42 jlam Exp $ d22 2 a23 3 .if !defined(NO_MTREE) USE_TOOLS+= mtree .endif @ 1.1 log @First pass at implementing support for package system flavors other than pkgsrc's current one. This is an important lead-up to any project that redesigns the pkg_* tools in that it doesn't tie us to past design (mis)choices. This commit mostly deals with rearranging code, although there was a considerable amount of rewriting done in cases where I thought the code was somewhat messy and was difficult to understand. The design I chose for supporting multiple package system flavors is that the various depends, install, package, etc. modules would define default targets and variables that may be overridden in files from pkgsrc/mk/flavor/${PKG_FLAVOR}. The default targets would do the sensible thing of doing nothing, and pkgsrc infrastructure would rely on the appropriate things to be defined in pkgsrc/mk/flavor to do the real work. The pkgsrc/mk/flavor directory contains subdirectories corresponding to each package system flavor that we support. Currently, I only have "pkg" which represents the current pkgsrc-native package flavor. I've separated out most of the code where we make assumptions about the package system flavor, mostly either because we directly use the pkg_* tools, or we make assumptions about the package meta-data directory, or we directly manipulate the package meta-data files, and placed it into pkgsrc/mk/flavor/pkg. There are several new modules that have been refactored out of bsd.pkg.mk as part of these changes: check, depends, install, package, and update. Each of these modules has been slimmed down by rewriting them to avoid some recursive make calls. I've also religiously documented which targets are "public" and which are "private" so that users won't rely on reaching into pkgsrc innards to call a private target. The "depends" module is a complete overhaul of the way that we handle dependencies. There is now a separate "depends" phase that occurs before the "extract" phase where dependencies are installed. This differs from the old way where dependencies were installed just before extraction occurred. The reduce-depends.mk file is now replaced by a script that is invoked only once during the depends phase and is used to generate a cookie file that holds the full set of reduced dependencies. It is now possible to type "make depends" in a package directory and all missing dependencies will be installed. Future work on this project include: * Resolve the workflow design in anticipation of future work on staged installations where "package" conceptually happens before "install". * Rewrite the buildlink3 framework to not assume the use of the pkgsrc pkg_* tools. * Rewrite the pkginstall framework to provide a standard pkg_* tool to perform the actions, and allowing a purely declarative file per package to describe what actions need to be taken at install or deinstall time. * Implement support for the SVR4 package flavor. This will be proof that the appropriate abstractions are in place to allow using a completely different set of package management tools. @ text @d1 1 a1 1 # $NetBSD$ d3 3 a5 3 # This Makefile fragment is included by bsd.prefs.mk and defines some # variables which must be defined earlier than where bsd.install.mk # is included. @