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
66a0cbeee0
Don't use u_char when uint8_t are meant. Don't mess with __attribute__,
...
conditionally use it in the only place it is used. This should fix
problems on QNX reported by Sean Boudreau.
2007-09-14 08:12:29 +00:00
rillig
992bf38f02
All variables named by SUBST_VARS.* are marked as being used.
...
Quoting warnings are only printed when -Wquoting is enabled.
2007-09-11 22:01:18 +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
rillig
6dc93e6b52
Cleaned up the TODO list from things I don't find worth implementing.
2007-09-10 07:38:46 +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
91c415b938
The WRKDIR and PREFIX can be saved in the log directory when a package
...
doesn't build properly. These options are off by default since they
require much disk space.
2007-09-07 15:51:53 +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
jlam
df7d10dbeb
Convert all libnbcompat/buildlink3.mk references to inplace.mk.
2007-09-06 21:51:52 +00:00
jlam
7c7115cdda
Drop libnbcompat/buildlink3.mk and force all packages that use
...
libnbcompat to use it "in place". libnbcompat is just really special,
and is of almost no use to anything other than the pkgsrc bootstrap
process.
2007-09-06 21:29:26 +00:00
jlam
09587da60b
Use only features available in nawk.
2007-09-06 21:19:42 +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
joerg
06fc161002
Fix build on QNX. From Sean Boudreau.
2007-09-06 21:08:08 +00:00
obache
a22621e7ed
Ensure undef before typedef, to avoid error when a application detect missing
...
types by itself and define (ex, pkgtools/pkg_install).
2007-09-04 09:47:38 +00:00
rillig
bf6beaf8cb
Fixed some internal pkglint errors.
2007-09-04 09:44:07 +00:00
rillig
fe7dfb9bf3
load_lines returns false on failure, not undef.
2007-09-04 09:34:20 +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
abs
d3d32b7cbe
Update pkg_chk to 1.86:
...
- Fix '-l' to list dependencies needed at runtime by each package, as
opposed to those at build time. Avoids issues such as 'jdk15' pulling
in sun-jdk & sun-jre
2007-08-27 15:28:54 +00:00
rillig
1e9fb5689a
Only gcc understands those -W* flags for warnings.
2007-08-25 09:33:57 +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
rillig
b289c83c80
Clean up the old log files when retrying to build a package.
2007-08-24 07:17:46 +00:00
rillig
8e4f54e5cc
Added some comments to the configuration file, to help the uninitiated
...
reader.
2007-08-24 06:32:41 +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
heinz
9368c471eb
Added support for installation to DESTDIR.
2007-08-23 20:40:56 +00:00
joerg
6f95ca1670
xorg-dirs is gone. Bump to 4.79.
2007-08-23 09:47:37 +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
agc
3f175c6486
Add DESTDIR support
...
Make symbolic links to directories in the appropriate way
Change email addres sto match current preferences
2007-08-20 21:44:03 +00:00
agc
446a0e15d2
Add DESTDIR support
2007-08-20 21:42:26 +00:00
joerg
a9278bdbcb
x11/xorg-libs/version.mk was removed, catch up.
2007-08-18 00:20:56 +00:00
gdt
785779a3cc
Remove leading spaces from PKGNAME, to cope with an old bug.
2007-08-17 01:19:45 +00:00
joerg
1d9752887b
close is a function, fix C&P errors. From Aleksey Cheusov.
...
Bump version, remove pkgrevision.
2007-08-16 13:02:05 +00:00
joerg
6eee19dc11
Work around broken default visibility in Linux (PR 36790).
...
Linux has sin_len either (PR 36791).
2007-08-16 12:50:34 +00:00
tnn
38c78edf17
Revbump sweep of all libevent consumers due to update to libevent-1.3d.
2007-08-16 09:27:03 +00:00
joerg
020f22df97
Don't hard-code tar as tar, but make it an option and use the tool
...
version correctly. Fixes issues on platforms where the first tar
in path doesn't support -z. Bump to pbulk-0.12.
2007-08-15 21:10:54 +00:00
joerg
515bcbf499
Shorten wording.
2007-08-15 20:55:28 +00:00
joerg
7d8b7c6596
Fix grammar. From salo@
2007-08-15 20:52:02 +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