Commit graph

3479 commits

Author SHA1 Message Date
apb
1f3a8ef038 Oops, it was already 1.91 before my previous commit. Bump version
to pkg_chk-1.92.  (Thanks wiz)
2008-05-03 12:57:47 +00:00
apb
32be79e911 Bump version to pkg_chk-1.91:
* Look for $MAKECONF in @MAKECONF@, @PREFIX@/etc/mk.conf,
  and /etc/mk.conf, in that order.
* Look for $PKGSRCDIR in the Makefile referred to by $MAKECONF,
  ".", "..", "../..", and "/usr/pkgsrc", in that order.
* Convert the Makefil to use the SUBST framework.

Proposed in tech-pkg; OK (in principle) David Brownlee
2008-05-02 19:10:26 +00:00
apb
590058d9b8 Bump version to pkg_rolling-replace-0.16:
* Look for $MAKECONF in @MAKECONF@, @PREFIX@/etc/mk.conf,
  and /etc/mk.conf, in that order.
* Look for $PKGSRCDIR in the Makefile referred to by $MAKECONF,
  ".", "..", "../..", and "/usr/pkgsrc", in that order.

Proposed in tech-pkg; OK Greg Troxel.
2008-05-02 19:04:03 +00:00
martin
d86d72404e Drop clauses 3 and 4 from TNF licenses 2008-04-29 05:46:08 +00:00
joerg
451f0436c4 Revert last change, it was not intended to go into HEAD. 2008-04-26 17:40:01 +00:00
joerg
ba8b7d3861 Add a clean pkg_add implementation on top of libarchive and libfetch.
Known regressions:
- "pkg_add -" (aka reading from stdin) is currently not supported
- "pkg_add -s" is not supported either
- no progress reports for the downloads
- binary packages with hardlinks created by pkg_create before
  pkg_install-20080422 will not extract correctly (libarchive issue)
- no adhoc check for potential conflicts between dependencies and
  already installed packages

Features:
- Twice as fast for the typical case of /var/tmp and /usr/pkg on
  different filesystems
- Standalone
- implicit conflict detection before actual installation.
2008-04-26 14:56:33 +00:00
abs
9c009a0256 update pkg_chk to 1.91:
- Use a local pkg_summary.gz iff it is the most recently modified file
      in the PACKAGES/All directory
