Commit Graph

540 Commits

Author SHA1 Message Date
lukem b817247988 Use MKPRIVATELIB=yes instead of providing an empty libinstall:: target and
setting NOLINT, NOPIC, NOPROFILE (etc)
2004-05-23 02:24:50 +00:00
kleink 5f593fa3da Bump to 20040510: readlink(2) buffer handling fixes. 2004-05-10 20:39:37 +00:00
kleink 48c51a151e Ensure readlink(2) result termination within buffer bounds. 2004-05-10 19:59:59 +00:00
jlam 7b5bb00500 Bump date of manpage after addition of -Q flag to pkg_info(1). 2004-05-08 21:05:02 +00:00
grant 0f204e9fc9 fix typo. 2004-05-08 16:50:37 +00:00
jlam 04d5477295 Fix up definition of SHOW_BI_VAR, the prototype for show_var(), and the
usage string for pkg_info(1).  Also bump the version to 20040508.  From
pkg/25494 by FUKAUMI Naoki.
2004-05-07 21:38:57 +00:00
jlam 19baba8fb8 Add a new flag -Q (for "query") to pkg_info(1) to query the build
information for the definitions of specific variables that were saved
from build time, e.g.

	$ pkg_info -Q PKGPATH glib
	devel/glib
	$ pkg_info -Q PROVIDES glib
	/usr/pkg/lib/libglib.so.13
	/usr/pkg/lib/libgmodule.so.13
	/usr/pkg/lib/libgthread.so.13

Bump the version number of pkg_install(1) to 20040507.
2004-05-07 16:40:30 +00:00
tv f3215814d5 20040428: In pkg_add, set the umask nice and early, and remove an absolute
setting of mode in a mkdir command.
2004-04-28 15:37:29 +00:00
simonb 9bc855a931 s/the the/the/ (only in sources that aren't regularly imported from
elsewhere).
2004-04-23 02:58:27 +00:00
tv 5b799f00cc Hi there. I'm a stack-allocated array. I'm filled with garbage until
someone puts something useful in me, like zero bytes.

(Read:  Fix uninitialized array member access in pkg_add.  Bump to 20040421.)
2004-04-21 20:10:10 +00:00
christos 6bd1d6d4db Replace the statfs() family of system calls with statvfs().
Retain binary compatibility.
2004-04-21 01:05:31 +00:00
itojun 1e803d1e8b missing period at the end of sentence 2004-04-19 18:43:26 +00:00
wiz 0f952b0c54 Bump date for previous. 2004-04-11 13:31:17 +00:00
rh 56d86cdd8c Make pkg_add recognise binary packages built with ignored recommendations
(IGNORE_RECOMMENDED set in the presence of RECOMMENDED pre-requisites).
This change is fully backward-compatible: binary packages have set the
corresponding BUILD_INFO since RECOMMENDED was implemented.  Packages
built before that time will install as before.
Bump PKGTOOLS_VERSION to 20040411.
This closes PR pkg/24712 by Thomas Klausner.
2004-04-11 06:13:46 +00:00
abs 0be46fce4e Fix file descriptor leak in read_buildinfo() which caused one leaked
descriptor per package inspected. 'pkg_add *' in a large directory now
works.  Update PKGTOOLS_VERSION to "20040410"
2004-04-10 09:10:17 +00:00
tv 84c1ac8b80 Datestamp as 20040409 to mark umask change. 2004-04-09 18:36:08 +00:00
tv 94b8c2cf60 Re-add umask() setting, and parameterize it so that pkgsrc/bootstrap based
pkgsrc platforms can override the value.
2004-04-09 18:27:48 +00:00
agc 1915cbb83e Fix signature verification after pkg_add and friends were changed to use
fexec() - trying to exec "gpg --verify %s" won't work with fexec, so split
up the command into separate words.
2004-04-06 05:56:07 +00:00
reed ef78b0e16e Some package names are extra long, like xscreensaver-gnome-4.13
and gdk-pixbuf-gnome-0.22.0nb1, so make sure that lines don't wrap.
Instead of having maxline based on MAXNAMESIZE, have it be based
on the length of the package name if longer than MAXNAMESIZE.
(This was discussed on tech-pkg list in November, 2003.)
2004-04-01 02:37:24 +00:00
tv fd77b8c8a1 20040330: changes for Interix; in particular, pkg_add(8) no longer sets
umask explicitly.
2004-03-30 15:16:17 +00:00
tv 45669ab694 Changes to make these work on Interix: remove nonroot warnings if on
Interix, and remove absolute setting of umask in pkg_add.
2004-03-29 21:41:39 +00:00
wiz eca6d46226 Check pkgdb_open for correct return value.
From Peter Postma in PR 24863.
2004-03-22 11:42:51 +00:00
keihan 21e07a3de8 s/netbsd.org/NetBSD.org/g 2004-03-16 14:31:15 +00:00
wiz e3fc4b66c3 Spell the plural of suffix "suffixes", not "suffices".
Inspired by PR 24400 by Todd Vierling.
2004-02-13 17:56:17 +00:00
grant 47af3cdb37 no .Ek before .Bk. 2004-02-07 09:41:36 +00:00
reed 027c7dd739 Make sure that the Fake mode would give a Verbose message about
the package to be deleted.  (Previously, the Fake mode only mentioned
deinstalling other dependent packages but didn't say anything
Verbose about the package itself.)
2004-01-29 17:41:49 +00:00
reed ab83e1a00d Improve explanations of the -R and -r options. This is partially
based on ideas from Greg A. Woods posted to netbsd-bugs list on
23/Jan/2004.
2004-01-29 01:56:17 +00:00
seb fb913be01a Add missing flags from the synopsis.
Fix pasto in -S flag description.

