Commit graph

125 commits

Author SHA1 Message Date
grant
ca3be631f2 s/netbsd.org/NetBSD.org/ 2003-07-17 22:50:55 +00:00
jschauma
efd2c1e98a Synch with basesrc:
Quote % characters in macro lines.
2003-06-26 15:12:07 +00:00
jschauma
7a025a99c3 Synch with basesrc:
deleting as non-root works fine, so don't insist on running as root
2003-06-26 00:29:01 +00:00
jschauma
e366d0c694 Use tech-pkg@ in favor of packages@ as MAINTAINER for orphaned packages.
Should anybody feel like they could be the maintainer for any of thewe packages,
please adjust.
2003-06-02 01:15:31 +00:00
seb
aa1f2cb228 Update to version 20030423 via patch from src/usr.sbin/pkg_install.
>Log Message:
>pkg_add fix:
>When doing quick pre-check if any conflicting dependencies are installed
>and a dependency is not found installed do not try to search for a wildcarded
>(-[0-9]* suffix) package if the dependency was already wildcarded.
>
>This prevent something like 'p5-Net-DNS-0.33' reported as an already
>installed version of 'p5-Net-[0-9]*' as a dependency.
>Before this fix 'p5-Net-[0-[0-9]*' would have been incorrectly searched for.
>
>Reviewed by hubertf@.
>
>Bump PKGTOOLS_VERSION to 20030423.
>
>
>To generate a diff of this commit:
>cvs rdiff -r1.81 -r1.82 src/usr.sbin/pkg_install/add/perform.c
>cvs rdiff -r1.26 -r1.27 src/usr.sbin/pkg_install/lib/version.h
2003-04-23 10:27:39 +00:00
grant
2f5a698630 sync with bootstrap:
make sure man pages get installed into a sane location if --mandir is
not specified.
2003-04-20 20:34:05 +00:00
grant
77ab913949 sync with bootstrap and -current:
- pkg_admin getcwd() fix.
- pkg_delete checksum mismatch warning.
- crank PKGTOOLS_VERSION.
2003-04-17 14:00:55 +00:00
grant
1d4e7078a5 sync with bootstrap, remove an unnecessary cast which found its way in
here.
2003-04-17 13:50:54 +00:00
grant
c7a2b35431 sync with current:
darwin doesn't have uint64_t, use int64_t for now.
2003-04-11 21:27:43 +00:00
grant
372e4fe573 sync with -current:
improve a message.
2003-04-11 19:58:50 +00:00
grant
4c3363d8db catch up to bootstrap.
bump PKGTOOLS_VERSION to 20030411.
2003-04-11 14:40:35 +00:00
grant
0c37d26cfe only include db1 support if on NetBSD. fixes updating problem on Solaris. 2003-04-11 14:33:49 +00:00
jschauma
43f0484488 Synch with main sources:
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-29 18:41:56 +00:00
wiz
28a4483bc7 NO_PATCH is deprecated, says pkglint. Remove it. 2003-03-28 21:14:10 +00:00
jschauma
ef6b1ec568 Sync with main sources:
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-16 19:44:09 +00:00
grant
9e16a225ad correct #ifdef misplacement. 2003-02-18 15:45:50 +00:00
grant
1231d45b34 Fix some RCS ids. 2003-02-11 16:48:22 +00:00
grant
be9eb6014e belatedly sync with src:
Allow '%D' to be used when no last_file available. Fixes binary package
installation of gnome-dirs.

crank PKGTOOLS_VERSION to 20030202.
2003-02-11 16:42:06 +00:00
grant
3833154e3f belatedly sync with src:
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-11 14:40:55 +00:00
jschauma
c6bead9a14 Synch with latest changes from src (changes by agc, synch ok'd by agc)
----------------------------------------------------------------------

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-14 15:18:32 +00:00
wiz
caf9bca16b Comment out (non-cat) man pages, currently not installed. 2003-01-12 02:33:02 +00:00
wiz
116e6e6311 Add } that got lost in last. 2003-01-11 11:59:35 +00:00
schmonz
78cacfcfc5 Fix cut-and-paste whitespace damage. 2003-01-11 07:54:28 +00:00
schmonz
dfae993934 On NetBSD, man pages were getting installed into /usr/man. That's,
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-11 07:52:15 +00:00
agc
35552e5746 Add PKG_PRESERVE to the package Makefile.
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-10 12:01:43 +00:00
schmonz
e0b7a580e0 Define NO_PKGTOOLS_REQD_CHECK, which will mean something in a moment.
Rather than override LOCALBASE, set PREFIX (after including bsd.pkg.mk).

