Commit graph

2218 commits

Author SHA1 Message Date
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
rillig
4c81669b0b Updated pkglint to 4.36.2.
- Improved diagnostics for URLs that are not strictly pkgsrc-compliant, as
  requested on tech-pkg.
2005-11-27 20:25:49 +00:00
rillig
d001e9dfc8 Removed trailing white-space. 2005-11-27 20:12:44 +00:00
rillig
3980bc7be6 Updated pkglint to 4.46.1.
- Marked ALLFILES as deprecated.
- Degraded white-space warnings to notes.
- Added many explanations for the diagnostics.
2005-11-24 21:51:10 +00:00
wiz
97a4a4ee6b Update to 1.1: Install manpages 2005-11-24 18:49:07 +00:00
rillig
ddc303f3f9 Bugfix.
- Removed the unused variable $opt_explain. It should really have been
  PkgLint::Logging::set_explain().
- In accordance to my personal idea of beauty, the --explain messages are
  indented as deep as the last diagnostics, and not by a single "\t".
2005-11-24 10:47:51 +00:00
rillig
f468c4d5c8 Implemented the --explain option and the checks for CPP macros in patch
files. New TODO items:

* extract the DISTFILES if they exist and check all files in them for:
  - security holes,
  - coding style violations,
  - possible unportable constructs
2005-11-24 10:18:50 +00:00
rillig
556eb8885a Updated pkglint to 4.46.
Changes since 4.45:
- Added the type ShellWord.
- Added quoting checks for variables that are appended to a
  List of ShellWord.
- Multiple -v increase the verbosity.
- The --autofix option is no longer undocumented, but still experimental,
  as this is the only part of pkglint that can modify external files.
- Added an --explain option that provides additional help for the
  diagnostics.
- Added checks for unportable CPP macro names in patches.
- Updated the documentation.
2005-11-24 10:16:54 +00:00
rillig
428d5674d5 - Not all possible plural variables have to be quoted with
:M*:Q instead of a simple :Q. Currently only the GNU configure
  scripts need the white-space stripped, so it's enough to quote
  those (see regex_gnu_configure_volatile_vars in the source).
2005-11-24 08:46:34 +00:00
rillig
681277d002 Updated pkglint to 4.45.3.
- Added detection of redirection operators and comments to the
  regex_shellword constant.
- Changed the naming conventions for list data types. Now List simply
  means a list. List+ means a list that should only be modified using
  "+=", not "=". List! means an internal list. And List!+ is the
  combination of both.

  The distinction is necessary because of the introduction of
  redirection operators in the regex_shellword. When checking the data
  type of list elements, the lists are split up into shell words instead
  of simply using split(). This leads to much better results.
- When splitting a variable value or shell command into words, anchor the
  regular expression at the beginning of the string.
2005-11-24 08:05:01 +00:00
rillig
a44445fa8e Improved, reindented and commented the regular expression for shell words. 2005-11-24 01:22:35 +00:00
rillig
b4a4cd753e Updated pkglint to 4.45.2.
- Removed log_subinfo().
- Added log_debug().
- Multiple -v command line options increase the verbosity.
- Added the regex_shellword constant that will allow better parsing of
  shell commands. Currently it is only producing debugging information.
- Long [info] messages have been changed to [debug] messages.
2005-11-23 22:12:03 +00:00
ben
256e66a2e3 Conditionally include header files, and include nbcompat.h
Addresses PR#32149
2005-11-23 14:59:44 +00:00
ben
8926549f00 Sync with src. Remove unused variable argc from apply_perms(). 2005-11-23 14:33:50 +00:00
rillig
fe34e666fb When a list is appended to another list, like MAKE_ENV+=
CFLAGS=${CFLAGS}, check for the correct modifiers. The above is
obviously not correct, as CFLAGS may contain white-space.
CFLAGS=${CFLAGS:Q} is also a little wrong in that it may contain leading
and/or trailing white-space, which must be discarded, too, because the
broken GNU configure scripts cannot handle them correctly. This can be
done using ${CFLAGS:M*:Q}, which first splits CFLAGS into a list of
shell words, then selects all of them and finally combines the words
forming a nicely formatted string without leading and trailing
white-space where all entries are separated from each other by a single
space.
2005-11-23 06:05:52 +00:00
rillig
09ccc37a3a Updated pkglint to 4.45.1.
- Added a new type ShellWord that is used for MAKE_ENV and the like to
  check for invalid FOO="${VALUE}" additions. They really should be
  FOO=${VALUE:Q}, as they may already contain embedded quotes. This is
  especially important for CPPFLAGS and CFLAGS.
2005-11-23 05:18:46 +00:00
ben
f1c7672081 Remove unused variables, fix variable names to avoid shadowing globals,
and add PAX_CMD fallback macro.
2005-11-23 04:49:51 +00:00
ben
df7be8ce2f Reduce the use of the system() function in pkg_install to avoid quoting
problems.  Instead, use exec*() functions.

Replace PUSHOUT() macro and string buffers with a function that
operates on data structures.

If it is necessary to copy files into place from staging area, then use
pax to copy them.

Add functions in pexec.c to create a pipe for sending data to a child
process.  Replace pipe code in create/perform.c with these functions.
Use these functions instead of command-line arguments when copying files
into place from staging area.

Three system() references remain: @exec, @unexec, and vsystem().
2005-11-22 15:44:59 +00:00
rillig
3ffb27719a Updated pkglint to 4.45.
- Fixed perl -T warnings:
  - Replaced $#{@{$lines}} with $#{$lines}.
  - Avoided calls to external programs (sed and digest).
- Removed redundant warning if DISTNAME is set to an invalid package name
  and PKGNAME is not defined.
- Changed dependency from pkgtools/digest to security/p5-Digest-SHA1.
2005-11-21 22:06:30 +00:00
rillig
9cb1e0009d * warn about unportable CPP macros in patches. 2005-11-21 16:56:02 +00:00
rillig
10c9716bc9 Fixed a syntax error. I had forgotten to begin a comment with a "#". 2005-11-21 07:24:51 +00:00
rillig
6efa75eb39 Updated pkglint to 4.44.
Changes since 4.43:
- Removed the remaining code that had been imported from FreeBSD's
  portlint.
- Removed the (undocumented) -Wvague option.
- Removed the -Wexec and -Wparen options. The latter had no effect at all,
  and the former cannot lead to false positives, so it is always enabled.
- Variable names starting with an underscore are reserved for internal
  pkgsrc use.
