Commit graph

3116 commits

Author SHA1 Message Date
jlam
38c496d6c0 Re-add "intentionally empty" PLISTs for meta-packages and other packages
that directly manipulate empty PLISTs.

Modify plist/plist.mk so that if the PLIST files are missing and no
GENERATE_PLIST is defined, then the package fails to build.
2007-10-25 17:49:45 +00:00
jlam
56ba4d2690 Remove empty PLISTs from pkgsrc since revision 1.33 of plist/plist.mk
can handle packages having no PLIST files.
2007-10-25 16:54:26 +00:00
rillig
488acb7bba Reverted the deprecation of LICENCE and ACCEPTABLE_LICENCES, since there
is no consensus among the pkgsrc developers about them. Some want to
keep them (proper British spelling), others want to eliminate them
(redundancy).
2007-10-25 16:12:04 +00:00
rillig
0fd5c8dfaf It's not very useful to have empty PLIST files, so warn about it. This
may happen when a package has been newly created and the print-PLIST
target has not yet been run.
2007-10-25 16:08:48 +00:00
joerg
a82568cd03 Make language lawyers happy and rename report_recipient to plural. 2007-10-17 20:42:30 +00:00
rillig
e304c3352a LICENCE and ACCEPTABLE_LICENCES (British English) are deprecated. 2007-10-17 10:50:59 +00:00
rillig
f44cba8d1a I just removed the $bulklog directory once again, due to running
bin/bulkbuild when instead I wanted to resume the bulk build. To prevent
this frustration, added a warning and a five second waiting period.
2007-10-15 07:26:34 +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
rillig
f07791f522 Whew. pkglint didn't know FAIL_MSG at all. 2007-10-13 08:57:09 +00:00
rillig
4de0af6841 FAIL_MSG may be a hidden command. 2007-10-13 08:55:48 +00:00
rillig
d37d9f955a As pointed out in PR 37113, it is dangerous to set MAINTAINER
unconditionally in Makefile.common, so warn about it.
2007-10-12 20:16:01 +00:00
rillig
db967c35eb X11_TYPE=xorg is no longer supported. 2007-10-12 07:04:15 +00:00
rillig
4d0642f1f2 When installing the bootstrap kit from a directory, correctly handle the
case when ${prefix} already exists.
2007-10-10 09:04:21 +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
bdf7f596d0 + MISSING_FEATURES 2007-10-01 11:50:40 +00:00
rillig
b2af3dbd6f On Solaris, at least the catpages can be installed. By the way, mandoc
pages cannot be processed with nroff -man. Since we already have the
preformatted files in the FILESDIR, what was the point of regenerating
them?

PKGREVISION++
2007-10-01 09:54:32 +00:00
rillig
9045d939ae Marked _PKG_SILENT and _PKG_DEBUG as deprecated, added USE_FEATURES. 2007-10-01 07:51:09 +00:00
rillig
7bb29d5237 Honour the setting of MANINSTALL. 2007-09-29 13:39:22 +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
wiz
6873775564 GConf, not GConf2; bump version to 2.7. 2007-09-25 13:59:42 +00:00
rillig
ca6b5bf2c5 Reverted two of my recent changes.
See: http://mail-index.netbsd.org/pkgsrc-changes/2007/09/21/0046.html
2007-09-22 00:12:33 +00:00
joerg
e1263c0baa If dirfd is either a function or a macro, use it. If it doesn't exist,
but DIR contains dd_fd, define it as macro. Otherwise use -1 when
calling fts_safe_changedir in fts(3). Based on patch from Sean Boudreau.
2007-09-21 19:51:58 +00:00
joerg
f60512c785 Fully ANSIfy and use size_t and uint32_t in places where u_int was used
before. This fixes the build on QNX, where u_int is not exposed by the
current set of headers. Make the prototypes of the crypto functions
consistent.
2007-09-21 18:44:36 +00:00
joerg
7a57e890e0 Fix spelling of variable and add DESTDIR support. 2007-09-21 17:14:39 +00:00
rillig
468f3fe28a Removed code duplication by calling the client-clean script.
Before removing prefix, fix the permissions. Everything inside that
directory must be writable and all directories must be searchable.
NetBSD's chmod has an option -P which I would have liked to use, but
POSIX requires only -R to be implemented. Therefore, it is possible that
permissions of files outside the prefix are changed due to symlinks.

The client-clean program promises to clean $prefix, so fail if that is
not possible. A common cause for this is that some files inside have
their flags set (see chflags(1) on NetBSD).

