Commit graph

2477 commits

Author SHA1 Message Date
reed
4b4390245a Update to change package names that have been changed.
(And add include of xproto buildlink3.mk for x.org.)
Increase package version to 0.29.
2006-04-19 12:30:25 +00:00
hubertf
8f17059838 Sync with NetBSD's src/usr.sbin/pkg_install Version 20060418,
mostly for the timeout fix in ftpio.c.
2006-04-18 20:41:44 +00:00
rillig
20898fe52d Files called "manual-*" in the patches directory are not checked at all. 2006-04-18 00:35:18 +00:00
rillig
0f20f9fa28 In PLIST files, "share/locale" isn't deprecated anymore. 2006-04-18 00:01:48 +00:00
wiz
9a48b00282 Correct man page: PKGREVISION bumps need to be completed
before buildlink3.mk files can be updated. Update to 1.7.
2006-04-17 13:40:17 +00:00
rillig
fbf3c9f5f0 Added gettext.mk to the list of files that define the tool names. 2006-04-14 12:27:00 +00:00
rillig
74e526d67d The variables *OWN, *GRP, *MODE don't need the :Q operator. The :Q operator
is also not needed for certain variables when adding to a list.
2006-04-14 10:26:41 +00:00
rillig
52edce7df5 BUILD_USES_MSGFMT and USE_MSGFMT_PLURALS are deprecated. 2006-04-13 21:04:00 +00:00
wiz
e416505d14 finddepends: also look in options.mk files.
Welcome to 1.6\!
2006-04-13 18:58:17 +00:00
rillig
5ebd59d833 - The variables *_USER and *_GROUP don't need the :Q operator.
- Fixed a bug in the regular expression that detects sed(1) commands that
  don't start with "-e".
2006-04-13 01:57:35 +00:00
rillig
1c43c9af47 Removed an extra ". 2006-04-12 21:35:02 +00:00
rillig
e5cbb29b1e BUILDLINK_PREFIX.* does not need the :Q operator. 2006-04-12 20:28:03 +00:00
rillig
fade1f44b0 Removed superfluous :Q operators. 2006-04-12 20:25:06 +00:00
rillig
96fc47c14f Aligned the last line of the buildlink3.mk files with the first line, so
that they look nicer.
2006-04-12 10:26:59 +00:00
rillig
b407c541f2 The variables RECOMMENDED and BUILDLINK_RECOMMENDED are deprecated. 2006-04-12 09:23:36 +00:00
rillig
63f86ff4c5 The diagnostics for package updates now include the reason that is given
in doc/TODO, which is often a reference to a PR.
2006-04-12 08:49:57 +00:00
rillig
554064de83 Some variables, like WRKSRC, PREFIX, LOCALBASE and *DIR don't need the :Q
operator, since we expect them to never contain special characters. This
change reduces the number of -Wall warnings by approximately 28000.
2006-04-12 08:23:49 +00:00
rillig
e6072202fd Added an explanation for the state names of the patch file parser. 2006-04-11 18:41:50 +00:00
rillig
c2adb09c7a Don't warn about the misnamed variables *_TEMPLATE, which are actually
lists of files. Don't warn about files named "manual-*" in the patches
directory.
2006-04-11 17:44:29 +00:00
schwarz
6a99fbad5b Modified xmkmf support for Darwin and IRIX:
- on Darwin, pkgsrc no longer tries to set user or group when installing
  as unprivileged user, i.e. with UNPRIVILEGED set to yes.
