Commit graph

2640 commits

Author SHA1 Message Date
wiz
776a05be72 Reset maintainer for people who lost their commit bit. 2006-09-03 00:56:28 +00:00
rillig
6473db4be8 Made the shell word parser accept \$$ as a token. This avoids an
internal error showing up in benchmarks/netio.
2006-08-31 06:49:59 +00:00
rillig
4ee2cb47d0 The *.mk files need two passes to make the BUILD_DEFS check work
reasonably well. In the first pass, all variables that are added to
BUILD_DEFS are collected, and in the second pass it is checked whether
any remaining user-defined variables are used but have not been added to
BUILD_DEFS. This way, it does not matter in which order the variables
appear in the files.
2006-08-30 05:41:19 +00:00
joerg
49de1e68ab Revert libncompat usage and kill the use of snprintf in whirlpool and
tiger instead. Also kill bogus NULL pointer handling in both algorithms:
passing null pointers as buffers (when len != 0) or context is a serious
programming error and should result in a segfault. Bump version to
20060826. OK agc@
2006-08-29 13:43:11 +00:00
rillig
f4c2c3df56 Variable names may contain simply nested variables. This allows the
shell parser to correctly handle ${WRKSRC.${d}}, which appears for
example in geography/epsg.

Avoided an internal fatal error for files that contain RCS conflicts.
2006-08-28 12:41:49 +00:00
seb
7abfde914a For the benefit of Mr. Kite^W^Wsnprint.c add long double type detection. 2006-08-26 21:28:21 +00:00
schwarz
79d60be97e include libnbcompat on IRIX 5 in order to provide snprintf() 2006-08-26 15:39:07 +00:00
abs
f51ebc1798 Update pkg_chk to 1.80:
- Intoduce fatal_later() and fatal_later_check() and use them to clean
    up reporting unavailable package dependencies
  - Remove unused references to opt_S (reported by bad@)
  - Fix manpage reference DEPENDS_TARGET -> UPDATE_TARGET (reported by bad@)
2006-08-25 19:49:53 +00:00
wiz
91588977bb Add missing file to PLIST. Bump version. 2006-08-24 17:49:52 +00:00
wiz
dfbf866523 Fix a pasto.
Correct installation logic -- it was reversed.
Bump version number, since package was completely broken.
2006-08-24 17:46:53 +00:00
schwarz
53de6e942a make sure INSTALL gets passed to the Makefile 2006-08-19 14:38:52 +00:00
wiz
121d1f872a Remove comments, because printindex cannot handle them. 2006-08-18 23:53:30 +00:00
wiz
b7f48bab50 Uncomment directories which had no reason given for being commented out. 2006-08-17 09:55:15 +00:00
taca
4368f45ac6 Fix compile problem on gcc-4; added simply includes of <stdio.h>. 2006-08-11 14:44:29 +00:00
abs
37fcb1749e update pkg_chk to 1.79: default PKG_DBDIR 2006-08-10 08:54:44 +00:00
schwarz
ff389f044d CPP on IRIX 5 with IDO cc is /usr/lib/cpp 2006-08-06 18:59:41 +00:00
cube
2f67ea37c1 Fix -q which ate the next argument. Only document -i and -c in the
"Deprecated options" part of the manual.

PR#34145 by Dieter Roelants.
2006-08-06 12:21:09 +00:00
rillig
74a427c66c Updated pkglint to 4.68.
Changes since 4.67:
- Adjusted to the ongoing changes in the pkgsrc infrastructure.
- Many small improvements in the makevars.map file.
- Stricter checking of dependency patterns, to catch foo-*.
- Small improvement on the use of stack space due to complicated regular
  expressions.
- Many more absolute pathnames are found in patch files, no matter which
  type of file is patched.
- All user-defined variables that are used should be added to BUILD_DEFS.
- All packages that set GNU_CONFIGURE are assumed to need a C compiler.
- Instead of ${TOOL}, tool may be used directly, since the tool wrappers
  are installed very early in the build process.
