summaryrefslogtreecommitdiff
path: root/pkgtools
AgeCommit message (Collapse)AuthorFilesLines
2006-07-111.8:wiz2-6/+5
finddepends: Quote package names when they are used as patterns. Based on an idea by dillo.
2006-07-11Swapped the order of two checks in variable_needs_quoting. Now lists ofrillig2-13/+24
filenames and pathnames may appear in .for loops. (Of course, this only works for "nice" filenames, but the amount of false positive warnings would just be too high.) Added another warning for dependency patterns like 2.3*, which are likely to be wrong: They match 2.3, 2.3nb4 and 2.30, but not 2.20, which lies in between them.
2006-07-11Merged from src:rillig1-2/+2
> In header files, there shall be no variable definitions, only > declarations. Found by MIPSpro.
2006-07-10Update pkg_tools/pkg_chk to 1.76 - output the pkgdir rather than pkgname at ↵abs2-8/+7
the start of each line
2006-07-10mktemp is a tool, depend on it the correct way.salo1-5/+2
2006-07-10Add x11-links, xorg-libs, and XFree86-libs information to BUILDLINK_ORDERjlam1-1/+2
so that show-buildlink3 will show when these buildlink3.mk files are included.
2006-07-10Solaris doesn't have mktemp (recently added to pkg_chk) in the base system, sosketch1-1/+6
pull in as a dependancy.
2006-07-10Updated pkg_regress to 0.2.rillig2-30/+34
Changes since 0.1: - Improved error messages. - Made the code simpler.
2006-07-10- Make variables are allowed in BUILDLINK_PACKAGES.rillig1-3/+3
2006-07-10Found some more variables that have been declared obsolete in Februaryrillig1-1/+12
2005.
2006-07-10- A comma is allowed in enumeration types.rillig1-4/+4
- Shell commands in Makefiles may have leading white-space before the [@-]*. - Replaced the obsolete MASTER_SITES_SUBDIR with DIST_SUBDIR in the variable order check. The variables aren't the same, but the position is fine.
2006-07-10Changed the type of COMPILER_RPATH_FLAG to an enumeration to get rid ofrillig1-2/+2
the :Q warnings.
2006-07-10- The .gz extension for manual pages is not necessary, since it isrillig1-9/+31
handled automatically by pkgsrc. - Rewrote the PLIST parser a little bit, which revealed that PLIST directives like @dirrm may be prefixed with ${FOR_...} or ${NOTFOR_...}.
2006-07-09Added more tracing. Adjusted pkglint to the latest change to therillig1-1/+6
buildlink3.mk files by jlam.
2006-07-08Change the format of BUILDLINK_ORDER to contain depth information as well,jlam1-2/+2
and add a new helper target and script, "show-buildlink3", that outputs a listing of the buildlink3.mk files included as well as the depth at which they are included. For example, "make show-buildlink3" in fonts/Xft2 displays: zlib fontconfig iconv zlib freetype2 expat freetype2 Xrender renderproto
2006-07-08Track information in a new variable BUILDLINK_ORDER that informs usjlam1-1/+2
of the order in which buildlink3.mk files are (recursively) included by a package Makefile.
2006-07-07In all URLs, insist on the proper spelling of NetBSD.org.rillig1-2/+7
2006-07-06- Fixed a null pointer exception in check_varassign.rillig1-5/+20
- Added a new check for -Wextra that requires a manual page for every command in bin/ and sbin/.
2006-07-06Although EXTRACT_USING is mentioned in mk/defaults/mk.conf, its primaryrillig1-2/+2
purpose is to be overridden by packages, not by the user.
2006-07-06In URLs, the "NetBSD" should be capitalized as such, i.e. "NetBSD.org",jlam3-6/+6
not "netbsd.org".
2006-07-06- Added OVERRIDE_DIRDEPTH to the list of known variables.rillig2-6/+33
- Added the -Cglobal option for inter-package checks (disabled by default) that may consume a lot of memory. - Adjusted pkglint to another change in the TOOLS framework which had not been detected automatically. - MD5 checksums are no longer deprecated, they are now obsolete.
2006-07-04* Invent an annotation scheme for files that intentionally definerillig1-1/+3
variables for use in other files.
2006-07-04PKG_SYSCONFDIR.* is also a Pathname.rillig1-2/+3
2006-07-04Some minor refinements.rillig1-2/+5
2006-07-04Added NONBINMODE.rillig1-1/+2
2006-07-04Improved the SUBST check so that useful warnings are generated even whenrillig1-22/+60
a SUBST block does not start with SUBST_CLASSES, as well as when more than one class is appended at a time to SUBST_CLASSES.
2006-07-02Updated pkg_filecheck to 0.2.rillig3-7/+16
The PKGDBDIR and PKGDBDIR.refcount directories are excluded from the list of files to check, because for unprivileged pkgsrc, they are subdirectories of PKGSRCDIR. Removed the dependency on libnbcompat for NetBSD.
2006-07-02Indented the make directives properly to fix pkglint warnings.rillig1-6/+5
2006-07-02Updated pkglint to 4.66.rillig8-598/+1189
This change includes all the things I thought of during the freeze of 2006Q2. Some variables have disappeared from pkgsrc without notice. Marked them deprecated to help the package authors at least a bit. Renamed some ACL abbreviations in makevars.map and adjusted the variable definitions. Added the command line options -Dtrace, -Dunchecked and -Dunused. Some variables may contain unexpected white-space and therefore should not be used in .for loops. The -Dmisc option replaces the --verbose option (and the log_info subroutine), which does not exist any longer. This eliminates all instances of "OK:" from the output, which I didn't like from the beginning. The -Dmisc option also takes over many warnings that have been issued by --debug before. Improved the check for absolute pathnames. Especially, everything that follows ${DESTDIR} or $(DESTDIR) in a Makefile is considered an absolute pathname. This reveals many wrong uses of DESTDIR (as defined by the GNU coding standards), for example $(DESTDIR)/$(prefix), which should be $(DESTDIR)$(prefix) instead. Almost every use of a make(1) variable is checked for spelling mistakes. Before, only the definitions of variables have been checked. Restricted the use of variables to specific files, which are defined in makevars.map. This catches especially buildlink3.mk files with unexpected side effects. In shell commands, neither "echo" nor "echo -n" or "${ECHO} -n" should be used. Since the INSTALL_*_DIR commands can only handle one directory at a time, suggest to use INSTALLATION_DIRS instead. Greatly improved the checks for dependency specifications, especially to find foo-*, which should rather be foo-[0-9]*. Fixed the incorrect handling of LICENSE_FILE (now using $line->text instead of $line). Improved the wording of the "plural names" warnings, so that for known variables it is "The += operator should only be used with lists." now. In buildlink3.mk files the uppercase and lowercase names of the package should correspond with the package name. This catches many copy-and-paste mistakes. Fixed many null pointer exceptions as well. In addition, every buildlink3.mk file needs a definition of BUILDLINK_API_DEPENDS. In patch files, absolute pathnames and unportable macro names are checked not only in added lines, but also in the context lines. In the pkgsrc root directory and the category directories, the Makefiles are checked like every other Makefile, too. Fixed the place where the global variables for the package context are defined and later undefined. Variables that are mentioned in EVAL_PREFIX may be used in the current file and are not flagged as "used but not defined". When parsing shell words in Makefiles, recognize $<, $@, $^ and $/. (The latter is used extensively by openoffice to represent a directory separator.) Fixed some minor bugs: * $makevar had been defined unintentionally by using the -> operator.
2006-07-01Pull across from source:dillo2-5/+5
Fix pkg_info -Q on binary packages; noted by rillig. Bump version to 20060701. Okayed during freeze by wiz.
2006-06-30SUBST_CLASSES and SUBST_FILES.* are very different.rillig1-1/+13
2006-06-30In some cases variables of the same data type are interpretedrillig1-1/+36
differently, which may lead to problems.
2006-06-29Added examples for the (future) parser in pkglint.rillig1-1/+21
2006-06-29Some ideas for further restricting the definition and use of variables.rillig1-1/+24
2006-06-27Update usage() - sync with manpage, add missing options, etc.hubertf4-21/+23
2006-06-22Updated pkglint to 4.65.rillig1-2/+2
Changes since 4.64: - Many refinements of quoting checks and variable type definitions. - Improved the wording of diagnostics and added some explanations. - Adjusted pkglint to the many recent changes in the infrastructure part. - Improved detection of absolute pathnames. Updated during the freeze because the version number has not changed for two weeks, but many features were added. Therefore the old version number was not reliable for determining the real functionality of pkglint exactly.
2006-06-18When checking a Pathlist, split $value instead of $value_novar. This avoidsrillig1-2/+4
many false positive warnings for paths like ${PREFIX}/foo.
2006-06-18HEADER_TEMPLATE is deprecated. Added permissions for several JAVA_*rillig2-13/+14
variables.
2006-06-18Pathnames should generally not start with a slash.rillig1-1/+7
2006-06-18{DE,}INSTALL_TEMPLATE are deprecated in favor of {DE,}INSTALL_TEMPLATES.rillig2-4/+6
2006-06-18Don't emit a note for missing SUBST_MESSAGE. It's too hard to find arillig1-4/+1
nice description text for most of the SUBST blocks.
2006-06-18Don't treat comments as paragraph separators for the SUBST check. Seerillig1-2/+5
graphics/xfig for an example where it makes a difference.
2006-06-18Bugfix: Always count the SUBST_SED and SUBST_FILES lines.rillig1-3/+3
2006-06-18Added a new check for SUBST blocks. In contrast to all other checks,rillig1-2/+163
this one is defined in PkgLint::SubstContext instead of the main package. Time will show whether this was a good decision. Since the checking subroutines heavily modify the fields of the SubstContext, it seems to be Done Right.
2006-06-18Added OVERRIDE_GNU_CONFIG_SCRIPTS and PYPKGPREFIX.rillig1-1/+3
2006-06-17- autofix() may only be called from the checkfile_*() subroutines to avoidrillig1-2/+3
duplicate calls.
2006-06-17{DE,}INSTALL_SRC are deprecated because they interfere with therillig1-1/+5
pkginstall framework.
2006-06-17- Fixed variable definitions of BUILDLINK_RPATHDIRS.* and PKGPATH.rillig2-5/+8
- The macro __sparc_v9__ is neither defined by gcc nor by SunPro. But __sparcv9 is. - Added some more commands that may be hidden using the "@" character. - Don't let pkglint get confused by additional magic in the use of MASTER_SITES. For example, devel/nspr uses ${MASTER_SITE:S/../../:=foo/}.
2006-06-17Fixed the adjustment of the directory depth. The last commit to itrillig1-2/+2
(1.611) had broken the check of pkgsrc infrastructure files.
2006-06-17Typo (FileMask instead of Filemask).rillig1-2/+2