Bump PKGTOOLS_VERSION (many changes since 20021123).
2003-01-09 13:13:04 +00:00
jschauma
4b2164510a ``On second thought, let's not go to Camelot. It is a silly place.''
(Make pkdb_open return pkgdbp!=NULL as src's does, and revert previous
patch.  As discussed with agc.)
2003-01-07 16:43:56 +00:00
jschauma
37f8100ca0 Unlike pkg_install in src, this version of pkg_install contains
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-07 16:10:02 +00:00
grant
6917a552fa sync with src:
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-07 06:42:28 +00:00
jschauma
588eb561c1 Synch with basesrc:
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-06 04:34:15 +00:00
jschauma
43f3a41754 Synch with bootstrap-pkgsrc to make this compile on linux.
(Pointed out by Jeremy C. Reed (reed at reedmedia dot net).)
2002-12-28 21:44:00 +00:00
schmonz
687dc0aa1d pkg_install uses Berkeley DB. USE_BUILDLINK2, USE_DB185, and include
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@.
2002-12-24 07:46:09 +00:00
grant
f2aa2a7729 reorder libraries passed to ld(1) so that this works if libdb1 is
present.

From Frank Cusack in PR pkg/19494.
2002-12-22 13:10:12 +00:00
grant
4c9c04ddc9 fix MD5File() compatibility function to accept NULL second argument.
fixes problem with `pkg_admin check'.

Fix from Frank Cusack in PR pkg/19492.
2002-12-22 12:15:11 +00:00
salo
7bf03737bd Revert previous change.
It turned out to be "pkg_install installed over zoularis and wrong PATH" local
problem.  Sorry for the fuzz.
2002-12-22 09:12:11 +00:00
salo
e87d652ff9 Update ZOULARIS_VERSION on non-NetBSD systems after installation.
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
...
2002-12-22 08:58:05 +00:00
schmonz
3b05b1365a These packages no longer use BSD-style .mk files, so MANCOMPRESSED_IF_MANZ
and MANINSTALL aren't needed.
2002-12-21 05:05:28 +00:00
schmonz
b42900e9c2 USE_BUILDLINK2=no because this is a pkgsrc bootstrap tool. 2002-12-21 04:08:47 +00:00
schmonz
674ab9fcc5 There's no need for a custom ${WRKSRC} definition. 2002-12-20 18:27:14 +00:00
schmonz
f2197af27c As the sources are now in ${FILESDIR}, there's no distfile to fetch,
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.
2002-12-20 18:15:52 +00:00
schmonz
55c0604b89 Import autoconf'd pkg_install source from
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.
2002-12-20 18:13:52 +00:00
hubertf
3e6754dedc Clean up wording a bit. Emphasize that PKGTOOLS_REQD should only be
changed if really necessary.
2002-12-12 01:50:47 +00:00
schmonz
0a1bd5acad Replace IGNORE with PKG_FAIL_REASON or PKG_SKIP_REASON as appropriate. 2002-12-07 02:38:52 +00:00
wiz
62287655f6 Always use pkgdiff -- this avoids having RCS Ids in patches. 2002-11-23 23:14:40 +00:00
jschauma
e93af85326 Commit change to patch-ad that mysteriously got lost in last commit.
(Thanks wiz!)
2002-11-23 23:03:24 +00:00
jschauma
8148af8e58 Upgrade to version 20021123, which fixes PR pkg/18384 by Grant.
Curiously, several of the patches required some changes -- have these
not been tested with the latest version of pkg_install?
2002-11-23 22:49:47 +00:00
cjep
dd2d72e624 Tweaks for OpenBSD (cf. recent bootstrap-pkgsrc commit) 2002-11-17 09:37:21 +00:00
abs
ad0c708fc1 Toss in strlcpy.c and hey presto: Instant linux pkg_install binaries. 2002-09-23 13:16:59 +00:00
abs
9eaafb2895 If defining TAILQ_FIRST and TAILQ_NEXT ensure we also define
TAILQ_HEAD_INITIALIZER - required for linux build.
2002-09-23 12:57:27 +00:00
agc
f2bc5d7427 Revert previous change (which wouldn't have worked in all cases) until more
discussion has taken place.
2002-09-05 09:20:14 +00:00