Commit graph

2777 commits

Author SHA1 Message Date
rillig
f5f25f88de Added a check that suggests using meta-pkgs/kde3/kde3.mk instead of
hand-tuning the directories where KDE files are installed.
2006-10-06 18:58:55 +00:00
rillig
1f3af58308 Improved the heuristics for absolute pathnames. 2006-10-05 21:09:31 +00:00
rillig
0e60547a68 In package Makefiles, SITES.* should be defined right below DISTFILES.
Added an explanation for why ${DESTDIR}/foo is considered an absolute
pathname.
2006-10-05 12:25:38 +00:00
rillig
c71e131798 This package cannot use CHECK_FILES because it is one of the two that
sets PREFIX=/.
2006-10-05 08:51:59 +00:00
wiz
b6160330f7 Update MASTER_SITES and/or HOMEPAGE, from Sergey Svishchev. 2006-10-04 21:53:15 +00:00
reed
1779642046 Update PKGREVISION.
Make sure use PKG_SYSCONFDIR for the "etc" sed expression.
Also do the SUBST_SED on the configuration example file too.
2006-10-03 20:53:38 +00:00
reed
4cf5ada443 Honor PKGMANDIR insetad of hard-coded path. 2006-10-03 20:27:47 +00:00
rillig
26d41e536c Updated url2pkg to 2.1.
Changes since 2.0:

- Made the dependency detection for Perl modules work again. The code
  does not assume to be run in a special directory anymore.

- Perl modules that use the prompt() function to query the user
  interactively can be handled. All questions are assumed to be answered
  by just pressing <enter>.

- Made url2pkg more robust when interpreting the output of MakeMaker.pm.
  Many Perl modules write additional things to stdout during the
  generation of the Makefile.

- The language for the *.f files is "fortran", not "f".

- Fixed the regular expression for prdownloads.sourceforge.net links, so
  that the distfile name is properly extracted.
2006-10-02 19:39:24 +00:00
abs
dd11e141d0 Update pkgtools/pkglint to 4.71 - lintpkgsrc changes:
- Handle 'badly named' patch files
  - In the event of a distint checksum mismatch, report the affected file
    as well as package
  - If we need to call out to make to parse a makefile and it returns any
    errors, ensure we prefix the error output with the Makefile path
  - run through perltidy. Ugly, but consistent
2006-10-02 19:35:43 +00:00
rillig
19beef2685 Took over maintainership from Hubert.
Rewrote url2pkg in Perl, enhancing it in several ways:

- Packages for Perl modules using MakeMaker can be generated almost
  completely. The only thing that usually needs to be filled out after
  running url2pkg is the DESCR file.

- USE_LANGUAGES is filled automatically.

- After generating the initial Makefile, the editor is run to let the
  user edit the Makefile. These changes are preserved as much as
  possible. (This had not been the case before.)

- Extending url2pkg has been made much easier by splitting the tasks that
  do the "magic" into small subroutines and by adding a detailed
  description of what these routines are supposed to do.

Set the version number to 2.0.
2006-10-02 16:49:30 +00:00
dmcmahill
317622f197 On solaris use MANINSTALL=none instead of MANINSTALL=
This avoids problem where the plist-man.awk script sees the empty
value for MANINSTALL and sets it to the default of 'maninstall catinstall'.

Fixes install/packaging problems on solaris.
2006-10-02 16:21:33 +00:00
abs
83f9f1a996 Update pkgtools/pkg_chk to 1.82:
- Is '*' is passed to -U, unset all tags
    - Implement -p, to display all the pkgdirs for a given set of tags