Approved by wiz@.
2004-01-26 09:28:10 +00:00
agc 478a76b17a At package creation time, record the targets of symbolic links which
are installed as part of the package.

Enable the verification of the integrity of any symbolic links
in the package in "pkg_admin check".

Add a check to pkg_delete to verify the integrity of the symbolic link
before deletion, and to act in the same way as an MD5 failure if the
symbolic link has been modified since package creation time.

Bump version number.

Addresses PR 23048 from Klaus Klein.
2004-01-15 09:33:38 +00:00
jlam 0c45ef07f3 Don't warn and abort if a package with the same ${PKGBASE} already exists
if we're installed a depoted package.
2004-01-14 23:32:36 +00:00
grant 83867bd596 no need to include errno.h. 2004-01-14 01:50:06 +00:00
grant 99871d087e use ${MACHINE_ARCH} instead of what uname() puts into utsname.machine.
the former represents the CPU architecture, which is what is recorded
in binary packages.

also allow the OS name to be overridden, as pkgsrc doesn't always use
the value of utsname.sysname.

bump version to 20030113.
2004-01-13 08:30:34 +00:00
wiz b00ba831b1 Fix typo; new sentence, new line;
drop trailing spaces; add comma in enumeration.
2004-01-06 16:22:06 +00:00
hubertf 26d5e2165c Rework a bit to describe the pkg wildcards in their own
section, etc.
2004-01-06 16:15:06 +00:00
hubertf 81887c8837 update for -D being default now for pkg_info 2004-01-06 15:51:44 +00:00
hubertf df32174c19 pkg_info(1) now also shows post-install message by default, if present 2004-01-06 15:48:47 +00:00
hubertf d7b7063649 In the "quick depends pre-scan", first print all bad matching depends,
then exit (instead printing one conflicting pkg/version on each run).
2004-01-04 01:47:35 +00:00
wiz d707a66aa2 Sort options; drop trailing spaces; fix wording of
a sentence.
2003-12-21 11:39:17 +00:00
agc 2bd28cbd5e Add a simple text menu-based binary package manager, bpm(1).
bpm uses ftp(1) and pkg_add(1) to allow a menu-based addition of
binary packages from a URL.  It first displays a list of categories,
and, within categories, binary packages, which can be added to the
local system simply by choosing them from a menu.

If no valid categories are found, a warning message will be displayed
(it is usually caused by people running NetBSD-current, and there are
rarely binary packages provided for such a fast-moving target, and the
"-r release" command-line switch to bpm(1) should be used).

Bump the pkg_install version number for this.
2003-12-21 11:31:46 +00:00
grant 16fffca4df avoid uninitialized variable. noted by wiz. 2003-12-20 10:09:20 +00:00
grant fc04f37975 crank version. 2003-12-20 03:41:31 +00:00
grant dd46f97f58 use the --use-compress-program argument to tar and do away with
the file descriptor handling mess in lib/file.c.

also use --fast-read where applicable.

result of pkg_info -B on 1.5ghz pentium4, linux:

			before		after
mozilla-1.4nb1.tgz	1.96sec		0.04sec
mozilla-1.4nb1.tbz	18.66sec	0.21sec

866mhz pentium3, NetBSD:

			before		after
mozilla-1.4nb1.tgz	2.22sec		0.07sec
mozilla-1.4nb1.tbz	16.29sec	0.34sec

-rw-r--r--    1 grant    users    13816195 Dec 20 13:59 mozilla-1.4nb1.tbz
-rw-r--r--    1 grant    users    15814227 Dec 20 13:58 mozilla-1.4nb1.tgz

XXX fetches over ftp/http still read the whole file.
2003-12-20 03:31:56 +00:00
grant 683625bd0a suppress a diagnostic message unless -v is used. 2003-12-20 02:37:49 +00:00
grant 15fff85a6b always print an error when package addition fails (rather than only
when -v is used), tweak error.
2003-12-20 02:19:21 +00:00
grant 70ba7aa408 check the OS, architecture and version of a package against the host
and spit out a warning if any of them differ. bail if the OS or arch
differ. installation can be forced with -f.

sanity checked by simonb. fixes PR pkg/18966 from mrg.
2003-12-20 00:47:18 +00:00
wiz 0b46b8198f Fix typo, reported by Soren Jacobsen in PR 23666. 2003-12-06 08:25:39 +00:00
wiz e0cae3a80b Bump version for wait-for-child fix. 2003-11-21 22:05:06 +00:00
wiz 4e536677a2 Wait for decompress child before continuing.
Closes PR 23526 by Ron Roskens.
2003-11-21 22:04:32 +00:00
grant cacf2d0f45 s/netbsd.org/NetBSD.org/i 2003-11-12 13:31:07 +00:00
fvdl 82ac6194ae Don't compare an int to NULL. 2003-10-21 02:48:07 +00:00