- Removed the --debug option.
... and many more.
2006-08-04 18:41:11 +00:00
rillig
e6888bbd20 Added more code to the shell word parser so that it can parse variables,
in double quotes or not, inside backticks.
2006-08-04 18:32:41 +00:00
rillig
71e149a97c s/man/${PKGMANDIR}/ 2006-08-04 12:04:00 +00:00
tv
466785ba67 xpkgwedge is an in-pkgsrc tool; it doesn't use PKGREVISION. Make it 1.16. 2006-08-03 17:35:12 +00:00
heinz
b92df023d8 On Linux the Imake files need gmake, so we do _not_ need MAKE but
IMAKE_MAKE replaced in pkgxmkmf.
2006-08-02 20:26:15 +00:00
bad
a7b4b60ca1 Ensure that the file that is opened in the editor is writable by the user.
Approved by wiz@.
2006-08-01 17:59:17 +00:00
rillig
c76ceee5d1 Pkglint can now resolve a plain occurrence of ${DISTNAME} in PKGNAME,
which helps for some Perl modules to get the correct package name, which
in turn influences whether the update requests from doc/TODO can be
shown or not.

Suggested by wiz.
2006-08-01 08:58:49 +00:00
wiz
a0113fe3a9 Remove leading zero in date. 2006-07-30 00:22:18 +00:00
rillig
cac6ecf983 Since dots are common in pathnames, include them when looking for
absolute pathnames.
2006-07-29 10:56:03 +00:00
rillig
1a4335bbc9 Pkglint now recognizes .include <foo> directives, which is necessary for
some of the infrastructure files. This also allows checking the
Makefiles in htdocs.

Added GAMEOWN, GAMEGRP and GAMEDIRMODE to the list of user-defined
variables that don't need to be mentioned in BUILD_DEFS.

When looking for absolute pathnames in "other" files, don't require them
to have a second component. This produces warnings for /var and /tmp,
which had been hidden before.

When strings that are likely to be absolute pathnames appear in the form
$(VARIABLE)/bin or "+ '/bin'", don't print a warning. The latter is used
when "+" is a string concatenation operator.

The direct use of tools is only suggested in targets named
{pre,do,post}-*, since other ones may be invoked without the tool
directory being in the PATH.
2006-07-29 09:13:59 +00:00
wiz
a0b3f531bd Remove superfluous .Nm. 2006-07-28 21:58:04 +00:00
rillig
b793473e6c The shell command lines in Makefiles are split into words, which are then
saved in the line as extra fields.

When checking for absolute pathnames in "other" files, allow the form
${variable}/bin, as seen in www/apache2/patches/patch-ad. Noticed by
Matthias Scheler.
2006-07-28 17:10:12 +00:00
dmcmahill
63bfc354d4 Allow the binpkg-cache script to also generate pkg_summary.gz files
if requested.  Suggested by Joerg Sonnenberger.
2006-07-28 02:41:07 +00:00
rillig
2693f38ac9 Renamed *_SITE_* to *_SITES_*. 2006-07-27 18:59:32 +00:00
rillig
3440a30b3f DYNAMIC_MASTER_SITES is gone. 2006-07-27 16:13:51 +00:00
rillig
d5f379de6b Some minor tweaks. 2006-07-27 15:48:45 +00:00
rillig
5309d481eb Updated the man page. 2006-07-27 15:48:05 +00:00
rillig
698297e55a Removed the --debug option, which has been superseded by the various
-D... options.

Removed the check for the :Q operator in C preprocessor macro
definitions, since we generally don't expect directory names with
embedded special characters in pkgsrc.

In buildlink3.mk files, the only BUILDLINK_* variables that may be set
are those of the current package.

The shell variables $@ and $? are now recognized. Since the shell parser
is able to parse the complete code in all pkgsrc packages, make parse
errors show in the normal pkglint output. These errors had been hidden
before.

Fixed the regular expressions in the shell parser to only match at the
beginning of the string. That way, when the shell command contains $$@,
the $@ is not removed, leaving a single $ behind.

Added some code to deal with the different parsing styles of bmake in
variable assignments and shell commands. For that, the PkgLint::Line
class has been extended to contain arbitrary additional data. This will
also allow to reduce the number of duplicate warnings later.

The assert() procedure has got a second parameter, the message to be
printed.

Variable assignment lines start start with a space character (\u0020)
are now recognized, but no warning is printed.

