summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.mk
AgeCommit message (Collapse)AuthorFilesLines
2003-09-12start of improved compiler handling, mostly derived from the existinggrant1-19/+3
gcc buildlink2.mk files and splitting the non-buildlink2.mk bits out into compiler.mk. this allows USE_GCC2 and USE_GCC3 to work with non-buildlink2 packages again.
2003-09-12Create two new variables:jlam1-2/+16
DEFAULT_VIEW.${PKGBASE} default view for ${PKGBASE} VIEWBASE base location of files at run-time The first is meant to be set by package Makefiles or in /etc/mk.conf, while the latter is meant to read/used only. VIEWBASE is either ${LOCALBASE} or or ${LOCALBASE}/${DEFAULT_VIEW.${PKGBASE}} depending on whether the first variable is the empty string or not.
2003-09-12Move the default settings for USE_BUILDLINK[23] from bsd.pkg.mk intojlam1-6/+1
bsd.prefs.mk so that they may be tested/used in buildlink[23].mk files.
2003-09-12Make adding config files to views other than the default view work ifjlam1-4/+1
PKG_SYSCONFBASE points outside of ${PREFIX}.
2003-09-10During print-PLIST, use PKGNAME_NOREV to search for matches, not PKGNAMEjmmv1-2/+2
(though, keep the ${PKGNAME} replacement, as it contains the right value in the PLIST).
2003-09-10Create TEST_ENV variable that's initially just MAKE_ENV, but can be addedjlam1-2/+3
to by a package Makefile. This is passed as the environment when running the test target. We often need this since packages can require setting up LD_LIBRARY_PATH so that we can test before installation.
2003-09-09Update PKGTOOLS_REQD to 20030907. Critical fixes include makingjlam1-2/+2
"pkg_delete -O pkgname" actually remove file entries for pkgname from the pkgdb.byfile.db database. This makes FORCE_PKG_REGISTER work again (this must have been broken for a long time).
2003-09-09Check that the lockfile isn't stale from being left over across a systemjlam1-1/+6
reboot by testing whether or not /var/run/dmesg.boot is newer than it or not. Fix suggested by agc@NetBSD.org and simonb@NetBSD.org.
2003-09-08Allow BUILD_VIEWS to be "yes" or "YES".jlam1-2/+3
2003-09-08We want to add consistently add to the default view if we use pkgviewsjlam1-2/+2
and pkg_add'ing.
2003-09-06Move PKG_SYSCONFBASE definition into bsd.pkg.defaults.mk. This impliesjlam1-2/+1
that it's user-settable from /etc/mk.conf.
2003-09-05Remove "/pub" from pathnames on "ftp.fu-berlin.de" because such a directorytron1-2/+2
doesn't exist. It's apparently only mapped in the FTP server configuration.
2003-09-05"make deinstall" now tries to just delete this particular package firstjlam1-2/+5
before trying to delete all packages with the same PKGBASE. This is better semantics in a pkgviews world.
2003-09-05Package Makefiles should refer to PKG_SYSCONFBASEDIR instead ofjlam1-6/+7
PKG_SYSCONFBASE when they want PKG_SYSCONFDIR stripped of PKG_SYSCONFSUBDIR. This makes PKG_SYSCONFBASE=/etc work with pkgviews by installing all config files into /etc/packages/<pkg> instead of occasionally putting some directly into /etc. Also only create PKG_SYSCONFDIR if we're actually going to copy config files.
2003-09-05Typojlam1-2/+2
2003-09-05Check that USE_BUILDLINK2 is defined before including buildlink2.mk files.jlam1-2/+4
2003-09-03The package vulnerability list is now called "pkg-vulnerabilities".tron1-7/+7
2003-09-03Require 20030824 of the pkg_install tools to get the changes for usingjlam1-2/+2
pkg_add(1) on non-NetBSD (or more precisely, non-poll) systems.
2003-09-03Don't restrict the user to only the default view. Also allow user tojlam1-3/+2
customize the default view through setting DEFAULT_VIEW in /etc/mk.conf.
2003-09-02No need to substitute anymore for ${INSTALL_INFO} in PLIST.seb1-2/+1
2003-09-02Test for ${PREFIX} existence before mkdir'ing it.seb1-2/+2
This fix NO_MTREE installation on Solaris when ${PREFIX} already exists and is a symlink. Example: # uname -sr SunOS 5.9 # cd /tmp # rm -f foo # ln -s /etc foo # /bin/mkdir -p /tmp/foo mkdir: "/tmp/foo": Exists but is not a directory #
2003-09-02Merge pkgviews-mk branch into the HEAD by running:jlam1-76/+345
cd pkgsrc/mk cvs update -Pd -A cvs update -Pd -j pkgviews-mk-base -j pkgviews-mk
2003-08-31Add belnet and keihanna sourceforge mirrors; remove switch and osdn.wiz1-3/+3
Addresses PR 22641.
2003-08-30Back out last revision since we modified bsd.pkg.install.mk to requirejlam1-9/+9
that {,DE}INSTALL_EXTRA_TMPL to be set if a package Makefile wants to use them.
2003-08-30Reorder the inclusion of bsd.pkg.install.mk so that it appears *before*jlam1-9/+9
texinfo.mk. This ensures that {,DE}INSTALL_EXTRA_TMPL isn't defined by texinfo.mk before bsd.pkg.install.mk checks those variables.
2003-08-27(*) Nuke the _BUILDLINK_SUBST_USE target now that subst.mk does the samejlam1-16/+40
thing. (*) Move the code to adjust Makefiles to refer to the correct PKGLOCALEDIR into bsd.pkg.mk and reimplement it using subst.mk so that it's non-USE_BUILDLINK2 packages can use it, too. (*) Reimplement the PKGCONFIG_OVERRIDE code in bsd.pkg.mk using subst.mk. (*) Reimplement the unbuildlink code in bsd.buildlink2.mk using subst.mk.
2003-08-27Forgot a USE_GMAKE => USE_GNU_TOOLS+=make. (from pkgviews-mk)jlam1-5/+6
2003-08-26Create a symlink from the "make" requested by the package intojlam1-9/+16
${TOOLS_DIR}/bin/make. If a package wants GNU make, then it should set: USE_GNU_TOOLS+= make in the package Makefile. Allow for USE_GMAKE to continue to work until we get a chance to sweep through pkgsrc and remove the usage of this now-redundant variable. This change allows us to avoid patching makefiles that use a bare "make" command to invoke sub-make processes. Idea suggested by salo@netbsd.org in pkg/22509.
2003-08-24Sanity check that the package is actually installed by running pkg_info(1)jlam1-1/+7
before trying to create the binary package. This makes: cd pkgsrc/category/foo make install pkg_delete foo make package fail because package "foo" isn't actually installed, so no binary package can be built.
2003-08-23add support for extracting binary/library requires/provides on Darwin,grant1-16/+24
and simplify the logic to reduce code duplication. fixes PR pkg/22492 from Julien T. Letessier.
2003-08-23fix problem with shlib handling not being done on Darwin forgrant1-4/+4
devel/gettext and other pkgs installing libraries ending in eg. `x.y.z.so' rather than `.so.x.y.z'. also fix off-by-one bug in shlib handling awk script causing the first .so entry to not be commented out in the PLIST when it should be. ok'd by jlam.
2003-08-23Fix a long-standing past-o that was harmless.jlam1-2/+2
2003-08-22Use '${_PKG_SILENT}${_PKG_DEBUG}' instead of '@' (as seen on the pkgviews-mkseb1-2/+2
branch).
2003-08-22in check-shlibs, throw away warning from `type ldd' and only attemptgrant1-13/+15
to run ldd if it is executable. fixes bug where binaries just installed would be run (!) and the install process possibly "hang" on Darwin because Darwin has no ldd!
2003-08-16Move the hide-tools portion of bsd.buildlink2.mk into tools.mk, andjlam1-89/+43
put the tools in ${WRKDIR}/.tools/bin instead of in ${BUILDLINK_DIR}, and remove the need for buildlink2 to use USE_GNU_TOOLS. In the modified USE_GNU_TOOLS implementation, the following implementation- specific variables have the following meanings: _TOOLS_REPLACE.<tool> means that we want ${AWK}, ${SED}, etc. symlinked into ${TOOLS_DIR} as awk, sed, etc. _TOOLS_NEED_GNU.<tool> means that we want to use the pkgsrc version of <tool> symlinked info ${TOOLS_DIR} as awk, sed, etc. If this is "YES", then it always trumps _TOOLS_REPLACE.<tool>. And we want nothing to happen if we're building the pkgsrc GNU tool itself. The modified USE_GNU_TOOLS implementation should also hopefully fix the circular dependency problem. Create a new target "tools" that is run after "patch" and before "buildlink" that populates the ${TOOLS_DIR} directory. This ensures that it's always run at the right time, instead of relying on pre-buildlink or pre-configure, which may be cancelled by NO_BUILDLINK or NO_CONFIGURE. XXX There is some possible fallout in texinfo.mk with the MAKE_ENV and XXX CONFIGURE_ENV settings for INSTALL_INFO and MAKEINFO. It looks XXX like the MAKE_ENV and CONFIGURE_ENV settings should move from XXX tools.mk into texinfo.mk, and they no longer need to be XXX conditional on USE_BUILDLINK2. I'll leave it to the texinfo.mk XXX dude (Hi, Stoned!).
2003-08-12Remove duplicate .PHONY.seb1-2/+1
2003-08-12print-PLIST target change:seb1-4/+5
Make COMMON_DIRS generating an awk script instead of sed expressions hence use awk instead of sed to deal with the mtree file. This get ride of the annoying 'sed: Too many commands' message making print-PLIST unusable with Solaris' seds.
2003-08-12As is clean-depends-list is subject to dependencies loops (uncoveredseb1-44/+2
by the loops introduced by tools.mk) causing make failures. But show-all-depends-dirs and show-all-depends-dirs-excl are not. So use show-all-depends-dirs-excl in clean-depends target and remove clean-depends-list altogether. Besides this remove a bit of clutter and redundancy from this already monstrous file.
2003-08-12In the print-PLIST target, split the expressions fed to sed(1) into twoagc1-11/+11
sets, so that this target will work on all native sed programs. The extra invocation gets lost in amongst all the other sort, grep, sed, and awk invocations that are there, and is a much more appealling prospect than installing GNU sed.
2003-08-09USE_NEW_TEXINFO is now ubiquitous. Remove conditionals on it.seb1-13/+6
Also remove the older texinfo.mk framework as well as the previous handling of INFO_FILES, all this is not used anymore.
2003-08-08Use saner values for PKGSRC_SHOW_BUILD_DEFS - make this switch on "yes"agc1-2/+2
or "YES", rather than a straight definition.
2003-08-08Re-model the BUILD_DEFS display during build: if PKGSRC_SHOW_BUILD_DEFS isagc1-12/+14
defined, then show the BUILD_DEFS to the user. If not, then just keep quiet. Whilst I'm here, re-indent the cpp-like .if/.else/.endif/.for/.endfor lines properly. Also, remove the ":u" modifier in the build-defs-message code - it's not strictly necessary (duplicate definitions will be displayed, but this isn't a major problem), and it removes the requirement to have a make(1) binary which supports ":u". This should fix PR 22402 from Alan Barrett, and also addresses some concerns raised by Robert Elz.
2003-08-07Introduce a PKGSRC_MESSAGE_RECIPIENTS, which takes the login names ofagc1-2/+12
users to whom the MESSAGE file should be mailed at package installation time, and mail the MESSAGE file at the "make install" stage (if PKGSRC_MESSAGE_RECIPIENTS is not empty). Inspired by PR 22328 from Jeremy Reed.
2003-08-04Provide a new variable NO_EXPORT_CPP to further restrict CPP from getting intojmc1-3/+3
MAKE_ENV. There is no effective way to unset CPP otherwise and there are some packages (the cross compilers using gcc) where having CPP set will break things.
2003-08-02Move BUILD_DEFS check to pre-extract to avoid creating work directories inwiz1-3/+3
the fetch step.
2003-08-02handle platforms with broken tools in the base system, such as sedgrant1-1/+4
and awk. as proposed on tech-pkg@, with some changes to set the appropriate tool variables and handle OSs which provide GNU tools in the base system (ie. do nothing). this allows packages or users to force the use of pkgsrc GNU tools when they are not present in the base system by defining e.g. USE_GNU_TOOLS="awk sed". Solaris' sed is marked as incompatible, as even the XPG4 sed is too limited for a number of packages (especially large ones which use libtool, as libtool calls blind 'sed'), so GNU sed is always used on Solaris.
2003-07-31Make it possible to have a package requiring makeinfo but not install-info.seb1-2/+4
INFO_FILES is now defined by default to the empty value. If it is not empty it means that install-info -or a suitable replacement like pkg_install-info- is required. USE_MAKEINFO is now defined by default to the 'no' value. If it has any other value it means that makeinfo is required. Note that as before simply defining USE_MAKEINFO in a package Makefile is enough to trigger the use of makeinfo. I.e. it is not required to be '[yY][eE][sS]'. As a side effect when using buildlink2 always create install-info and makeinfo wrappers in ${BUILDLINK_DIR}/bin. This could help package maintainer to catch spurious/hidden install-info and makeinfo usage. Note that for now this nice feature is not really enabled as the relevant part of bsd.buildlink2.mk is still conditional upon USE_NEW_TEXINFO. It will really be when USE_NEW_TEXINFO will be removed from pkgsrc.
2003-07-30Modify the build-defs-message target so that it is only printed once, in thejmmv1-2/+7
pre-fetch stage. Do this by creating a cookie file inside the WRKDIR. Also let the user override the target from mk.conf to disable these messages. This fixes PR pkg/22305 by Robert Elz.
2003-07-28Indent cpp-like statements properlyagc1-7/+7
2003-07-28Add the build-defs-message target, which shows a list of all variables thatjmmv1-1/+26
can be customized for the package beeing built. This list is extracted from the contents of BUILD_DEFS, and the message is not shown if it's empty. Each variable is printed together with its actual value. The new target is called in the pre-fetch stage, so it's shown early to the user.