2008-04-23 21:55:29 +00:00
joerg
4d3a05f90f Make pkg_delete with -p actually work. Prepending the prefix doesn't
work as it will still use the one in the package. Use the approach from
pkg_add to override it instead.
2008-04-23 20:54:39 +00:00
joerg
bb41ea3344 Use id -un for whoami on QNX. 2008-04-23 18:04:03 +00:00
joerg
e40da5bac1 pkg_install-20080423:
Make the linkresolver code more robust.
2008-04-23 16:58:07 +00:00
joerg
279f4d312b Requires libarchive 2.5. 2008-04-23 14:37:10 +00:00
joerg
a58e43c67f rc.subr-20080423: Add QNX support.
From Christian Leutloff on tech-pkg.
2008-04-23 11:54:53 +00:00
joerg
24f6331375 Restore symlinks as the code was accidently removed. 2008-04-22 14:27:51 +00:00
joerg
6bb49fafea pkg_install-20080422:
Make use of the linkresolver from libarchive and thereby fix the
permissions of hardlinks in archives.  This wasn't a problem so far
as nbpax is (incorrectly) ignoring the permissions of the other entries.
2008-04-22 13:47:08 +00:00
joerg
41548023fd libnbcompat-20080422:
Check if stdio.h declares vasprintf and snprintf and provide a prototype
otherwise.
2008-04-21 22:24:43 +00:00
joerg
76e68316b6 Detect socket and gethostbyname requirements for Solaris. 2008-04-20 13:59:09 +00:00
joerg
8e530a6d06 Move get_dash_string to pkg_create as only user.
Remove str_lowercase.
2008-04-18 17:16:44 +00:00
joerg
262da955cc Nuke unused macros. 2008-04-18 12:01:46 +00:00
bjs
dbbd4d1284 Mark this package MAKE_JOBS_SAFE=no. 2008-04-18 06:30:47 +00:00
joerg
b9495db99b Don't let a mathematican add numbers with less than 20 digits. Fix the
the offset for November and December and welcome libnbcompat-20080416.
2008-04-17 08:11:12 +00:00
joerg
d82752f969 pkg_install-20080415:
Add audit-history subcommand for pkg_admin, that lists all known
vulnerabilities for a given base package name. E.g. if you run a web
server, don't run "pkg_admin audit-history php" before going to bed.
2008-04-16 00:53:06 +00:00
joerg
7ae2547c43 Refactor by moving logic for IGNORE_URL into subfunction. 2008-04-15 22:24:38 +00:00
joerg
22f59d0159 bootstrap-mk-files-20080415:
Don't bother with real dependency tracking, just touch .depend.
2008-04-15 16:49:56 +00:00
jlam
841dfa0e7a Convert to use PLIST_VARS instead of manually passing "@comment "
through PLIST_SUBST to the plist module.
2008-04-12 22:42:57 +00:00
joerg
7e5d22b940 Force depend target to explicitly run for libfetch. Disallow parallel
builds in that part of the build. This works around issues with
bootstrap-mk-files not handling DPSRCS correctly.
2008-04-08 11:50:46 +00:00
joerg
e3dcc57333 pbulk-0.30:
Print the collected PKG_FAIL_REASON in the HTML version of the report.
2008-04-07 19:41:07 +00:00
joerg
8a32fdfe06 Add note about LOCALBASE 2008-04-07 17:34:51 +00:00
joerg
dee7a26d93 Simplify logic and make pkgdbdir the default for
pkg_vulnerabilities_dir.
2008-04-07 13:25:32 +00:00
joerg
0f52644262 pkg_install-20080407:
Add command to print effective value of configuration variables.
Remove FETCH_CMD variable from pkg_admin, it is not used.
2008-04-07 13:07:14 +00:00
joerg
18d8ba7ebd Don't build pkg_io.c during bootstrap. 2008-04-06 17:47:27 +00:00
joerg
0d4cca2484 Fix audit -t argument -- it should actually take the option. 2008-04-04 21:45:33 +00:00
tnn
f923a1ef51 -lfetch to make it build. PR pkg/38365. 2008-04-04 20:46:59 +00:00
joerg
3c5055ef91 pbulk-0.29:
Add bulkbuild-restart script that checks if error/success files exist
and makes sense and continues the previous build if they do.
2008-04-04 17:58: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
joerg
6d93d84461 libnbcompat-20080404:
Add an implement of timegm(3) from nsd (based on Python code).
2008-04-04 15:20:33 +00:00
joerg
6279818d31 Add an implement of timegm(3) from nsd (based on Python code). 2008-04-04 15:20:00 +00:00
joerg
25637e137b Add an implement of timegm(3) from nsd (based on Python code). 2008-04-04 15:19:10 +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
gdt
205b55abd1 Separate 'make clean' from 'make package', so that clean is not
skipped with -r.  DISTNAME++.  Fixes PR pkg/38283.