- on IRIX (5 and 6) the system's xmkmf config files are no longer modified.
  Instead copies (that take priority with pkgsrc's xmkmf) are used for that
  purpose.
2006-04-10 13:38:36 +00:00
cube
97cdc85401 Adapt sysctl prototype for -current. The boundary is chosen as 3.99.16.
The broken area is -current between Feb 24th 2006 and Mar 2nd 2006.

Fixes PR#33226 by Cesar Catrian Carreno.
2006-04-09 17:47:46 +00:00
wiz
9ee6553610 Sync with src/usr.sbin v1.63:
Formatting nits.
2006-04-08 23:06:21 +00:00
reed
295b6a402f Welcome to version 20060405.
pkg_add also check for USE_ABI_DEPENDS.

Check if USE_ABI_DEPENDS or IGNORE_RECOMMENDED was set
when this package was built. IGNORE_RECOMMENDED is now historical.

For the cat man page, I manually made it say "pkgsrc" instead of
"NetBSD".

I committed to NetBSD's src/usr.sbin/pkg_install/ first :)
2006-04-06 06:49:30 +00:00
reed
d348169c00 Welcome to createbuildlink-3.11.
BUILDLINK_DEPENDS.foo becomes BUILDLINK_API_DEPENDS.foo.
2006-04-06 06:36:36 +00:00
reed
fd7750babc Welcome to revbump-1.5.
ABI_DEPENDS instead of RECOMMENDED.

Not tested, but also reviewed by maintainer.
2006-04-06 06:25:46 +00:00
reed
5abef9be14 Over 1200 files touched but no revisions bumped :)
RECOMMENDED is removed. It becomes ABI_DEPENDS.

BUILDLINK_RECOMMENDED.foo becomes BUILDLINK_ABI_DEPENDS.foo.

BUILDLINK_DEPENDS.foo becomes BUILDLINK_API_DEPENDS.foo.

BUILDLINK_DEPENDS does not change.

IGNORE_RECOMMENDED (which defaulted to "no") becomes USE_ABI_DEPENDS
which defaults to "yes".

Added to obsolete.mk checking for IGNORE_RECOMMENDED.

I did not manually go through and fix any aesthetic tab/spacing issues.

I have tested the above patch on DragonFly building and packaging
subversion and pkglint and their many dependencies.

I have also tested USE_ABI_DEPENDS=no on my NetBSD workstation (where I
have used IGNORE_RECOMMENDED for a long time). I have been an active user
of IGNORE_RECOMMENDED since it was available.

As suggested, I removed the documentation sentences suggesting bumping for
"security" issues.

As discussed on tech-pkg.

I will commit to revbump, pkglint, pkg_install, createbuildlink separately.

Note that if you use wip, it will fail!  I will commit to pkgsrc-wip
later (within day).
2006-04-06 06:21:32 +00:00
wiz
0bbdf0f44f Sync with src/usr.sbin v1.70:
http_expand_URL(): fclose() the fdopen()'ed filedescriptor
before leaving the function (for all cases).

Actual fix and sanity checking by Dillo & Wiz
Coverity CID 2340
2006-04-05 18:17:31 +00:00
wiz
cc332cafad Sync with src/usr.sbin v1.62:
When recognizing a broken package version/name,
make sure to error out really, don't just print a warning
and the run into further problems.

