summaryrefslogtreecommitdiff
path: root/pkgtools
AgeCommit message (Collapse)AuthorFilesLines
2005-11-03Updated pkglint to 4.33.1.rillig3-29/+36
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-03Updated pkglint to 4.33.rillig1-2/+2
Changes since 4.32.2: - Added checks for CATEGORIES. - Modernized checks for DEPENDS and BUILD_DEPENDS. - Simplified PLIST directive checks.
2005-11-03Added "linux" to the list of allowed categories.rillig1-2/+2
2005-11-03Added comments for global variables. Renamed $loglines to $lines, as therillig1-35/+29
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-02Added DEPENDS_TARGET, FETCH_DEPENDS, LIB_DEPENDS and RUN_DEPENDS to therillig1-1/+5
list of deprecated variables.
2005-11-02Modernized the check for dependency items. Stricter URL checking.rillig1-95/+22
Removed the warning for a single element in DISTFILES, as I don't see any reason for keeping it.
2005-11-02Added two global variables, $current_dir and $is_wip. This reduces therillig1-88/+90
number of parameters to many subroutines.
2005-11-02Added a check for valid CATEGORIES. The new type List* is the same asrillig2-8/+36
List, except that no warning is reported for not using the "+=" operator.
2005-11-02Replaced the global $conf_* variables with constants of the same name.rillig1-17/+17
2005-11-02Converted the global regular expression variables into constants.rillig1-25/+24
2005-11-02Added the --long-options to the --help output. Replaced some constantsrillig1-12/+8
inline, as they had only been used once.
2005-11-01Updated pkglint to 4.32.2.rillig2-37/+50
Added a check for invalid uses of MASTER_SITE_* variables.
2005-11-01Updated pkglint to 4.32.1.rillig3-5/+46
Added type check for USE_TOOLS. Fixed false warning about direct use of tools in comments.
2005-11-01Updated pkglint to 4.32.rillig2-44/+75
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-01As I don't know how many backslashes are needed inside backticks to makerillig1-3/+5
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-10-30Updated pkglint to 4.31.2.rillig2-4/+4
Added the expected and actual checksums to the diagnostics if they differ for patches.
2005-10-30Added three methods insert_before(), insert_after() and delete() to arillig1-8/+38
Pkglint::FileUtil::Line, which will be used for the --autofix option. No user-visible changes.
2005-10-30When checking Makefiles, get rid of the "physical" lines as soon asrillig2-82/+113
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-30Treat FTP error 450 like 550, otherwise pkg_add from a proftpd serverjoerg2-5/+5
can hang. Submitted-by: Eirik Nygaard
2005-10-30Removed two unused variables.rillig1-2/+2
2005-10-26Updated pkglint to 4.31.rillig3-70/+83
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-24Updated pkglint to 4.30.rillig3-85/+89
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-24Completely rewrote plist-clash.pl. It has been unmodified for 7 years,rillig1-83/+48
while pkgsrc has changed dramatically. Now it is usable again, although far from perfect.
2005-10-24Report an error if an unknown line occurs in a PLIST. (Most of theserillig1-30/+29
lines are actually empty.)
2005-10-24Allow all variables ending in _SED or _AWK to be constructed using therillig1-3/+2
"+=" operator.
2005-10-24Removed those deprecated variables that are unused in current pkgsrc andrillig1-29/+1
pkgsrc-wip.
2005-10-24Generally allow $Id$ instead of $NetBSD$ in files from pkgsrc-wip.rillig1-2/+7
2005-10-23Updated pkglint to 4.29.1.rillig4-10/+9
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-23Replaced $f with ${f} to fix some pkglint warnings.rillig1-4/+3
2005-10-23Updated pkglint to 4.29.rillig2-53/+49
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-21Updated pkglint to 4.28.2.rillig3-15/+34
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-18Update url2pkg to 1.31. This reinstates correct handling ofrh2-3/+14
"prdownloads.sourceforge.net" URLs.
2005-10-16x11/render package had been moved as x11/renderext.seb2-4/+4
2005-10-14Updated pkglint to 4.28.1.rillig4-5/+21
Declared some more variables as List types. Added a check that PERL5_PACKLIST matches the PKGNAME.
2005-10-14Updated pkglint to 4.28.rillig3-5/+37
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-13"-Wl,-rpath" should not be used directly. ${COMPILER_RPATH_FLAG} is better.rillig1-0/+1
2005-10-13Updated pkglint to 4.27.rillig2-3/+14
Added a warning that ${PKGNAME} and ${PKGVERSION} should not be used in some other variables, as they may contain the PKGREVISION.
2005-10-10Instead of using hard-coded 555 mode for installing library,reed2-3/+5
use BINMODE setting. This helps with non-privileged pkgsrc use.
2005-10-09Updated pkglint to 4.26.rillig2-5/+10
Improved the wording of two diagnostics. Added a check for SUBST_STAGE.
2005-10-09Update to 1.3:jmmv2-4/+8
- Clarify the difference between a "not found package" and a "not a direct dependency" one.
2005-10-07Remove CONFIGURE_ARGS setting --mandir as this is now done forreed1-2/+3
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-07Updated pkglint to 4.25.rillig2-16/+28
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-07Updated pkglint to 4.24.rillig3-4/+14
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-031.30:wiz2-4/+4
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-03Update to 1.2:jmmv2-4/+4
- Package names can have dashes in them, so use a correct regexp to extract the package name from a dependency specification.
2005-10-02Update to 1.23:jmmv3-7/+7
- 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-02Update to 1.1:jmmv2-5/+11
- 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-02Solaris 2.9's nawk does not like the syntax ($0 ~ /=/); it seems as if theheas1-2/+2
parser interprets this as the division operator '/=', so escape the =.
2005-10-01Add and enable verifypc.jmmv1-1/+2
2005-10-01Initial import of verifypc, version 1.0:jmmv5-0/+299
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.