Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
Allow '%D' to be used when no last_file available. Fixes binary package
installation of gnome-dirs.
crank PKGTOOLS_VERSION to 20030202.
|
|
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.
|
|
----------------------------------------------------------------------
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.
|
|
|
|
|
|
|
|
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.
|
|
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.
|
|
Rather than override LOCALBASE, set PREFIX (after including bsd.pkg.mk).
Bump PKGTOOLS_VERSION (many changes since 20021123).
|
|
(Make pkdb_open return pkgdbp!=NULL as src's does, and revert previous
patch. As discussed with agc.)
|
|
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.
|
|
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.
|
|
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.
|
|
(Pointed out by Jeremy C. Reed (reed at reedmedia dot net).)
|
|
databases/db/buildlink2.mk.
On platforms that lack Berkeley DB, pkg_install will build and
install from bootstrap-pkgsrc, but will be missing some important
functionality. On such systems, once bootstrapped, install this
package to get full functionality. (We'll take care of this
automatically in the future.)
Platforms that are reported to lack Berkeley DB in the base system:
Solaris, some Linuxes. There are probably others.
Suggested by "Jeremy C. Reed" <reed@reedmedia.net> on tech-pkg@.
|
|
present.
From Frank Cusack in PR pkg/19494.
|
|
fixes problem with `pkg_admin check'.
Fix from Frank Cusack in PR pkg/19492.
|
|
It turned out to be "pkg_install installed over zoularis and wrong PATH" local
problem. Sorry for the fuzz.
|
|
This stops current loop:
- PKGTOOLS_REQD bump
- update pkg_install
- ZOULARIS_VERSION is too small, newer pkg_install required
- update pkg_install
- ZOULARIS_VERSION is too small, newer pkg_install required
...
|
|
and MANINSTALL aren't needed.
|
|
|
|
|
|
and the "do-extract" target copies the sources into ${WRKSRC}. We
automagically determine VERSION by inspecting ${FILESDIR}/lib/version.h.
Thanks to autoconf, all the patches and almost all of the cruftulent
${OPSYS}-specific stuff in the Makefile are gone.
|
|
othersrc/bootstrap-pkgsrc/pkg_install into ${FILESDIR}.
Using autoconf greatly simplifies maintenance of this package across
multiple platforms. Placing the extracted source under ${FILESDIR}
will eventually let us use the same source for bootstrapping as
well, though we're not ready for this yet.
|
|
changed if really necessary.
|
|
|
|
|
|
(Thanks wiz!)
|
|
Curiously, several of the patches required some changes -- have these
not been tested with the latest version of pkg_install?
|
|
|
|
|
|
TAILQ_HEAD_INITIALIZER - required for linux build.
|
|
discussion has taken place.
|
|
|
|
Drive= Ishiyama" <masahiro@wide.ad.jp> on tech-pkg@.
|
|
|
|
|
|
strlcpy.]
|
|
branch. WARNS=2 turns on all kinds of stuff that isn't really appropriate,
and isn't turned on in current. "-Wwrite-strings", in particular, triggers
an error on a bit of harmless code in "file.c". Closes PR pkg/17840.
|
|
for Solaris on FTP_CMD value in Makefile.inc.
Fixed in revision 1.19 of basesrc/usr.sbin/pkg_install/Makefile.inc.
|
|
Provide a strlcpy() implementation (from -r1.12 of
basesrc/lib/libc/string/strlcpy.c), and use it on Darwin.
|
|
- remove handling of PKG_ADD_BASE.
- don't search current directory if PKG_PATH is set.
- don't prefer local directories.
- constify and cleanup.
|
|
|
|
|
|
|
|
Darwin bootstrap kit everything else now works.
|
|
Check the return code from the second invocation of installprereq(), to
make sure that a failed installation of a rpe-requisite package kills
the attempt to add the package. This reverts pkg_add(1) to traditional
behaviour.
|
|
|