Commit graph

2062 commits

Author SHA1 Message Date
rillig
b71a1d488b Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
2005-12-05 20:49:47 +00:00
rillig
624eed5892 Don't fix patch files automatically, since after patching them the checksum
is changed, and the distinfo file is not updated automatically.
2005-12-05 20:23:44 +00:00
rillig
97d5db5a7f Regenerated distinfo to include the latest change to patch-ac. Contrary to
my expectations, NO_CHECKSUM only applies to the downloaded distfiles, not
to pkgsrc patches.
2005-12-04 15:50:30 +00:00
rillig
9470c06fdf - In PLIST files, only suggest replacing @unexec rmdir ... with @dirrm
for directories starting with %D.
- Converted load_make_vars_typemap() to the common form of caching
  subroutine. This makes pkglint about 10 percent faster.
- Added explanations for the :Q and the :M*:Q operators in Makefiles.
2005-12-03 03:16:18 +00:00
rillig
714c2498e8 * check that all values used for the PKG_OPTIONS are documented in
mk/defaults/options.description. Requested by Antoine Reilles via
  private mail.
2005-12-02 22:48:13 +00:00
rillig
e80f0f0519 - Allow the "?" character in Dependency. It is used as a placeholder for
a single character. Seen in some package versions like "pkg-200211??".
- Allow the "," and the "@" in filenames.
- Allow the "gopher" scheme in URLs.
- Don't warn for unexpected PERL5_PACKLIST, bases on PKGNAME, if the latter
  contains references to other variables.
- When PKGNAME is equal to DISTNAME, this is not a warning, only a note.
2005-12-02 20:15:00 +00:00
rillig
255f1d085f Added CONFLICTS, CC and CXX. The latter two are marked as read-only.
(Hi hubertf.)
2005-12-02 18:47:58 +00:00
wiz
f346082599 Mark USE_SOCKS as deprecated. 2005-12-02 17:09:12 +00:00
rillig
1fd599b0f0 Removed the partial RCS Id tag from patch-ac. Didn't update distinfo, as
NO_CHECKSUM is set in the ../digest/Makefile, which is included, so it
won't be checked anyway.
2005-12-02 16:30:07 +00:00
rillig
04433f52be Removed the warning that PKG_JVM was deprecated and PKG_DEFAULT_JVM
should be used instead. The latter has disappeared somewhat surprisingly
from pkgsrc.
2005-12-02 09:44:03 +00:00
rillig
0785914323 Allow append-only lists to be initialized using the "?=" operator, in
addition to initializing them to a commented empty value and using the
"+=" operator. Reenabled the check for BUILDLINK_RECOMMENDED.
2005-12-02 09:01:32 +00:00
rillig
2d6ed0430a Disabled the type check for BUILDLINK_RECOMMENDED, as it has produced
too many false positive warnings. Too bad that make(1) does not have a
"?+=" operator.
2005-12-02 08:56:09 +00:00
rillig
01461882e8 Allow direct use of tool names if the tool name is preceded by "${...}/". 2005-12-02 08:44:23 +00:00
rillig
205684d2a5 Unnecessary .undef directives in Makefiles can be fixed automatically if
all mentioned variables have been used in .for loops before.
2005-12-02 08:26:52 +00:00
rillig
dce6142cda All *.mk and Makefile* files can now be fixed automatically. 2005-12-02 08:08:36 +00:00
wiz
9dba4230f6 Mark USE_RSAREF2 for removal after 2005Q4. 2005-12-01 20:21:55 +00:00
wiz
382d475f21 Move USE_OPENLDAP from makevars.map to deprecated.map. 2005-12-01 20:13:16 +00:00
wiz
8958652d15 Move USE_INN from makevars.map to deprecated.map. 2005-12-01 19:48:05 +00:00
wiz
1c6d543c75 Move USE_OSS from makevars.map to deprecated.map. 2005-12-01 19:20:14 +00:00
wiz
c79f85ac70 Move USE_XFACE from makevars.map to deprecated.map. 2005-12-01 19:11:20 +00:00
wiz
3bfed04ca6 Move USE_SJ3 and USE_WNN4 from makevars.map to deprecated.map. 2005-12-01 19:08:15 +00:00
wiz
7f19d70f3b Move some obsolete variables from makevars.map to deprecated.map. 2005-12-01 18:26:01 +00:00
rillig
0d56f2ccee - RCS tags that appear in the @@ lines of patches in unified diff format
can be fixed automatically.
2005-12-01 17:00:52 +00:00
rillig
b1429f5adb - In resolve_relative_path(), PKGSRCDIR is replaced with $pkgsrcdir.
- In checkline_relative_path(), an info message is generated if a filename
  could not be resolved completely.
2005-12-01 16:11:27 +00:00
rillig
d9fbb06633 Unified the handling of relative pathnames and suppressed an error message
that files containing ${FOO} could not be found.
2005-12-01 15:21:56 +00:00
rillig
6354c2df6d ... and another fix for the same problem ... 2005-12-01 14:31:24 +00:00
rillig
b6c7e3f3b1 Bugfix for revision 1.402, in which the check for relative pathnames has
been rewritten.
2005-12-01 14:14:49 +00:00
rillig
dc15fda19c Adjusted the version number to the one that has been announced. (4.49 =>
4.48.)
2005-12-01 14:07:23 +00:00
rillig
924a4f8968 - Added the subroutine checkline_relative_path().
- Added a check for .include lines in all Makefiles and *.mk files to make
  sure that only existant files are referenced and that pkgsrc packages do
  not contain references to packages in pkgsrc-wip.
