Commit graph

1930 commits

Author SHA1 Message Date
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