summaryrefslogtreecommitdiff
path: root/pkgtools
AgeCommit message (Collapse)AuthorFilesLines
2006-01-23- Made the parser for distinfo files stricter. It can catch mismatchedrillig1-14/+59
filenames now. - MD5 checksums are marked as deprecated. - Warnings from distinfo files now appear correctly sorted.
2006-01-23- Made -Wvarorder work like stated in the documentation. I had replaced therillig1-5/+9
wrong ``false'' with $opt_warn_varorder. - Fixed the detection of $seen_Makefile_common.
2006-01-22- Instead of only allowing the :Q modifier for quoting, allow any modifierrillig1-2/+7
that ends in :Q. - When NO_CONFIGURE ist defined, REPLACE_PERL does not work.
2006-01-21Update "rpm2pkg" package to version 2.1.1. Changes since 2.1:tron2-6/+5
- Fixed GCC 4.x build warning (which would have resulted in an error with future GCC versions). - Depend on newer version of "rpm" package to fix build under Mac OS X.
2006-01-21Update package Makefile now that bsd.pkg.extract.mk is using thejlam2-4/+2
"extract" script for extraction. Many cases where a custom EXTRACT_CMD simply copied the distfile into the work directory are no longer needed. The extract script also hides differences between pax and tar behind a common command-line interface, so we no longer need code that's conditional on whether EXTRACT_USING is tar or pax.
2006-01-20Updated pkglint to 4.54.rillig1-2/+2
Changes since 4.53: - Added about 50 new variables to be type-checked. - For unknown variables, the type is guessed from the variable name. - In patch files that patch Makefiles, added lines are checked for absolute pathnames. - Replaced the -Wdebug option with --debug, so that the debugging warnings don't show up when using -Wall. - Many minor improvements.
2006-01-20- Added the -d|--debug command line option, which replaces -Wdebug. Therillig3-33/+58
latter has been removed. - Added -Wvarorder (default: disabled) to check the ordering of variables in simple packages. - Using ${WRKSRC}/.. is only considered a warning, not an error, because there are packages that work nevertheless. Using this construct remains discouraged. - Replaced most of the TODOs in the source code with code that prints a warning in --debug mode. - The characters '.' and '+' are allowed in BuildlinkPackages. - Variables *_FLAGS and *_ARGS that have their type guessed based on the name don't have to be assigned using the += operator. - Variables that are assigned using the != operator are not checked for type compliance. - README files are not marked as unknown when they appear in a package directory.
2006-01-20Setting BROKEN_GETTEXT_DETECTION to "no" really means "no", so allow it.rillig1-2/+2
2006-01-20Despite its name, BUILTIN_FIND_FILES_VAR is a _list_ of variable names.rillig1-2/+2
2006-01-19Add include/X11/XlibConf.h to xorg list. I noticed and added thatreed2-3/+4
a few weeks ago when I was doing some builds using modular-xorg. (Now that new Xorg is in, maybe there are some others to add?) Update version.
2006-01-17- Added some more state transitions and warnings to the shellword parser.rillig1-1/+25
It has come to the point where almost any further improvement means to adopt a real recursive parser.
2006-01-16- In -Wextra mode, emit warnings if a "?=" operator occurs beforerillig1-1/+17
../../bsd.prefs.mk is included. (It is only shown in -Wextra mode because it is still quite unreliable.)
2006-01-15Update pkgtools/pkg_chk to 1.66abs2-4/+4
Fix incorrect quotation in test
2006-01-15- Implemented a first prototype of the diagnostics with character-wiserillig1-24/+121
precision in checkfile_patch for the warning for context diffs. - The --source option produces more condensed output than before. - The diagnostics with character-wise precision are colored using ANSI/VT100 color sequences. Support for other output formats will be added later.
2006-01-14- The pkgdir variable is only defined when checking a pkgsrc package. Forrillig1-2/+3
other directories it is undefined. This avoids some false warnings when checking files in pkgsrc/mk/.
2006-01-14- Reduced the number of false warnings for relative directories.rillig1-5/+8
2006-01-14- Unquoted make variables in shell words can be fixed automatically. Asrillig1-3/+21
with the change from December 2005, when using this feature, care should be taken for variables that are pre-quoted. - In patch files that patch Makefiles, added lines are checked for absolute pathnames.
2006-01-13Added LIBTOOL_OVERRIDE.rillig1-1/+2
2006-01-13- When guessing the type of variables, *_DIRS and *_FILES are both of therillig1-3/+3
type List of Pathmask.
2006-01-12- Added about 50 variable types to makevars.map.rillig2-22/+146
- Added some variable types. - For unknown variables, the type is guessed from the variable name. - Added more checks for relative pathnames. - Improved the shell parser once more.
2006-01-12Bump date for some new features.wiz2-3/+3
2006-01-12When creating the sorted list of binary packages, "ls -t *.tgz" canjoerg2-4/+4
easily overflow the argument space e.g. on DragonFly. Replace this statement with "ls -t | grep '\.tgz$'" to remove this constraint.
2006-01-12Add runtime dependency of xpkgwedge on imake and xmkmf.joerg1-2/+5
When using non-native X11, xpkgwedge could be installed before imake and host.def en up with just the xpkgwedge.def include. This means that ProjectRoot as set by xorg's host.def is not used and wrong path names are used. This run time dependency is the easiest way to ensure proper order, but isn't perfect. Just providing a fixed host.def and a secondary include file for Lesstif to modify breaks with USE_XPKGWEDGE=NO, so keep the old approach. Discussed with jlam@
2006-01-12Updated pkglint to 4.53.rillig1-2/+2
Changes since 4.52: - New warning categories "debug", "space", "quoting" that can be selected independently. - Improved the parsers for shell commands and shell words. - Added warning for using $(...) in shell programs, as the Solaris /bin/sh doesn't support it. - Added some warnings about quoting. - Some other minor changes.
2006-01-12Added APACHE_MODULE.rillig1-1/+2
2006-01-12- Allow '^' to appear unquoted in shell programs, although it ``is anrillig1-3/+13
obsolete synonym for the pipe operator "|", so you must protect it with quotes''. (Kernighan/Pike, The UNIX Programming Environment, 1984.) - $@ is another well-known shell variable. - All substitution arguments to ${SED} and ${PAX} should be quoted whether they contain special characters or not.
2006-01-12- The shell variables $!, $# and $? are recognized as such. All otherrillig1-3/+7
occurences of a $ in double quoted strings result in a warning.
2006-01-12- Improved the parsers for shell words and shell commands. Parsing errorsrillig1-18/+34
are only shown in -Wdebug mode, as the diagnostic messages are too cryptic. - Added detection for the $(...) replacement for backticks, as the Solaris /bin/sh cannot handle them.
2006-01-12- Defining and using make variables starting with an underscore is onlyrillig1-3/+3
worth a warning, not an error. There are worse things at the moment that need to be fixed.
2006-01-12- Added three warning categories "debug", "quoting" and "space" that canrillig3-5/+31
be enabled independently. They are all disabled by default. - A note is emitted if variable definitions are aligned using space instead of tabs.
2006-01-12- Added the package PkgLint::String, which will be used for improving therillig1-1/+227
precision of the diagnostics. It is currently unused.
2006-01-12- Added plist-clash.pl to the list of files that have @PERL@ replaced.rillig1-1/+2
2006-01-11- In the shell command parser, go to state SCST_CONT instead of SCST_STARTrillig1-2/+5
after parsing the command line options of ${INSTALL}. - Don't warn for CFLAGS that reference other make variables.
2006-01-11- In resolve_relative_path, the depth of the path should only be adjustedrillig1-8/+10
in about half the cases -- added an additional parameter.
2006-01-11Fixed spacing issue.rillig2-3/+3
2006-01-11- Renamed PkgLint::FileUtil::Line to PkgLint::Line in preparation to somerillig1-5/+5
upcoming changes.
2006-01-10Use ${ABI} for library files, patterned after what SGI does. This makeschristos2-231/+234
X11 packages work on amd64 linux boxes. From Benjamin Shi.
2006-01-10Updated pkglint to 4.52.rillig1-2/+2
Changes since 4.51: - The occurence of a symlink other than work* inside the pkgsrc tree is not an error, just a warning. - SUBST_MESSAGE should not be quoted. - If -Wextra is enabled, all make variables that are used in shell commands are checked for proper quoting. - Improved the parser for shell commands. - Some other minor changes.
2006-01-09Fixed the simple part of the pkglint -Wall warnings.rillig1-14/+12
2006-01-09- Even in an unquoted shell word, variables should be quoted. For example,rillig1-7/+13
${PREFIX:Q}/foo. - The semicolon after the "for" loop in the shell does not mean that some exitcode is ignored, so don't print warnings for it.
2006-01-09- Only check make variables for deprecation and $(...) instead of ${...}.rillig1-3/+3
2006-01-09- Added "Please use ${FOO} instead of $(FOO)."rillig1-3/+11
- It is an error if the COMMENT has the default value from url2pkg.
2006-01-08Unbreak by adding NO_BUILD=yes.joerg1-1/+2
2006-01-08- Rewrote the state transition of the shell command parser. The sourcerillig1-75/+52
code now needs less lines than before. For unknown state/shellword combinations, warnings are printed (currently none).
2006-01-08- In shell commands, "case" statements are parsed properly. (Fixes a falserillig1-16/+46
positive warning in mk/subst.mk.) - Improved debugging support for parsing shell commands by printing the current state and word in -vv mode.
2006-01-08Sync with usr.sbin/pkg_install 1.58:wiz1-3/+3
Use MaxPathSize instead of PATH_MAX.
2006-01-07- Enabled the quoting warning for SUBST_MESSAGE (this time the otherrillig1-6/+1
direction: it had been quoted too much in the past).
2006-01-07- Added SUBST_MESSAGE to the list of checked variables. The plan is torillig2-3/+20
remove the quoting from the definitions in the Makefiles. - When checking with -Wall, print warnings about possibly misquoted variables in the various states of the shell word parser.
2006-01-06Update to version 1.25.seb3-33/+15
Fix libkver support for pkg_comp's build, auto and install targets, Reported broken and fix tested by salo@. Also ensure libkver is built, if needed, even before digest. Approved by jmmv@
2006-01-06- Moved the code for checking macro names in patch lines into its ownrillig1-47/+52
subroutine, as it has no code that is specific to patch files.