summaryrefslogtreecommitdiff
path: root/pkgtools
AgeCommit message (Collapse)AuthorFilesLines
2003-03-31clean up cruft from when this was called 'libpkgsrc', some whitespacegrant1-34/+34
tweaks.
2003-03-31Initial import of libnbcompat-20030331, a portable NetBSD compatibilitygrant74-0/+26330
library for use by the pkgsrc tools and other sources from NetBSD.
2003-03-29Synch with main sources:jschauma7-32/+126
Changes by hubertf and seb; these changes tested on NetBSD, Linux and Irix. Modified Files: src/usr.sbin/pkg_install/add: perform.c pkg_add.1 Log Message: Implement remaining TODO item in pkg upgrade (pkg_add -u): * Upgrade step 1/4: Check if the new version is ok with all pkgs * (from +REQUIRED_BY) that require this pkg Inspired by bsd.pkg.mk's upgrade(?) target. Modified Files: src/usr.sbin/pkg_install/admin: main.c src/usr.sbin/pkg_install/info: main.c perform.c Log Message: Consistently check findmatchingname() return value for error condition. Among other this fixes 'pkg_info -e whateverpkg' exit status when /var/db/pkg is missing: it is now 1 and not 0. Modified Files: src/usr.sbin/pkg_install/lib: version.h Log Message: Bump to "20030325" after today's changes from seb and me
2003-03-29Place WRKSRC where it belongs, to make pkglint happy; ok'ed by wiz.jmmv19-38/+38
2003-03-29Update to 3.49: make sure WRKSRC is properly placed in the second section,jmmv2-5/+5
the one starting by DISTNAME (if present). Ok'ed by wiz.
2003-03-29Update to 1.3:jschauma2-4/+6
pkg_tarup now gives ${HEAD}
2003-03-28NO_PATCH is deprecated, says pkglint. Remove it.wiz13-26/+13
2003-03-28Update to 3.48: Avoid including the same buildlink2 files overwiz2-3/+31
and over and over and over again. Among others, this makes pkglint work again for x11/gnomepanel.
2003-03-27Fill in default values for DESTDIR (empty), LOCALBASE ("/usr/pkg"),atatat2-10/+32
and X11BASE ("/usr/X11R6"), which, while they might not be right for *every* system, are certainly more right than UNDEFINED. Give lang/python/pyversion.mk a little help by stuffing the material from PYTHON_VERSIONS_ACCEPTED into the two places it expects it (since lintpkgsrc doesn't do .for loops), add support for the ${FOO:S/foo/&/} construction, and tweak the .if handling for && and || bits. This has the following effect on the -g output (as a simple measure): % grep -c UNDEFINED before after before:58 after:1 Jump to 3.47.
2003-03-26Stuffing the value of MAKE into the environment seems to haveatatat2-8/+6
undesirable side-effects, so simply call $make directly. Jump to 2.4.
2003-03-25Add -F for "fetch" output, so that you can pre-fetch all the distfilesatatat3-41/+129
you need and then build off-line (suggested by smb). Add -M to set the name/location of the make program (for the -F and -R output formats) to be used on systems where the make program is not the one you want (suggested by seb). Clean up a bug with subgraph assignment and counting. Move to 2.3.
2003-03-16Sync with main sources:jschauma6-69/+35
Date: Sat Mar 15 20:49:27 UTC 2003 Introduce a pkgdb_dump() function, which dumps the cache file of (filename, package) pairs. Modify calling functions to use pkgdb_dump() directly, rather than sequences of pkgdb_open { pkgdb_iter, pkgdb_retrieve } pkgdb_close calls. Remove the now unnecessary pkgdb_iter function. Date: Sat Mar 15 20:50:15 UTC 2003 Bump version string for pkgdb_dump changes. Date: Sat Mar 15 20:54:26 UTC 2003 Catch one more place that could result in Current not being set properly (and thus in the execution of "rm -fr /") if ^C is pressed at the wrong time. See also PR 19436.
2003-03-14Add -A, which causes -R to print a list of pkg_add commands (insteadatatat3-79/+142
of commands to rebuild directly from pkgsrc), -K (as with lintpkgsrc) as a way of specifying the PKG_PATH (the environment is also checked), and convert to using Getopt::Long, so that we can stuff multiple values for "out of date" packages or packages to be "updated" into arrays. Now you can make more than one package be out of date, etc.
2003-03-10Bump pkgdepgraph to 2.1. New stuff:atatat2-30/+74
* label the graph and the subgraphs (feature) * rework subgraph identification in the main loop (feature) * better handling of recoloring graphs that contain subgraphs (bugfix) * be a little more picky about what *might* be a pkg directory (bugfix via seb) * fix a bug in error reporting in canonification routine (bugfix via seb) * add comments (bugfix? feature?)
2003-03-06Jump to pkgdepgraph v2.0.atatat4-58/+306
New features (excerpts from the man page, not in proper order, so that you can better see how it fits together): -L Limit the graph to those packages that are out of date or ulti- mately depend on some package that is. -D Instead of the standard graph output, pkgdepgraph lists the packages that need to be deleted, in ``least required first'' order, so that they can be deleted without any dependency prob- lems. -R Instead of the standard graph output, emits a series of sh(1) commands that will rebuild all the out of date packages by re- building all the deleted leaf packages. -U package Generates a graph with only the out of date dependencies of package marked in red (ie, packages that are out of date but not dependencies of package will not be considered out of date). -f Force a rebuild of all dependent packages. This option is for use in conjunction with the -U option to force a rebuild of all the dependencies of a package to be updated. -O package Marks package as out of date so that you can see the impact of deleting dependent packages and rebuilding everything. -t target Changes the target of the -R output from ``install'' to target in case you want to ``make package'' or some other target. -c Inserts a ``make clean'' command in the set of instructions to rebuild packages (see the -R option) after they are installed. -C Asserts -c and adds ``CLEANDEPENDS=YES'' so that all rebuilt de- pendencies are cleaned as well. The code was also cleaned up a bit, some unused or otherwise useless variables were culled, the "multiple box" phenomenon of subgroups is fixed, and the examples were all cleaned up to take advantage of all the new features. Hey ma! Now I can update my pkgs in four easy steps! $ lintpkgsrc -i > pkgdepgraph.in $ pkgdepgraph -R pkgdepgraph.in > rebuild.sh $ pkg_delete `pkgdepgraph -D pkgdepgraph.in` $ sh rebuild.sh
2003-02-18correct #ifdef misplacement.grant1-3/+3
2003-02-11Fix some RCS ids.grant5-5/+8
2003-02-11belatedly sync with src:grant3-11/+11
Allow '%D' to be used when no last_file available. Fixes binary package installation of gnome-dirs. crank PKGTOOLS_VERSION to 20030202.
2003-02-11belatedly sync with src:grant1-2/+6
In pkgdb_remove_pkg, only perform DB functions if HAVE_DBOPEN is defined, else return EXIT_SUCCESS unconditionally (as in other functions dealing with db functionality). fixes build problem on Solaris when no libdb is available.
2003-02-05update to cdpack-1.5. The primary change is the addition of a '-dvd' optiondmcmahill4-70/+121
which creates DVD sized images instead of the default CD-ROM sized images. Prompted by the current size of an i386 CD-ROM set (7) and the suggestion by David Brownlee that we create DVD images.
2003-02-01Remove old ftp site from comment (noted by Tilman Linneweh).wiz1-4/+3
Correct itojun's name (s/Itoh/Hagino/).
2003-01-31Make excessive use of :Q in MAKE_ENV to placate pkglintabs3-6/+6
2003-01-28Update pkglint to 3.46abs2-4/+15
Check MAKE_ENV and similar variables which contain ${ use :Q or are quoted
2003-01-27Add a simple "extract" step so that local patches can be maintainedatatat1-4/+9
easily. This only affects the build process, so PKGREVISION is not bumped.
2003-01-24Update to 3.45:wiz2-12/+15
Accept commented out SUBDIRS in category Makefiles, if a comment with a reason is given.
2003-01-24Add -E and -I to lintpkgsrc for the "exporting" and "importing" of aatatat3-8/+105
"database" that lintpkgsrc can use in lieu of scanning all the pkgsrc Makefiles. This has several nice effects, chiefly: (1) Using any of -B, -O, -R, -S, -V, -d, -g, -i, -p, or -u, are now *much* faster since reading the "database" takes at most 3 seconds on my laptop, whereas reading all the Makefiles takes at least 3 minutes. (2) One can now check for out-of-date packages on machines which do not have an expanded pkgsrc tree simply by copying the "database" over. Note that the database will inherently have some dependencies on the environment of machine where it is generated (eg, mk.conf settings, architecture type, etc). Reviewed by the wiz.
2003-01-24Update pkg_comp to 1.6:jmmv3-13/+20
- Allow the user to issue any command inside the chroot environment using the "chroot" target, instead of only running ROOTSHELL. Patch provided by seb.
2003-01-22Make sure PKG_DBDIR exists before installation, "just in case".agc1-1/+4
2003-01-16Use PAX instead of CP (Solaris 'cp' cannot copy symlinks)heinz1-3/+3
2003-01-15Update pkglint to 3.43. Check for hard coded share/locale and lib/localerh2-3/+15
within PLIST.
2003-01-14Synch with latest changes from src (changes by agc, synch ok'd by agc)jschauma13-88/+144
---------------------------------------------------------------------- Add a pkgdb_remove_pkg() function and use it in pkg_delete(1). Bump lib/version.h due to added functionality. Order the getopt(3) options alphabetically. Introduce the notion of "preserving" an installed package. A preserved package may not be deleted by pkg_delete(1) (unless the -f option is given), and the preserved capability will be carried into any binary package. pkg_add(1) will also keep the preserved capability if it was present in the binary package. The "preserve" capability can be given to a package by using the PKG_PRESERVE definition in a package Makefile in pkgsrc. Ride on the recently-bumped lib/version.h for new functionality.
2003-01-14Update pkgtools/x11-links to 0.12. Changes from version 0.11 includejlam2-18/+5
teaching x11-links about Xrender libraries and headers via Xrender's buildlink2.mk.
2003-01-13add .dylib files for Darwin.grant2-3/+73
This allows X packages to be built on Darwin. bump pkg version to 0.11.
2003-01-13fix typo: llibXcursor.a.grant1-2/+2
2003-01-12Comment out (non-cat) man pages, currently not installed.wiz1-6/+6
2003-01-11Add } that got lost in last.wiz1-2/+2
2003-01-11Fix cut-and-paste whitespace damage.schmonz1-4/+4
2003-01-11On NetBSD, man pages were getting installed into /usr/man. That's,schmonz7-14/+19
like, so 80's! Pass a value more appropriate for the current decade to --mandir via CONFIGURE_ARGS, and let ./configure set this in the Makefiles. Install catted man pages with the suffix ".0" rather than ".1". Bump PKGTOOLS_VERSION.
2003-01-11Update pkglint to 3.42:rh2-3/+18
* Add a PKGLOCALEDIR check to pkglint: warn if PKGLOCALEDIR is in PLIST, USE_BUILDLINK2 is set, and USE_PKGLOCALEDIR is not set.
2003-01-10Add PKG_PRESERVE to the package Makefile.agc1-1/+2
Keep the old NO_PKG_REGISTER and NO_PACKAGE definitions for now, rather than force everyone to upgrade their pkg_install sources to today's version. At the next bsd.pkg.mk bump of PKGTOOLS_REQD, this can be readdressed.
2003-01-09Define NO_PKGTOOLS_REQD_CHECK, which will mean something in a moment.schmonz2-4/+6
Rather than override LOCALBASE, set PREFIX (after including bsd.pkg.mk). Bump PKGTOOLS_VERSION (many changes since 20021123).
2003-01-09Define NO_PKGTOOLS_REQD_CHECK, which will mean something in a moment.schmonz1-1/+2
2003-01-09Update to 2.5.uebayasi1-5/+6
* Be careful not to print duplicate blanks around buildlinked dependencies.
2003-01-09Update to 2.4.uebayasi1-2/+2
* Be careful not to print duplicate blanks around buildlinked dependencies.
2003-01-08Update pkg_comp to 1.5. Fixes:jmmv2-7/+18
- Check if all sets exist before extracting any of them. - Treat EXTRAMK properly: only process the variable if it is non-empty.
2003-01-07``On second thought, let's not go to Camelot. It is a silly place.''jschauma4-17/+17
(Make pkdb_open return pkgdbp!=NULL as src's does, and revert previous patch. As discussed with agc.)
2003-01-07Unlike pkg_install in src, this version of pkg_install containsjschauma3-13/+13
a pkgdb_open that may return one of _three_ values (0,1,-1), so that we can not simply use if (!pkgdb_open(ReadOnly)) but need to use if (pkgdb_open(ReadOnly) == -1) Mea culpa.
2003-01-07sync with src:grant1-20/+13
In pkgdb_remove(), use the return value from (*db->del), rather than explicitly setting and checking errno. Do some CSE in pkgdb_iter(). Use the db access functions in the proper manner. Also fix some whitespace nits.
2003-01-06Synch with basesrc:jschauma17-133/+135
Use EXIT_FAILURE, rather than hardcoding a value of '1' in err(3) and errx(3). Plug a memory leak by modifying the signature of _pkgdb_getPKGDB_FILE() to take a buffer and its size, and fill in that buffer and return it. Add an enumerated type which is used in pkgdb_open() to specify read-only or read-write mode. Modify the return value of pkgdb_open() to have a more logical boolean value.
2003-01-03Create a symlink for "lib/libXdpms.a" which is required to build e.g.tron1-1/+2
"xlockmore" on NetBSD-i386 with XFree86 3.3.6. This fixes PR pkg/19330 by Michael van Elst.