Commit graph

2338 commits

Author SHA1 Message Date
rillig
cf3ce2644e - Even if the type of a variable is guessed based on its name, report it
as untyped when in --debug mode. This allows the --debug mode to be used
  for detecting spelling mistakes.
2006-02-13 15:20:22 +00:00
rillig
860a0bd4e3 Correctly handle Python and Ruby prefixes in binary package names. Patch
provided by YOMURA Masanori in private mail.
2006-02-12 18:35:59 +00:00
rillig
fec6a92aae - ${COMPILER_RPATH_FLAG} should be used instead of the various -Wl,...
flags.
- [Brackets] are allowed in pathname masks.
2006-02-12 12:10:13 +00:00
rillig
3575f7b1eb - Changed the wording of the warning message for misquoted variables. The
wording had been completely mysterious. Now it gives a direct advise on
  how to fix the problem.
2006-02-11 20:58:08 +00:00
rillig
d78a085b17 - Removed duplicate definition for LIB_DEPENDS. 2006-02-11 19:49:58 +00:00
rillig
9021008619 - MANDIR is deprecated. Use PREFIX/PKGMANDIR instead. 2006-02-11 19:29:39 +00:00
rillig
e5d84f7208 - Added a backtrace() subroutine that prints a backtrace when debugging
mode and very verbose mode are activated. Currently unused, but it's
  handy to have it defined.
- Removed two subroutine calls that had resulted in duplicate warnings.
- Variables whose names end in _VAR may appear inside double quotes.
2006-02-11 16:14:40 +00:00
rillig
1c9ae5d76c - Added TOOLS_DEPMETHOD. 2006-02-11 16:12:26 +00:00
rillig
7135541b60 - Absolute pathnames are interpreted as such when pkglint checks whether
the file exists or not.
2006-02-11 12:47:05 +00:00
rillig
8ec9cc0783 - Recognize "set -e" even when it is hidden by other options, like
"set -eu".
2006-02-11 11:55:19 +00:00
rillig
9bcca64f85 - PKGNAME may appear in double quoted shell strings. 2006-02-11 11:53:21 +00:00
salo
21686515f8 Welcome to 1.26:
- add MAKEROOT_HOOKS, a whitespace separated list of functions
  or external scripts to be executed after the sandbox is created,
- be more verbose about hooks execution,
- run hooks only when they are defined.

ok <jmmv>
2006-02-10 23:41:20 +00:00
salo
9b0c71935c Add LIBKVER_STANDALONE_PREFIX to _TEMPLATE_VARS so it will appear
in the template. (hi seb!)
2006-02-10 23:36:12 +00:00
rillig
139bcdc38c - Don't warn if shell variables appear unquoted in ``for'' loops. 2006-02-10 12:49:22 +00:00
rillig
acca5866d1 - New error: The Solaris /bin/sh cannot handle "cd" inside conditionals. 2006-02-07 22:10:20 +00:00
rillig
e661eea073 - ../../pkgtools/x11-links/buildlink3.mk must not be included directly. 2006-02-07 21:44:39 +00:00
rillig
886c0440a6 - The diagnostics are filtered through strxvis(), so that pkglint is able
to check and report warnings even in files of random contents without
  emitting any terminal control sequences.
2006-02-07 09:49:09 +00:00
rillig
675546c4b7 - Not only check for the definition of deprecated variables, but also for
using them.
- The :Q operator should not be used in double quotes.
2006-02-07 09:20:17 +00:00
abs
8db20b79d3 Update pkg_chk to 1.76:
Append rather than prepend /usr/sbin:/usr/bin to path, to avoid issues
    on Solaris which has feature-poor ftp in /usr/bin
2006-02-06 12:44:08 +00:00
rillig
d62b095666 Updated pkglint to 4.56.
Changes since 4.55:
- Avoided false positive warnings about bsd.prefs.mk being required before
  using buildlink3.mk files.
- Restricted the files that are checked for absolute pathnames in patch
  files.
- Some tools that are often used as ${TOOLNAME} need to be explicitly
  added to the USE_TOOLS variable. When complaning about their direct
  use, add a proper advice.
