Commit graph

2000 commits

Author SHA1 Message Date
ben
8926549f00 Sync with src. Remove unused variable argc from apply_perms(). 2005-11-23 14:33:50 +00:00
rillig
fe34e666fb When a list is appended to another list, like MAKE_ENV+=
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-23 06:05:52 +00:00
rillig
09ccc37a3a Updated pkglint to 4.45.1.
- 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-23 05:18:46 +00:00
ben
f1c7672081 Remove unused variables, fix variable names to avoid shadowing globals,
and add PAX_CMD fallback macro.
2005-11-23 04:49:51 +00:00
ben
df7be8ce2f Reduce the use of the system() function in pkg_install to avoid quoting
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-22 15:44:59 +00:00
rillig
3ffb27719a Updated pkglint to 4.45.
- 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 22:06:30 +00:00
rillig
9cb1e0009d * warn about unportable CPP macros in patches. 2005-11-21 16:56:02 +00:00
rillig
10c9716bc9 Fixed a syntax error. I had forgotten to begin a comment with a "#". 2005-11-21 07:24:51 +00:00
rillig
6efa75eb39 Updated pkglint to 4.44.
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-20 20:09:35 +00:00
rillig
910a64aaed Reworked the in-file documentation on pkglint. Added section headings.
Renamed some subroutines to fit into the general scheme.
2005-11-20 19:58:46 +00:00
rillig
637bf9e082 Removed the (undocumented) -Wvague option. All diagnostics that had been
depending on this option have been converted to modern code, although it
can still be improved.
2005-11-20 19:04:20 +00:00
rillig
c4795a075c Don't print warnings for unknown "empty" directories like pkg/ and scripts/
that occur during "cvs update"s.
2005-11-20 13:59:37 +00:00
rillig
9ba2c80228 Updated pkglint to 4.43.2.
- 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-20 13:14:17 +00:00
rillig
b06833b0b6 Use $conf_pkgsrcdir instead of hard-coded "/usr/pkgsrc". 2005-11-20 12:32:17 +00:00
rillig
03c36b46c4 Added the $conf_make variable to solve compile-time errors. 2005-11-20 12:27:18 +00:00
rillig
99e0d66756 Updated lintpkgsrc to 4.43.1.
- In BATCH mode, that is for the bulk builds, hardcode PKGSRCDIR as
  /usr/pkgsrc. Otherwise take ${PKGSRCDIR}.
2005-11-20 10:55:43 +00:00
rillig
5cf5e4b62f Don't report *_MK variables as unchecked. 2005-11-20 10:07:45 +00:00
rillig
2348fcf70d As long as pkg_regress is not mentioned in the pkgsrc guide, it does not
deserve to have the pkgsrc guide as a homepage.
2005-11-19 20:41:12 +00:00
rillig
c790505a33 Variable names starting with an underscore are reserved for internal
pkgsrc use.
2005-11-19 19:28:06 +00:00
rillig
e6069e52f8 Code cleanup.
- 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-19 19:18:56 +00:00
rillig
b92397af64 Replaced the special purpose variable $seen_USE_PKGLOCALEDIR with the
$makevar table. This allows for easy checks that involve more than only
one variable.
2005-11-19 18:26:32 +00:00
rillig
3fa3f9f6a3 Removed the old EXTRACT_SUFX check. 2005-11-19 17:58:12 +00:00
rillig
5a42297464 Don't complain if no MAINTAINER is given. 2005-11-19 17:54:37 +00:00
rillig
316a73bcbe Oops, covered the tracks from last-minute tests. 2005-11-19 17:23:49 +00:00
rillig
562cdf5268 Updated pkglint to 4.43.
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-19 17:22:21 +00:00
rillig
9e07829918 Updated pkglint to 4.42.2.
- 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-19 13:34:41 +00:00
grant
f1ad5d68f5 revert last, and apply the simpler fix to the MAKEEXTRALIST macro in
NetBSD libc from martin@
2005-11-18 09:03:06 +00:00
grant
6e2b4f07ec pass const empty string to MAKEEXTRALIST macro instead of the
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-18 03:31:11 +00:00
rillig
b4723c94c6 If there are no files to clean, do nothing. 2005-11-17 22:58:36 +00:00
rillig
4abfc16536 Updated pkgclean to 20051116.
- Replaced the C implementation by a shell program, as the latter is
  more portable.