- Added some more type checks.
2005-11-20 20:09:35 +00:00
rillig
910a64aaed Reworked the in-file documentation on pkglint. Added section headings.
Renamed some subroutines to fit into the general scheme.
2005-11-20 19:58:46 +00:00
rillig
637bf9e082 Removed the (undocumented) -Wvague option. All diagnostics that had been
depending on this option have been converted to modern code, although it
can still be improved.
2005-11-20 19:04:20 +00:00
rillig
c4795a075c Don't print warnings for unknown "empty" directories like pkg/ and scripts/
that occur during "cvs update"s.
2005-11-20 13:59:37 +00:00
rillig
9ba2c80228 Updated pkglint to 4.43.2.
- Renamed the type Dependency to DependencyWithPath.
- Added new types Dependency, PlatformTuple and RelativePkgDir.
- Added some of the common variables to the list of typed variables.
2005-11-20 13:14:17 +00:00
rillig
b06833b0b6 Use $conf_pkgsrcdir instead of hard-coded "/usr/pkgsrc". 2005-11-20 12:32:17 +00:00
rillig
03c36b46c4 Added the $conf_make variable to solve compile-time errors. 2005-11-20 12:27:18 +00:00
rillig
99e0d66756 Updated lintpkgsrc to 4.43.1.
- In BATCH mode, that is for the bulk builds, hardcode PKGSRCDIR as
  /usr/pkgsrc. Otherwise take ${PKGSRCDIR}.
2005-11-20 10:55:43 +00:00
rillig
5cf5e4b62f Don't report *_MK variables as unchecked. 2005-11-20 10:07:45 +00:00
rillig
2348fcf70d As long as pkg_regress is not mentioned in the pkgsrc guide, it does not
deserve to have the pkgsrc guide as a homepage.
2005-11-19 20:41:12 +00:00
rillig
c790505a33 Variable names starting with an underscore are reserved for internal
pkgsrc use.
2005-11-19 19:28:06 +00:00
rillig
e6069e52f8 Code cleanup.
- Removed some of the old checks.
- Replaced some of the old checks with modern code.
- Replaced some of the old checks with TODO markers.
2005-11-19 19:18:56 +00:00
rillig
b92397af64 Replaced the special purpose variable $seen_USE_PKGLOCALEDIR with the
$makevar table. This allows for easy checks that involve more than only
one variable.
2005-11-19 18:26:32 +00:00
rillig
3fa3f9f6a3 Removed the old EXTRACT_SUFX check. 2005-11-19 17:58:12 +00:00
rillig
5a42297464 Don't complain if no MAINTAINER is given. 2005-11-19 17:54:37 +00:00
rillig
316a73bcbe Oops, covered the tracks from last-minute tests. 2005-11-19 17:23:49 +00:00
rillig
562cdf5268 Updated pkglint to 4.43.
Changes since 4.42:
- Reduced the number of duplicate diagnostics when checking multiple files.
  Only diagnostics concerning the current package are printed.
- Added checks for EXTRACT_SUFX and PKG_INSTALLATION_TYPES.
- Added a work-around for the PHP patches warnings.
- PERL5_PACKLIST should not contain references to other variables.
- Added the -s|--source command line option to show the code along with the
  diagnostics.
- Fixed a bug in get_logical_line(); logical lines have not had their
  physical lines attached.
- Deprecated variables are not only checked when they are defined but also
  when they are used.
2005-11-19 17:22:21 +00:00
rillig
9e07829918 Updated pkglint to 4.42.2.
- Added a check that PERL5_PACKLIST does not contain references to other
  variables. Some packages have ${PERL5_SITEARCH} in it, which results in
  a double slash, and the CHECK_FILES framework cannot handle this.
2005-11-19 13:34:41 +00:00
grant
f1ad5d68f5 revert last, and apply the simpler fix to the MAKEEXTRALIST macro in
NetBSD libc from martin@
2005-11-18 09:03:06 +00:00
grant
6e2b4f07ec pass const empty string to MAKEEXTRALIST macro instead of the
anonymous empty string. the macro uses the argument multiple times
and the logic relies on identical strings having the same address,
which is compiler dependent and not guaranteed to be the case.

problem observed with pax(1) built with sunpro 11 on Solaris.

from segv@netctl.net in PR pkg/32097.
2005-11-18 03:31:11 +00:00
rillig
b4723c94c6 If there are no files to clean, do nothing. 2005-11-17 22:58:36 +00:00
rillig
4abfc16536 Updated pkgclean to 20051116.
- Replaced the C implementation by a shell program, as the latter is
  more portable.

Fixes PR 26970.

Ok'ed by maintainer.
2005-11-17 22:30:09 +00:00
erh
31448b1b1c Fix for part of PR#32092: add SKIP_AUDIT_PACKAGES=yes so pkg_install can
be updated even if audit-packages is out of date.  The audit-packages package
already has this.
2005-11-17 17:05:30 +00:00
rillig
c4f8cd4a72 Added a dependency on libnbcompat to allow building on Solaris easier.
(See PR 23746.) It still needs work in the area of Berkeley DB
selection. Bumped PKGREVISION.
2005-11-17 17:02:04 +00:00
seb
5aa7ec82d4 Update to version 1.24.
When installing libkver, as required when NETBSD_RELEASE is set
in a pkg_comp configuration, do so in a special purpose prefix and use
it from there.
This is useful when running a bulk build in the chroot or simply
removing all installed packages in it: the libkver package won't
be removed hence the chroot will still be usable.

Approved by MAINTAINER.
2005-11-16 01:31:35 +00:00
rillig
a1247dd801 Values in SUBST_CLASSES may be tool names. 2005-11-15 13:48:42 +00:00
rillig
3f52be8402 USE_JAVA2 may be "YES", too. 2005-11-15 13:42:50 +00:00
rillig
e0161be7eb Removed the (vague) check for "nb\d+" in DISTNAME. 2005-11-15 13:37:55 +00:00
rillig
77d1409d5f * mention the SUBST framework whenever ${SED} is used. 2005-11-15 10:30:54 +00:00
rillig
e60dd8de73 Updated pkglint to 4.42.1.
Added a work-around for the warnings from PHP modules when including
lang/php/ext.mk.
2005-11-15 03:10:20 +00:00
rillig
fcc9603807 Don't hide errors in the post-install stage. 2005-11-15 01:55:53 +00:00
rillig
57807fc95b MANINSTALL is a user-settable variable and thus must not be defined by
the package Makefile.
2005-11-15 01:55:00 +00:00
rillig
b8c93f2e88 The last change was a bad idea. Reverted it partly. Now pkglint -I shows
the whole file with included files again, but the checks are only done
against the main Makefile.
2005-11-14 16:49:20 +00:00
rillig
ca37329f8e * warn about the use of ${WRKDIR:=...}, as this construct should only
be used with lists.
2005-11-14 13:07:05 +00:00
rillig
84daccf125 WRKSRC is of type WrkdirSubdirectory, but no new checks are added. 2005-11-14 13:03:32 +00:00
rillig
b833d407cc - EXTRACT_SUFX is of type DistSuffix. 2005-11-14 12:51:57 +00:00
rillig
5b6ded4f08 The readmakefile() subroutine only returns the lines of the main Makefile
in the $all_lines parameter, but the whole text of the included files in
the $whole parameter.