2006-10-02 07:33:38 +00:00
rillig
c8293c56a2 Removed a leading "e". 2006-10-01 15:09:05 +00:00
rillig
5d92c31672 SITES.* may be used in package Makefiles. 2006-10-01 14:38:07 +00:00
dillo
de144fc2d1 This man page is in section 8, make the title say so.
From fgudin at nerim.net, thanks.
2006-09-28 09:36:44 +00:00
joerg
af88d32662 Copy XFree86 logic from x11/XFree86-libs to pkgtools/x11-links to
unbreak build of x11-links.
2006-09-27 16:41:20 +00:00
joerg
3675902ba1 Remove XFree86. 2006-09-27 15:18:12 +00:00
joerg
1f696545c6 De-recognise XFree86. Update to 4.70. 2006-09-27 15:10:45 +00:00
rillig
189adf6411 MAKEFILE has been deprecated in September, not November. 2006-09-20 23:10:54 +00:00
abs
edf8891025 Update pkg_chk to 1.81 - Add support for PKG_SUFX = .tbz - from Aleksey Cheusov in PR/34453 2006-09-20 21:54:13 +00:00
rillig
3968e0d090 Fixed the path to the manual page. Adjusted CHECK_INTERPRETER_SKIP. 2006-09-20 13:00:02 +00:00
rillig
f4a2bba0c2 It's pkg_alternatives(8), not (1). 2006-09-20 12:53:21 +00:00
rillig
4e7da9df67 Added a check for tools that are used but not mentioned in USE_TOOLS.
Since many package fail to build in exotic environments because of that,
it is worth having this check even though we are currently in a freeze.

Improved the detection of absolute pathnames once more.
2006-09-19 21:33:30 +00:00
rillig
60ec4cf0e2 Fixed a huge memory leak in pkglint. Checking the complete pkgsrc tree
took about 300 MB of memory. Now it takes 27 MB, which is still much,
but quite better.

The cause for the memory leak was that I wrote

	my ($result) = @_;

instead of

	my ($result) = ($1);

after successfully matching a regular expression. That way, pkglint
created some cyclic data structures, and since Perl does not have
garbage collection, these didn't get cleaned up.

Added some checks so that this cannot easily happen again. Also fixed
some other instances where @_ appeared in the source code.
2006-09-18 10:07:21 +00:00
rillig
bf5a09954a Updated pkglint to 4.69.
Changes since 4.68:
- Improved the checks for BUILD_DEFS.
- Improved the shell word parser.
- Improved the heuristics for detecting absolute pathnames.
- The :M* operator is only required with GNU configure scripts.

Committed during the freeze to have a unique version number that includes
the features from the last days.
2006-09-16 15:43:01 +00:00
wiz
6541dc8557 Xref pkglint. Use HTML macros. Bump date. 2006-09-16 06:37:40 +00:00
rillig
da6d93f876 The :M* operator is only needed when the package has a GNU-style
configure script.
2006-09-15 12:31:49 +00:00
jmmv
45be3f9c7a Update to 1.4:
- Sort dependencies properly so that, e.g., 2.10 is considered newer than 2.8.
  This is still a hack and might fail in some cases, but is hopefully much
  better than before.
2006-09-14 15:35:46 +00:00
ginsbach
aa846abc8c Fix typo in previous revision. 2006-09-13 18:18:53 +00:00
ginsbach
0b2cff8307 Don't try to rename pkg-comment if it does not exist. Ports no longer
use pkg-comment but have a COMMENT= in the Makefile.
2006-09-13 17:33:20 +00:00
ginsbach
a19a1eff3b Use pkgsrc-users as default MAINTAINTER. 2006-09-13 17:22:55 +00:00
ginsbach
306ae67d59 Use pkgsrc-users@NetBSD.org as default MAINTAINER. 2006-09-13 17:05:09 +00:00
schwarz
dd2de6f7ef improve imake support on IRIX 5 2006-09-10 13:44:58 +00:00
schwarz
13ea409fa1 improve support for IRIX 5 working around some bad default settings 2006-09-09 20:31:46 +00:00
obache
efb6fe7139 MAKEFILE has been renamed to MAKE_FILE. 2006-09-09 08:44:06 +00:00
rillig
fa79055deb TODO:
* Check all the shell commands to see if they are mentioned in USE_TOOLS.
2006-09-08 07:45:40 +00:00
rillig
b623f99737 Improved the heuristics for detecting absolute pathnames.
Not only CFLAGS, but also {FOO}_CFLAGS should be passed through the :M*
operator before being passed to the shell.
2006-09-08 07:45:36 +00:00
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
jlam
808fe7ac5f USE_DIGEST is no more. 2006-07-18 23:06:41 +00:00
rillig
71e5b11e49 If, in a "case" statement of a shell command, foo|bar appears, this is
not a pipe, so don't warn about an ignored exitcode.
2006-07-18 21:13:22 +00:00
rillig
c318823701 Oops. Debugging messages should only appear when -D<anything> is set on
the command line.
2006-07-18 20:37:31 +00:00
rillig
82d296f5c8 - Added PKG_CONFIG to makevars.map.
- Make sure that the bsd.pkginstall.mk file exists before mentioning it
  in diagnostic messages. Noticed by Martti Kuparinen.
