Commit graph

194 commits

Author SHA1 Message Date
abs
0083a17975 Update pkglint to 3.55:
- In lintpkgsrc check for invalid PKGREVISION, and handle PKGREVISION=0
2003-06-15 22:19:46 +00:00
wiz
86c96d9167 Use .Aq instead of <>. 2003-05-28 16:32:22 +00:00
wiz
9326d8145c Remove "country code" check -- a remnant from FreeBSD times. Update to 3.54. 2003-05-27 17:14:51 +00:00
atatat
8050c6cfff Add some code to the "stored database" to deal with counting packages
that have multiple versions (eg, apache or emacs), so that the number
of packages loaded when generating the database will match the number
loaded from the database afterwards.

Curiously, reorganizing the code a little makes the stored database
about 20-25% smaller.

Old stored databases are still completely supported.

Jump to version 3.53.
2003-04-30 03:16:06 +00:00
wiz
62ad41c8b8 3.52: Fix last in case the file exists (doh). 2003-04-22 10:18:22 +00:00
wiz
7b01d27417 3.51: Yell if .included files do not exist. 2003-04-22 08:26:57 +00:00
rh
744a23620f Update pkglint to 3.50. This version does a (slightly) better job at
Makefile variable parsing and lets "VARNAME=" override "VARNAME?="
definitions.  This should also fix the current bogus warnings about
distinfo in the weekly pkgsrc output.
2003-04-19 03:05:15 +00:00
jmmv
17bba8aa70 Update to 3.49: make sure WRKSRC is properly placed in the second section,
the one starting by DISTNAME (if present). Ok'ed by wiz.
2003-03-29 12:34:10 +00:00
wiz
477778d025 Update to 3.48: Avoid including the same buildlink2 files over
and over and over and over again. Among others, this makes pkglint work again
for x11/gnomepanel.
2003-03-28 20:22:22 +00:00
atatat
363c2198a2 Fill in default values for DESTDIR (empty), LOCALBASE ("/usr/pkg"),
and X11BASE ("/usr/X11R6"), which, while they might not be right for
*every* system, are certainly more right than UNDEFINED.