2005-12-01 14:01:59 +00:00
rillig
9d462108c7 Updated pkglint to 4.48.
Changes since 4.47:
- Output warnings for partial RCS tags in patch files.
- Added many warnings concerning Makefile directives and make targets.
2005-12-01 13:44:11 +00:00
rillig
d0c51b549c - Improved coverage of Makefile checks. Now every line of a Makefile or a
*.mk file is checked.
- Added warnings for unusual make targets. Everything except the usual
  {pre,do,post}-* targets is considered unusual. Exceptions may be declared
  in the Makefile using ".PHONY".
- The directives are checked to contain arguments if and only if needed.
- The .ifndef and .ifdef directives are marked as deprecated because
  the parsing algorithm of NetBSD's make is so bad that it cannot
  distinguish ".if" from ".ifdef".
- Added notes whenever ".undef" is used with a variable that had been used
  in a ".for" loop before. Undefining the variable is simply unnecessary.
2005-12-01 13:40:39 +00:00
rillig
18b653a43b - Made the check for spurious RCS tags in patches less strict. Now it finds
partial tags like $NetBSD:... that don't have a trailing "$".
2005-12-01 09:03:00 +00:00
rillig
8db730a262 - Clarified the documentation of the --import command line option. 2005-12-01 08:45:37 +00:00
rillig
8f38ceeec1 Updated pkglint to 4.47.
Changes since 4.46:
- Made the --explain command line option work.
- Added many explanations for existing diagnostics.
- Improved the diagnostics.
- In --autofix mode, no backup files are created anymore.
- Temporarily disabled the check for direct use of tool names.
- Fixed some false positive warnings.
- Added a check for the use of absolute pathnames in shell commands.
2005-12-01 04:11:56 +00:00
rillig
b8dbe27051 Replaced the DESCR from the year 2001 with a current one, since pkglint has
changed since that time.
2005-12-01 04:05:36 +00:00
rillig
5336c8a86d Fixed two typos. 2005-12-01 03:12:09 +00:00
rillig
34fc9c76f2 - Reintroduced the check for absolute pathnames in shell commands. This
check had been removed some time ago due to the huge number of false
  positives. Now that pkglint can parse shell commands quite well, it
  has been reintroduced, as absolute pathnames often indicate unportable
  features of a package. To implement this check (and a few others)
  accurately, the whole code for checking shell commands has been
  rewritten as a finite state machine.
2005-12-01 03:10:16 +00:00
rillig
36c0219841 - Disabled the check for direct use of tool names completely, as there are
two different kinds of tools in pkgsrc, which need different checks.
2005-12-01 01:45:54 +00:00
rillig
b8deaf4629 - Fixed a bug that had been introduced in revision 1.391, preventing
warnings that LIST+=FOO=${FOO} should rather be LIST+=FOO=${FOO:Q}.
  The cause was that I had added a capturing group in a regular
  expression that also contained a back reference (\2). Adjusted the
  back reference to \3. (This is the only place in pkglint where such
  back references are used, so I don't have much experience with them.)
2005-12-01 01:19:30 +00:00
rillig
6f1ef6bc47 - Added __STDC__, __GLIBC__ and __INTERIX to the list of known macros.
- The macro __sparc__ should be replaced with __sparc, so that the code
  works with SunPro, too.
2005-11-30 20:16:15 +00:00
rillig
659e0368d9 - Removed the unnecessary constant conf_rcsidstring. 2005-11-30 19:53:37 +00:00
rillig
4f356b467c - Added CFLAGS and CPPFLAGS to the list of variables that may contain the
names of tools instead of the tool variables.
2005-11-30 19:23:43 +00:00
rillig
6009d7d95c - Added an explanation for the warning about MKDIR => INSTALL_*_DIR. 2005-11-30 19:19:25 +00:00
rillig
7ade6c222e Updated pkgse to 0.3.
Update provided by the maintainer in PR 32189. He says that version 0.2
does not work anymore.
2005-11-29 10:21:05 +00:00
schwarz
68b7d980c7 added support for systems such as IRIX 5 that do not have _POSIX2_RE_DUP_MAX
defined. Changes approved by grant.
2005-11-28 20:47:29 +00:00
ben
92973d6092 Correct PAX_CMD to be pax. 2005-11-28 01:50:21 +00:00
rillig
10d9025714 - Restrict the autofix changes to apply only if the whole ShellWord
matches.
2005-11-28 00:33:55 +00:00
rillig
b25d847872 Updated pkglint to 4.46.3.
- Added the $line->replace() method for a convenient way to achieve simple
  autofix tasks.
- When autofixing, no backup file is created (it had been created before).
  1. Usually "cvs diff" is available.
  2. All current autofixed changes are trivial.
  3. The fixed file is first written to disk in a new file and then renamed
     to the original file, greatly reducing the risk of data loss.
- Fixed a bug in checkdir_package(): In the call to load_package_Makefile(),
  the last parameter had not been passed by reference, but by value.
  Luckily this had not influenced any other part of pkglint.
- While there, I noticed that it is not necessary to pass some subroutines
  the lines of all included Makefiles, so I removed that parameter.
2005-11-27 23:48:01 +00:00
rillig
75e8487cc6 - Renamed the type PlatformTuple into PlatformTriple.
- Added an explanation for invalid PlatformTriples.
2005-11-27 21:18:43 +00:00
rillig
cff72c8550 - Imported the explain() subroutine into ::main.
- Made pkglint's wording more polite ("Use" => "Please use").
2005-11-27 21:10:20 +00:00