Fixes PR 26970.

Ok'ed by maintainer.
2005-11-17 22:30:09 +00:00
erh
31448b1b1c Fix for part of PR#32092: add SKIP_AUDIT_PACKAGES=yes so pkg_install can
be updated even if audit-packages is out of date.  The audit-packages package
already has this.
2005-11-17 17:05:30 +00:00
rillig
c4f8cd4a72 Added a dependency on libnbcompat to allow building on Solaris easier.
(See PR 23746.) It still needs work in the area of Berkeley DB
selection. Bumped PKGREVISION.
2005-11-17 17:02:04 +00:00
seb
5aa7ec82d4 Update to version 1.24.
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-16 01:31:35 +00:00
rillig
a1247dd801 Values in SUBST_CLASSES may be tool names. 2005-11-15 13:48:42 +00:00
rillig
3f52be8402 USE_JAVA2 may be "YES", too. 2005-11-15 13:42:50 +00:00
rillig
e0161be7eb Removed the (vague) check for "nb\d+" in DISTNAME. 2005-11-15 13:37:55 +00:00
rillig
77d1409d5f * mention the SUBST framework whenever ${SED} is used. 2005-11-15 10:30:54 +00:00
rillig
e60dd8de73 Updated pkglint to 4.42.1.
Added a work-around for the warnings from PHP modules when including
lang/php/ext.mk.
2005-11-15 03:10:20 +00:00
rillig
fcc9603807 Don't hide errors in the post-install stage. 2005-11-15 01:55:53 +00:00
rillig
57807fc95b MANINSTALL is a user-settable variable and thus must not be defined by
the package Makefile.
2005-11-15 01:55:00 +00:00
rillig
b8c93f2e88 The last change was a bad idea. Reverted it partly. Now pkglint -I shows
the whole file with included files again, but the checks are only done
against the main Makefile.
2005-11-14 16:49:20 +00:00
rillig
ca37329f8e * warn about the use of ${WRKDIR:=...}, as this construct should only
be used with lists.
2005-11-14 13:07:05 +00:00
rillig
84daccf125 WRKSRC is of type WrkdirSubdirectory, but no new checks are added. 2005-11-14 13:03:32 +00:00
rillig
b833d407cc - EXTRACT_SUFX is of type DistSuffix. 2005-11-14 12:51:57 +00:00
rillig
5b6ded4f08 The readmakefile() subroutine only returns the lines of the main Makefile
in the $all_lines parameter, but the whole text of the included files in
the $whole parameter.

This change avoids duplicate diagnostics for *.mk and Makefile* in the
package directory. A side effect is that package authors only get the
diagnostics they can probably fix, as diagnostics from included files are
not given.
2005-11-14 12:32:58 +00:00
rillig
6f16fd47e3 * avoid duplicate warnings. 2005-11-14 11:47:07 +00:00
rillig
b4f8c1132f Updated pkglint to 4.42.
Changes since 4.41:
- In .mk files, line continuations are properly handled.
- An open bracket is allowed in variable and tool names.
- Added checks for ALTERNATIVES and INSTALL/DEINSTALL files.
- By default, don't check files in ${FILESDIR}.
- Warn about unknown file and directory names.
2005-11-14 11:45:52 +00:00
dillo
0401832751 Sync with src/usr.sbin/pkg_install:
Fix first part of PR 32068: pkg_info -Q broken for local binary packages
        Add BUILD_INFO_FNAME to the files to extract for SHOW_BI_VAR.
Bump version.
2005-11-14 09:42:38 +00:00
dillo
71bd927ebf Remove obsolete file from OBJS also.
Fixes PR 32071 by HEO SeonMeyong.
2005-11-14 09:17:40 +00:00
seb
de47c7958b Rename LIBKVER_STANDALONE_DIR to LIBKVER_STANDALONE_PREFIX. 2005-11-14 08:58:51 +00:00