Commit graph

2604 commits

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