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
rillig
bae1429f34
Do not install a package if some of the installed packages would
...
conflict with it. This fixes PR 37451.
2007-11-30 00:30:39 +00:00
rillig
bb376f4684
Remove the package metadata even if it is read-only, without prompting
...
the user.
2007-11-29 22:50:05 +00:00
wiz
ccf4f0a7e4
Add two missing .Ek.
2007-11-14 22:57:07 +00:00
rillig
485e264ceb
Provide more useful details in the error message for conflicting packages:
...
- The package that cannot be installed
- The pattern of the conflict
- The name of the installed (conflicting) package.
2007-11-13 19:53:11 +00:00
martti
9afb20a137
Added commented-out LICENSE=something.
2007-11-11 11:35:48 +00:00
joerg
b97a055750
Don't use the build time version to find packages, we want to pick up
...
the newest version. Bump version to 20071109.
2007-11-08 23:24:56 +00:00
joerg
e725e20c42
Bump version or revision of all packages that have a runtime dependency
...
on gzip.
2007-11-08 19:39:42 +00:00
joerg
91812f0d5f
Also add -E to usage(). From PR 37265.
2007-11-05 09:39:38 +00:00
joerg
6a334feaf4
pkg_install does the right things with the files, so CHECK_PERMS is not
...
useful and creates cyclic dependencies if pkg_install is outdated.
From Peter Bex.
2007-11-03 14:49:00 +00:00
joerg
e7633a92f1
Tag pkg_install as 20071103.
2007-11-03 13:54:14 +00:00
joerg
e47f81c12a
Remove obsolete option r from usage() and man page. I can't even
...
remember what is was for. From Yakovetsky Vlad in PR 37265.
2007-11-02 16:03:37 +00:00
rillig
5ea2c37615
Added quotes around the filenames, as suggested by joerg@.
...
While here, removed an unnecessary variable.
2007-11-01 23:08:29 +00:00
rillig
23369be14a
When rename(2) fails, it is useful to know some details about the
...
filenames that have been involved.
Do not use assert() for error checking.
2007-11-01 21:57:37 +00:00
rillig
9d0009f173
Fixed the problem with package name matching that Klaus Heinz discovered
...
in http://mail-index.netbsd.org/tech-pkg/2007/10/14/0004.html
The pattern "pkg_install" matched "pkg-install-20070828", but "pkg*all"
didn't. Now it does.
2007-10-14 23:24:24 +00:00
rillig
095814e759
Updated the URLs for ftp.NetBSD.org, so that they will work after the
...
upcoming clean-up.
2007-10-13 19:38:27 +00:00
martti
bd986edbc7
Remove trailing spaces.
2007-10-09 19:19:08 +00:00
kano
abdb54b351
fix obsolete URLs for www.NetBSD.org
...
close PR pkg/37071
reviewd by xtraeme@
2007-10-07 12:59:11 +00:00
rillig
b59af9beee
There is no master/slave mode anymore.
2007-09-29 13:24:32 +00:00
joerg
dfcb17cf7f
- Be less aggressive when resizing the version field, just resize if
...
the old size is not enough. Fixes PR 37031.
- Disable dependency tracking in libarchive build. Supposed to address
PR 36953.
Bump version to 20070927.
2007-09-27 13:30:27 +00:00
joerg
79ba801833
Don't cache the allocated argv in a local static variable, just allocate
...
and free it.
2007-09-18 15:44:18 +00:00
joerg
5046845687
Remove EXPECT_DEBUG code and if(0)'ed call of setbuf.
2007-09-18 15:40:47 +00:00
joerg
7177f144cd
Make allocation errors fatal. Better than leaking memory in the error
...
case.
2007-09-18 15:38:10 +00:00
adrianp
7c6a237bbe
Add and document FETCH_PRE_ARGS, idea from David Sainty in PR #23899 .
...
This allows such settings as the following in audit-packages.conf:
FETCH_PRE_ARGS="env ftp_proxy://ftp.myproxy.com"
Which will be set before FETCH_CMD is run.
2007-09-17 22:40:27 +00:00
joerg
b770135e28
Fix a major memory leak in Dewey that existed sine ~forever.
...
This was made a lot more critical with the changes to use the iteration
API, as that is running a lot more Dewey comparisions.
Thanks to adrianp and wiz for the reports.
Bump to 20070916.
2007-09-16 19:03:52 +00:00
joerg
72c8bdc51b
Bump to 20070911 for pkg_add -u fixes.
2007-09-11 14:55:52 +00:00
rillig
d091934e69
Replaced undefined behavior with an error message. We don't expect
...
absolute paths in the PLIST anyway.
2007-09-11 13:46:10 +00:00
rillig
6a27b7d10c
Removed unused variable.
2007-09-11 13:39:05 +00:00
rillig
e3b68da0ff
Applying sizeof() to a string parameter does not return the size of the
...
buffer, but the size of a pointer to a buffer. This makes pkg_add -u
work again. It failed before, trying to rename the +REQUIRED_BY file to
"/us" or "/va", depending on the value of PKGDBDIR.
2007-09-11 12:33:13 +00:00
jlam
2761568ac2
Convert to use the features framework.
2007-09-08 21:57:57 +00:00
rillig
470ab0a92f
Removed the warning about pkg_add or pkg_delete "not running as root"
...
completely. It only made the code more bloated, and a user trying to add
or delete packages would get lots of "Permission denied" warnings
anyway.
2007-09-08 09:58:14 +00:00
rillig
775b3e4acb
Avoid EPERM errors from tar when installing packages as an unprivileged
...
user.
2007-09-08 09:45:22 +00:00
rillig
716ddb1f45
In unprivileged builds, the user running pkg_add and pkg_delete is
...
almost always an unprivileged user. So there's no point in printing a
warning in that case.
2007-09-07 15:45:14 +00:00
joerg
5c78e10908
If waitpid was interrupt for some reason, restart it. Error out on all
...
other negative return values or when errno != EINTR.
2007-09-06 21:16:12 +00:00
jlam
ac74037944
* When adding or checking a package using pkg_admin(1), give a more
...
meaningful warning if the file is a symlink whose target doesn't exist.
The message has now been changed from:
pkg_admin: netbsd32_compat30-extras: File `/usr/pkg/emul/netbsd32/usr/lib/libm387.so' is in +CONTENTS but not on filesystem!
to:
pkg_admin: Symlink `/usr/pkg/emul/netbsd32/usr/lib/libm387.so' exists and is in +CONTENTS but target does not exist!
* Pass values for --sysconfdir (and --prefix) to the configure script
instead of passing them through CPPFLAGS. Both SYSCONFDIR and PREFIX
are only used by audit-packages, and the audit-packages Makefile
already handles passing these values inherited from the configure
script. This avoids compiler warnings that, e.g. SYSCONFDIR has been
redefined on the command line.
* Fix quoting for arguments to the configure script -- :Q instead of
\"\".
Bump version to 20070828. Reviewed by <joerg>.
2007-08-29 15:42:39 +00:00
dillo
dfb18cea5b
Add FILE_NAME, the name of the binary package file.
...
Prompted by Jeremy, okayed by Joerg.
2007-08-29 14:15:50 +00:00
joerg
9286e87ae0
Drop -RELEASE and similiar components of the OS version on FreeBSD as
...
well.
2007-08-24 15:25:08 +00:00
wiz
4afb1ce7a3
regen.
2007-08-23 21:58:52 +00:00
wiz
065afff669
Replace reference to (obsolete) -M with tar(1). Bump date.
...
Requested by joerg.
2007-08-23 21:58:24 +00:00
adrianp
92d3b5842c
Fix a bug in the processing of GPG in audit-packages.conf. This should fix
...
PR# 36773 opened by David A. Holland.
While we're here look for settings with no values in audit-packages.conf
and ignore them.
Tighten up processing of audit-packages.conf for the situation where
settings are specified multiple times. (report from joerg@).
2007-08-22 23:23:22 +00:00
joerg
731c214320
When looking for a package with a wildcard pattern, don't add the
...
suffix. find_best_matching_file does that already and doing it twice
is actually counterproductive. Bump to 20070821.
2007-08-21 07:11:42 +00:00
joerg
14b81a3089
Start abstracting pkgdb access by introducing pkgdb_pkg_file.
...
The function returns the path name of the given file for the package.
The memory needs to be freed by the caller.
2007-08-15 02:08:40 +00:00
joerg
66657d027d
Make _pkgdb_getPKGDB_DIR return const char * and fix fallout.
2007-08-15 01:49:02 +00:00
joerg
8d30fc2491
Bail out if the PLIST contains no @name field. This check existed since
...
the initial revision in 2002, so assume it just works...
2007-08-15 01:21:46 +00:00
joerg
ab17300d32
Split off the part dealing with already installed packages into
...
a subfunction.
Bail out if the package name doesn't have a version name.
Bail out if the internal rename failed (it was an assert before).
Invert some of the branches to cut off three levels of indirection.
2007-08-15 01:16:27 +00:00
joerg
6a1fd2334f
Add new option -m to pkg_add. This allows to override MACHINE_ARCH
...
for the purpose of installing a package and enables cross-compiled
pkgsrc to not use -f all the time.
Bump version to 20070815.
2007-08-14 22:47:51 +00:00