2006-07-18 18:14:33 +00:00
jlam
40ed7e219b Add sysutils/install-sh and pkgtools/bootstrap-extras. 2006-07-17 14:23:59 +00:00
jlam
19dea5ab5a This package provides extra files and scripts needed to bootstrap pkgsrc
on this platform.  These files come from pkgsrc/bootstrap.
2006-07-17 14:21:31 +00:00
rillig
35d5c84034 Whenever a user-defined variable is used in a package, its name should
be added to BUILD_DEFS.
2006-07-17 13:36:57 +00:00
rillig
92c61ccab3 Reworked the way that .include lines are parsed, in order to get the
recent buildlink3 check correct.

A buildlink3 file that appears in the package but not in the
buildlink3.mk file is not worth a warning, since there are legitimate
reasons for doing this, which is also documented in the buildlink3
documentation.
2006-07-17 12:56:01 +00:00
rillig
d4fc30f022 Improved the wording of a warning a little bit. 2006-07-17 11:20:09 +00:00
rillig
58d7049d90 Added warnings for the case when the buildlink3.mk files in the package
Makefile and the buildlink3.mk file differ, as this is most likely a bug
that has been introduced somewhere in the past when updating a package.

Suggested by Thomas Klausner.
2006-07-17 11:16:43 +00:00
rillig
af862517f1 Renamed makevar to pkgctx_vardef and varuse to pkgctx_varuse to make their
intention cleaner.
2006-07-17 10:21:02 +00:00
rillig
8e21952ce6 Extended the check for absolute pathnames from Makefile-patches only to
all kinds of patches, especially source code.
2006-07-16 10:30:27 +00:00
rillig
2b6e3756de Added REPLACE_AWK, REPLACE_BASH, REPLACE_SH. 2006-07-16 09:29:39 +00:00
rillig
927385d0c2 Fixed the regular expression again. Now the stack limits are 1024 kB for
wip/gforge and 256 kB for databases/pgadmin3.
2006-07-15 07:31:45 +00:00
rillig
6a81ee9262 Updated pkglint to 4.67.
Changes since 4.66:
- Fixed the stack overflow in Perl in long variable assignment lines.
- Improved the SUBST check.
- For all files in bin/ and sbin/, pkglint now complains if the package
  does not have a manual page, too. (Only with -Wextra)
- Lists of pathnames may be used in .for loops, since they are _assumed_
  to not contain any additional white-space.
- Some more small improvements.
2006-07-15 07:02:11 +00:00
rillig
d62fb8a896 Fixed the very stack-consuming regular expression regex_varassign so
that it only needs 256 kB of stack memory instead of more than 2 MB.

See also http://rt.perl.org/rt3/Public/Bug/Display.html?id=39774
2006-07-15 06:57:51 +00:00
jlam
d81c93d6df Add but don't enable bootstrap-mk-files. We don't enable because this is
a key bootstrap package.
2006-07-14 23:13:50 +00:00
jlam
c71e325c08 Import pkgtools/bootstrap-mk-files, which is the collection of bmake *.mk
files from the bootstrap kit.  This package is used during bootstrap to
properly register the installed *.mk files.