Reviewed and tested by tnn@.
2008-03-31 11:41:09 +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
46474f9f02 libnbcompat-20080322:
Add an option to force a BSDish getopt (e.g. one with optreset).
Use the correct macros to decide when to define optind and friends.
2008-03-21 23:28:08 +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
9794279905 bootstrap-mk-files-20080310:
IRIX and Linux don't provide lorder in all cases, so just skip
the logic for the resorting before building ar(1)chives.
2008-03-13 17:28:23 +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
tnn
bcc3a75940 Add an EXAMPLES section. 2008-03-11 01:53:05 +00:00
tnn
f6d2ec23a6 Add a suggestion from Aleksej Saushev. 2008-03-10 22:01:04 +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
d3e9cc4b03 There's more to do ... 2008-03-06 09:34:41 +00:00
rillig
f19531b649 Updated pkglint to 4.85.
Changes since 4.84:
- Fixed the splitting of PKGNAME into PKGBASE and PKGVERSION.
- Added a warning about usage of LOCALBASE in packages, provided by jlam.
2008-03-06 08:54:12 +00:00
rillig
819cdb9f48 The LOCALBASE variable should not be used in packages, it should just be
defined in mk.conf. Suggested by jlam, who also provided the excellent
explanation (see "pkglint -e" for it).
2008-03-06 08:51:36 +00:00
rillig
d4515f0e08 After the recent fixes by wiz, the regular expression for splitting a
package name into PKGBASE and PKGVERSION has been changed. It treats
everything in front of the last hyphen as the package basename and the
rest (which will hopefully start with a digit) as the package version.
Packages that are affected by this change are for example:

* fonts/*-100dpi
* lang/elisp-manual: elisp-manual-21-2.8
* mail/postfix-current: postfix-2.6-20080216
* net/flodo: flodo-4-20040907
2008-03-06 08:37:26 +00:00
jlam
1f46ad2c51 Note removal of tnftp and pax. 2008-03-06 04:46:46 +00:00
jlam
84fa8ca684 + Remove pkgtools/pax and pkgtools/tnftp as they are no longer different
from archivers/pax and net/tnftp, respectively.  In the past, the
  pkgtools version of these packages installed into ${PKG_TOOLS_BIN},
  but this was changed in:

	pkgtools/pax/Makefile:1.15
	pkgtools/tnftp/Makefile:1.3

+ Get rid of archivers/pax/Makefile.common and net/tnftp/Makefile.common
  by merging them into their respective Makefiles.  The Makefile.common
  files existed solely for inclusion by the pkgtools versions of these
  packages, but with the removal of those packages, these files are
  now unnecessary.

+ Add full DESTDIR support to archivers/pax and net/tnftp.

+ Modify the bootstrap to build archivers/pax and net/tnftp instead of
  the pkgtools versions of these packages.
2008-03-06 04:45:58 +00:00
tnn
0541dead28 Add TODO item from PR pkg/38178. 2008-03-05 21:14:05 +00:00
rillig
bbabef332e Using AUTO_MKDIRS is simpler. 2008-03-01 19:07:27 +00:00
rillig
fcf2370845 Why does pkg_add need many open file descriptors? 2008-03-01 19:06:10 +00:00
rillig
6329c16a16 Removed trailing white-space. 2008-03-01 19:04:37 +00:00
rillig
b32b7657bb Replaced the deprecated INSTALLATION_DIRS_FROM_PLIST with AUTO_MKDIRS,
to shut up the pkglint warnings.
2008-02-28 11:58:47 +00:00
rillig
e526eb1a96 Allow zero white-space in line 4 of buildlink3.mk files. This was hit by
devel/ncursesw.
2008-02-27 00:24:19 +00:00
joerg
1c42d625e1 pbulk-0.28:
- don't try to deinstall (and fail) on packages marked not for uninstall
2008-02-26 13:57:51 +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
4c9687e516 NO_MTREE is the default nowawadays.
Do not force use of a native compiler, we don't build digest during
bootstrap any longer.
Do not skip the pkgtools version check for the same reason. When
building this package using DESTDIR, it might actually need the newer
tools.
2008-02-26 13:32:00 +00:00
abs
b136c3aa6c update pkg_chk to 1.90:
- Remove obsolete and no longer accurate 'implies -c' and 'implies -i'
      notes from usage - noted by Andreas Burghardt
2008-02-24 21:58:13 +00:00
tnn
c177dc4572 Improve verbose mode:
- sprinkle whitespace so pkgnames get neatly aligned
- prepend a progress counter to printfs
2008-02-24 15:35:42 +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
tnn
d3fa34a3c6 Introduce a variable, LIBNBCOMPAT_USE_PIC, which if set to yes before
including inplace.mk causes a PIC version of libnbcompat to be built
alongside the regular static libnbcompat.

This will be used to extend the features framework in two ways:
1) Support linking features into shared modules
2) Ability to cherry-pick individual objects to link from the libnbcompat
   build directory rather than linking the whole archive.
2008-02-22 04:07:55 +00:00
tnn
53c9094bb3 libnbcompat-20080221:
- Use AC_FUNC_VFORK, needed on IRIX to get missing vfork() defined
  to fork(). Ok by joerg.
2008-02-21 16:50:07 +00:00
tnn
cca85a83d2 Use echo(1) instead of lorder(1). At least my IRIX 6.5 doesn't have it.
The IRIX 5.3 lorder(1) manpage says:
"This command is useless (but not harmful) in IRIX."
2008-02-21 15:51:50 +00:00
tnn
4c718bd4e0 No sin_len on IRIX. 2008-02-21 14:40:43 +00:00
rillig
b78949d0e2 Updated pkglint to 4.84.
Changes since 4.82:
- Whenever a Makefile.common is included by another file, that file should
  be mentioned in the Makefile.common.
- Added spell checker for .if directives.
- Added warnings for uncommented patches (only for -Wstyle).
- Added spell checker for invalid macro names, like __NetBSD_Version.
- Deprecated INSTALLATION_DIRS_FROM_PLIST in favor of AUTO_MKDIRS.
- Many more small things.
2008-02-21 12:24:43 +00:00
rillig
17dcbe2486 I don't want others to update the pkglint version number. 2008-02-21 12:17:16 +00:00
rillig
5a7a2cb0af Changed an assertion into a fatal error, which is effectively the same,
just without a stack trace. Fixes PR 38074.
2008-02-21 12:16:09 +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
apb
7a43c660cf Bump version to pkg_rolling-replace-0.14:
* Clarify that the -x option takes package base names, not full package
  names.
* Clarify that the -x option excluded packages only from the outdated
  check, not from being rebuilt for any any other reason.
* Add a -X option that excludes a package from being rebuilt for any
  reason.  (I have had this as a private patch for a long time, and
  never run pkg_rolling-replace without "-X openoffice2", because
  openoffice requires so much time and disk space to build.)
2008-02-17 10:47:47 +00:00
tnn
46c6d8ebe3 Replace three instances of sed with ${SED}. Ride previous update. 2008-02-17 01:05:39 +00:00
tnn
e833bdd6fa Bump to pkg_chk-1.89:
Some changes from Aleksey Cheusov in pkg/36298 and pkg/36641 with
additional cleanup by me.

- option -g doesn't need PKGSRCDIR populated
- fatal if mktemp fails
- truncate logfile instead of removing it
- performance improvement for binary package scan
2008-02-17 00:55:20 +00:00
tnn
b182ad8987 Fix hpux c++ linkage problem. Bump version. 2008-02-16 22:24:19 +00:00
apb
40ef1e450f In both mkpatches.pl and patchdiff.pl, ignore a leading "./" when
parsing a file name from the "+++" line in an old patch file.  (New
patch files created by mkpatches do not have "./" in the file name in
the "+++" line, but some old patches currently in pkgsrc do have "./"
there.)

Bump version to 0.120.
2008-02-16 22:21:35 +00:00
tnn
c89a3c6b68 Move my code to two-clause license. 2008-02-14 19:14:54 +00:00
rillig
3b57858299 Improved the wording of the explanation for empty PLISTs. Related to
PR 38022.
2008-02-14 00:27:19 +00:00
tnn
a348868a92 Add horisontal rulers. 2008-02-13 21:04:10 +00:00
reed
ee075cb7b6 Add to explanation for empty PLIST: not needed for meta packages. 2008-02-13 20:14:49 +00:00
rillig
74342b542b Updated pkg_tarup to 1.7.1.
Changes since 1.7:
- bail out if the ROOT_USER doesn't exist.
- Made the package Makefile a little shorter.
2008-02-12 15:03:28 +00:00
joerg
153a030a7f libnbcompat-20080212:
Add digest length defines for md5, rmd160 and sha1. Use
__BEGIN_DECLS/__END_DECLS. Drop _KERNEL conditionals.
2008-02-12 13:43:23 +00:00
rillig
cb491ea72a INSTALLATION_DIRS_FROM_PLIST is deprecated. Use AUTO_MKDIRS instead. 2008-02-12 07:39:09 +00:00
tnn
aab417c507 Bump date for SunOS change. 2008-02-11 15:17:52 +00:00
tnn
017ce50be9 ${CC} -E is a better default choice for CPP than "cpp".
Prevents many packages from failing with "c preprocessor fails sanity check."
2008-02-11 15:12:39 +00:00
joerg
1960164c7e Always use the newly built pkg_create -- this makes updates easier. 2008-02-09 14:08:05 +00:00
rillig
4a2b7dfc86 Added a suggestion from Tobias Nygren. 2008-02-08 22:43:27 +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
e9ce48a411 Merge a fix from NetBSD's src/bin/pax by tls:
Teach set_ftime about symbolic links, because it has to know: on some
Linux systems, when we build as a tool we think we have lutimes but it
doesn't work on some filesystems at runtime.  A bit ugly but effective
and without use of AC_TRY_RUN in the tool build.  Tidier (than mine)
set_ftime reorganization from christos.

Bump version to 20080110.
2008-02-07 22:27:53 +00:00
tnn
7ad4bee3e9 Needs GNU nroff to format catpages.
(But for this case it would make life simpler for bulk builders if the
 catpages were pregenerated.)
2008-02-07 13:41:26 +00:00
joerg
fc8fb1240a pkg_tarup-1.7:
Produce the same output as USE_DESTDIR=yes. Most of all reduce magic.
Try to deal with pkgviews for completeness.
2008-02-06 22:39:43 +00:00
joerg
4f81810ae0 Include fcntl.h for Solaris. From Andri Piik in private mail. 2008-02-05 18:57:09 +00:00
rillig
fbf42c9d3e Something more to do. 2008-02-05 02:10:38 +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
tnn
082e811cfa Enable compression (-z) in report_rsync_args.
Partially addresses PR pkg/37946.
2008-02-03 21:20:46 +00:00
heinz
3394442d47 Added support for installation to DESTDIR. 2008-02-02 17:36:40 +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
rillig
5d720e0cfd + PRIVILEGED_STAGES 2008-02-01 08:50:22 +00:00
rillig
522219d1cc Needs REPLACE_PERL. PKGREVISION++ 2008-01-31 18:59:37 +00:00
rillig
ade4f6f31a Don't require white-space after ${RUN}, since it wasn't required for
${_PKG_SILENT}${_PKG_DEBUG} either.
2008-01-31 14:00:17 +00:00
rillig
9aaaa11b57 Directories that are practically empty are skipped. 2008-01-31 13:20:56 +00:00
joerg
8fee404627 Fix a limit check. 2008-01-30 21:52:09 +00:00
joerg
dca74e43dd Add another check for the cross-compiling case. 2008-01-30 15:01:04 +00:00
hubertf
5c695ce274 Sign over my copyright to TNF. 2008-01-29 15:39:30 +00:00
tnn
4ed291d5f2 $${bulklog} -> ${bulklog} 2008-01-29 08:14:44 +00:00
dmcmahill
b97269911b Update to cdpack-1.8. This change adds the cddist utility which may
be used for creating a cd/dvd set containing a distfile archive.  No change
to the existing portions of the package.
2008-01-28 23:06:13 +00:00
dmcmahill
99ea1f0246 minor portability fix and minor bug fix (tested for the presence of the wrong file) 2008-01-28 23:03:48 +00:00
rillig
98ae096a66 Added Thomas' explanation for the "PKGREVISION must only be in Makefile"
error message.
2008-01-28 09:25:52 +00:00
rillig
7e187aa86c pkglint can now automatically add the "used by" clauses to
Makefile.common when run with the --autofix option.
2008-01-28 01:18:13 +00:00
rillig
2692dd0290 When a file is included via .sinclude, it doesn't have to exist. 2008-01-28 00:53:21 +00:00
rillig
fa0050ec62 Removed extra #. 2008-01-28 00:35:59 +00:00
joerg
e09da90e38 pbulk-0.27:
When running the start script in master mode, already accept incoming
connections. This makes the start script more useful when using more
clients than the default listen back log.
2008-01-27 14:01:23 +00:00
joerg
e076545b94 pbulk-0.26:
Add first pile of patches for cross-compiling support.
This still depends on the packages being pre-installed to
the normal prefix, but otherwise works. Cross-compiling
needs pkg_install-20080126. While here, simplify configuration
and allow using one pkg_install installation for everything.
As a side effect remove the pkgdb limitation for NetBSD builds.
Add a message that tells users to check the configuration file
on updates.
2008-01-26 23:44:08 +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
joerg
d8d13db647 Explain unprivileged_user. 2008-01-26 03:14:18 +00:00
joerg
e562ac2e2f pbulk-0.25:
Add bulkbuild-rebuild which can be used to build packages individually.
It assumes that all dependencies are built and the results of the scan
phase exists. That means it can be used after a bulk build to try to
rebuild a failing package. Fixes PR 37407.
2008-01-26 01:57:00 +00:00
joerg
d84d1ca637 pbulk-0.24:
When all jobs are processed in master mode, close the listen socket
and shutdown(2) all peers. Give them a second to close(2) the
connection themselve, so that the port remains usable on the master.
This is the standard compliant fix for PR 37002.
2008-01-26 00:34:57 +00:00
rillig
9449794a9c Some commands like "mktexlsr" and "texconfig" must not be called from
package Makefiles.
2008-01-25 17:59:24 +00:00
tnn
34692a4cfc Fixed a problem in pkg-build, bump rev. 2008-01-21 13:11:56 +00:00
tnn
44711aada0 Fix a hardcoded path (probably a mistake in rev 1.8) 2008-01-21 12:37:46 +00:00
joerg
235f1bf734 No revision bump for pkgsrc native tools, update version. 2008-01-18 15:46:22 +00:00
rillig
a83158c015 PKGREVISION++ for the invalid definition of shell functions. 2008-01-18 11:38:17 +00:00
rillig
06c878c3b1 Fixed the definition of shell functions, as reported in PR 37795.
See also:
http://www.opengroup.org/onlinepubs/000095399/utilities/xcu_chap02.html#tag_02_09_05
http://www.opengroup.org/onlinepubs/000095399/utilities/xcu_chap02.html#tag_02_09_04
2008-01-18 11:36:18 +00:00
tnn
c722fc0905 pkg_chk-1.88: add mktemp to the list of substituted commands. 2008-01-18 07:50:03 +00:00
joerg
5eda607514 pbulk-0.21:
Don't try to remove a non-existing file if no package had an error
during the build.
2008-01-17 19:25:33 +00:00
joerg
a166fd74ea pbulk-0.20:
- run checksum stage of a build with the privileged user, as DISTDIR
  might not be writeable
- create the actual package as privileged user as well
- pre-create work.log when using user-destdir
- in pre-build, only wait if the meta subdirectory exists. bulklog itself
  can often be a mount point.
2008-01-17 17:47:09 +00:00
joerg
4498fe021c pbulk-0.19:
- add support for building using DESTDIR.
2008-01-16 14:20:08 +00:00
tnn
e21f12791a Bump date because of several HPUX & OSF1 fixes. 2008-01-16 11:41:15 +00:00
tnn
e0adffbdde Supports installation to DESTDIR. 2008-01-16 03:32:59 +00:00
tnn
0f5043a902 Fix CPP detection 2008-01-16 03:05:57 +00:00
joerg
dd293c5fa6 Use %lu + casts instead of depending on size_t's %z. Some Operating
Systems like Solaris don't implement %z.
2008-01-15 22:14:30 +00:00
joerg
a4b00a08e7 pbulk 0.18:
- If not running on NetBSD or not using /usr/bin/make, set the default
  of pbulk's make to ${prefix}/bin/bmake.
- Make path to neato an option and don't install it on demand.
- Fix a bug in the master mode that should fix the strange faults seen
  with native libevent on NetBSD.
- Add option to skip checksum computation. Don't upload a checksum file
  if that option is active.
2008-01-15 21:43:31 +00:00
tnn
4b8fb48be4 Retire support for builtin X11 on HP-UX. The builtin libs are simply
too broken. (Missing dynamic Xaw libs, header issues and so on ...)
I'll make X11_TYPE=modular the default on HP-UX instead.
2008-01-14 08:27:31 +00:00
tnn
7f888fd6b0 Make CPP definition compiler-agnostic 2008-01-14 05:55:30 +00:00
tnn
03c313fb85 fix typo 2008-01-14 05:14:59 +00:00
tnn
4c52ae5bee We always have install-sh on HPUX 2008-01-14 05:08:52 +00:00
tnn
c45631dd04 First cut at some HPUX specific overrides. No version bump of the package
yet since this will be work in progress for a couple of days ...
2008-01-14 05:00:43 +00:00
rillig
2ef4aec279 Fixed typos. 2008-01-13 22:31:25 +00:00
gdt
1dfd5850bd Add patch from Brook Milligan to avoid treating warnings about
non-deletable packages as dependencies.  Bump version to 0.14.

Example problematic output (perhaps should also be fixed in
pkg_install):

     Information for pkg_install-20070810:

     *** PACKAGE MAY NOT BE DELETED ***
     Built using:
     checkperms-1.7

     *** PACKAGE MAY NOT BE DELETED ***
2008-01-11 13:29:37 +00:00
rillig
34e8a5cf5d Greg wants me to check for unused license files. 2008-01-10 03:48:34 +00:00
rillig
ae2d8788af Check misspelled macro names, for example __NetBSD_Version instead of
__NetBSD_Version__. Inspired by emulators/wine/patches/patch-ac 1.37.
2008-01-10 03:33:46 +00:00
heinz
12aae4e3b5 The package needs a C compiler. 2008-01-08 20:03:54 +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
53c3ee0e89 + REPLACE_LOCALEDIR_PATTERNS 2008-01-06 19:26:01 +00:00
rillig
d989bc8536 + BUILD_MAKE_CMD 2008-01-06 18:37:21 +00:00
rillig
567c07ece4 Deactivated the "NOTE: you can write "tool" instead of "${TOOL}", as
suggested by darcy@.
2008-01-06 14:55:00 +00:00
rillig
5287c0d6e2 When a variable is compared to a string in an .if or .elif directive,
check that the string fits to the variable type.

Currently, the generated warnings are mainly for X11_TYPE, for which
"xorg" is not a valid value. (hi joerg!)
2008-01-06 01:02:14 +00:00
rillig
d332897390 Improved an explanation for an error message, since the previous version
didn't really explain anything.
2008-01-05 22:13:20 +00:00
rillig
50295b3994 Improved the wording of the "Makefiles must not be included" error message. 2008-01-05 21:54:50 +00:00
rillig
775bba2f32 Don't give a warning for incomplete RCS tags in patch files, as they
probably will not do any harm.
2008-01-05 18:41:02 +00:00
rillig
90e88a8d2d Reactivated the code to warn about missing comments in patches. It seems
that the time has come that we can no longer find out what a patch does,
unless we document it. The CVS history is not of great help in many
cases, patches get moved in the repository and so on.

To not scare casual pkglint users, these warnings are only shown if
pkglint is run with the -Wstyle or -Wall option.
2008-01-05 18:04:06 +00:00
tron
860c51a3a0 Require at least version 0.35 for the benefit of system with native X.org. 2008-01-05 16:22:15 +00:00
tron
1c75254c0e Update "x11-links" package to version 0.35:
- Add suport for "inputproto", "randrproto" and "xineramaproto".
2008-01-05 16:08:52 +00:00
rillig
f1aafc9c0a In the check for variable ordering in package Makefiles, MASTER_SITES is
not required to appear, since META_PACKAGEs don't need to define it.
2008-01-05 11:13:37 +00:00
rillig
f77793c396 Added code to analyze the conditions in .if and .elif directives. This
will soon be extended to checking for spelling mistakes in PKG_OPTIONS
handling.
2008-01-04 16:12:03 +00:00
rillig
8c3c6df190 Whenever a Makefile.common is included by another file, that file should
be mentioned in the Makefile.common.
2008-01-04 16:03:55 +00:00
rillig
4071dbc4be Updated pkglint to 4.82.
Changes since 4.81:
- Moved lintpkgsrc to its own package.
- Less internal errors when parsing shell code.
- White-space checks in PLIST.
2008-01-04 15:59:47 +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
906ad29157 Prepared pkglint for the upcoming cleanup of the .include directives in
mk/*.
2008-01-04 01:43:56 +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
rillig
10ac5aa6c4 + lintpkgsrc 2008-01-03 21:05:34 +00:00
rillig
e770357f67 Imported lintpkgsrc.
lintpkgsrc checks various things on the complete pkgsrc tree.
2008-01-03 17:43:15 +00:00
rillig
447576b03c Added a way to determine the PKGPATH when checking a package. 2008-01-03 16:16:22 +00:00
rillig
f09c8701b9 If one of the NO_*_ON_* variables contains something other that
${RESTRICTED}, print the variable name in the warning message.

While here, added an explanation for the warning.
2008-01-01 20:44:29 +00:00
rillig
811346657e All characters in PLIST files are relevant, so make trailing white-space
an error. Who would ever want to install files whose name ends in
white-space?
2008-01-01 13:44:11 +00:00
minskim
24f56460bb Do not skip the configure phase. This package needs it to configure
libnbcompat.  Pointed by Mark Wicks in PR 37609.
2007-12-27 23:19:06 +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
adf53f5a0d Prevent internal errors when one-letter variables are used. The warning
to disambiguate them is still printed.

PR: 37593
2007-12-22 22:27:17 +00:00
rillig
2c5b005b55 Updated pkglint to 4.81.
Changes since 4.80:
- Stricter CVS Id check
- REQD_FILES_PERMS, META_PACKAGE, PKGSRC_COMPILER
- Warning if info pages are installed into share/info.
2007-12-22 11:21:47 +00:00
rillig
664171769f GNU info pages should not be installed into share/info. 2007-12-22 11:15:52 +00:00
rillig
6e0168c5df + REDQ_FILES_PERMS 2007-12-21 12:36:59 +00:00
rillig
e035f2d2e6 Updated the list of pkgsrc compilers (+hp, +pcc). 2007-12-21 12:31:20 +00:00
rillig
1081c0d265 Improved the wording of an explanation, to avoid confusion. 2007-12-19 12:34:08 +00:00
rillig
e59cd5c03e - Added support for the new META_PACKAGE variable.
- Warn about duplicate entries in PLISTs.
2007-12-19 12:04:34 +00:00
rillig
545e51df61 The +CONTENTS file is checked for conflicts, not +REQUIRED_BY. 2007-12-19 02:22:54 +00:00