- Readded all the deprecated variables. The warnings will have to stay
  longer than just three months.
2006-02-06 10:11:34 +00:00
rillig
5fab31e375 - Reworded two occurrences of "unportable". They sounded too harsh. 2006-02-06 10:07:23 +00:00
rillig
f017b5590f - Don't emit an extra warning if a tool should be added to USE_TOOLS. Just
append it to the previous line.
2006-02-06 09:46:42 +00:00
joerg
5911def816 Recursive revision bump / recommended bump for gettext ABI change. 2006-02-05 23:08:03 +00:00
rillig
e47296e901 Readded almost all variables that had been here in the past. We cannot
force the developers to learn all pkgsrc changes every three months, so
it's better to keep the warnings for a much longer time. I don't know
yet what "much longer" exactly means.
2006-02-05 00:05:39 +00:00
rillig
8b2f8a458e Pinned down the collected problems of the current pkglint development. 2006-02-04 04:10:12 +00:00
rillig
0514bb16a6 * Many of the checking routines need some context to provide better
warnings. For example, checkline_foo() may need to know what has
  happened in the file before that line.
2006-02-04 03:39:40 +00:00
rillig
abd8089cf7 - Some tools that are often used as ${TOOLNAME} need to be explicitly
added to the USE_TOOLS variable. When complaning about their direct
  use, add a proper advice.
2006-02-04 03:37:08 +00:00
rillig
05451e4af6 - bsd.prefs.mk does not need to be included before BUILDLINK_DEPMETHOD gets
assigned using the "?=" operator, since these variables are not meant to
  be set by the user.
- Restricted the files that are checked for absolute pathnames in patch
  files.
2006-02-02 20:50:02 +00:00
joerg
41ad43f789 Wish for warning about BUILD_USES_MSGFMT being used without
devel/gettext-lib/buildlink3.mk being included. This is often,
but not always incorrect.
2006-02-02 17:41:57 +00:00
rillig
619bb5ab6e Updated createbuildlink to 3.10.
The last line is now indented with <tab> instead of six spaces. This
prevents many pkglint warnings and also looks better.
2006-01-31 03:35:35 +00:00
rillig
8ade92fcb2 Updated pkglint to 4.55.
Changes since 4.54:
- -Wvarorder works now as expected.
- distinfo files are checked more strictly.
- Reduced the number of false positives.
- Make(1) variables of the form $(...) are detected properly.
2006-01-30 09:35:13 +00:00
rillig
75562fa202 - Added a hack to be able to parse nested make(1) variables like
${TOOL.${t}}. They just extend up to, but not including the next space or
  quote character.
- log_debug() is used for printing debugging info, not log_error().
- Even if NO_CHECKSUM is set, distinfo files may exist if the package has
  patches. Noted by salo.
2006-01-30 01:26:04 +00:00
rillig
16bdee598a - Variables whose name end in DIR, DIRS, FILE, FILES, as well as PATH,
PREFIX, LOCALBASE and PKGNAME may appear in single quotes.
2006-01-29 01:29:38 +00:00
rillig
c99dd61732 - PkgLint::String::substring accepts an undefined second argument.
- Added PkgLint::String::match_all.
- Make(1) variables of the form $(...) are detected properly.
- The shellword parser's state is printed in --debug mode.
- In double quoted strings, normal text is processed faster.
- The proof of concept for match_all is done with finding absolute
  pathnames in patch files.
2006-01-28 12:24:20 +00:00
rillig
6282c39496 - Added a comment above get_regex_plurals, explaining what it does. 2006-01-28 11:19:07 +00:00
rillig
20511917c5 - Added PkgLint::Util::min and PkgLint::Util::max.
- Rewrote PkgLint::String::substring to make it look less like a Brainf***
  program. I guess this will greatly improve execution speed.
2006-01-28 11:18:17 +00:00
rillig
6af5ebf4c7 - Removed PkgLint::Util::match.
- Added PkgLint::Match, which represents the result of matching a regular
  expression against a PkgLint::String.