The bootstrap bmake(1) utility uses some customised .mk files in order
to pre-define certain definitions and targets, which guide the build
process.  This package provides those *.mk files for the bmake(1)
utility.
2006-07-14 23:13:00 +00:00
jlam
67300bec6e Update pkgmanpages to the latest version of packages.7 from HEAD src.
Include the file in-line in pkgsrc instead of fetching it.  This will
be used by the bootstrap to register the packages.7 manpage.
2006-07-14 22:13:19 +00:00
jlam
4118037f3f Create a separate pkgtools/tnftp package that is installed as part of
the bootstrap process and which may be needed by pkg_install.  This
is distinct from the net/tnftp package that is now a "normal" package.

Modify the bootstrap script to use pkgtools/tnftp instead, and clean up
some of the registration code.
2006-07-14 21:41:42 +00:00
jlam
bc22bd5d44 For the pkgtools versions of mtree and pax, always use libnbcompat
"in-place", and for the normal versions of mtree and pax, always use
libnbcompat as a normal build dependency.
2006-07-14 20:11:10 +00:00
jlam
06eb7023cb Create a separate sysutils/mtree package that is a "normal" package,
distinct from the pkgtools/mtree package which is installed as part of
the bootstrap process and which may be needed by pkg_install.
2006-07-14 19:54:47 +00:00
jlam
3b3d6f17ec Set the CATEGORIES separately for the archivers and pkgtools versions
of pax.
2006-07-14 19:45:12 +00:00
jlam
4660c9f359 Create a separate "pax" package in the pkgtools category that installs
into ${PKG_TOOLS_BIN}.  This package is used in the case where pax is
a requirement for the pkg_install tools.  The archivers/pax package is
now a normal package with no special PKG_PRESERVE flags set.
2006-07-14 19:38:47 +00:00
jlam
9be3dac9df Register and package pkgtools/mtree and populate the PLIST. Also
copy the manpage handling from pkg_install/Makefile.
2006-07-14 19:23:09 +00:00
jlam
85b5cf2e67 Set NO_MTREE since this package will be used during bootstrap and we
don't need to generate the whole directory hierarchy for it.
2006-07-14 16:33:05 +00:00
rillig
d1dfbed4e5 Another tool modifier, :bootstrap, has been added. 2006-07-14 04:54:58 +00:00
jlam
449c0c5d5e Add BOOTSTRAP_DEPENDS, which has the exact same semantics as
BUILD_DEPENDS.
2006-07-13 21:04:35 +00:00
rillig
d81b7db43f Added "umask" to the list of known shell commands. 2006-07-12 19:34:30 +00:00
rillig
7036700ae5 Added UNPRIVILEGED_USER and UNPRIVILEGED_GROUP. Fixed MAKEFILE. 2006-07-12 19:33:58 +00:00
wiz
864541c7cf 3.13: add BUILDLINK_ORDER lines. 2006-07-12 13:29:03 +00:00
wiz
59009e94f9 1.8:
finddepends: Quote package names when they are used as patterns.
Based on an idea by dillo.
2006-07-11 12:52:14 +00:00
rillig
51c45e6c5e Swapped the order of two checks in variable_needs_quoting. Now lists of
filenames and pathnames may appear in .for loops. (Of course, this only
works for "nice" filenames, but the amount of false positive warnings would
just be too high.)

