Commit graph

2338 commits

Author SHA1 Message Date
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