This change avoids duplicate diagnostics for *.mk and Makefile* in the
package directory. A side effect is that package authors only get the
diagnostics they can probably fix, as diagnostics from included files are
not given.
2005-11-14 12:32:58 +00:00
rillig
6f16fd47e3 * avoid duplicate warnings. 2005-11-14 11:47:07 +00:00
rillig
b4f8c1132f Updated pkglint to 4.42.
Changes since 4.41:
- In .mk files, line continuations are properly handled.
- An open bracket is allowed in variable and tool names.
- Added checks for ALTERNATIVES and INSTALL/DEINSTALL files.
- By default, don't check files in ${FILESDIR}.
- Warn about unknown file and directory names.
2005-11-14 11:45:52 +00:00
dillo
0401832751 Sync with src/usr.sbin/pkg_install:
Fix first part of PR 32068: pkg_info -Q broken for local binary packages
        Add BUILD_INFO_FNAME to the files to extract for SHOW_BI_VAR.
Bump version.
2005-11-14 09:42:38 +00:00
dillo
71bd927ebf Remove obsolete file from OBJS also.
Fixes PR 32071 by HEO SeonMeyong.
2005-11-14 09:17:40 +00:00
seb
de47c7958b Rename LIBKVER_STANDALONE_DIR to LIBKVER_STANDALONE_PREFIX. 2005-11-14 08:58:51 +00:00
rillig
79c6c6d064 * detect spelling errors in variable names 2005-11-14 06:35:36 +00:00
rillig
250b0281ae - File::stat is used instead of the -d and -f operators to get the file
mode in checkitem().
2005-11-14 05:57:54 +00:00
rillig
72af8b9eac When checking for the existence of a dependency, use
${pkgsrcdir}/${PKGPATH} instead of ${current_dir}/../../${PKGPATH}.
2005-11-14 04:47:44 +00:00
rillig
bd4c20a0a1 - Allow an opening bracket in variable names and tool names. 2005-11-14 04:38:27 +00:00
rillig
08701c7d25 When loading .mk files, lines are properly converted into logical lines. 2005-11-14 04:30:31 +00:00
rillig
bf194ac42e Made sure that global variables are only accessed if they are defined.
Checking individual files is no longer experimental.
2005-11-14 04:24:14 +00:00
rillig
bc0aa35a22 Updated pkglint to 4.41.
- Documented the --recursive option.
- Added an option -Cmk for checking .mk files besides buildlink3.mk.
- pkglint can handle individual files on the command line, not only
  packages. (experimental)
- Replaced checkfile_buildlink3_mk() with checkfile_mk().
- Factored out the checkfile() subroutine from checkdir_package().
2005-11-14 04:05:22 +00:00
wiz
ae4e203a4f Add and enable p5-pkgsrc-Dewey. 2005-11-13 19:54:00 +00:00
wiz
28064e4cee Initial import of p5-pkgsrc-Dewey:
This Perl module provides functions to compare pkgsrc Dewey numbers.
2005-11-13 19:53:19 +00:00
wiz
c6865dc161 Sync with basesrc: do not use errx in dewey.c; handle -1 return value
from dewey_match in pmatch.
2005-11-13 19:51:14 +00:00
wiz
e61b7d0cf9 Remove obsolete file. 2005-11-13 19:50:31 +00:00
rillig
273de48d5a The exitcode from running pkglint in the post-install target is ignored,
since the pkglint Makefile sets MANINSTALL but shouldn't, as this
variable is intended to be user-defined. This is only a work-around,
which needs to be addressed properly for the other packages setting
MANINSTALL, too.
2005-11-13 17:39:05 +00:00
rillig
50e33be5f5 - Improved the way the tool names are detected once more. 2005-11-10 19:47:41 +00:00
rillig
72aa168b19 Updated pkglint to 4.40.
- Removed all references to the build-time pkgsrc directory, ${PKGSRCDIR}.
  This makes the binary package independent of the build location.
  Fixes PR 32006.
2005-11-10 14:30:56 +00:00
rillig
c812c03911 * Find a reliable, secure way to delete all CVS directories inside
${WRKSRC}. When that is finished, add a warning that using ${XARGS}
  is insecure.
2005-11-10 12:19:58 +00:00
rillig
e19e0913cd Moved the checks for the COMMENT from checklines_package_Makefile() to
checktext_basic_vartype() to shorten the former subroutine.
No user-visible changes.
2005-11-10 12:04:11 +00:00
rillig
bfe651305d - Improved the detection of tool names once more. 2005-11-10 11:14:03 +00:00
rillig
f619b2875c Updated pkglint to 4.39.
Changes since 4.38:
- Disabled the check on Makefile variable order, as the discussion on
  tech-pkg has not finished yet.
- Improved detection of valid tool names.
- Improved detection of direct use of tool names. (Less false positives.)
- Improved the diagnostics for direct use of tool names.
2005-11-10 11:03:57 +00:00
rillig
b0884ccf36 Updated pkglint to 4.38.4.
- Improved detection of valid tool names.
- In the post-install target, output does to stderr instead of stdout.
2005-11-10 10:26:46 +00:00
rillig
b0d7992a4c Added (currently disabled) code to scan for variable names in
pkgsrc/mk/defaults/mk.conf. All those variable names are then checked as
being of type Userdefined. As that file is currently too unstructured
and contains too much garbage, this check cannot yet be enabled.
2005-11-10 07:46:24 +00:00
rillig
20e8563c6a Removed the -l command line option from lintpkgsrc(1). Use "pkglint -r"
instead.
2005-11-08 23:05:22 +00:00
rillig
b0ee766802 Updated pkglint to 4.38.2.
- pkglint(1) does not use the hard-coded PKGSRCDIR anymore.

This fix is related to PR 32006, but doesn't fix it, since the PR is
about lintpkgsrc(1), not pkglint(1).
2005-11-08 22:55:22 +00:00
rillig
aad6e5d4eb - Disable checking for variable names starting with an underscore. Due
to the lang/perl5 package there have been more than 19000 new error
  lines in the diagnostics of the complete pkgsrc tree.
