tnn
f923a1ef51
-lfetch to make it build. PR pkg/38365.
2008-04-04 20:46:59 +00:00
joerg
5990cd6523
Also switch pkg_admin's fetch-vulnerabilities implementation to
...
libfetch.
2008-04-04 15:47:01 +00:00
joerg
3cb9e8532d
pkg_install-20080404:
...
Switch pkg_info to use libfetch for remote access.
2008-04-04 15:21:32 +00:00
jlam
a8d98ad4bf
Override PKG_INFO_CMD to point to the just-built pkg_info so that
...
pkg_install can install using newer features without warnings.
2008-04-03 14:22:26 +00:00
jlam
dca8b98cde
Invoke the correct pkg_admin command during post-installation.
2008-04-02 13:23:31 +00:00
tron
93f9a70abf
Use a workaround to prevent a linker error on Mac OS X Leopard.
...
Reviewed by Joerg Sonnenberger and approved by Dieter Baron.
2008-03-31 16:52:13 +00:00
dsainty
0eec92f6dd
Correct typo in usage message: vulneraiblities -> vulnerabilities
2008-03-23 01:04:47 +00:00
joerg
42c387859a
Request getopt with optreset support from libnbcompat.
2008-03-21 23:28:33 +00:00
joerg
ae389f8ee9
Revert last change. The symbol is already defined in
...
lib/vulnerabilities-file.c and making it a common symbol just hides the
real issue (whatever it is).
2008-03-21 14:47:53 +00:00
jklos
2ae724aeb2
Fixes pkg/38250 and makes pkgsrc work on Darwin again. Thanks to
...
Christian Neukirchen.
2008-03-21 08:18:17 +00:00
joerg
c5e343fa4e
If this is not a native NetBSD build, use the libnbcompat version of
...
unistd.h.
2008-03-20 20:26:52 +00:00
joerg
06751e9460
Explicitly include fcntl.h for Solaris. From PR 38240.
2008-03-19 15:33:12 +00:00
joerg
67bb1dc761
Fix bootstrap build. From Stoned Elipot.
2008-03-15 10:55:34 +00:00
joerg
47338958a0
Needs unistd.h.
2008-03-15 10:46:08 +00:00
joerg
89cfa8c5c4
pkg_install-20080313:
...
Audit functionality for pkg_admin. This uses the backend in
libpkg_install and will be extended to check for vulnerabilities at
pkg_add time later.
2008-03-13 16:35:30 +00:00
wiz
6a268616e6
Fix download-vulnerability-list's -c option. From Jim Bernard in PR 38231.
2008-03-13 08:37:43 +00:00
joerg
2274b33c19
pkg_install-20080311:
...
If the package db directory doesn't exist, handle it like an empty
pkgdb and just return.
2008-03-11 18:01:35 +00:00
wiz
c663245bff
Add datarootdir to shut up configure.
2008-03-10 12:14:32 +00:00
wiz
07a4f5d2e6
Remove pprefix (accident?). Add datarootdir to shut up configure.
2008-03-10 12:13:55 +00:00
joerg
f473241bc3
Don't print errno for missing GPG setting.
2008-03-09 22:26:56 +00:00
joerg
c0e008f2f1
Stop chdir/getcwd/fchdir dance in lsall and lsbest, just use the passed
...
in path name. This is more consistent when symbolic links are involved
as it doesn't do the equivalent of realpath(3) for the path any longer.
2008-03-09 20:55:25 +00:00
joerg
849d11cabb
pkgdb.byfile.db maintainance can use the iterator interface as well.
...
Get rid of more chdir() calls.
2008-03-09 20:36:22 +00:00
joerg
a56a864b83
Use pkgdb function to compute +CONTENTS name and drop need to play
...
chdir(2) games. Kill the chdir(2) calls.
2008-03-09 19:25:16 +00:00
joerg
4aec8613d2
Split check functions into a separate file.
...
Drop checkall and implement it using "*" as wildcard match.
2008-03-09 19:02:27 +00:00
joerg
543123b86f
pkg_install-20080309:
...
- When loading meta data for a package and a file is needed for the
current operation and is a required file, complain.
- Include the name of the package the meta data could not be loaded
from.
This addresses PR 38166.
2008-03-09 18:03:46 +00:00
rillig
fcf2370845
Why does pkg_add need many open file descriptors?
2008-03-01 19:06:10 +00:00
joerg
60733a045e
Use pkg_add from new build, override *_CMD instead of the full commands.
...
Drop some no longer used overrides.
2008-02-26 13:38:57 +00:00
joerg
1db5e140f8
pkg_install-20080223:
...
Redo the check for incomplete packages by annotating which meta data
field are required and count which were found during reading the binary
package. The original approach didn't work as loads from pkgdb are
reduced to the minimal set.
2008-02-22 21:58:16 +00:00
joerg
512767273a
pkg_install-20080222:
...
Free libarchive's side of the package before closing the file descriptor.
This stops leaking up to 1MB / package when using bzip2 and addresses
PR 38082. Check that at least +COMMENTS, +CONTENTS and +DESC can be
extracted, otherwise skip the entry. This stops pkg_info -X from dumping
core on non-package files.
2008-02-22 15:53:52 +00:00
joerg
7f98245283
pkg_install-20080219:
...
Add new parser for pkg_vulnerabilities, that handles decompress
transparently and internally. Preliminary tests with a modified
audit-packages show a speed increase by 2 for common operations
like listening all vulnerable installed packages.
2008-02-19 15:16:24 +00:00
joerg
1960164c7e
Always use the newly built pkg_create -- this makes updates easier.
2008-02-09 14:08:05 +00:00
joerg
e6206e80d6
Having to wonder for 5min why pkg_add would fail just to discover that
...
it couldn't exec the shell scripts due to mount -o noexec, make the
error message a bit more verbose.
2008-02-08 00:58:17 +00:00
joerg
e08e39667b
pkg_install-20080208:
...
Explicitly check in show_var that the buffer is non-NULL.
This can stops pkg_info -Q foo from segfaulting for explicitly
installed packages. Reported by Stoned Elipot.
2008-02-07 23:40:52 +00:00
joerg
4f81810ae0
Include fcntl.h for Solaris. From Andri Piik in private mail.
2008-02-05 18:57:09 +00:00
joerg
9866d214df
pen.c only uses statvfs.h and the necessary headers are included by
...
libnbcompat.h already. So don't include sys/param.h and sys/mount.h in
it and remove the configure test for sys/mount.h.
While here, remove some #if 0'd code from pen.c.
2008-02-04 14:28:27 +00:00
joerg
8ada92d5fc
pkg_install-20080204:
...
Try to remove all +* files from the pkgdb first. If the log directory is
not empty afterwards, be noisy, but try rm -rf on it for the force case.
2008-02-04 14:03:10 +00:00
joerg
7bdc02c45c
pkg_install-20080202:
...
Convert pkg_info to use libarchive instead of tar for binary package
handling. As a side effect pkg_info on remote packages will use
one FTP instance per argument, but will try to fetch only the meta data.
This reduces time for pkg_info -X on a full binary repository from 36.9s
to 18.1s for the cache hot case (PKG_TMPDIR on tmpfs for the old
pkg_info). Thanks to tnn@ for testing.
2008-02-02 16:21:45 +00:00
joerg
ed48acb8ad
Explicitly check that meta data files are regular.
2008-02-02 15:47:52 +00:00
hubertf
5c695ce274
Sign over my copyright to TNF.
2008-01-29 15:39:30 +00:00
joerg
258724b565
pkg_install-20080126: Make pkg_add pass down -I and -m when recursively
...
adding packages.
2008-01-26 23:30:24 +00:00
rillig
95ce0db1bf
When updating a package, the "(perhaps the packing list is incorrectly
...
specified?)" warning isn't correct, so don't print this assumption at
all.
2008-01-26 09:23:31 +00:00
rillig
2ef4aec279
Fixed typos.
2008-01-13 22:31:25 +00:00
adrianp
44c6e6e2dd
Add 'audit-packages -F <file>' to process a list of packages/patterns
...
from a file.
Update and sort options in the man page
2008-01-07 22:27:59 +00:00
rillig
5299226d71
If a command line argument is used, it should be mentioned by exactly
...
this name (pkg-name) and not some related description, to make searching
easy.
2008-01-04 14:24:38 +00:00
rillig
eeebd3ec03
When calling open(2), don't try to get an error message from libarchive,
...
since it won't know anything about it. (hi joerg!)
2008-01-03 22:31:20 +00:00
joerg
a0e4ad1e20
Prepare for update of NetBSD and pkgsrc-2007Q4 by tagging current state
...
as 20071224. Changes include:
- better diagnostic for conflicting packages
- explicitly check already installed packages for conflicts with
to-be-installed package
- document pkg_admin rebuild-tree in usage
- man page fixes
- forcefully remove pkgdb entries (needed for user-usage in some cases)
2007-12-23 23:58:27 +00:00
rillig
545e51df61
The +CONTENTS file is checked for conflicts, not +REQUIRED_BY.
2007-12-19 02:22:54 +00:00
rillig
5a54dec7a9
Documented struct package_conflict and added a note about the
...
inefficiency when reading all the +REQUIRED_BY files.
2007-12-17 09:42:03 +00:00
tnn
0d152f7013
document 'rebuild-tree' in usage()
2007-12-10 10:34:42 +00:00
rillig
872ab1f25d
style
2007-11-30 00:39:39 +00:00