- Fixed the arguments to substr in PkgLint::String::substring.
- Added PkgLint::String::match.
- Added a proof of concept in checkfile_patch, in the warning about RCS
  tags. Run pkglint -s --klickibunti to see it.
2006-01-28 11:11:49 +00:00
rillig
0d54162e3d - Found the one variable that slipped through when renaming $file to
$fname.
2006-01-27 02:25:52 +00:00
rillig
a45550b4ce - Fixed inconsistent use of white-space. 2006-01-27 00:56:26 +00:00
rillig
825e4abfb6 - Reformatted simple getter/setter methods to save some space. 2006-01-27 00:55:08 +00:00
rillig
48fa42a5a7 - Globally renamed all variables called $file into $fname. The identifier
$file is reserved for variables of the type PkgLint::File.
2006-01-27 00:48:57 +00:00
rillig
f833e97ec7 - Added the two data types PkgLint::File and PkgLint::Location. I will need
them soon.
2006-01-27 00:07:07 +00:00
rillig
3a4982c5f2 - Added the PkgLint::Util::match function that matches a string against a
regular expression and saves the values of the volatile @- and @+ arrays.
2006-01-26 23:05:49 +00:00
rillig
482bedac8b Even in quick-install mode, the self test should be run. 2006-01-26 16:20:45 +00:00
rillig
95d3203cb2 Added a ``quick-install'' target that allows me to install pkglint in three
seconds instead of 40.
2006-01-25 22:04:26 +00:00
xtraeme
391437abe6 Fix false positives about the test that checks for pkg-config files
in WRKSRC. Now it works properly.

Bump to 1.33.
2006-01-25 05:10:00 +00:00
rillig
f43a67d266 - In --debug mode, all variable assignments that occur when the package
Makefile is read in are logged to give further aid in debugging.
- Warnings about PKGNAME and DISTNAME are anchored at line numbers instead
  of the package Makefile.
2006-01-25 00:23:48 +00:00
joerg
fa0e987ec8 Add conditional code to ignore the non-numeric part of an OS version
for the sake of compatibility tests in pkg_add.
E.g. DragonFly versions like
        1.4.0-RELEASE
are reduced to
        1.4.0

This code is currently enabled for DragonFly only.
2006-01-25 00:20:09 +00:00
rillig
365204f1fe - As "set -- $i" is often used for splitting variables, don't warn if shell
variables appear unquoted here.
2006-01-24 20:41:07 +00:00
rillig
4dfa584a87 - In shell variable assignments, no quoting is needed. 2006-01-24 20:26:11 +00:00
rillig
ec6e11887d - Accept "\"...\"" as valid CPP macro, as some old configure scripts need
it that way. In --debug mode, a warning is printed.
2006-01-24 20:07:54 +00:00
rillig
972b1c15e8 - Made the parser for distinfo files stricter. It can catch mismatched
filenames now.
- MD5 checksums are marked as deprecated.
- Warnings from distinfo files now appear correctly sorted.
2006-01-23 01:51:46 +00:00
rillig
f08ac4fcfb - Made -Wvarorder work like stated in the documentation. I had replaced the
wrong ``false'' with $opt_warn_varorder.
- Fixed the detection of $seen_Makefile_common.
2006-01-23 00:04:50 +00:00
rillig
bc1f74eace - Instead of only allowing the :Q modifier for quoting, allow any modifier
that ends in :Q.
- When NO_CONFIGURE ist defined, REPLACE_PERL does not work.
2006-01-22 23:35:04 +00:00
tron
393e2ba708 Update "rpm2pkg" package to version 2.1.1. Changes since 2.1:
- Fixed GCC 4.x build warning (which would have resulted in an error
  with future GCC versions).
- Depend on newer version of "rpm" package to fix build under Mac OS X.
2006-01-21 20:46:29 +00:00
jlam
758d912e33 Update package Makefile now that bsd.pkg.extract.mk is using the
"extract" script for extraction.  Many cases where a custom EXTRACT_CMD
simply copied the distfile into the work directory are no longer
needed.  The extract script also hides differences between pax and
tar behind a common command-line interface, so we no longer need code
that's conditional on whether EXTRACT_USING is tar or pax.
2006-01-21 18:57:40 +00:00
rillig
6abf92a1f4 Updated pkglint to 4.54.
Changes since 4.53:
- Added about 50 new variables to be type-checked.
- For unknown variables, the type is guessed from the variable name.
- In patch files that patch Makefiles, added lines are checked for
  absolute pathnames.
