summaryrefslogtreecommitdiff
path: root/mk/flavor/pkg
AgeCommit message (Collapse)AuthorFilesLines
2011-10-15Rename "flavor" to "pkgformat".reed15-1772/+0
This is from Anton Panev's GSoC 2011 project to add RPM and DPKG support to pkgsrc. (I am not adding that further support in this commit.) This is just a rename of the existing functionality. Now it will be easy to test the GSoC work by simply putting in a single directory (such as "rpm" or "deb"). See http://addpackageforma.sourceforge.net/ for some details. This is from Anton's CVS, but I made some minor changes: - changed plural pkgformats to singular pkgformat (to be consistent) - fixed a few places (in comments) that were missed - catch up on some additions to flavor not in the pkgforma cvs: PKGSRC_SETENV and _flavor-destdir-undo-replace and undo-destdir-replace-install.
2011-09-08Introduce PKGSRC_SETENV, defaulting to SETENV. Can be set to ${SETENV} -iabs5-19/+19
to santise environment
2011-06-04Add support undo-replace with USE_DESTDIR.obache1-1/+14
fixes PR#43689.
2011-03-19Add FILEBASE support for choosing the file name for a binary package.wiz1-3/+4
From Aleksey Cheusov in relation to PR 44698.
2010-12-02Better match library names to improve REQUIRES/PROVIDES.reed1-5/+4
This is from cheusov via PR #42907. (I have been using this for months, as I had noticed some of the same problems.)
2010-09-24add EMULDIR and EMULSUBDIR to MESSAGE_SUBST list.chs1-1/+3
2010-09-14Use new "pkg-add -U -D" for make replace in DESTDIR case.gdt1-10/+10
Removes overbroad use of -f to override the depending-packages-have-satisfied-dependencies check, replacing with the narrow override of -D. Discussed on tech-pkg@. OK pkgsrc-pmc@.
2010-09-14In "make replace" case with DESTDIR other than no, require 20100914gdt1-2/+2
for -D flag in "pkg_add -U -D". Discussed on tech-pkg@. OK pkgsrc-pmc@.
2010-06-16Adjust workaround for make replace in destdir case. Use of -f is ofgdt1-3/+3
course a too-large hammer, but in addition to overriding checks it appears to change behavior in some cases when no overrides are necessary. Therefore, use pkg_add -U as before first, and only try -f if that fails. (This is temporary and should be replaced by -D to omit only the exact depends check as soon as that's in tree.)
2010-06-12Repair regression in "make replace" in DESTDIR case.gdt1-3/+12
"make replace" is defined to replace a package with a newer version, and update depdending packages to depend on the new version. It has long been understood that this is not always safe, with the responses being "tell people to be careful" and the unsafe_depends variable scheme and pkg_rolling-replace. In the DESTDIR case, make replace is implemented by pkg_add -U. Usually, this is fine - even if the ABI/shlib majors have changed, the package is replaced, and then a later make replace of unsafe_depends=YES packages, either manually or via pkg_rolling-replace, will bring the system to where it should be. However, there are pinned dependencies on osabi where the depending package will not accept the new version, and that causes pkg_add -U to fail. This is incorrect, as a) those packages don't depend on the osabi exact version any more than packages depending on jpeg depeend on the particular shlib major, yet jpeg dependencies aren't pinned. And, osabi changing version is not necessarily an ABI change - consider 5.0_STABLE just before 5.1RC1 and just after, where only the version string changed. Therefore, add -f to pkg_add -U so that the update will succeed.
2010-05-03From Aleksey Cheusovreed1-3/+7
http://mail-index.netbsd.org/tech-pkg/2010/03/05/msg005088.html http://mail-index.netbsd.org/tech-pkg/2010/03/05/msg005090.html This fixes problem where some packages didn't list correct REQUIRES or PROVIDES. Symlinks are removed from PROVIDES. Libraries provided by same package are removed from REQUIRES. Also see pkg PR #42907
2010-02-19Use the real root account for MESSAGES, not the fake user forjoerg1-3/+3
unprivileged builds.
2010-02-19Garbage collect support for old pkg_install versions.joerg1-11/+1
2010-02-09Start removal of PKG_SUFX as option by making selection of compressionjoerg1-1/+12
format a separate new option (PKG_COMPRESSION).
2010-01-30Revamp the replace logic for the destdir case. Don't bother messing upjoerg1-3/+12
the +CONTENTS files, just set the various variables on the dependencies. Tested by tnn@
2010-01-30Use new pkg_add -U for replace in the destdir case.joerg2-4/+8
2009-11-05Don't bother with pkg_create -L. @src is essentially unused and thejoerg1-2/+1
combination of -p and -I provides all the information needed.
2009-10-31Avoid echoing commands at bin-install.asau1-2/+2
2009-10-02Fix typo in comment.obache1-2/+2
2009-07-24Compute +SIZE_ALL as documented in pkg_info(1). Addresses PR 41767.joerg1-19/+22
2009-07-17Apply the fixes from Jukka Salmi in pkg PR/41621 to fix smart messageagc1-4/+4
display.
2009-06-17Make sure that _UPDATE_RUNNING=YES is passed down to su-deinstall forjoerg1-1/+3
PKG_PRESERVE packages (e.g. pkg_install). Otherwise an old version of pkg_install is not removed from pkgdb.
2009-06-14Bump PKGTOOLS_REQD version:joerg1-2/+2
- @dirrm is now obsolete and should most conditional mkdir/rmdir lines in PLIST should be replaced by @pkgdir - license handling can use pkg_admin
2009-06-09Add support for using USE_DESTDIR=yes and replace together.joerg1-2/+24
Based on the patch send to tech-pkg in 2008, but less intrusive.
2009-05-16Remove preserve packages for make update with -N -f -f and therefore dojoerg1-2/+2
not depend on the behavior of older pkg_delete to allow the removal with simple force.
2009-05-02Add new metadata: PREV_PKGPATH and SUPERSEDES.reed1-1/+7
These will be available from pkg_summary(5) database. To be used to find previous packages when a package is moved or renamed. (Even though that is not recommended.) Documented in pkgsrc Guide and in the pkg_summary(5) manual page. Upcoming commit will have some packages modified to add them.
2009-04-24Add support for @pkgdir for non-destdir installation.joerg1-1/+3
2009-04-04Tell the user the right config file and option for vulnerabilities basedjoerg2-3/+7
on the pkg_install version. Reported by Nicolas Joly.
2009-03-20Skip vulnerability check for packages that set NO_PKGTOOLS_REQD_CHECK.joerg2-3/+8
Set AUDIT_PACKAGES and friends correctly though. Fixes bootstrap on platforms with pdksh.
2009-03-17Replaced _PKG_SILENT and _PKG_DEBUG with RUN.rillig2-10/+7
2009-02-13package-install with DESTDIR should pass down -A as needed to getjoerg1-2/+5
automatic installed handling correct.
2009-02-11Use pkg_admin for audit processing if pkg_install >= 20090201 isjoerg2-4/+14
installed.
2009-02-06Fix circular dependency detection for the case of non-leading circles.joerg1-4/+9
For the dependency chain A->B->B the old code created: _PKGSRC_DEPS=", B-1.0, A-1.0", which obviously can't match the PKGNAME of B. Skip the _flavor-bootstrap-depends processing if PKG_FAIL_REASON is already set and move the check for circular dependencies right after the block that defines PKGNAME and friends.
2008-11-29Replaced _PKG_SILENT and _PKG_DEBUG with RUN.rillig2-21/+21
2008-05-26Fix broken shell code:tron1-3/+3
You must *not* use "test ... && ..." when you use "set -e". Because if the first expression fails your shell script will abort. This should fix problem with NetBSD-current's (correctly behaving) "/bin/sh" report on current-users by David Holland and Kurt Schreiner.
2008-05-21Include OWNER (if set) in BUILD_INFO - from dilloabs1-1/+4
2008-04-07Simplify logic as audit-packages and download-vulnerabilities alwaysjoerg1-20/+1
comes from pkg_install now.
2008-04-07Sync with reality: audit-packages does exist, the vulnerability filejoerg1-3/+3
itself might not.
2008-04-05Remove old comment - this now does call audit-packages directlyadrianp1-5/+1
2008-04-03Move handling of pkg_install version into flavor. Add an explicitjoerg2-2/+29
phase pkg_install-depends before bootstrap-depends that just tries to install a new pkg_install if the current version is too old. Still keep it as bootstrap dependency for the bulk build code. For NetBSD, PKG_TOOLS_BIN has to be computed in shell code due to a make bug. OK: jlam@
2008-03-20Fix from David Holland for PR 38134 - fix a typo which was causingagc1-2/+2
problems which manifested in "make update" failing.
2008-03-15Remove support for separate audit-packages, PKGTOOLS_REQD has beenjoerg1-52/+14
bumped in the mean time.
2008-03-11Explicitly "" around $1, so that e.g. csh-like expansion of {} doesn'tjoerg1-1/+1
happen.
2008-03-10Replace "pkg_admin -S lsbest" usage with pkg_info -E. The base strippingjoerg3-5/+5
in bsd.buildlink3.mk was broken with pkg_install-20080309 was it returned a relative path. It would have failed before e.g. with symbolic links in the path. pkg_info -E is simpler and was added exactly for this purpose. Fixes PR 38213 and PR 38211.
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-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.