summaryrefslogtreecommitdiff
path: root/pkgtools
AgeCommit message (Collapse)AuthorFilesLines
2005-11-24Update to 1.1: Install manpageswiz2-3/+7
2005-11-24Bugfix.rillig1-4/+7
- Removed the unused variable $opt_explain. It should really have been PkgLint::Logging::set_explain(). - In accordance to my personal idea of beauty, the --explain messages are indented as deep as the last diagnostics, and not by a single "\t".
2005-11-24Implemented the --explain option and the checks for CPP macros in patchrillig1-2/+4
files. New TODO items: * extract the DISTFILES if they exist and check all files in them for: - security holes, - coding style violations, - possible unportable constructs
2005-11-24Updated pkglint to 4.46.rillig4-30/+142
Changes since 4.45: - Added the type ShellWord. - Added quoting checks for variables that are appended to a List of ShellWord. - Multiple -v increase the verbosity. - The --autofix option is no longer undocumented, but still experimental, as this is the only part of pkglint that can modify external files. - Added an --explain option that provides additional help for the diagnostics. - Added checks for unportable CPP macro names in patches. - Updated the documentation.
2005-11-24- Not all possible plural variables have to be quoted withrillig1-5/+5
:M*:Q instead of a simple :Q. Currently only the GNU configure scripts need the white-space stripped, so it's enough to quote those (see regex_gnu_configure_volatile_vars in the source).
2005-11-24Updated pkglint to 4.45.3.rillig3-85/+111
- Added detection of redirection operators and comments to the regex_shellword constant. - Changed the naming conventions for list data types. Now List simply means a list. List+ means a list that should only be modified using "+=", not "=". List! means an internal list. And List!+ is the combination of both. The distinction is necessary because of the introduction of redirection operators in the regex_shellword. When checking the data type of list elements, the lists are split up into shell words instead of simply using split(). This leads to much better results. - When splitting a variable value or shell command into words, anchor the regular expression at the beginning of the string.
2005-11-24Improved, reindented and commented the regular expression for shell words.rillig1-3/+11
2005-11-23Updated pkglint to 4.45.2.rillig2-53/+65
- Removed log_subinfo(). - Added log_debug(). - Multiple -v command line options increase the verbosity. - Added the regex_shellword constant that will allow better parsing of shell commands. Currently it is only producing debugging information. - Long [info] messages have been changed to [debug] messages.
2005-11-23Conditionally include header files, and include nbcompat.hben1-1/+17
Addresses PR#32149
2005-11-23Sync with src. Remove unused variable argc from apply_perms().ben1-3/+2
2005-11-23When a list is appended to another list, like MAKE_ENV+=rillig1-8/+12
CFLAGS=${CFLAGS}, check for the correct modifiers. The above is obviously not correct, as CFLAGS may contain white-space. CFLAGS=${CFLAGS:Q} is also a little wrong in that it may contain leading and/or trailing white-space, which must be discarded, too, because the broken GNU configure scripts cannot handle them correctly. This can be done using ${CFLAGS:M*:Q}, which first splits CFLAGS into a list of shell words, then selects all of them and finally combines the words forming a nicely formatted string without leading and trailing white-space where all entries are separated from each other by a single space.
2005-11-23Updated pkglint to 4.45.1.rillig3-14/+20
- Added a new type ShellWord that is used for MAKE_ENV and the like to check for invalid FOO="${VALUE}" additions. They really should be FOO=${VALUE:Q}, as they may already contain embedded quotes. This is especially important for CPPFLAGS and CFLAGS.
2005-11-23Remove unused variables, fix variable names to avoid shadowing globals,ben3-21/+23
and add PAX_CMD fallback macro.
2005-11-22Reduce the use of the system() function in pkg_install to avoid quotingben14-221/+425
problems. Instead, use exec*() functions. Replace PUSHOUT() macro and string buffers with a function that operates on data structures. If it is necessary to copy files into place from staging area, then use pax to copy them. Add functions in pexec.c to create a pipe for sending data to a child process. Replace pipe code in create/perform.c with these functions. Use these functions instead of command-line arguments when copying files into place from staging area. Three system() references remain: @exec, @unexec, and vsystem().
2005-11-21Updated pkglint to 4.45.rillig2-14/+14
- Fixed perl -T warnings: - Replaced $#{@{$lines}} with $#{$lines}. - Avoided calls to external programs (sed and digest). - Removed redundant warning if DISTNAME is set to an invalid package name and PKGNAME is not defined. - Changed dependency from pkgtools/digest to security/p5-Digest-SHA1.
2005-11-21* warn about unportable CPP macros in patches.rillig1-0/+1
2005-11-21Fixed a syntax error. I had forgotten to begin a comment with a "#".rillig1-3/+3
2005-11-20Updated pkglint to 4.44.rillig4-22/+5
Changes since 4.43: - Removed the remaining code that had been imported from FreeBSD's portlint. - Removed the (undocumented) -Wvague option. - Removed the -Wexec and -Wparen options. The latter had no effect at all, and the former cannot lead to false positives, so it is always enabled. - Variable names starting with an underscore are reserved for internal pkgsrc use. - Added some more type checks.
2005-11-20Reworked the in-file documentation on pkglint. Added section headings.rillig1-23/+141
Renamed some subroutines to fit into the general scheme.
2005-11-20Removed the (undocumented) -Wvague option. All diagnostics that had beenrillig1-29/+33
depending on this option have been converted to modern code, although it can still be improved.
2005-11-20Don't print warnings for unknown "empty" directories like pkg/ and scripts/rillig1-2/+2
that occur during "cvs update"s.
2005-11-20Updated pkglint to 4.43.2.rillig3-7/+43
- Renamed the type Dependency to DependencyWithPath. - Added new types Dependency, PlatformTuple and RelativePkgDir. - Added some of the common variables to the list of typed variables.
2005-11-20Use $conf_pkgsrcdir instead of hard-coded "/usr/pkgsrc".rillig1-3/+3
2005-11-20Added the $conf_make variable to solve compile-time errors.rillig1-1/+2
2005-11-20Updated lintpkgsrc to 4.43.1.rillig2-7/+17
- In BATCH mode, that is for the bulk builds, hardcode PKGSRCDIR as /usr/pkgsrc. Otherwise take ${PKGSRCDIR}.
2005-11-20Don't report *_MK variables as unchecked.rillig1-2/+4
2005-11-19As long as pkg_regress is not mentioned in the pkgsrc guide, it does notrillig1-2/+1
deserve to have the pkgsrc guide as a homepage.
2005-11-19Variable names starting with an underscore are reserved for internalrillig1-3/+2
pkgsrc use.
2005-11-19Code cleanup.rillig1-164/+22
- Removed some of the old checks. - Replaced some of the old checks with modern code. - Replaced some of the old checks with TODO markers.
2005-11-19Replaced the special purpose variable $seen_USE_PKGLOCALEDIR with therillig1-6/+15
$makevar table. This allows for easy checks that involve more than only one variable.
2005-11-19Removed the old EXTRACT_SUFX check.rillig1-19/+2
2005-11-19Don't complain if no MAINTAINER is given.rillig1-13/+1
2005-11-19Oops, covered the tracks from last-minute tests.rillig1-2/+1
2005-11-19Updated pkglint to 4.43.rillig5-14/+69
Changes since 4.42: - Reduced the number of duplicate diagnostics when checking multiple files. Only diagnostics concerning the current package are printed. - Added checks for EXTRACT_SUFX and PKG_INSTALLATION_TYPES. - Added a work-around for the PHP patches warnings. - PERL5_PACKLIST should not contain references to other variables. - Added the -s|--source command line option to show the code along with the diagnostics. - Fixed a bug in get_logical_line(); logical lines have not had their physical lines attached. - Deprecated variables are not only checked when they are defined but also when they are used.
2005-11-19Updated pkglint to 4.42.2.rillig3-4/+10
- Added a check that PERL5_PACKLIST does not contain references to other variables. Some packages have ${PERL5_SITEARCH} in it, which results in a double slash, and the CHECK_FILES framework cannot handle this.
2005-11-18revert last, and apply the simpler fix to the MAKEEXTRALIST macro ingrant1-9/+7
NetBSD libc from martin@
2005-11-18pass const empty string to MAKEEXTRALIST macro instead of thegrant1-5/+8
anonymous empty string. the macro uses the argument multiple times and the logic relies on identical strings having the same address, which is compiler dependent and not guaranteed to be the case. problem observed with pax(1) built with sunpro 11 on Solaris. from segv@netctl.net in PR pkg/32097.
2005-11-17If there are no files to clean, do nothing.rillig1-1/+5
2005-11-17Updated pkgclean to 20051116.rillig4-138/+91
- Replaced the C implementation by a shell program, as the latter is more portable. Fixes PR 26970. Ok'ed by maintainer.
2005-11-17Fix for part of PR#32092: add SKIP_AUDIT_PACKAGES=yes so pkg_install canerh1-1/+2
be updated even if audit-packages is out of date. The audit-packages package already has this.
2005-11-17Added a dependency on libnbcompat to allow building on Solaris easier.rillig2-2/+8
(See PR 23746.) It still needs work in the area of Berkeley DB selection. Bumped PKGREVISION.
2005-11-16Update to version 1.24.seb3-15/+53
When installing libkver, as required when NETBSD_RELEASE is set in a pkg_comp configuration, do so in a special purpose prefix and use it from there. This is useful when running a bulk build in the chroot or simply removing all installed packages in it: the libkver package won't be removed hence the chroot will still be usable. Approved by MAINTAINER.
2005-11-15Values in SUBST_CLASSES may be tool names.rillig1-1/+2
2005-11-15USE_JAVA2 may be "YES", too.rillig1-2/+2
2005-11-15Removed the (vague) check for "nb\d+" in DISTNAME.rillig1-6/+1
2005-11-15* mention the SUBST framework whenever ${SED} is used.rillig1-0/+1
2005-11-15Updated pkglint to 4.42.1.rillig2-5/+8
Added a work-around for the warnings from PHP modules when including lang/php/ext.mk.
2005-11-15Don't hide errors in the post-install stage.rillig1-2/+2
2005-11-15MANINSTALL is a user-settable variable and thus must not be defined byrillig1-5/+1
the package Makefile.
2005-11-14The last change was a bad idea. Reverted it partly. Now pkglint -I showsrillig1-22/+24
the whole file with included files again, but the checks are only done against the main Makefile.