- Replaced the -Wdebug option with --debug, so that the debugging warnings
  don't show up when using -Wall.
- Many minor improvements.
2006-01-20 13:46:04 +00:00
rillig
46b20cd5dc - Added the -d|--debug command line option, which replaces -Wdebug. The
latter has been removed.
- Added -Wvarorder (default: disabled) to check the ordering of variables
  in simple packages.
- Using ${WRKSRC}/.. is only considered a warning, not an error, because
  there are packages that work nevertheless. Using this construct remains
  discouraged.
- Replaced most of the TODOs in the source code with code that prints
  a warning in --debug mode.
- The characters '.' and '+' are allowed in BuildlinkPackages.
- Variables *_FLAGS and *_ARGS that have their type guessed based on the
  name don't have to be assigned using the += operator.
- Variables that are assigned using the != operator are not checked for
  type compliance.
- README files are not marked as unknown when they appear in a package
  directory.
2006-01-20 13:33:37 +00:00
rillig
07a40aebce Setting BROKEN_GETTEXT_DETECTION to "no" really means "no", so allow it. 2006-01-20 13:03:10 +00:00
rillig
e6e1a0b8eb Despite its name, BUILTIN_FIND_FILES_VAR is a _list_ of variable names. 2006-01-20 12:35:51 +00:00
reed
6491d05a69 Add include/X11/XlibConf.h to xorg list. I noticed and added that
a few weeks ago when I was doing some builds using modular-xorg.
(Now that new Xorg is in, maybe there are some others to add?)

Update version.
2006-01-19 01:05:24 +00:00
rillig
de8b313520 - Added some more state transitions and warnings to the shellword parser.
It has come to the point where almost any further improvement means to
  adopt a real recursive parser.
2006-01-17 23:01:17 +00:00
rillig
97e5b5c2cd - In -Wextra mode, emit warnings if a "?=" operator occurs before
../../bsd.prefs.mk is included. (It is only shown in -Wextra mode
  because it is still quite unreliable.)
2006-01-16 01:37:39 +00:00
abs
59b795ff54 Update pkgtools/pkg_chk to 1.66
Fix incorrect quotation in test
2006-01-15 12:32:56 +00:00
rillig
d2bf446cb1 - Implemented a first prototype of the diagnostics with character-wise
precision in checkfile_patch for the warning for context diffs.
- The --source option produces more condensed output than before.
- The diagnostics with character-wise precision are colored using
  ANSI/VT100 color sequences. Support for other output formats will be
  added later.
2006-01-15 01:35:55 +00:00
rillig
76967e1b58 - The pkgdir variable is only defined when checking a pkgsrc package. For
other directories it is undefined. This avoids some false warnings when
  checking files in pkgsrc/mk/.
2006-01-14 11:56:09 +00:00
rillig
fa01b55c47 - Reduced the number of false warnings for relative directories. 2006-01-14 11:44:04 +00:00
rillig
03370d625a - Unquoted make variables in shell words can be fixed automatically. As
with the change from December 2005, when using this feature, care should
  be taken for variables that are pre-quoted.
- In patch files that patch Makefiles, added lines are checked for
  absolute pathnames.