Added another warning for dependency patterns like 2.3*, which are
likely to be wrong: They match 2.3, 2.3nb4 and 2.30, but not 2.20, which
lies in between them.
2006-07-11 12:01:06 +00:00
rillig
c47985fa7d Merged from src:
> In header files, there shall be no variable definitions, only
> declarations. Found by MIPSpro.
2006-07-11 07:45:40 +00:00
abs
cbcbe8af03 Update pkg_tools/pkg_chk to 1.76 - output the pkgdir rather than pkgname at the start of each line 2006-07-10 23:47:18 +00:00
salo
33ec3f4488 mktemp is a tool, depend on it the correct way. 2006-07-10 22:46:15 +00:00
jlam
769f28f09f Add x11-links, xorg-libs, and XFree86-libs information to BUILDLINK_ORDER
so that show-buildlink3 will show when these buildlink3.mk files are
included.
2006-07-10 21:50:34 +00:00
sketch
068b9617d1 Solaris doesn't have mktemp (recently added to pkg_chk) in the base system, so
pull in as a dependancy.
2006-07-10 20:38:50 +00:00
rillig
9082445842 Updated pkg_regress to 0.2.
Changes since 0.1:
- Improved error messages.
- Made the code simpler.
2006-07-10 12:44:19 +00:00
rillig
4af291bc02 - Make variables are allowed in BUILDLINK_PACKAGES. 2006-07-10 11:19:23 +00:00
rillig
e7e0944de6 Found some more variables that have been declared obsolete in February
2005.
2006-07-10 04:18:30 +00:00
rillig
5f885d6529 - A comma is allowed in enumeration types.
- Shell commands in Makefiles may have leading white-space before the
  [@-]*.
- Replaced the obsolete MASTER_SITES_SUBDIR with DIST_SUBDIR in the
  variable order check. The variables aren't the same, but the position
  is fine.
2006-07-10 04:17:56 +00:00
rillig
449f3d2610 Changed the type of COMPILER_RPATH_FLAG to an enumeration to get rid of
the :Q warnings.
2006-07-10 04:16:02 +00:00
rillig
06ff4905f6 - The .gz extension for manual pages is not necessary, since it is
handled automatically by pkgsrc.
- Rewrote the PLIST parser a little bit, which revealed that PLIST
  directives like @dirrm may be prefixed with ${FOR_...} or
  ${NOTFOR_...}.
2006-07-10 03:25:12 +00:00
rillig
c22343fdca Added more tracing. Adjusted pkglint to the latest change to the
buildlink3.mk files by jlam.
2006-07-09 22:39:56 +00:00
jlam
c16221a4db Change the format of BUILDLINK_ORDER to contain depth information as well,
and add a new helper target and script, "show-buildlink3", that outputs
a listing of the buildlink3.mk files included as well as the depth at
which they are included.

For example, "make show-buildlink3" in fonts/Xft2 displays:

	zlib
	fontconfig
	    iconv
	    zlib
	    freetype2
	    expat
	freetype2
	Xrender
	    renderproto
2006-07-08 23:10:35 +00:00
jlam
9430e49307 Track information in a new variable BUILDLINK_ORDER that informs us
of the order in which buildlink3.mk files are (recursively) included
by a package Makefile.
2006-07-08 22:38:58 +00:00
rillig
0fd6eb72c4 In all URLs, insist on the proper spelling of NetBSD.org. 2006-07-07 09:45:07 +00:00
rillig
9bb51b2c0e - Fixed a null pointer exception in check_varassign.
- Added a new check for -Wextra that requires a manual page for every
  command in bin/ and sbin/.
2006-07-06 22:06:15 +00:00
rillig
a560a0e865 Although EXTRACT_USING is mentioned in mk/defaults/mk.conf, its primary
purpose is to be overridden by packages, not by the user.
2006-07-06 22:03:39 +00:00
jlam
cf56f31e09 In URLs, the "NetBSD" should be capitalized as such, i.e. "NetBSD.org",
not "netbsd.org".
2006-07-06 21:14:19 +00:00
rillig
77f98effcf - Added OVERRIDE_DIRDEPTH to the list of known variables.
- Added the -Cglobal option for inter-package checks (disabled by
  default) that may consume a lot of memory.
- Adjusted pkglint to another change in the TOOLS framework which had
  not been detected automatically.
