summaryrefslogtreecommitdiff
path: root/mk/flavor
AgeCommit message (Collapse)AuthorFilesLines
2008-02-18Move show-depends-options target from bsd.options.mk to flavor/pkg/utility.mkobache1-1/+11
to work with option-less packages.
2008-01-23Add better error message when failing to tar up old package.gdt1-2/+3
2008-01-23Don't run pkg_create with the -v option. It prints a temporary packagerillig2-3/+4
name which isn't correct, and the "Value of SrcDir" that is used is not important to any pkgsrc user. Instead, let the pkgsrc infrastructure print the package name.
2008-01-05Explicitly record the PKGNAME via the @name command. That way, it isrillig2-3/+9
possible to create the package file using a temporary file first, and if everything has succeeded, to rename it to the real name. This time, I tested it creating various binary packages and installing them afterwards, so I'm pretty sure it works now.
2008-01-04Reverted the change that tried to make binary packages more sane becauserillig1-8/+2
it had severe consequences: pkg_create gets lots of information from the filename into which the package is written. The extension decides what compression to apply, and the basename gets recorded as the @name. This part needs more work. Noticed by stoned@.
2008-01-04Made the .include directives simpler, since the directory of therillig1-2/+2
including file is always the first in the search path.
2008-01-03When creating the binary package, first create a temporary file, and ifrillig1-2/+8
everything went well, rename it to the real name. That way, it is less likely that broken binary packages are created. It is a common assumption that binary package files, if they exist, are usable. An example for a broken binary package is security/sudo-1.6.9p10, in which sbin/visudo wasn't readable when creating the package as an unprivileged user.
2008-01-03* Rename AP var to AUDIT_PACKAGES as the former was a bit obscureadrianp2-10/+14
* Add DOWNLOAD_VULN_LIST var * Get AUDIT_PACKAGES and DOWNLOAD_VULN_LIST to point to the right binaries taking into consideration OPSYS and pkg_install version * Replace all references to audit-packages and download-vulnerability-list with AUDIT_PACKAGES and DOWNLOAD_VULN_LIST
2007-12-16audit-packages logic for its location depends on a variety of factorsadrianp1-1/+19
including OS, pkg_install version and NetBSD version. The following should pick the correct version to run.
2007-12-02Removed the block comments, as they were full of redundant words.rillig1-61/+29
2007-11-22Use SIGUSR1 instead of SIGINT, since the latter may occur indepenentlyrillig1-2/+2
and should be handled like everywhere else.
2007-11-22Exit if reduce-depends produces an error.rillig1-2/+4
2007-11-22Replaced the usage message with a standard one.rillig1-9/+7
"This is a" was redundant and has been removed.
2007-11-22A little sanity checking prevents that a file called "=2.5" is createdrillig1-1/+5
in www/zope25-PropertyFolder because of the dependency pattern "zope>=2.5<2.7".
2007-11-19Don't warn that the "check", "info" or "list' target will be removed.tron1-10/+10
They are still in use and not really hard to maintain.
2007-11-17Added a missing line continuation to prevent output of a shell command.rillig1-2/+2
2007-11-12Fix uninitialised variable resulting in wildcard patterns printed twice.joerg1-1/+2
From Arnaud Lacombe in PR 37367.
2007-11-10show-installed-depends will not be removed.rillig1-2/+2
2007-11-10Removed the "will be removed soon" marker for show-downlevel, since itrillig1-3/+6
is documented in the pkgsrc guide and (since this commit) also accessible via "bmake help".
2007-11-07The comment in the first paragraph says that the targets in this filerillig1-8/+14
should probably removed. Check if they are really used by anyone, by printing some warnings to stderr.
2007-11-07Removed some extra code that I had added years ago (bsd.pkg.mk 1.1610)rillig1-7/+2
when pkg_create didn't print an error message on failure. If that should ever happen again, we should fix pkg_create instead of adding code here.
2007-11-07Fixed the latest pkglint warnings.rillig1-5/+5
2007-11-07Replace ${PKG_SILENT}${_PKG_DEBUG} with ${RUN}, per pkglint.gdt1-3/+3
2007-11-07use ${OLDNAME} instead of OLDNAME to make it clear that it's agdt1-2/+2
make variable. Pointed out by rilling/pkglint.
2007-11-07Allow make replace to replace a package with a name other than the newgdt2-10/+21
one, via "make replace OLDNAME=oldpkgname". Enhance replace-names to use OLDNAME if present. Move replace-names target before replace-tarup, and change replace-tarup to use the computed oldname. Make deinstall respect OLDNAME. Tested on netbsd-current with standard make replace and with OLDNAME.
2007-10-31Simpler .include lines.rillig2-12/+12
2007-10-14Switched two words, so that the version number of the package appears torillig1-2/+2
the right instead of the (strictly) redundant word "found".
2007-10-01Added CVS Id.rillig1-0/+2
2007-09-27Documented the used environment variables.rillig1-1/+7
2007-09-22revert previous; it has trouble in two many places and 1) a fix isn'tgdt1-5/+4
obvious 2) we're in freeze, so restore to working as quickly as possible.
2007-09-21When replacing, use the oldname as found in work/.replace_oldname togdt1-4/+5
tar up, instead of PKGBASE. This enables modifying that file to have a package that isn't automatically found be the replace target, e.g., "echo libglade2-2.6.2 > work/.replace_oldname" after make replace fails to find a package to tar up when doing make replace in libglade.
2007-09-21Instead of the overly verbose "Required installed package", the type ofrillig1-10/+13
dependency (bootstrap, build, full) is printed. When building a package that pulls in the basic tools as dependencies, it is good to know whether these are build or full dependencies, so the additional information is useful.
2007-09-20Replaced _PKG_SILENT _PKG_DEBUG with the shorter RUN.rillig1-51/+41
2007-09-07Replaced ${_PKG_SILENT}${_PKG_DEBUG} with ${RUN} and made the code simpler.rillig1-24/+14
2007-08-15Use the new pkg_add -m for cross-compiling instead of -f.joerg1-2/+2
2007-08-14Fix a number of bugs in the DESTDIR support:joerg1-1/+7
- check-perms.mk was not DESTDIR aware, prefix files before passing it to the directory extraction - PKG_FILELIST_CMD was calling pkg_info, which is fine for normal installation, but fails of course for DESTDIR. Just drop the @ lines from ${_DEPENDS_PLIST} and use that. - To make he former work, ensure that _flavor-generate-metadata is part of _INSTALL_ALL_TARGETS. It was normally a dependency of _flavor-register, but that is skipped for DESTDIR. - Remove ${_DEPENDS_PLIST} when running install-clean.
2007-08-14Don't remove the whole metadata directory in _flavor-clean-metadata...jlam1-3/+4
instead only remove the files generated by _flavor-generate-metadata. This should preserve the +INSTALL and +DEINSTALL scripts (which are created during the "build" phase") across a "make update" or a "make deinstall".
2007-08-13Factor out _REPLACE_NEWNAME_CMD.gdt1-17/+21
Use $$newname consistently rather than $PKGBASE and $PKGNAME. Rationalize @ with STEP_MSG. Ensure ${RUN} is used once, and all commands are included.
2007-08-13Made the code simpler:rillig1-40/+23
- Replaced ${_PKG_SILENT}${_PKG_DEBUG} with ${RUN}, - Moved the code to load oldname into a macro.
2007-08-11add missing \, reported my Mark Perkinsgdt1-2/+2
2007-08-10store +REQUIRED_BY and +INSTALLED_INFO in work/.replace-FOO rathergdt1-7/+12
than in work/.pkgdb, so as not to lose them in install-clean. Because of this, put them back explicitly. (Fixes 'make replace loses +REQUIRED_BY', and also the unreported 'make replace loses +INSTALLED_INFO'.)
2007-08-10Rename the generate-metadata and clean-metadata targets to _flavor- stylejlam2-14/+14
names to indicate that they are purely private to flavor/pkg.
2007-08-10Remove ${WRKDIR}/.pkgdb during "install-clean" as that directoryjlam1-1/+6
contains files that are generated during the "install" phase. This should fix the problem where PLIST modifications were ignored if the PLIST was modified between a "make deinstall" and a "make reinstall".
2007-08-08Skip blank lines in +REQUIRED_BY files so that we don't error out tryingjlam1-1/+2
to locate the +CONTENTS file for a "blank" package. Why are there blank lines at all in +REQUIRED_BY?
2007-08-08Need to also unset unsafe_depends_strict along with unsafe_depends here.tnn1-2/+2
2007-08-08Change the meaning of unsafe_depends to mean that a dependency hasgdt1-3/+9
been replaced which might have had an ABI change. In practice, a package is considered to maybe have had an ABI change if the version changes. Introduce a new tag unsafe_depends_strict, which is unconditionally set on depending packages whenever make replace is done. This will cut down considerably on the amount of rebuilding required with pkg_rolling-replace, while still guaranteing that packages are rebuilt if there was an ABI change in a dependency.
2007-08-08Improve previous: Per tnn@ suggestion, don't do pkg_admin unset unlessgdt1-6/+17
+INSTALLED_INFO is present, to avoid complaint from pkg_admin (see pkg/36741). Separate tag removal into a separate target, and use STEP_MSG and _PKG_DEBUG properly.
2007-08-07Remove unsafe_depends and rebuild tags from a package just beforegdt1-3/+6
fixing up the required-by file. The invariant on unsafe_depends (on which pkg_rolling-replace depends) is once again maintained, but now cleanly, rather than assuming that all tags are cleared. (proposed on tech-pkg with no objections, and concurrence from tnn@)
2007-08-04Use ${PKGTOOLS_VERSION} when detecting which version of pkg_install isadrianp1-3/+2
installed. Idea from one of joerg@'s patches.
2007-08-03Update _USE_DESTDIR=full handling to use the new -u/-g code andjoerg1-1/+4
require pkg_install-20070802 for using it. It is now considered to work correctly and ready for general consumption.