2006-01-14 01:48:08 +00:00
rillig
a1ca3d5c5a Added LIBTOOL_OVERRIDE. 2006-01-13 00:59:39 +00:00
rillig
913ad8e379 - When guessing the type of variables, *_DIRS and *_FILES are both of the
type List of Pathmask.
2006-01-13 00:42:08 +00:00
rillig
59005a739b - Added about 50 variable types to makevars.map.
- Added some variable types.
- For unknown variables, the type is guessed from the variable name.
- Added more checks for relative pathnames.
- Improved the shell parser once more.
2006-01-12 22:28:06 +00:00
wiz
cf52b6b4c0 Bump date for some new features. 2006-01-12 21:50:43 +00:00
joerg
599b02b412 When creating the sorted list of binary packages, "ls -t *.tgz" can
easily overflow the argument space e.g. on DragonFly. Replace this
statement with "ls -t | grep '\.tgz$'" to remove this constraint.
2006-01-12 21:17:16 +00:00
joerg
ae610a4540 Add runtime dependency of xpkgwedge on imake and xmkmf.
When using non-native X11, xpkgwedge could be installed before imake
and host.def en up with just the xpkgwedge.def include. This means
that ProjectRoot as set by xorg's host.def is not used and wrong
path names are used. This run time dependency is the easiest way to
ensure proper order, but isn't perfect. Just providing a fixed host.def
and a secondary include file for Lesstif to modify breaks with
USE_XPKGWEDGE=NO, so keep the old approach.

Discussed with jlam@
2006-01-12 19:02:34 +00:00
rillig
16a2cd8def Updated pkglint to 4.53.
Changes since 4.52:
- New warning categories "debug", "space", "quoting" that can be selected
  independently.
- Improved the parsers for shell commands and shell words.
- Added warning for using $(...) in shell programs, as the Solaris /bin/sh
  doesn't support it.
- Added some warnings about quoting.
- Some other minor changes.
2006-01-12 14:05:50 +00:00
rillig
4eed0be377 Added APACHE_MODULE. 2006-01-12 13:59:42 +00:00
rillig
0740dd8c6c - Allow '^' to appear unquoted in shell programs, although it ``is an
obsolete synonym for the pipe operator "|", so you must protect it with
  quotes''. (Kernighan/Pike, The UNIX Programming Environment, 1984.)
- $@ is another well-known shell variable.
- All substitution arguments to ${SED} and ${PAX} should be quoted whether
  they contain special characters or not.
2006-01-12 13:51:54 +00:00
rillig
9af416c16b - The shell variables $!, $# and $? are recognized as such. All other
occurences of a $ in double quoted strings result in a warning.
2006-01-12 13:19:57 +00:00
rillig
c0fc81f666 - Improved the parsers for shell words and shell commands. Parsing errors
are only shown in -Wdebug mode, as the diagnostic messages are too
  cryptic.
- Added detection for the $(...) replacement for backticks, as the Solaris
  /bin/sh cannot handle them.
2006-01-12 13:01:47 +00:00
rillig
cb558f2a78 - Defining and using make variables starting with an underscore is only
worth a warning, not an error. There are worse things at the moment that
  need to be fixed.
2006-01-12 10:39:30 +00:00
rillig
4d9663f2a9 - Added three warning categories "debug", "quoting" and "space" that can
be enabled independently. They are all disabled by default.
- A note is emitted if variable definitions are aligned using space instead
  of tabs.
2006-01-12 10:32:40 +00:00
rillig
2ef3b243e0 - Added the package PkgLint::String, which will be used for improving the
precision of the diagnostics. It is currently unused.
2006-01-12 04:31:30 +00:00
rillig
e6e6cf9fb7 - Added plist-clash.pl to the list of files that have @PERL@ replaced. 2006-01-12 04:27:58 +00:00
rillig
fb188361c0 - In the shell command parser, go to state SCST_CONT instead of SCST_START
after parsing the command line options of ${INSTALL}.
- Don't warn for CFLAGS that reference other make variables.
2006-01-11 22:57:10 +00:00
rillig
4907cb1168 - In resolve_relative_path, the depth of the path should only be adjusted
in about half the cases -- added an additional parameter.
2006-01-11 12:25:19 +00:00
rillig
271edbd2ec Fixed spacing issue. 2006-01-11 11:42:27 +00:00
rillig
53e93b0ab9 - Renamed PkgLint::FileUtil::Line to PkgLint::Line in preparation to some
upcoming changes.
2006-01-11 04:29:12 +00:00
christos
cd18fc91dc Use ${ABI} for library files, patterned after what SGI does. This makes
X11 packages work on amd64 linux boxes. From Benjamin Shi.
2006-01-10 16:56:42 +00:00
rillig
2cd8334aa7 Updated pkglint to 4.52.
Changes since 4.51:
- The occurence of a symlink other than work* inside the pkgsrc tree is
  not an error, just a warning.