Give lang/python/pyversion.mk a little help by stuffing the material
from PYTHON_VERSIONS_ACCEPTED into the two places it expects it (since
lintpkgsrc doesn't do .for loops), add support for the ${FOO:S/foo/&/}
construction, and tweak the .if handling for && and || bits.

This has the following effect on the -g output (as a simple measure):

	% grep -c UNDEFINED before after
	before:58
	after:1

Jump to 3.47.
2003-03-27 05:16:11 +00:00
wiz
f1a0c20c6b Remove old ftp site from comment (noted by Tilman Linneweh).
Correct itojun's name (s/Itoh/Hagino/).
2003-02-01 13:37:33 +00:00
abs
cf5f085aa2 Update pkglint to 3.46
Check MAKE_ENV and similar variables which contain ${ use :Q or are quoted
2003-01-28 22:44:00 +00:00
atatat
7fc6b6a0bb Add a simple "extract" step so that local patches can be maintained
easily.  This only affects the build process, so PKGREVISION is not
bumped.
2003-01-27 17:59:01 +00:00
wiz
e6eec147e8 Update to 3.45:
Accept commented out SUBDIRS in category Makefiles, if a comment
with a reason is given.
2003-01-24 15:16:31 +00:00
atatat
70dc0105da Add -E and -I to lintpkgsrc for the "exporting" and "importing" of a
"database" that lintpkgsrc can use in lieu of scanning all the pkgsrc
Makefiles.

This has several nice effects, chiefly:

(1) Using any of -B, -O, -R, -S, -V, -d, -g, -i, -p, or -u, are now
*much* faster since reading the "database" takes at most 3 seconds on
my laptop, whereas reading all the Makefiles takes at least 3 minutes.

(2) One can now check for out-of-date packages on machines which do
not have an expanded pkgsrc tree simply by copying the "database"
over.  Note that the database will inherently have some dependencies
on the environment of machine where it is generated (eg, mk.conf
settings, architecture type, etc).

Reviewed by the wiz.
2003-01-24 15:00:41 +00:00
rh
0a4ba337b3 Update pkglint to 3.43. Check for hard coded share/locale and lib/locale
within PLIST.
2003-01-15 23:41:31 +00:00
rh
694780dbd9 Update pkglint to 3.42:
* Add a PKGLOCALEDIR check to pkglint: warn if PKGLOCALEDIR is in
	  PLIST, USE_BUILDLINK2 is set, and USE_PKGLOCALEDIR is not set.
2003-01-11 04:42:57 +00:00
schmonz
a047ece31c Update to 3.41:
- replace occurrences of "make" with @MAKE@

- add @MAKE@ to the list of variables to get sod (I never learned
  properly how to conjugate "sed")

- warn about NO_PATCH, since it hinders more than it helps

- remove NO_PATCH from Makefile to quell new pkglint warning
2003-01-02 22:58:41 +00:00
atatat
3ecbe5d669 In the case that we really can't determine the PKGNAME properly, just
punt and invoke "make show-vars VARNAMES=PKGNAME" and get make to tell
us.

This addresses the issue of:

Cannot extract digest-UNDEFINED version (/usr/pkgsrc/pkgtools/digest/Makefile)
Cannot extract pkg_install-UNDEFINED version (/usr/pkgsrc/pkgtools/pkg_install/Makefile)
Unknown package: 'digest' version 20010807
Unknown package: 'pkg_install' version 20021123

Patch reviewed by the wiz.
2003-01-02 22:17:45 +00:00
wiz
1926711f12 s/buildlink/buildlink2/ 2002-12-23 14:05:45 +00:00
schmonz
54cff28fe1 3.39: note that IGNORE is deprecated in favor of PKG_{FAIL,SKIP}_REASON.
Nudged by wiz@, who sees all.
2002-12-10 14:30:36 +00:00
wiz
3bc60751f1 Update to 3.38: Complete handling of category/Makefile; now compares
list of SUBDIRS against list of directories and complains about mismatches.
2002-12-10 12:42:40 +00:00
schmonz
717755e635 Any "digest" newer than 2001 is acceptable. This allows the "digest"
installed by bootstrap-pkgsrc to satisfy the dependency requirement.
2002-11-23 01:07:31 +00:00
wiz
9062b95009 Only avoid checking mk/bsd*, not all files from mk/. Bump to 3.37. 2002-11-14 04:01:55 +00:00
atatat
3642d7598c Upgrade to 3.36. Fixes the problem with $pkg_installver being
"uninitialized" for some cases.  Approved by the wiz.
2002-09-30 16:08:17 +00:00
wiz
24f92a55c8 Slight fix for 3.34, so that "cd /usr/pkgsrc; for i in */; do pkglint $i; done"
works. Bump to 3.35.
2002-09-25 09:34:21 +00:00
wiz
c4d4a1f20a Update to 3.34: Can now also be run in Category directories and checks
correct sorting order of SUBDIR entries.
2002-09-24 14:01:37 +00:00
wiz
c2589032d6 Since MESSAGE files come by many names, hardwire the line length,
independent of the actual filename. Update to 3.33.
2002-09-24 12:34:21 +00:00
atatat
9a44a64406 lintpkgsrc was tweaked, so bump the version 2002-09-22 16:00:37 +00:00
atatat
a72f2e5514 If the installed version of pkg_install is newer than the one in
pkgsrc, require the new version instead of the one from pkgsrc.
This means there will be no more messages that look like

	Version mismatch: 'pkg_install' 20020827 vs 20020723

Change reviewed by the wiz.  :)
2002-09-22 15:58:33 +00:00
wiz
b0ac4f603c 3.31: Check MESSAGE file format. Patch from sco at openface ca in pkg/18276. 2002-09-12 17:03:04 +00:00
wiz
a2d49d5274 Strip leading './' from distinfo entry names before matching against
the file system -- removes bogus warnings for at least opera and
ymessenger, which have "DIST_SUBDIR=.".
Bump to 3.30.
2002-08-13 15:05:30 +00:00
abs
9c85642145 Updated pkglint to 3.29
Make -V work without -p, -O, or -R
	Fixes pkg/17558 from Dan McMahill
2002-07-11 10:22:25 +00:00
wiz
6c62d4cdd2 mdoc nit. 2002-07-11 09:59:01 +00:00
wiz
5404dd4907 3.28: Note that USE_SSL is deprecated. 2002-07-02 15:26:18 +00:00
wiz
cb17e820a3 3.27: Warn about missing RCS Id in distinfo, and note that IS_INTERACTIVE
is deprecated.
2002-07-02 13:16:30 +00:00
wiz
9a3584985f Update to 3.26. Changes:
. sync dewey support with pkg_info
. fix 'elsif' handling (fixes bogus ns-flash warnings)
2002-06-02 21:52:28 +00:00
wiz
1f4ca748bc Recognize ${INSTALL_INFO} in PLISTs as install-info.
Bump to 3.25.
2002-04-08 13:57:12 +00:00
wiz
20ab0bbf08 Update to 3.24:
Report downlevel pkg_install version, too (in -i mode).
Requested by gendalia and agc.
2002-03-22 15:57:53 +00:00
abs
bb846764de Update pkglint to 3.23:
Correct inverted logic for DYNAMIC_MASTER_SITES check
2002-02-27 11:20:59 +00:00
abs
7dbe248d56 Update pkglint to 3.22
Handle DYNAMIC_MASTER_SITES
2002-02-13 08:42:11 +00:00
abs
5e81e7c998 Updated pkglint to 3.21
- lintpkgsrc - fixed -p to handle relative symlinks and symlink loops
2002-01-03 11:04:49 +00:00
abs
ab1caa7c6d Update pkglint to 3.20
lintpkgsrc - if we find one valid match in a DEPENDS entry, don't
	bitch about any others expanding to a non-existant package:
	    Example: postgresql-{6.5.3*,7.0*,lib-*}
	With this lintpkgsrc -d now outputs six lines on current pkgsrc.

	Note to self: When you use 'cvs c^[P' the second time in an
	evening for the same package... its enough.
2001-12-27 19:13:13 +00:00
abs
353480ff21 Update pkglint to 3.19
lintpkgsrc.pl:
	Finally we parse {x,y,z} constructs in DEPENDS, plus handle a
	few more make conditionals. Now most of the lintpkgsrc -d output
	is related to versions of software no longer in pkgsrc...
	Does the fun ever start?
2001-12-27 13:31:45 +00:00
abs
d11069f0b2 Update pkglint to 3.18:
Significant rototill of lintpkgsrc.pl, converting to a rather twisted
    hierarchy of PkgVer Pkgs and PkgList objects with assorted arbitrary
    methods, all based on existing usage rather than ideal design.
    Actual fixes found along the way:
	- Handle := in makefiles
	- Better handle parenthesis and "" in make conditionals
	- parse bsd.pkg.mk to extract _REQD values (hence the previous line)
	- Add missing 'key' in hash iteration
	- Do not repeat includes (evolution longer depends on jpeg 45 times)

    Still have to handle such delightful constructs as
    DEPENDS += {qt2-designer>=2.2.4,qt2-designer-kde>=2.3.1nb1} in a sane way
2001-12-27 12:42:08 +00:00
wiz
3a504b050a Making lintpkgsrc more usable, part 2.
Reduces warnings from 'lintpkgsrc -d' from ~700 lines to ~100.
[It won't get much better than this...]
2001-12-20 03:31:51 +00:00
agc
ccff9099bc Modify all references to PKGSRCDIR to _PKGSRCDIR, except in the external
references of the pkglint package.

_PKGSRCDIR is an internal definition in bsd.pkg.mk, and a few packages
which would like to refer to other packages in the build tree. It should
not be set by users, but neither should it stop a user from building a
package if it is defined, so make it obvious that this is the case.
2001-12-15 20:25:34 +00:00
wiz
b938f73029 WIP: Make lintpkgsrc happy with buildlink.mk files. Not complete yet,
but "lintpkgsrc -d" output reduced from >7000 lines to ~700.
First part of diff fixes most ruby* complaints, second part the general
"Unknown package: 'UNDEFINED' version missing" message.
2001-12-11 03:47:20 +00:00
wiz
8f6286fce2 Handle PKGREVISION more properly, by allowing it being set, but empty.
Bump to 3.16.
2001-12-03 21:55:48 +00:00
wiz
b4f0a668fa Miscellaneous man page fixes. 2001-12-03 19:03:19 +00:00