When installing the bootstrap kit, the source may be either a regular
file (which is then assumed to be a tar archive) or a directory (which
is copied directly). The latter option is new and allows for easier
changes of files once the bulk build has started.
2007-09-21 13:42:54 +00:00
rillig
a51fc4af4a Only save PREFIX in a tar file if the package has reached the install
phase. This saves some disk space, and in most cases the contents of
PREFIX is not interesting before.

Added quotes around keep_wrkdir and keep_prefix because they were
missing in a previous version of the example configuration file.
2007-09-21 13:34:52 +00:00
rillig
de9db037a8 Thou shalt not nest double quotes in backticks, for the Solaris /bin/ksh
cannot handle it.
2007-09-21 09:08:08 +00:00
rillig
a3bbbc87b7 Finally fixed the bogus warnings in PHP extension packages concerning
the patch files.
2007-09-20 10:38:57 +00:00
rillig
bda3916463 Variables mentioned in SUBST_VARS.* are marked as used. An assertion in
that code had been proven wrong as is now gone.

PKG_USERS_VARS and PKG_GROUPS_VARS are added to BUILD_DEFS by the
infrastructure, so no warnings should be emitted for "unused" variables
in this case.

The comment for USE_LANGUAGE in combination with GNU_CONFIGURE is
considered to be intentional if it contains either of the words "c",
"empty" or "none".
2007-09-20 08:39:37 +00:00
abs
d9de31bed4 update pkg_chk to 1.87.
Make -k work with -l, so a missing package will still result in a list of
binary packages being displayed
2007-09-20 08:18:13 +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
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
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
joerg
f8f97243e2 Fix indentation. 2007-08-14 13:15:58 +00:00
joerg
6a86f42a52 Merge tmppkg into main variable block and remove indentation. 2007-08-13 19:15:37 +00:00
joerg
0363bc546f Check explictly for argc == 0 to find out if options where specified.
Don't depend on NULL termination of argv, count instead.
Remove more traces of slave mode.
2007-08-13 19:13:13 +00:00
rillig
6aecf48699 Added mk/misc/category.mk, which contains the definitions that are only
useful for category Makefiles, as opposed to bsd.pkg.subdir.mk, which is
also relevant for the top-level directory. Adjusted the category Makefiles.
2007-08-13 08:12:41 +00:00
rillig
0505043778 Documented expect() and prepared pkglint for the upcoming introduction
of category.mk.
2007-08-13 08:08:44 +00:00
joerg
8ab021fab7 pkg_admin: when retrying with a wildcard pattern, use the computed
pattern and not the base name.
pkg_info: add -E option to return the best matching installed package.

Bump to 20070813.
2007-08-12 22:09:02 +00:00
joerg
386755f3cb Restore ignorance of entry types for lsbest and lsall for now.
The check for already installed packages depends on being able
to run them in PKGDB_DIR. This is clearly obnoxius, but leave it
for later.
2007-08-12 18:54:08 +00:00
joerg
567020fab0 Reference correct variable. 2007-08-12 17:51:36 +00:00
joerg
7df87b070e - Introduce find_best_matching_file and match_local_files. This replace
the functionality offered by findmatchingname and findbestmatching
  name. They optionally strip the suffix from the filename before
  matching it, instead of modifying the pattern directly.
  Drop the old functions.
- Fix a bug in pkg_order where the version strings where inverted
- Make pkg_admin lsbest and lsall use the new functions.
- Make ftpio use pkg_order directly.

Bump version to 20070812.
2007-08-12 16:47:17 +00:00
adrianp
5bc5a2248d * Use stdout for printing results of vulnerable/eol packages found.
Reported by Greg Troxel on tech-pkg@
* Add -q which operates the same as 'pkg_info -q' and only displays
  the package name of any vulnerable/eol packages found.
  Suggestion by joerg@
* man page updates for -q
* Document the required permissions for audit-packages and
  download-vulnerability-list in the man page.
2007-08-10 22:50:46 +00:00
joerg
3c81e91396 Remove comment about importing from NetBSD. 2007-08-10 22:42:13 +00:00
gdt
52887c8e10 Reword description of rebuild-tree, and point to pkg_delete -f as a
possible cause of inconsistencies. Remove comment about make replace,
since it does not, absent pkgsrc/mk bugs, result in incorrect
dependency records.
2007-08-10 22:39:13 +00:00
gdt
2c897a092e pkg_delete In the list of options, note -ff option to remove {\bf
preserved} packages, and caution the reader that it is dangerous.
Ride hours-earlier version bump.
2007-08-10 22:29:49 +00:00
joerg
ded9371ddc Not my day. If I write "return 0 when at least one match was found",
actually return 0...
2007-08-10 21:43:58 +00:00