- SUBST_MESSAGE should not be quoted.
- If -Wextra is enabled, all make variables that are used in shell commands
  are checked for proper quoting.
- Improved the parser for shell commands.
- Some other minor changes.
2006-01-10 00:52:00 +00:00
rillig
c24a72897b Fixed the simple part of the pkglint -Wall warnings. 2006-01-09 23:39:55 +00:00
rillig
1d78045e51 - Even in an unquoted shell word, variables should be quoted. For example,
${PREFIX:Q}/foo.
- The semicolon after the "for" loop in the shell does not mean that some
  exitcode is ignored, so don't print warnings for it.
2006-01-09 23:14:45 +00:00
rillig
9bb9aae442 - Only check make variables for deprecation and $(...) instead of ${...}. 2006-01-09 03:22:45 +00:00
rillig
043613d277 - Added "Please use ${FOO} instead of $(FOO)."
- It is an error if the COMMENT has the default value from url2pkg.
2006-01-09 02:47:56 +00:00
joerg
a32d8f5c53 Unbreak by adding NO_BUILD=yes. 2006-01-08 21:00:22 +00:00
rillig
2464072040 - Rewrote the state transition of the shell command parser. The source
code now needs less lines than before. For unknown state/shellword
  combinations, warnings are printed (currently none).
2006-01-08 15:55:13 +00:00
rillig
74e4928049 - In shell commands, "case" statements are parsed properly. (Fixes a false
positive warning in mk/subst.mk.)
- Improved debugging support for parsing shell commands by printing the
  current state and word in -vv mode.
2006-01-08 14:14:36 +00:00
wiz
d182d0d618 Sync with usr.sbin/pkg_install 1.58:
Use MaxPathSize instead of PATH_MAX.
2006-01-08 12:25:06 +00:00
rillig
4d0e362738 - Enabled the quoting warning for SUBST_MESSAGE (this time the other
direction: it had been quoted too much in the past).
2006-01-07 23:29:23 +00:00
rillig
6e63ea31f3 - Added SUBST_MESSAGE to the list of checked variables. The plan is to
remove the quoting from the definitions in the Makefiles.
- When checking with -Wall, print warnings about possibly misquoted
  variables in the various states of the shell word parser.
2006-01-07 20:00:00 +00:00
seb
5ad846112f Update to version 1.25.
Fix libkver support for pkg_comp's build, auto and install targets,
Reported broken and fix tested by salo@.

Also ensure libkver is built, if needed, even before digest.

Approved by jmmv@
2006-01-06 23:08:51 +00:00
rillig
6bf7eb18c8 - Moved the code for checking macro names in patch lines into its own
subroutine, as it has no code that is specific to patch files.
2006-01-06 21:06:06 +00:00
rillig
dcf63d1b4b Fixed pkglint warnings about incorrect quoting and unsorted PLIST. 2006-01-06 19:46:26 +00:00
rillig
d66e28a8c5 - s/existant/existent/ 2006-01-06 18:02:05 +00:00
rillig
b29b41bfc1 - Renamed checkfile_patches_patch to checkfile_patch. 2006-01-06 17:43:18 +00:00
joerg
90ac0fb998 Use SUBST framework. 2006-01-06 17:28:20 +00:00
rillig
7fa0c4e8e9 Added an RCS Id and an introductory comment. 2006-01-06 17:24:38 +00:00
joerg
a11c0f7879 Use SUBST framework. Use PERL5 instead of ${PREFIX}/bin/perl to get
the location of the interpreter.
2006-01-06 17:10:58 +00:00
joerg
98faef6634 Use SUBST framework. 2006-01-06 16:58:32 +00:00
rillig
8005613009 - It is not an error to have symlinks in pkgsrc -- just a warning. Any
directory entry besides regular files, directories and symlinks is still
  an error.
