Commit graph

1909 commits

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