2005-11-08 22:27:12 +00:00
rillig
f028caef78 Fixed a typo ($line->error -> $line->log_error). 2005-11-08 21:13:43 +00:00
rillig
b9cc275c78 Updated pkglint to 4.38.1.
- It is an error if packages define a variable whose name starts with an
  underscore.
- Removed the (vague) "wip" check, as it has been replaced by special checks for
  DEPENDS and .include directives.
- Disabled the check for variable ordering until the discussion on tech-pkg
  has led to any results.
2005-11-08 21:09:48 +00:00
rillig
b892acdfdc diff:
- check for magic numbers like 0755, 755, 644
+ check for direct use of user names and group names
2005-11-08 21:00:33 +00:00
wiz
30ce384efb Sync with basesrc 1.3:
Remove some unnecessary header includes.
2005-11-08 20:17:56 +00:00
dillo
aefacfcc2f Update to 20051107: Fix pkg_info -B against binary packages. 2005-11-07 23:51:14 +00:00
wiz
68f185e993 Sync with basesrc:
Replace wait(2) with equivalent waitpid(2); for Linux, reported by wulf@
on tech-pkg.
2005-11-07 22:57:48 +00:00
seb
35e292fda0 Add target 'standalone-install': install libkver in ${LIBKVER_STANDALONE_DIR},
defaults to /libkver, and register it there.