2006-01-06 13:42:47 +00:00
wiz
dc560ec778 Depend on cdrtools instead of cdrecord. Bump PKGREVISION.
Update some messages/comments.
2006-01-05 23:29:04 +00:00
xtraeme
a429287789 Remove GNU Autoconf's configure.lineno file if it's there. 2006-01-05 17:42:24 +00:00
xtraeme
40bf851429 Move the PKGCONFIG_OVERRIDE lines after USE_TOOLS, GNU_CONFIGURE, etc. 2006-01-05 17:32:50 +00:00
xtraeme
6c95a6da67 Update to 1.32:
* Don't use ${WRKSRC} for PKGCONFIG_OVERRIDE (it's assigned automatically)
* If there are pkg-config files, now it will add "USE_TOOLS+= pkg-config".
2006-01-05 17:26:54 +00:00
christos
c6761ed17e Handle newer versions of Berkeley DB. Our algorithm is:
- if you have > db1 the probably you have db_185.h which means
  that dbopen is really __db185_open, and we'll prefer that.
- else if you have db1, then you have db1/db.h and dbopen
- else if you have db.h, then this is either the one from db1 and it will
  work with -ldb having dbopen, or it will not.

Note that the compatibility option on __db185_open() will actually not create
or update db1.85/1.86 files, but it will use the current format of the db
library. This compatibility layer is source code only.
2006-01-04 23:33:23 +00:00
joerg
a485b489e3 Ask for warnings so that e.g. CONFIGURE_DIRS has overrides for
config.guess and config.sub as well.
2006-01-03 20:52:27 +00:00
abs
9ca94e98c0 update pkg_chk to 1.64
- Allow -U of filenames on the commandline
2006-01-03 19:00:09 +00:00
rillig
1c0702676a Cleaned up the TODO list. 2006-01-02 10:12:09 +00:00
rillig
0ff3a14888 - For possibly misquoted variables the current shellword state is
printed (-vv only).
- TODO: Decide which variables may be used in which quoting states.
2006-01-02 10:09:03 +00:00
rillig
862032689f * record with each substring its source location to be able to make
even more precise diagnostics
2006-01-02 09:42:52 +00:00
rillig
83f5dee91f Updated pkglint to 4.51. Welcome to the Fahrenheit release.
Changes since 4.50:
- Extended the quoting checks for make variables to shell commands.
- Added a check for unquoted shell variables (only with -Wextra).
- Some other minor changes.
2006-01-02 08:29:55 +00:00
rillig
11b91ee6d2 - Fixed the wording of the message when CONFIGURE_DIRS and friends are
prefixed with ${WRKSRC}. It had been plainly wrong.
2006-01-02 03:02:29 +00:00
rillig
d3a90242d3 - Removed the type guessing code for variables with unknown type, as
this code has led to duplicate diagnostics. It had been misplaced as
  well.
2006-01-02 01:20:31 +00:00
rillig
b42c46442f - Added MESSAGE_SUBST, PKG_GROUPS, PKG_USERS. 2006-01-02 01:18:24 +00:00
rillig
bc5fc19c6f - Unquoted shell variables may appear in for loops. 2006-01-01 22:08:22 +00:00
rillig
08274c2f69 - Uncommented the note that CONFIGURE_DIRS, BUILD_DIRS and INSTALL_DIRS
don't need to be prefixed with ${WRKSRC}, now that there will be no
  more pullups to 2005Q3.
2006-01-01 21:58:12 +00:00
rillig
2d6877dcb0 - Added a check for unquoted shell variables (only with -Wextra). 2006-01-01 21:55:44 +00:00
rillig
bab261e700 - Integrated checklines_patches_patch back into checkfile_patches_patch. 2006-01-01 19:58:36 +00:00
rillig
54171b1096 - Fixed typo: It's __NetBSD_Version__, not __NetBSD_Version_. 2006-01-01 19:07:20 +00:00
wiz
faf65456ad Remove stuff that was marked for removal after 2005Q4. 2006-01-01 18:53:03 +00:00
rillig
be3a661d5b - Added a parser for shell words.
- Added warnings for imperfect quoting style inside double quotes.
- All shell commands are checked for correct quoting of make(1) variables
  in shell assignments like --prefix=${PREFIX:Q} and TMPDIR=${WRKSRC:Q}.