Coverity CID 2739.
2006-04-05 18:17:08 +00:00
wiz
047eb34369 Bump date for previous. 2006-04-04 20:49:43 +00:00
tv
ad54c428d8 1.69.1: Add a -q option, which is a superset of -n; squelches progress
messages and "echo-to-screen" commands (e.g., pkg_delete).  This provides
a much more accurate emulation of the former -c and -i options (now
-a -q and -u -q respectively), by suppressing messages not related to the
human-readable version information.
2006-04-04 18:38:13 +00:00
reed
b77ba07fe0 Use PKGMANDIR instead of hard-coded "man". 2006-04-04 12:25:07 +00:00
wiz
66ecb76eb5 Bump date, so that version in src and pkgsrc have the same
version _and_ the same code.
2006-04-04 06:38:29 +00:00
wiz
55a059b0bc Pull over v1.4 from src/usr.sbin:
revision 1.4
date: 2006/03/17 01:10:53;  author: hubertf;  state: Exp;  lines: +5 -2
Fix filedescriptor leak
Coverity CID 1625
2006-04-04 06:37:15 +00:00
wiz
90179254d2 Pull over v1.59-v1.61 from src/usr.sbin:
revision 1.61
date: 2006/03/17 17:46:44;  author: hubertf;  state: Exp;  lines: +4 -3
Put check if "best" is empty back into the right place, messed up
in previous commit.
Noted by yamt@
----------------------------
revision 1.60
date: 2006/03/17 02:20:46;  author: hubertf;  state: Exp;  lines: +10 -4
findbestmatchingname_fn(): catch possible problems if best (vp)
contains some strange name (shouldn't happen, but ...)

Coverity CID 869
----------------------------
revision 1.59
date: 2006/03/17 02:10:55;  author: hubertf;  state: Exp;  lines: +8 -7
findbestmatchingname_fn(): only do something sensible if the pointer
handed in is actually usable (not NULL)

Fixes Coverity ID 870
2006-04-04 06:36:12 +00:00
wiz
786e9a25a2 Pull over v1.36 from src/usr.sbin:
revision 1.36
date: 2006/03/17 01:58:25;  author: hubertf;  state: Exp;  lines: +11 -3
We can't sprintf() into a NULL pointer - catch that properly
for ALL cases.

Coverity CID 861
2006-04-04 06:34:25 +00:00
wiz
ae42a7bdb3 Sync with src/usr.sbin: whitespace diffs only. 2006-04-04 06:32:59 +00:00
wiz
c9a1f04e00 Pull over v1.77 from src/usr.sbin:
revision 1.77
date: 2006/03/26 18:11:22;  author: christos;  state: Exp;  lines: +3 -3
PR/33123: Murray Armfield: standards compliance & glob.h
Certain fields in glob.h need to be size_t; fix this and version glob(3).
    http://www.opengroup.org/onlinepubs/000095399/basedefs/glob.h.html
2006-04-04 06:31:22 +00:00
wiz
0d252fca2c Pull over v1.5 and v1.6 from src/usr.sbin:
revision 1.6
date: 2005/11/13 20:37:23;  author: agc;  state: Exp;  lines: +1 -10
Get rid of cvs merge botch in previous.
----------------------------
revision 1.5
date: 2005/11/13 20:07:41;  author: agc;  state: Exp;  lines: +25 -8
The Dewey number comparison routines were added by myself in 2002 in
revision 1.32 of pkg_install/lib/str.c, and have absolutely nothing to
do with the original FreeBSD utilities.

Place the appropriate (3 clause) copyright on this file.
2006-04-04 06:30:10 +00:00
wiz
680f66a11d Pull over v1.68 from src/usr.sbin:
revision 1.68
date: 2006/03/17 02:31:44;  author: hubertf;  state: Exp;  lines: +4 -3
pkg_do(): only use cp2 if it's really set to something useful

Coverity CID 1176
2006-04-04 06:28:22 +00:00
wiz
8d27f5d82e Pull over 1.36 from src/usr.sbin:
revision 1.36
date: 2005/12/03 01:08:38;  author: hubertf;  state: Exp;  lines: +3 -3
Only warn about running as non-root when -v is given
(or when running in non-unprivilegedmode, but how to detect?)
2006-04-04 06:27:13 +00:00
wiz
3774c1a14d Pull over v1.51 from src/usr.sbin:
revision 1.51
date: 2006/03/06 20:00:10;  author: reed;  state: Exp;  lines: +4 -4
Fix the "Cannot chdir" error message to actually show the
problem directory name for lsbest and lsall.

For example:

# pkg_admin -d /usr/packages/DragonFly/1.4.0/i386/All lsbest 'gmake>0'
pkg_admin: Cannot chdir to /var/db/pkg: No such file or directory

Should show:
pkg_admin: Cannot chdir to /usr/packages/DragonFly/1.4.0/i386/All: No such file or directory
2006-04-04 06:25:59 +00:00
wiz
864c7d4c33 Pull over 1.117 from src/usr.sbin:
revision 1.117
date: 2006/03/17 02:37:31;  author: hubertf;  state: Exp;  lines: +6 -2
Add sanity check if there's a @cwd in the +CONTENT file.
If not abort, because we wouldn't know where to put the files.

Coverity CID 1358
2006-04-04 06:24:39 +00:00
reed
f759d83930 List Xorg versions also.
(I have used Xorg as native X.)
2006-03-31 01:05:16 +00:00
dmcmahill
91649a67c0 avoid a malformed conditional with the make on netbsd-2. 2006-03-23 13:46:31 +00:00
wiz
73e4d7ff6a pkglint: unquote subst message. 2006-03-19 10:49:02 +00:00
rillig
2fbd4ebed2 Updated pkglint to 4.59.
Changes since 4.58:
- Improved checking of patch files.
- Adjusted the variable names to the recent pkgsrc changes.
- Print a note if the pkglint version does not match the one from the
  checked pkgsrc tree.
2006-03-14 14:24:14 +00:00
rillig
e39db93190 Added HEADER_TEMPLATE. 2006-03-14 14:20:13 +00:00
rillig
2cb1b0aed5 {DE,}INSTALL_EXTRA_TMPL have been renamed to {DE,}INSTALL_TEMPLATE. 2006-03-14 14:18:55 +00:00
jlam
daad0f3d6c Modify the pkginstall framework so that it manages all aspects of
INSTALL/DEINSTALL script creation within pkgsrc.

If an INSTALL or DEINSTALL script is found in the package directory,
it is automatically used as a template for the pkginstall-generated
scripts.  If instead, they should be used simply as the full scripts,
then the package Makefile should set INSTALL_SRC or DEINSTALL_SRC
explicitly, e.g.:

	INSTALL_SRC=	${PKGDIR}/INSTALL
	DEINSTALL_SRC=	# emtpy

As part of the restructuring of the pkginstall framework internals,
we now *always* generate temporary INSTALL or DEINSTALL scripts.  By
comparing these temporary scripts with minimal INSTALL/DEINSTALL
scripts formed from only the base templates, we determine whether or
not the INSTALL/DEINSTALL scripts are actually needed by the package
(see the generate-install-scripts target in bsd.pkginstall.mk).

In addition, more variables in the framework have been made private.
The *_EXTRA_TMPL variables have been renamed to *_TEMPLATE, which are
more sensible names given the very few exported variables in this
framework.  The only public variables relating to the templates are:

	INSTALL_SRC		INSTALL_TEMPLATE
	DEINSTALL_SRC		DEINSTALL_TEMPLATE
				HEADER_TEMPLATE

The packages in pkgsrc have been modified to reflect the changes in
the pkginstall framework.
2006-03-14 01:14:26 +00:00
erh
e8d1f2d71c Fix -uu handling so recursive updates of already installed packages work,
even if the initial package to install isn't installed yet.
Bump the version to 20060313.
2006-03-13 22:08:22 +00:00
rillig
b13fb33101 {DE,}INSTALL_EXTRA_TMPL do not always need the += operator. 2006-03-13 01:03:59 +00:00
minskim
784da9a80b Do not declare a static variable in a header file as non-static. This makes
the package build with gcc-4.
2006-03-13 00:16:41 +00:00
minskim
73b7ad53a3 Define SLIST_HEAD_INITIALIZER for platforms without it. 2006-03-13 00:13:37 +00:00
jmmv
e06d00cd6b Update to 1.28:
- PKG_SYSCONFDIR cannot be set by mk.conf; it is PKG_SYSCONFBASE.  This was
  correct in one place but incorrect in another.  Fixes PR pkg/33061 by
  Yoshito Komatsu.
2006-03-12 19:36:01 +00:00
rillig
e680623f2c - Added a bunch of variables to makevars.map.
- Removed the specialized spell checker for NO_*_ON_*, since the generic
  one catches these quite well.
- SITES_* is deprecated in favor of SITES.*.
- Don't warn if variable alignment is done with exactly one space
  character, since this is common when one line from a group has an
  overly lengthy variable.
- Added support for checking whether the number of leading lines of context
  matches the number of trailing lines of context in patch files of the
  unified diff format. The MacOS X patch utility cannot handle these. As
  there are quite a number of false positives here (especially when the
  hunk is applied at the end of a file), this warning only shows up in
  --debug mode.
2006-03-12 16:55:51 +00:00
rillig
bd0e3a1e45 Added the BrokenIn data type. All BROKEN_IN lines generate an additional
note that tells the user to remove the line if the package builds.
2006-03-12 13:34:53 +00:00
rillig
9df67ca189 - Renamed "List!" to "InternalList".
- When ${SED} and ${MV} are used in a single shell command, print a note
  that the SUBST framework is preferred over the direct use of these
  commands.
2006-03-11 18:38:35 +00:00
reed
b3e673d6fc Use PKGMANDIR instead of "man". 2006-03-11 04:30:14 +00:00
reed
887f068344 Explain why this exists and mention other package with it. 2006-03-11 04:29:25 +00:00
rillig
d2e0cfbc92 Added CHECK_FILES_SKIP, DEVOSSSOUND, DLOPEN_REQUIRE_PTHREAD. 2006-03-11 00:01:28 +00:00
jlam
bb4f311e85 Use pkginstall to generate the INSTALL script instead. 2006-03-10 22:38:30 +00:00
rillig
2099d2013d Don't check the quoting in backticks. This is a misdesign of pkglint. 2006-03-10 22:30:25 +00:00
rillig
4800cacdde Added PKG_SYSCONFDIR and PKG_SYSCONFVAR. The latter is not a Varname, as
the name might suggest, but an Identifier.
2006-03-10 22:14:52 +00:00
rillig
7022e13801 Added SITES. 2006-03-10 12:33:49 +00:00
epg
ee3f12b91f Add -DHAVE_CONFIG_H to CPPFLAGS so xstrdup.c will include <string.h>
and get the correct prototypes for strcpy and strlen.

Fixes build on Ubuntu Linux, and likely others.
2006-03-10 06:10:44 +00:00
rillig
7aece09dff Added the REPLACE.* and REPLACE_FILES.* variables. 2006-03-09 17:34:17 +00:00
wiz
b16e7b4e97 Add -*- perl -*- so emacs recognizes it automatically.
revbump: only print "updated" line when updating was successful.
2006-03-09 17:24:48 +00:00
rillig
7201eefb04 - In unified diffs, the hunk header must not end in a CR character.
- Unmaintained packages should have pkgsrc-users instead of tech-pkg.
2006-03-08 21:15:31 +00:00
wiz
ae456feac0 Update to 1.4:
Replace 'make' with '${MAKE}' for non-NetBSD. Requested by joerg@.
2006-03-07 07:28:55 +00:00
wiz
92ccec1842 Improve short description. 2006-03-07 07:27:26 +00:00
wiz
caf134912c Quoting fix in example, from joerg@. 2006-03-07 06:51:20 +00:00
wiz
186660eae4 Standardize option handling (use getopts, provide same options for all
three tools).
use strict and cleanup problems found this way.
Remove some unused variables.
Update documentation.

Welcome to 1.3!
2006-03-07 04:30:54 +00:00
wiz
762bdfb749 Fix some typos, found by joerg@. 2006-03-06 18:24:11 +00:00
wiz
68b2898a37 Update to 1.2:
New script "finddepends" that finds all packages that need bumping.
No need for an index, and not as many false positives too.

Update recursive PKGREVISION instructions in revbump(1).
2006-03-05 23:35:49 +00:00
jlam
9c8b5ede43 Point MAINTAINER to pkgsrc-users@NetBSD.org in the case where no
developer is officially maintaining the package.

The rationale for changing this from "tech-pkg" to "pkgsrc-users" is
that it implies that any user can try to maintain the package (by
submitting patches to the mailing list).  Since the folks most likely
to care about the package are the folks that want to use it or are
already using it, this would leverage the energy of users who aren't
developers.
2006-03-04 21:28:51 +00:00
agc
493baa8da5 Update the digest package to 20060302.
Apply Tyler Retzlaff's patches from PR 32323 to make this compile with gcc4.
2006-03-02 20:34:17 +00:00
rillig
b93decabd7 When in context diff mode, as soon as the add-hunk header is seen, the
number of deleted lines is irrelevant. This fixes one false positive.
2006-03-02 19:47:03 +00:00
rillig
f148735d7c - Make sure that at the end of a patch file, the state of the parser is
PST_TEXT. Otherwise the last hunk may not be checked completely.
2006-03-02 13:23:28 +00:00
rillig
ecf6e1d019 - It is an error if a hunk in a patch contains fewer lines that what is
specified in the hunk header.
2006-03-02 13:08:37 +00:00
tron
453ec06513 Fix last broken commit which resulted in an incomplete shared object.
Bump package revision because of this change.
2006-03-02 11:10:28 +00:00
tron
b4a3bf8237 Rearrange build process to work on case-insensitive filesystems e.g.
on a standard HFS+ partition under Mac OS X.
2006-03-02 10:53:39 +00:00
rillig
8ed7d59f7b - At startup, pkglint checks against the package version in
pkgtools/pkglint. If a newer version is available, it outputs a note.
  If the pkgtools/pkglint version is older than the currently running one,
  it outputs an error, since it is not a good idea to check and old tree
  with a new pkglint. Suggested by Alistair.
2006-03-02 10:37:43 +00:00
rillig
27f583a2a7 Updated pkglint to 4.58.
Changes since 4.57:
- New parser for patch files.
- New command line options -Wplist-depr and -Wstyle.
- Variable assignments are no longer allowed in variables that should only
  contain identifiers.
- builtin.mk files must not be included directly.
- Better checks for sed commands.
- Some commands like ktrace should never appear in Makefiles.
- The package version is compared to the requested update in file doc/TODO.
2006-03-01 22:19:13 +00:00
rillig
8da147b378 Debian's lintian has many ideas for things that pkglint could also check.
Maybe we can use some of them.
2006-03-01 22:11:15 +00:00
rillig
a8dcf62608 Added DEVOSSAUDIO and LIBOSSAUDIO. 2006-03-01 20:57:39 +00:00
joerg
70affd6c4b Update AC_C___ATTRIBUTE__ macro from heimdal, fixes detection with
GCC 4.
2006-03-01 16:47:54 +00:00
joerg
9534013f8c Update AC_C___ATTRIBUTE__ macro with newer version on Heimdal,
the old one is just bogus and depends on GCC extensions. Unbreaks
GCC 4 build.
2006-03-01 16:44:28 +00:00
rillig
6bd06c9cd1 The rant on Perl has moved to the pkglint book. 2006-02-28 23:32:47 +00:00
rillig
582603326f Added more documentation on the format of the diagnostics. 2006-02-28 23:25:23 +00:00
rillig
74f99bcc5a Added a rant on the Perl programming language. 2006-02-28 23:22:49 +00:00
rillig
d08250bc70 - Added the -Wstyle command line option, which enables warnings that don't
affect the build process but are of more stylistic nature.
- Enabled the warnings on missing explanatory comments for patch files when
  -Wstyle is enabled.
2006-02-28 15:25:44 +00:00
rillig
0e3587880a The section on the pkglint type system has been moved to the pkglint book. 2006-02-28 15:21:09 +00:00
rillig
23e011bdd5 Added the chapter ``Design goals''. 2006-02-28 11:40:15 +00:00
rillig
d9bf133bb0 - The :Q operator should not be applied to tools. 2006-02-28 00:20:23 +00:00
rillig
3ef0c9d6c9 Added the INSTALL_* commands and the MASTER_SITE_* URL lists. 2006-02-28 00:17:29 +00:00
rillig
70dca9b966 Added RCS Id. 2006-02-27 02:01:17 +00:00
rillig
d488f76242 Quoting bugfix. 2006-02-27 02:01:04 +00:00
rillig
55ec027ad1 - Added a list of forbidden commands that must not be used in packages.
Currently this list contains ktrace, strace and truss, as these are
  too platform-specific. Suggested by tron.
2006-02-27 00:01:04 +00:00
rillig
5265c512b6 Added the book ``Design and implementation of pkglint''. 2006-02-26 23:38:07 +00:00
rillig
30f102136d - Improved checking of sed commands that are used in the SUBST
framework. Now, unescaped shell special characters are detected.
2006-02-26 17:40:44 +00:00
rillig
88319d49db - Got rid of 810 warnings in -Wall mode by assuming that certain variables
like *DIR, *PATH, *FILE, PKGNAME will never contain one of the $\"'`
  characters. With greetings to Alistair, who convinced me that pkglint
  need not be the most pedantic tool. (It will stay _very_ pedantic,
  though. :))