This is a convenient one-stop target to use libkver in a sandboxed bulk-build.
(hint for Julio ;)
2005-11-07 22:30:13 +00:00
tv
97e479d1b2 Aren't we forgetting something here?
(Insert config.h, nbcompat.h, and bracket the other includes with
#if HAVE_<file>.)
2005-11-07 18:53:53 +00:00
jlam
604a8bc477 Use the hard-coded ${PKG_TOOLS_BIN} variable as the correct location of
the pkg_admin binary.
2005-11-07 06:52:24 +00:00
jlam
f2c3651333 INSTALL_SCRIPT_ENV wasn't being defined to include a definition for
PKG_PREFIX, which was causing the INSTALL script to fail when run from
the post-install-script target.
2005-11-07 06:32:58 +00:00
rillig
7428daea90 Updated pkglint to 4.38.
- PKGNAME is checked for being a valid package name.
- PLIST files should not contain filenames that match */CVS/*.
- Completely rewrote the check for variable ordering. The new code
  operates on a data structure that's easily understandable and
  extendable (see the source for an example). It also generates greatly
  improved diagnostics. As the old code had been enabled only when
  checking with -Wvague or -Wall, it has been seldom used anyway.
2005-11-07 00:45:01 +00:00
rillig
b59bd19d70 + check for magic numbers like 0755, 755, 644 2005-11-06 22:38:36 +00:00
jlam
f24a3e971c In the "update" target, use "${UPDATE_TARGET}" to install the new
pkg_install tools.  This allows customizing UPDATE_TARGET=package to
produce a binary package instead of just installing the package.
2005-11-06 22:17:53 +00:00
jlam
c0fc027891 Remove @exec from PLIST and put the action into an INSTALL script instead.
Also, simplify the package by making use of the PKGMANDIR-handling in
pkgsrc to remove the custom MANDIR code from the package Makefile and
the PLIST.

Technically, this type of a change would require a PKGREVISION bump,
but as this is the pkg_* tools package and there were no changes to the
binaries, we refrain from doing so.
2005-11-06 22:15:44 +00:00
rillig
0ce39795b4 * check Makefile directives
* check _every_ line of the Makefiles
* warn about the use of ${SED} in {pre,do,post}-install
2005-11-06 15:59:48 +00:00
rillig
7fb5f1c563 + include "../../mk/bsd.prefs.mk" before any .if. 2005-11-06 15:55:24 +00:00
rillig
f6f03b2d1e Added a note that SUBST_SED might be changed to a List instead of a
List* later.
2005-11-06 15:54:06 +00:00
wiz
13950de799 Use config.h and add appropriate #if HAVE_FOO_H. 2005-11-06 12:37:43 +00:00
rillig
d2052bc34d Replaced ${PKGNAME:C...} with the equivalent ${PKGBASE}. 2005-11-05 17:23:35 +00:00
wiz
d768d9008a Add new files. 2005-11-05 13:30:31 +00:00
wiz
251eae9011 Not needed. 2005-11-05 13:20:31 +00:00
wiz
d69676ddee Sync with base system as of Sat Nov 5 13:19:32 UTC 2005.
Welcome to 20051103!
Now with "automatic" support.
2005-11-05 13:20:08 +00:00
rillig
5bcd0d42ba Updated pkglint to 4.37.2.
- Removed the hard-coded values for valid tool names.
  The detection is good enough.
- Make sure that the domain part NetBSD.org is written like this
  in mail addresses.
2005-11-05 11:02:53 +00:00
rillig
1665492f83 Updated pkglint to 4.37.1.
- Improved detection of valid tool names.
2005-11-04 22:54:59 +00:00
rillig
468109656e Fixed regular expression for finding valid tool names. Added debugging
output for tool names. Sorted and aligned the list of known tools.
2005-11-04 21:59:37 +00:00
rillig
cbf5e9ec5c Manually added some commonly used tool names. 2005-11-04 21:43:12 +00:00
rillig
7f80741221 Allow "-" in Tool names. 2005-11-04 21:30:35 +00:00
rillig
26fbd1036b Updated pkglint to 4.37.
- Added checks for TOOL_* variables.
- Added {pre,do,post}-extract to the list of valid stages.
- Fixed the regular expression for detecting tool names.
- Added a check for invalid syntax in tool names.
- Improved the diagnostic for enumerations.
2005-11-04 20:39:49 +00:00
rillig
9df8a0ff82 - PLIST_SRC may be set with both "=" and "+=".
- Allow variables as Option.
- Improved the diagnostic for "invalid subdirectory of ${WRKSRC}".
2005-11-04 17:29:02 +00:00
rillig
aee7d5cd02 Added trailing dot to the diagnostics where it was missing. 2005-11-04 17:04:49 +00:00
rillig
0e8bf529d9 Updated pkglint to 4.36.1.
- Added many of the variables found in pkgsrc/mk/* to makevars.map.
- Added the function log_fatal, whose output goes to stderr instead of
  stdout.
- All files in pkgsrc/mk/ are excluded from checking, as they may use
  private variables and do other questionable things.
- Removed the Language type, as it is a simple enumeration.
- Added the Userdefined type to distinguish user-definable and read-only
  variables.
2005-11-04 17:00:58 +00:00
rillig
84dc0f88aa Updated pkglint to 4.36.
Implemented checking for enumeration types. Added new types Filemask,
Filename, Language, Option, Pathmask, Pathname, Stage, Varname and
WrksrcSubdirectory. Made the check for URLs stricter. Added some
variables to the makevars.map file.
2005-11-04 13:57:35 +00:00
rillig
916d79ef91 I knew there had been a program that uses the (now removed) -Wno-workdir
option. I just didn't think it was pkglint itself. :)
Thanks to Martti for notifying me about that.
2005-11-04 10:09:13 +00:00
rillig
4478d43858 Updated pkglint to 4.35.
Removed the -Wworkdir option. Added an --import option that replaces
-Wworkdir. Changed the warning about uncleaned work* directories into an
error. Updated the man page.
2005-11-04 09:32:03 +00:00
rillig
b50c1b58d7 Updated pkglint to 4.34.
Fixed the --autofix handling of category Makefiles. Added an --import
option that helps importing packages from pkgsrc-wip. When checked with
--import, the package is checked as if it weren't part of pkgsrc-wip.
2005-11-04 08:40:59 +00:00
rillig
94c299cd71 include ../../mk/bsd.prefs.mk before using "+=". 2005-11-03 23:28:09 +00:00
rillig
3dd3e17928 The "../.." and PERL5_PACKLIST checks are implemented. 2005-11-03 23:27:10 +00:00
rillig
fb6d872ea2 Updated pkglint to 4.33.1.
Fixed undefined behavior when reading a file that ends in a continuation
line. Any use of ${WRKSRC}/.. is considered an error, as ${WRKSRC} is
meant to point to the top of the build directories. A proper combination
of WRKSRC, CONFIGURE_DIRS and BUILD_DIRS should be used instead. Sorted
the makevars.map file and added SUBST_CLASSES.
2005-11-03 18:49:32 +00:00
rillig
6030a9b69a Updated pkglint to 4.33.
Changes since 4.32.2:
  - Added checks for CATEGORIES.
  - Modernized checks for DEPENDS and BUILD_DEPENDS.
  - Simplified PLIST directive checks.
2005-11-03 12:35:05 +00:00
rillig
4e20502765 Added "linux" to the list of allowed categories. 2005-11-03 12:32:07 +00:00
rillig
80c7827080 Added comments for global variables. Renamed $loglines to $lines, as the
checking routines don't use physical lines anymore, so there's no need
to distinguish them. Removed deprecated "@" line checks from the PLIST
checker. These lines are all reported as "Unknown PLIST directive" now.
2005-11-03 10:34:26 +00:00
rillig
7fb03012a3 Added DEPENDS_TARGET, FETCH_DEPENDS, LIB_DEPENDS and RUN_DEPENDS to the
list of deprecated variables.
2005-11-02 23:18:38 +00:00
rillig
fdde06dd95 Modernized the check for dependency items. Stricter URL checking.
Removed the warning for a single element in DISTFILES, as I don't see
any reason for keeping it.
2005-11-02 23:11:54 +00:00
rillig
d17bab85f0 Added two global variables, $current_dir and $is_wip. This reduces the
number of parameters to many subroutines.
2005-11-02 21:33:37 +00:00
rillig
f7d9a0a2cb Added a check for valid CATEGORIES. The new type List* is the same as
List, except that no warning is reported for not using the "+="
operator.
2005-11-02 20:16:02 +00:00
rillig
57a5599717 Replaced the global $conf_* variables with constants of the same name. 2005-11-02 19:00:16 +00:00
rillig
9123ffe699 Converted the global regular expression variables into constants. 2005-11-02 18:55:15 +00:00
rillig
9165945bb1 Added the --long-options to the --help output. Replaced some constants
inline, as they had only been used once.
2005-11-02 18:50:52 +00:00
rillig
61d017f3a0 Updated pkglint to 4.32.2.
Added a check for invalid uses of MASTER_SITE_* variables.
2005-11-01 23:08:42 +00:00
rillig
7024427060 Updated pkglint to 4.32.1.
Added type check for USE_TOOLS. Fixed false warning about direct use of
tools in comments.
2005-11-01 21:39:31 +00:00
rillig
438ad41261 Updated pkglint to 4.32.
The --autofix support has been rewritten to be more easily usable.
Automatic fixes are currently restricted to the sort order of SUBDIR
entries in category Makefiles. It had been the complete category
Makefile before. Added a new diagnostic, prefixed with "NOTE:", that is
used for important informational diagnostics, for example autofixed
files.
2005-11-01 01:08:38 +00:00
rillig
433d544b58 As I don't know how many backslashes are needed inside backticks to make
one backslash reach the argument to sed(1), the backticks are replaced
with a call to open("... |"). Now the first argument to sed(1) contains
\$ instead of a simple $.
2005-11-01 00:26:35 +00:00
rillig
6b5a2446b0 Updated pkglint to 4.31.2.
Added the expected and actual checksums to the diagnostics if they
differ for patches.
2005-10-30 23:09:40 +00:00
rillig
6e9dde0fd4 Added three methods insert_before(), insert_after() and delete() to a
Pkglint::FileUtil::Line, which will be used for the --autofix option.
No user-visible changes.
2005-10-30 23:03:41 +00:00
rillig
41fe22047c When checking Makefiles, get rid of the "physical" lines as soon as
possible and base all other checks on the logical lines. The physical
source lines are saved literally to make implementing the --autofix
option easier.
2005-10-30 22:11:38 +00:00
joerg
cb701234ba Treat FTP error 450 like 550, otherwise pkg_add from a proftpd server
can hang.

Submitted-by: Eirik Nygaard
2005-10-30 21:27:47 +00:00
rillig
6b1c7caead Removed two unused variables. 2005-10-30 19:54:36 +00:00
rillig
ec7b393671 Updated pkglint to 4.31.
Changed the names of the datatypes (Yes_Or_Undefined => Yes, Boolean =>
YesNo, Integer => PkgRevision) in makevars.map. It is now an error if
PKGREVISION appears outside a package Makefile. Improved detection of
Makefile.common. Improved wording of the warning for relative
directories in the form ../package.
2005-10-26 23:17:49 +00:00
rillig
5219926c41 Updated pkglint to 4.30.
Rewrote the typechecking code for Makefile variables. The variable
definitions are extracted from logical lines instead of physical lines,
comments are separated from actual values, for Lists of something, each
something is checked. All URLs are subject to MASTER_SITES expansion.
MASTER_SITES is checked to be a List of URLs.
2005-10-24 23:54:37 +00:00
rillig
cbf57a228a Completely rewrote plist-clash.pl. It has been unmodified for 7 years,
while pkgsrc has changed dramatically. Now it is usable again, although
far from perfect.
2005-10-24 20:56:53 +00:00
rillig
166c6a1177 Report an error if an unknown line occurs in a PLIST. (Most of these
lines are actually empty.)
2005-10-24 20:37:57 +00:00
rillig
a047b04902 Allow all variables ending in _SED or _AWK to be constructed using the
"+=" operator.
2005-10-24 19:56:05 +00:00
rillig
eaf1102c55 Removed those deprecated variables that are unused in current pkgsrc and
pkgsrc-wip.
2005-10-24 19:52:26 +00:00
rillig
71d6878bea Generally allow $Id$ instead of $NetBSD$ in files from pkgsrc-wip. 2005-10-24 18:20:40 +00:00
rillig
2646e626ec Updated pkglint to 4.29.1.
Added CONFLICT to the list of deprecated variables (actually it's a
typo). Added PLIST_SUBST to makevars.map as a List. Allow comments after
a YES/yes/NO/no value of variables.
2005-10-23 23:14:57 +00:00
rillig
fd5dffd960 Replaced $f with ${f} to fix some pkglint warnings. 2005-10-23 21:54:35 +00:00
rillig
c751f422d3 Updated pkglint to 4.29.
Fixed the detection of list variables that are modified with operators
other than "+=". Added *_SKIP to the list of plural variable names.
Removed some unused variables from main(). (This change include
white-space changes.)
2005-10-23 19:20:33 +00:00
rillig
1f0db6c2cc Updated pkglint to 4.28.2.
Added a data type Readonly for variables that must not be given any
value at all by the package Makefile. Marked PKGBASE and PKGVERSION
read-only, because leaving them read-write would make the way PKGNAME is
calculated too complex. Made the check for the "+=" operator independent
of the data type. Added more patterns for accepted variable names for
lists.
2005-10-21 07:20:24 +00:00
rh
5724f633ed Update url2pkg to 1.31. This reinstates correct handling of
"prdownloads.sourceforge.net" URLs.
2005-10-18 21:10:28 +00:00
seb
f01e6ca40e x11/render package had been moved as x11/renderext. 2005-10-16 08:57:30 +00:00
rillig
e95f2f49e0 Updated pkglint to 4.28.1.
Declared some more variables as List types. Added a check that
PERL5_PACKLIST matches the PKGNAME.
2005-10-14 09:23:46 +00:00
rillig
14948b389c Updated pkglint to 4.28.
Added support to typecheck "List of Something" in Makefile variables.
DEPENDS and BUILD_DEPENDS are of type List of Dependency, CFLAGS are
simply a List.
2005-10-14 00:05:23 +00:00
rillig
e79b082b35 "-Wl,-rpath" should not be used directly. ${COMPILER_RPATH_FLAG} is better. 2005-10-13 20:17:45 +00:00
rillig
23a0f74cf2 Updated pkglint to 4.27.
Added a warning that ${PKGNAME} and ${PKGVERSION} should not be used in
some other variables, as they may contain the PKGREVISION.
2005-10-13 00:23:53 +00:00
reed
3f94d58331 Instead of using hard-coded 555 mode for installing library,
use BINMODE setting. This helps with non-privileged pkgsrc use.
2005-10-10 18:28:08 +00:00
rillig
22b947030e Updated pkglint to 4.26.
Improved the wording of two diagnostics. Added a check for SUBST_STAGE.
2005-10-09 18:24:11 +00:00
jmmv
e829ceaf2b Update to 1.3:
- Clarify the difference between a "not found package" and a "not a direct
  dependency" one.
2005-10-09 10:30:23 +00:00
reed
bb35b0ea3d Remove CONFIGURE_ARGS setting --mandir as this is now done for
GNU_CONFIGURE.

Also add a note: This breaks for those who set their own LOCALBASE
to /usr and also define PKGMANDIR to different than share/man.
2005-10-07 18:05:07 +00:00
rillig
593971ad6f Updated pkglint to 4.25.
Improved heuristics for packages that use some common Makefiles,
reducing the number of false diagnostics in -Wvague mode. Moved checks
for SVR4_PKGNAME out of -Wvague mode. Added check for misspelled
NO_{SRC,BIN}_ON_{FTP,CDROM}.
2005-10-07 17:34:11 +00:00
rillig
2614ff83d0 Updated pkglint to 4.24.
Warn if option names contain underscore characters (suggested by dillo).
NO_TOOLS and NO_WRAPPER are deprecated, as they are not used anymore.
2005-10-07 10:24:42 +00:00
wiz
7810313db3 1.30:
Unbreak url2pkg on sourceforge hosted packages -- the MASTER_SITES
did not contain the trailing slash, thus breaking the download.

XXX: prdownloads.sf.net is not recognized as a sourceforge "mirror"
since the previous version of url2pkg.
2005-10-03 19:54:10 +00:00
jmmv
47b9407ba8 Update to 1.2:
- Package names can have dashes in them, so use a correct regexp to extract
  the package name from a dependency specification.
2005-10-03 09:45:45 +00:00
jmmv
a13cc4da40 Update to 1.23:
- Sync SETS_X11's default value with recent NetBSD versions: xcontrib.tgz
  and xmisc.tgz disappeared while xetc.tgz was added, starting in NetBSD 2.0.
2005-10-02 09:38:39 +00:00
jmmv
d5be86ac47 Update to 1.1:
- Raise an appropriate warning if pkg_admin pmatch fails due to an incorrect
  pattern (e.g., cairo>=0.5.2-head is unrecognized).
2005-10-02 09:29:29 +00:00
heas
852277e6aa Solaris 2.9's nawk does not like the syntax ($0 ~ /=/); it seems as if the
parser interprets this as the division operator '/=', so escape the =.
2005-10-02 02:05:29 +00:00
jmmv
4295bb0a3a Add and enable verifypc. 2005-10-01 12:57:21 +00:00
jmmv
bffce6edab Initial import of verifypc, version 1.0:
verifypc is a tool that sanity checks the dependencies of a package based on
the results of a successful build, assuming the package uses pkg-config to
detect dependencies.

verifypc will warn you if the configuration script requests an uninstalled
or unavailable package (not specified as a direct dependency) or if the
requested package does not match the version specification in the packages'
dependencies.
2005-10-01 12:56:51 +00:00
wiz
b318c48fb9 Typo and whitespace fixes. Use Sq. Capitalize NetBSD properly. 2005-09-30 12:10:44 +00:00
rillig
74c36f7f68 Removed unused NO_TOOLS. 2005-09-29 13:38:37 +00:00
rillig
76d2a550ec Replaced "# defined" with "yes" in Makefile variables like GNU_CONFIGURE,
NO_BUILD, USE_LIBTOOL.
2005-09-28 21:55:32 +00:00
rillig
f89bcc71b5 Allow "# defined" as value for multiple inclusion guards in Makefile.common. 2005-09-28 21:39:05 +00:00
rillig
5946936ffc Replaced "# defined" with "yes" in Makefile variables like GNU_CONFIGURE,
NO_BUILD, USE_LIBTOOL.
2005-09-28 20:52:18 +00:00
rillig
2c69e8a894 Updated pkglint to 4.23.2.
The use of "# defined" as variable value in Makefiles is deprecated. It
has too weak semantics, compared to "# none", "# empty" or "yes".
2005-09-28 20:47:39 +00:00
rillig
3184319c95 Cleaned up the TODO list. 2005-09-28 16:34:47 +00:00
rillig
5ac8ad7004 Removed trailing white-space. 2005-09-28 14:31:06 +00:00
rillig
ef92691af7 Updated pkglint to 4.23.1.
BUILD_USES_MSGFMT should always be set to YES/yes or left undefined. When
checking for direct use of tools, respect shell commands.
2005-09-28 14:12:38 +00:00
rillig
254a069785 Fixed the indentation for "Other arguments". 2005-09-28 10:39:35 +00:00
wiz
509439f0fd Regen. 2005-09-28 10:06:58 +00:00
wiz
be89638ba1 Sort option descriptions. 2005-09-28 10:06:29 +00:00
rillig
7024fb38d4 Updated to pkglint-4.23.
Added the -R command line option to allow more RCS Id tags than $NetBSD$
to appear in line 1 of almost every file. Suggested by dillo.
2005-09-28 09:44:42 +00:00
rillig
234e62b9d0 Updated pkglint to 4.22.
A distfile that only has an SHA1 checksum, but not an RMD160 one, is
considered an error. While at it, made the distinfo file check a little
stricter.
2005-09-27 21:13:20 +00:00
rillig
d8c6d398a6 Updated pkglint to 4.21.5.
Insist that PKGREVISION should be an integer or be undefined at all.
2005-09-27 18:58:56 +00:00
abs
c413838a65 Update pkg_chk to 1.62:
+ Implement defining tag groups in pkgchk.conf. For example
      "mailserver = tll gta tycoon jeeves iris"
    + If the first tag on a line starts with a '-', there is now an
      implicit '*' before it
    + -B no longer implies -i
2005-09-27 17:13:03 +00:00
rillig
718b487651 Updated pkglint to 4.21.4.
The last change introduced some false positive diagnostics. If a
distinfo file contains the checksum for a patch that does not exist,
this is not considered to be an error, but only a warning, as the
additional checksums do not influence the package.
2005-09-23 13:08:23 +00:00
rillig
24412e2a4e Updated pkglint to 4.21.3.
Fixed false positive errors for PHP packages.
2005-09-22 15:54:23 +00:00
rillig
5ed3de4dcc Updated pkglint to 4.21.2.
Changed the file name pattern for patch files to avoid false positives
for DISTFILES that start with "patch-" (requested by salo). Added a
warning for invalid patch file names.
2005-09-22 11:56:37 +00:00
rillig
5ea208ffc4 The diagnostics for the COMMENT variable checks include the location and
are therefore enabled by default. Requested by wiz.

Set the version to 4.21.1.
2005-09-22 01:46:46 +00:00
martti
2c976e8ade Removed distfetch from pkgsrc 2005-09-16 07:41:50 +00:00
abs
345ac26c9b update pkgtools/pkg_chk to 1.61.
Accept relative paths for -C and -P - fixes PR/31277 from Tero Kivinen
2005-09-11 10:39:03 +00:00
wiz
9c8b05d7af regen 2005-09-10 22:33:14 +00:00
wiz
2624c4e38a Date string needs no leading zeroes. 2005-09-10 22:32:54 +00:00
wiz
81184e6850 Use \*[Am] instead of & for HTML output. 2005-09-10 22:32:43 +00:00
rillig
eadbcbe2f0 This is pkglint-4.21.
Changes since 4.20 include:
 - In the diagnostics, FATAL is replaced with ERROR.
 - The command line option -g changes the format of the diagnostics to be
   similar to the one of gcc.
 - Removed false warnings when checking if PLISTS are ordered.
 - Removed the check for contiguous blank lines.
 - Added a check to PLISTs that man pages are not installed in share/man.
 - pkglint -r allows to recursively check directories.
 - The pkgsrc root directory can be checked.
 - Removed false warnings for patches that contain "---" lines.
 - Switched to checking logical lines instead of physical lines.
   Diagnostics for logical lines contain the range of physical lines
   instead of a single line number.
 - Some ../.. path components are stripped from the diagnostics.
 - When checking for the direct use of tool names, only the context of the
   use, not the whole shell command is output.
 - Patches that contain RCS Ids should not have the -ko CVS mode anymore.
 - Variables that are modified using the "+=" operator are considered to be
   lists, so they should have a name indicating a plural.
2005-09-09 12:16:29 +00:00
rillig
fe420411f3 Changed the regular expression for detecting valid .include lines in
Makefiles. I had intended not to read files whose name contains $
characters, but had not written exactly that in the code.
Fixes PR 31213.
2005-09-09 11:05:00 +00:00
rillig
15b9d4d943 Bugfix: The subdirectories of the pkgsrc root directory are listed
correctly. With the -r option, the order of directories is now
depth-first.
2005-09-06 10:30:00 +00:00
rillig
c3115e6a7c Added a check for variables that are modified using "+=". As they are
mostly lists of something, their name should be a plural form. There are
many exceptions to this rule, mostly because of backwards compatibility.
2005-09-05 15:45:29 +00:00
rillig
ffc5bb8970 Replaced two instances of ad-hoc regular expressions with regex_varassign. 2005-09-05 13:27:36 +00:00
rillig
771539924d The continuation line indicator in regex_varassign is not needed
anymore, since assignments are checked on logical lines instead of
physical lines.
2005-09-05 13:06:20 +00:00
rillig
29776bf19e Use logical lines for the validation of Makefiles rather than physical
lines. Print line ranges instead of the starting line in diagnostics.
2005-09-04 21:06:05 +00:00
hubertf
cd5fa34ef1 Update url2pkg to 1.29. Change:
Patch by pancake <pancake@phreaker.net> that permits url2pkg to scan
bsd.sites.mk and recreate the MASTER_SITE string. He has tested a bit
against GNU, GNOME, SOURCEFORGE master sites, and seems to do the things
fine.
2005-09-04 20:02:55 +00:00
wiz
072a396460 regen (under 2.0) 2005-09-04 18:45:46 +00:00
wiz
1d897c6696 New sentence, new line. 2005-09-04 18:45:36 +00:00
rillig
71c7552b19 Changed the wording of the diagnostics message when a patch contains an
RCS tag. Suggested by hubertf.
2005-09-04 00:33:18 +00:00
rillig
4184bfe32f Made the code in get_logical_line easier. 2005-09-04 00:26:13 +00:00
rillig
188a8676f4 Updated the man pages. 2005-09-04 00:04:15 +00:00
rillig
c99410f597 When RCS Ids are detected in patches, don't suggest the -ko mode, but
ask the user to remove the offending line from the patch.
2005-09-03 22:23:46 +00:00
rillig
ab783f6d5a As the shell commands in Makefiles can be quite long, only the close
neighborhood of the tool name is printed when checking for direct use of
tools.
2005-09-03 11:53:15 +00:00
rillig
d646a03983 Added section comments and renamed some subroutines and variables. 2005-09-03 10:41:23 +00:00
rillig
b27cb882b9 Made the import clauses uniform. 2005-09-03 10:19:05 +00:00
rillig
b57ad50501 Removed the -Winternal flag and the checks for the ":=" operator. There had
been too many spurious warnings to be worth the effort.
2005-09-02 22:45:31 +00:00
rillig
5ba3f69424 Removed the (undocumented) -d/--debug option. 2005-09-02 12:39:42 +00:00
rillig
8e2103a120 The command line options are now defined in one table instead of two. 2005-09-02 12:10:16 +00:00
rillig
3b87a70054 In logical lines from Makefiles, white-space surrounding the
continuation is stripped from the string to make the output shorter.
2005-09-02 11:43:52 +00:00
rillig
093cc95760 In the diagnostics, "../../" path components that are not at the
beginning are stripped to make the output less verbose. The beginning is
needed to have a reference from which package the file is included, so
it is not stripped.
2005-09-02 10:42:18 +00:00
rillig
1e45f525ef The PKGDIR variable is extracted from the Makefile first, because other
variables like PATCHDIR and DISTINFO_FILE depend on it.
2005-09-02 10:11:24 +00:00
rillig
5deb0fcc3e When checking for direct use of tools, the Makefile lines are
interpreted as "logical lines", that is, lines ending in a backslash are
continued on the next line. This led to a false warning for
PKG_FAIL_REASON, which is suppressed.
2005-09-02 01:03:20 +00:00
rillig
1c2f92a2b4 Fixed a newly introduced bug that prevented multiple patches per file from
being detected.
2005-09-01 23:24:35 +00:00
rillig
772fe05470 Fixed the false warnings for lines in patches that start with "---". The
old parser had been a little too simple.
2005-09-01 22:45:16 +00:00
rillig
0753a70b6e Pkglint can check the pkgsrc root directory now. The checks are kept
minimal, as I use it mainly to check all the categories using the -r
flag.
2005-09-01 22:09:39 +00:00
rillig
ac22c61ffe Added an (undocumented) option -r/--recursive that checks all the packages
in a category Makefile that are not commented out.
2005-09-01 21:39:57 +00:00
hubertf
55592c0463 fix typo in comment, reported by Leonard Schmidt on tech-pkg@ 2005-09-01 18:09:26 +00:00
xtraeme
7d23f8d60d Update to 20050817.
Changes:

	* Patches to make this build on NetBSD -current
	* Various contribs plus colorization and fixes
2005-08-25 10:34:12 +00:00
rillig
6dc00852e4 Added a check for PLISTs: Man pages should be installed into man/, not
share/man/.
2005-08-25 07:27:23 +00:00
rillig
a5453ed697 Removed all references to the -B/contblank command line option. 2005-08-25 07:24:00 +00:00
rillig
06693d3602 Removed the -p flag from the usage message. It hasn't been implemented
for quite some time. I don't know when it had been removed, but
apparently no-one had used it anyway.
2005-08-24 17:32:43 +00:00
rillig
d6720c2287 Removed the check for contiguous blank lines completely. As long as
pkglint does not catch the important facts correctly it shouldn't be
nitpicking about white-space. I doubt that anyone has used the -B# and
the -Wwhitespace options at all, so there's no harm removing them.
2005-08-24 17:29:52 +00:00
rillig
3497c6f0f7 Added a -Wwhitespace flag that is off by default to control whether
multiple contiguous blank lines should result in warnings.
2005-08-24 16:50:13 +00:00
jmmv
27d05a3d93 Update to 1.22:
- Honour INSTALL_PACKAGES during the 'auto' target.  Found by jwise@.
2005-08-23 14:52:58 +00:00
rillig
5a878cee18 Sorted the regular expression constants alphabetically. Renamed two of them. 2005-08-22 13:51:40 +00:00
rillig
fb408275e2 Don't warn about unsorted PLIST entries that contain ${foo}. Only make
sure the others are sorted.
2005-08-22 05:12:01 +00:00
rillig
f1209e71c7 Reduced the number of warnings for replacing ":=" with "=". Added a command
line flag -Winternal to enable checking of the pkgsrc infrastructure files.
By default these files are not checked.
2005-08-21 23:05:01 +00:00
rillig
c4c597dc44 Buildlink files may use the := assignment operator for variable names that
contain "BUILDLINK". All other uses are still flagged.
2005-08-21 18:25:27 +00:00
rillig
a68e869480 Added a flag -g or --gcc-output-format that makes the messages parseable by
the Emacs compile.el program. Changed the keyword for errors from FATAL to
ERROR. Sorted command line options alphabetically in the source code.
2005-08-21 15:33:45 +00:00
rillig
cf0abff1fe This is pkglint-4.20. Changes since 4.19 include:
- Very much code cleanup
- Introduction of the --autofix flag for category Makefiles
- Rewrite of the code to check the DISTNAME section in package Makefiles
- Rewrite of the code to check category Makefiles
2005-08-21 10:31:43 +00:00
rillig
815d49418b Generally warn about the use of the := operator in Makefiles. 2005-08-21 10:20:13 +00:00
rillig
b5a201135e Rewrote the checking of the Makefile variables in the DISTNAME section.
This reduces the number of false warnings.
2005-08-21 08:55:52 +00:00
grant
ecf46f2b5a include digest-types.h so the various {u,}intNN_t types are defined.
fixes build on BSD/OS.

from T. M. Pederson in PR pkg/31024.
2005-08-21 05:26:33 +00:00
jlam
cf4dfe44a5 Use REQD_DIRS instead of MAKE_DIRS for directories under ${PREFIX} so
that these directories will be conditionally removed (based on reference
counts), regardless of the value of PKG_CONFIG.  Bump the PKGREVISION
for packages that were modified as a result.
2005-08-20 19:16:21 +00:00
rillig
ed097917ca Fixed a syntax error (a string had not been enclosed in double quotes). 2005-08-20 10:53:44 +00:00