- MD5 checksums are no longer deprecated, they are now obsolete.
2006-07-06 17:40:17 +00:00
rillig
9c98b7790e * Invent an annotation scheme for files that intentionally define
variables for use in other files.
2006-07-04 10:01:06 +00:00
rillig
c344194858 PKG_SYSCONFDIR.* is also a Pathname. 2006-07-04 10:01:03 +00:00
rillig
6d30df6ae6 Some minor refinements. 2006-07-04 09:29:54 +00:00
rillig
c061367862 Added NONBINMODE. 2006-07-04 09:02:49 +00:00
rillig
3e4bf002ef Improved the SUBST check so that useful warnings are generated even when
a SUBST block does not start with SUBST_CLASSES, as well as when more
than one class is appended at a time to SUBST_CLASSES.
2006-07-04 09:02:16 +00:00
rillig
9060d74220 Updated pkg_filecheck to 0.2.
The PKGDBDIR and PKGDBDIR.refcount directories are excluded from the
list of files to check, because for unprivileged pkgsrc, they are
subdirectories of PKGSRCDIR.

Removed the dependency on libnbcompat for NetBSD.
2006-07-02 10:32:09 +00:00
rillig
7c6b1da9c2 Indented the make directives properly to fix pkglint warnings. 2006-07-02 10:30:30 +00:00
rillig
f8102338f3 Updated pkglint to 4.66.
This change includes all the things I thought of during the freeze of
2006Q2.

Some variables have disappeared from pkgsrc without notice. Marked them
deprecated to help the package authors at least a bit.

Renamed some ACL abbreviations in makevars.map and adjusted the variable
definitions.

Added the command line options -Dtrace, -Dunchecked and -Dunused.

Some variables may contain unexpected white-space and therefore should
not be used in .for loops.

The -Dmisc option replaces the --verbose option (and the log_info
subroutine), which does not exist any longer. This eliminates all
instances of "OK:" from the output, which I didn't like from the
beginning. The -Dmisc option also takes over many warnings that have
been issued by --debug before.

Improved the check for absolute pathnames. Especially, everything that
follows ${DESTDIR} or $(DESTDIR) in a Makefile is considered an absolute
pathname. This reveals many wrong uses of DESTDIR (as defined by the GNU
coding standards), for example $(DESTDIR)/$(prefix), which should be
$(DESTDIR)$(prefix) instead.

Almost every use of a make(1) variable is checked for spelling mistakes.
Before, only the definitions of variables have been checked.

Restricted the use of variables to specific files, which are defined in
makevars.map. This catches especially buildlink3.mk files with
unexpected side effects.

In shell commands, neither "echo" nor "echo -n" or "${ECHO} -n" should
be used. Since the INSTALL_*_DIR commands can only handle one directory
at a time, suggest to use INSTALLATION_DIRS instead.

Greatly improved the checks for dependency specifications, especially to
find foo-*, which should rather be foo-[0-9]*.

Fixed the incorrect handling of LICENSE_FILE (now using $line->text
instead of $line).

Improved the wording of the "plural names" warnings, so that for known
variables it is "The += operator should only be used with lists." now.

In buildlink3.mk files the uppercase and lowercase names of the package
should correspond with the package name. This catches many
copy-and-paste mistakes. Fixed many null pointer exceptions as well. In
addition, every buildlink3.mk file needs a definition of
BUILDLINK_API_DEPENDS.

In patch files, absolute pathnames and unportable macro names are
checked not only in added lines, but also in the context lines.

In the pkgsrc root directory and the category directories, the Makefiles
are checked like every other Makefile, too.

Fixed the place where the global variables for the package context are
defined and later undefined.

Variables that are mentioned in EVAL_PREFIX may be used in the current
file and are not flagged as "used but not defined".

When parsing shell words in Makefiles, recognize $<, $@, $^ and $/.
(The latter is used extensively by openoffice to represent a directory
separator.)

Fixed some minor bugs:
* $makevar had been defined unintentionally by using the -> operator.
2006-07-02 09:47:17 +00:00
dillo
7a046011cb Pull across from source:
Fix pkg_info -Q on binary packages; noted by rillig.
Bump version to 20060701.

Okayed during freeze by wiz.
2006-07-01 19:37:25 +00:00
rillig
12561ed62d SUBST_CLASSES and SUBST_FILES.* are very different. 2006-06-30 12:46:30 +00:00
rillig
0480457f70 In some cases variables of the same data type are interpreted
differently, which may lead to problems.
2006-06-30 12:34:44 +00:00