In pathnames and pathmasks, the '#' character is allowed, since some
packages need to remove the .#* files from CVS before installing.
2006-07-27 13:05:09 +00:00
rillig
e63f83be33 Fixed a duplicate ID. 2006-07-27 09:19:37 +00:00
rillig
22d312b3c2 In addition to ${SED} and ${TR}, sed and tr should not be used in the
install phase.

Stricter checks for manual pages in PLIST files.
2006-07-24 09:25:57 +00:00
abs
6ceb8320eb Update pkg_chk to 1.77:
- Resolve PR/31909 - use tr rather than fmt to avoid issue on Solaris
- Resolve PR/33370 - always show fatal messages to STDERR
- Resolve PR/32326 - Correctly extract PKG_DBDIR
Also, when -v is used display the state of all extracted variables at the
start of the run
2006-07-22 20:41:20 +00:00
rillig
503e7791dd Policy change: Instead of the tool variables (for example ${CP}), the
simple commands (for example "cp") should be used, since the tools
framework provides wrappers for them. This applies only to the cases
where the tool variables appears as the first word in a shell command.
When doing substitutions in files that are later installed, the full
name should still be used.
2006-07-22 06:47:40 +00:00
rillig
f0149979dd Don't warn about the GNU_CONFIGURE/USE_LANGUAGES combination when a
comment in that line contains the word "c" in either case, or if objc is
specified, since that enables the C compiler, too.
2006-07-22 05:28:45 +00:00
rillig
e2d5f766fa Fixed the regular expression to detect whether USE_LANGUAGES contains
"c" or not.
2006-07-21 19:09:23 +00:00
jlam
f127121a2e BUILD_ENV has been renamed to PKGSRC_MAKE_ENV. 2006-07-21 14:28:35 +00:00
jlam
80369fb5c8 Modify the shlib-type script so that it doesn't need to compile anything
-- instead, we just check "pkg_info", which should exist on all pkgsrc
platforms.

XXX Note that this may need to change when we later support other package
XXX system flavors.

Back out revision 1.79 of pkgtools/x11-links/Makefile which was only to
work around needing a C compiler for shlib-type to work.
2006-07-21 13:40:27 +00:00
jlam
60e1b70303 Remove "foo" target that's clearly a debuggging target. 2006-07-21 13:36:39 +00:00
seb
f73b8816f3 Mark as using c language. This fix PLIST problem while doing
'make package' (make; make package works): without this SHLIB_TYPE
is set to 'none' while doing 'make package', resulting in
mk/plist/shlib-none.awk being used hence missing PLIST entries.

XXX I suppose this may not really be the right fix (barrier
problem?) but for the time being 'pkg_comp makeroot' succeed

XXX What is this 'foo' target?
2006-07-21 12:37:49 +00:00
rillig
881c324e57 Parameters to subroutines are passed in @_, not in $@. Added a paragraph
explaining the extreme slowliness of the current Perl interpreter.
2006-07-21 05:11:34 +00:00
rillig
a90cfbf3b8 Warn if GNU_CONFIGURE is set but USE_LANGUAGES does not contain "c", since
that one is needed in almost all cases.
2006-07-21 05:02:52 +00:00
jlam
8f3802b3d9 Remove USE_GNU_GETTEXT from pkgsrc. Packages generally only needed
it for plurals support, but that is already handled correctly (FSVO
"correctly") by the pkgsrc/mk/tools/msgfmt.sh script.

Also remove _USE_GNU_GETTEXT definitions from pkgsrc/mk/platform/*.mk
files as that value has been unused by pkgsrc for quite some time
(going back several branches).
2006-07-20 20:02:23 +00:00
gson
9d4c7f77de Import the following change to add/perform.c from src to pkgsrc:
Fix uninitialized variable which was causing pkg_add -u to randomly
 dump core.  This may fix PR pkg/30292.

Also bump the pkgsrc PKGTOOLS_VERSION to 20060720.
2006-07-20 11:29:48 +00:00
jlam
7af716330d Drop support for LTCONFIG_OVERRIDE. For quite a long time, pkgsrc
had actually been ignoring LTCONFIG_OVERRIDE anyway and just using
the default LIBTOOL_OVERRIDE to replace libtool scripts in packages.
This just formalizes the fact that LTCONFIG_OVERRIDE is not used
meaningfully by pkgsrc.
2006-07-19 19:14:37 +00:00