2006-02-26 16:21:14 +00:00
rillig
9def98b766 - The type SubstMessage was redundant and has been replaced with Message.
- Improved a diagnostic.
2006-02-26 04:26:52 +00:00
rillig
2d89c06d3b Fixed pkglint warnings. 2006-02-25 15:56:24 +00:00
adam
3b1e0a259d Added sed quotes 2006-02-25 09:45:38 +00:00
rillig
6edc959bd6 Fixed pkglint warnings. 2006-02-24 21:59:49 +00:00
reed
4c4b62ff59 PKGMANDIR instead of man. 2006-02-24 21:21:02 +00:00
reed
ed10e03e8b PKGMANDIR instead of "man".
(When do I use PKGMANDIR:Q or no :Q??)
2006-02-24 20:36:29 +00:00
reed
6f6ff77b4f PKGMANDIR instead of "man". 2006-02-24 20:27:50 +00:00
rillig
eececa2b40 DECOMPRESS_CMD is deprecated. 2006-02-24 19:59:41 +00:00
rillig
174cdf8c53 - builtin.mk files must not be included directly. 2006-02-24 15:05:10 +00:00
rillig
7cb3b4bcc8 - Fixed path handling when ${PKGSRCDIR} appears in Makefiles.
- Be stricter when checking for Identifiers (e.g. BUILD_TARGET).
  Variable assignments are not allowed here and should go to
  BUILD_MAKE_FLAGS.