2006-01-01 18:40:12 +00:00
rillig
ea3cb56d30 - Moved the code that checks for valid shell words into its own subroutine
because it will be extended soon.
2005-12-31 15:00:15 +00:00
rillig
068c3c65d5 Updated pkglint to 4.50.
Changes since 4.49:
- Added checks for shell commands whose exitcodes are ignored.
- Added checks for CFLAGS, CPPFLAGS and CXXFLAGS.
- Improved diagnostics.
- Various bugfixes.

Changes to lintpkgsrc:
- Avoided double occurrence of pkg_install.
2005-12-31 14:09:51 +00:00
rillig
816ce58996 Added some variables, strengthened the checks for some other variables. 2005-12-31 14:02:28 +00:00
rillig
5b0ebb51c6 - Restructured the header comment.
- Rewrote the message formatting.
- The indentation of explanations is changed to be always a tabulator
  character instead of depending on the last message.
- In verbose mode, statistics about the frequency of the individual
  messages are printed before exiting.
- The command line option -Wextra enables additional warnings that are
  not enabled by default because I have been told that Alistair would kill
  me for them. :)
- Improved the shell tokenizer by recognizing parentheses.
- Improved checking of pkgsrc-internal files (mostly in pkgsrc/mk).
- Added a (trivial) spellchecker.
- Added checks for shell code that ignores the exitcode of commands.
- Added checks for CFLAGS, CPPFLAGS and CXXFLAGS.
- Avoided false positive warnings for absolute filenames in AWK code.
- Added checks for .for variables.
- Pkglint can check single files in directories that are three levels deep.
  This is mostly useful for checking patch files.
2005-12-31 14:01:46 +00:00
rillig
7255646a18 Since pkg_install appears in the pkg_info listing, there is no need for
special treatment. Reported by Christoph Egger via private mail.
2005-12-31 09:07:22 +00:00
joerg
ff4b54c998 Index: has sometimes different precedence in patch, avoid problems. 2005-12-30 16:27:13 +00:00
jlam
dc9594e09d Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mk
automatically detects whether we want the pkginstall machinery to be
used by the package Makefile.
2005-12-29 06:21:30 +00:00
reed
45d9dae994 Honor PKGMANDIR. 2005-12-27 17:34:53 +00:00
seb
37d945e229 Lower expectations, both others' and mine: relinquish stewardship 2005-12-27 13:54:57 +00:00
rillig
1ddd52875f lintpkgsrc needs pkgtools/digest, so readd it to the DEPENDS. 2005-12-18 15:20:21 +00:00
rillig
b776d7dde2 Synchronized the way the checksum of patch files is computed with the one
that is used in the rest of pkgsrc. This avoids false positive errors.
2005-12-18 14:25:40 +00:00
jlam
2558c0291d Change my MAINTAINER email address to the one I've been using for
pkgsrc work.
2005-12-17 05:20:21 +00:00
dillo
f9639751a9 Fix precedence botch which breaks invocation using source. 2005-12-13 15:26:05 +00:00
wiz
525916457d NetBSD capitalization police. 2005-12-13 12:03:47 +00:00
rillig
18cff5b614 + ERROR: Other Makefiles must not be included. Use Makefile.common instead. 2005-12-12 21:36:45 +00:00
wiz
7923936df5 Sort options in SYNOPSIS, bump date for -S. 2005-12-12 14:03:20 +00:00
dillo
6ff6eb177b Add new option -S to create summary file of binary package directory.
Use this summary file to support using remote binary packages.

Okayed by agc and abs.
2005-12-12 13:36:37 +00:00
rillig
9c2bd09a33 * check quoting in CFLAGS+= -DPREFIX=\"${PREFIX:Q}\" 2005-12-11 22:07:46 +00:00
rillig
80b3d9a596 Improved diagnostic of the warning for @comment in variables. 2005-12-09 08:40:40 +00:00
rillig
5e79129a20 - Improved the wording of the explanation regarding relative directories.
- Fixed a bunch of format string bugs. (As this is not C, these were
  only bugs, not vulnerabilities. ;))
2005-12-08 21:13:49 +00:00