- Check for quoting in assignments to list variables.
- gettext-lib/builtin.mk must not be included directly.
- .orig files should not be in the PLIST.
2006-02-24 14:24:42 +00:00
rillig
b3bf02bf7d - The simplification from the last commit was wrong, but those statements
that could have revealed the defect had been commented out. Now they
  can be enabled with -Wspace.
- The state traces are only shown in -dvv mode.
2006-02-19 21:28:35 +00:00
rillig
4725cccab1 - Simplified checking for the RCS Id in the first line of patches. 2006-02-19 16:28:19 +00:00
rillig
e38045fe24 - Completely rewrote the parser for patch files. The new parser can parse
context diffs as well as unified diffs and report much better warnings.
  However, most of the warnings are currently disabled, as they are just
  too many. It cannot parse ed diffs, but produces warnings for them.
2006-02-19 15:28:51 +00:00
abs
f49371f511 Update pkg_chk to 1.69
- Deprecate -i -and -c (recommend -u -n and -a -n respectively
2006-02-18 21:34:03 +00:00
abs
d1330c811b Update pkg_chk to 1.68
- When listing binary packages with '-l', simplify logic and ensure if
     a dependency is missing the package which required it is shown. Also
     list all missing packages rather than stopping after the first
   - If -n is given with -u do not


   -
2006-02-18 20:46:42 +00:00
rillig
5d63c24400 - Installing documentation to share/doc/html is deprecated. By default, no
warnings are shown for this, as this would produce more than 20000 new
  warnings for the current pkgsrc tree. You need to specify -Wplist-depr
  (new) to see them. Of course, -Wall will work, too.
- Updated the documentation and cleaned it up.
2006-02-18 16:12:13 +00:00
rillig
a2c6d5669d Added EGDIR. 2006-02-18 16:07:16 +00:00
rillig
9acc9f8765 - The checkline_mk_vartype_basic routine needs to know whether the value
it is checking is used in list context or in scalar context -- just
  like in Perl.
- The :Q operator should only be used in list context or in shell commands.
2006-02-18 14:48:58 +00:00
rillig
7d1e2473fc - Disabled the warning that all substiution commands should be enclosed in
quotes. -- I've changed my mind.
2006-02-18 14:18:44 +00:00
rillig
f45271995b Distinguish between Pathnames and Pathlists. The latter are lists of
pathnames, separated by a colon.
2006-02-18 14:13:32 +00:00
rillig
1e0ff5355b Added some variables. 2006-02-18 14:12:49 +00:00
rillig
897ff2b91f Updated pkglint to 4.57.
Changes since 4.56:
- Added warnings for variables that are defined, but not used. This is a
  simple spell-checker.
- Variables that appear as a single shell word should be quoted unless they
  have the type "List of something".
- Many small enhancements.
2006-02-18 12:24:22 +00:00
rillig
202bfbc702 - Guess the data type of *PATH variables to be Pathname, of *PATHS to be
List of Pathname.
2006-02-18 11:39:46 +00:00
rillig
84273c8d65 The use of DOWNLOADED_DISTFILE is deprecated because there is no way of
quoting it correctly. The shell variable extract_file should be used
instead.
2006-02-17 20:00:35 +00:00
rillig
720557d02a - Be stricter when checking whether a shell word consists of exactly one
variable or not.
2006-02-17 18:35:34 +00:00
rillig
d2042883eb - Text alignment with spaces is changed to tabs if the --autofix option is
selected and the alignment can be done solely with tabs, that is, the
  alignment leads to a column that is a multiple of 8.
2006-02-17 15:26:01 +00:00
sketch
5d3597ae2e Solaris su(1) does not have an -m argument; re-work so that this can be
supported.
2006-02-17 15:15:56 +00:00
jmmv
0cd822b83e Update to 1.27:
- Allow empty variables to be added to the mk.conf file (useful for,
  e.g., BINPKG_SITES).  Requested by Lans Nordlund in private mail.
2006-02-16 13:25:43 +00:00
rillig
b1d9c90ec8 - Allow the values -c99 for CFLAGS and -static for LDFLAGS. 2006-02-16 06:33:41 +00:00
rillig
8a81797d91 Added XMKMF_FLAGS. 2006-02-16 06:33:00 +00:00
rillig
bbe2dbb7f2 TODO: reinvent the pkglint type system. 2006-02-15 18:12:37 +00:00
rillig
dd5b0a6024 - Marked the latest :Q warning as experimental. It currently suggests to
quote even ${CC} and ${CXX}, which is wrong. The warning is not
  printed for the other TOOLS, but that is only because the tool
  variables have not been assigned proper types.
- Reduced the number of negations in a condition.
2006-02-15 17:00:02 +00:00
rillig
0602771898 - Some more typed variables.
- Variables that are not of type "List of something" should be quoted when
  used in shell programs.
- In mail addresses, a "+" is allowed.
2006-02-15 16:10:49 +00:00
rillig
65be8f1f71 - Added some more variables and a new data type, LdFlags. 2006-02-15 11:41:01 +00:00
rillig
23628caa49 Added some more variables. 2006-02-14 22:57:18 +00:00
rillig
5099a17e5d - Added experimental support for detecting defined, but unused variables.
The main task is now to filter out the false positives (that is, all
  system-defined variables) and add them to makevars.map.
2006-02-14 22:03:19 +00:00
rillig
055eed4044 Oops. The last change modified the behavior of an if-then-elsif chain in a
way that I didn't intend. Fixed.
2006-02-13 17:50:40 +00:00
rillig
b61c6ea237 - Including "options.mk" does not qualify to using common Makefiles, which
would suppress the variable order checking.
- Added an additional debugging statement to the variable ordering.
2006-02-13 15:37:49 +00:00
rillig
cf3ce2644e - Even if the type of a variable is guessed based on its name, report it
as untyped when in --debug mode. This allows the --debug mode to be used
  for detecting spelling mistakes.
2006-02-13 15:20:22 +00:00
rillig
860a0bd4e3 Correctly handle Python and Ruby prefixes in binary package names. Patch
provided by YOMURA Masanori in private mail.
2006-02-12 18:35:59 +00:00
rillig
fec6a92aae - ${COMPILER_RPATH_FLAG} should be used instead of the various -Wl,...
flags.
- [Brackets] are allowed in pathname masks.
2006-02-12 12:10:13 +00:00
rillig
3575f7b1eb - Changed the wording of the warning message for misquoted variables. The
wording had been completely mysterious. Now it gives a direct advise on
  how to fix the problem.
2006-02-11 20:58:08 +00:00
rillig
d78a085b17 - Removed duplicate definition for LIB_DEPENDS. 2006-02-11 19:49:58 +00:00
rillig
9021008619 - MANDIR is deprecated. Use PREFIX/PKGMANDIR instead. 2006-02-11 19:29:39 +00:00
rillig
e5d84f7208 - Added a backtrace() subroutine that prints a backtrace when debugging
mode and very verbose mode are activated. Currently unused, but it's
  handy to have it defined.
- Removed two subroutine calls that had resulted in duplicate warnings.
- Variables whose names end in _VAR may appear inside double quotes.
2006-02-11 16:14:40 +00:00
rillig
1c9ae5d76c - Added TOOLS_DEPMETHOD. 2006-02-11 16:12:26 +00:00
rillig
7135541b60 - Absolute pathnames are interpreted as such when pkglint checks whether
the file exists or not.
2006-02-11 12:47:05 +00:00
rillig
8ec9cc0783 - Recognize "set -e" even when it is hidden by other options, like
"set -eu".
2006-02-11 11:55:19 +00:00
rillig
9bcca64f85 - PKGNAME may appear in double quoted shell strings. 2006-02-11 11:53:21 +00:00