Commit graph

1225 commits

Author SHA1 Message Date
agc
41305a0c9c Indent cpp-like statements properly 2003-07-28 20:01:54 +00:00
jmmv
784ad97939 Add the build-defs-message target, which shows a list of all variables that
can be customized for the package beeing built.  This list is extracted from
the contents of BUILD_DEFS, and the message is not shown if it's empty.
Each variable is printed together with its actual value.

The new target is called in the pre-fetch stage, so it's shown early to the
user.
2003-07-28 18:15:56 +00:00
dmcmahill
981a376c35 - add HOMEPAGE as the last field in the INDEX file.
- make the paths be relative to PKGSRCDIR as opposed to absolute.
- some cleanup/simplification of the awk code.
2003-07-24 22:27:16 +00:00
jmmv
4634a89e73 Mark all targets that do not correspond to real files with the .PHONY
attribute.
2003-07-23 22:02:48 +00:00
dmcmahill
28fd31fa83 rework the INDEX file generation. The new approach speeds up things by
several orders of magnitude and 'make index' now takes 30 minutes or so
instead of several days on my test machine.  The approach now is to take
one pass through every package and extract some key information including
the explicitly listed dependencies.  After the data is extracted, the
dependencies are flattened in one step which avoids the extremely
inefficient recursive make that was previously used.
2003-07-23 09:41:23 +00:00
agc
e25f89bf13 Ignore any errors from ldd when calculating reuires and provides 2003-07-22 13:48:48 +00:00
agc
1672441254 As part of the build information, record the full pathnames of the
shared object "provides" and "requires" information.  This is only
turned on just now if ${CHECK_SHLIBS} is set to "YES".

Example output:

% pkg_info -B libutf | grep '^PROVIDES'
PROVIDES=/usr/pkg/lib/libutf.so.2
% pkg_info -B ssam | grep '^REQUIRES'
REQUIRES=/usr/lib/libc.so.12
REQUIRES=/usr/pkg/lib/libutf.so.2
%
2003-07-22 10:12:47 +00:00
dmcmahill
5e93a64cfa - fix comment about what shows up in the index file.
- add ONLY_FOR_ARCHS and NOT_FOR_OPSYS to the list of variables that goes
  in the print-summary-data output.  This is the first step in speeding up
  the 'make index' process.
2003-07-19 02:50:22 +00:00
grant
31f433d64b only include gcc.buildlink2.mk if we are not using the MIPSpro or SunPro
compiler.

don't include the buildlink2.mk of the gcc package being built.
2003-07-18 04:21:16 +00:00
grant
a5caa515f7 move gcc selection back to bsd.pkg.mk as the top-level Makefile
includes bsd.prefs.mk.
2003-07-13 13:27:18 +00:00
grant
bbfe9c9c20 don't set USE_GCC2 by default as it implies the use pkgsrc gcc2, and
move handling of gcc shared libraries to bsd.prefs.mk.
2003-07-13 13:10:43 +00:00
grant
30373d0843 when creating the buildinfo file, set CC=${CC} without the version
information, and set CC_VERSION appropriately by trying -v and -V
args.

works for gcc2, gcc3 and SunPro, may need tweaking for MIPSPro.
2003-07-13 06:44:02 +00:00
wiz
dc934dad21 When generating a perl packlist, strip all leading slashes.
From Sergey Svishchev in PR 21754.
2003-07-12 15:34:37 +00:00
wiz
7eb4802333 Create directories with mode 0755, since that is what the mtree
files expect.  Noted by Toru TAKAMIZU in PR 22007, patch from seb@netbsd.
2003-07-12 10:21:33 +00:00
jlam
b36d20c1c7 Use new _OPSYS_NEEDS_XPKGWEDGE to simplify the check for whether we need a
build dependency on xpkgwedge.
2003-07-11 20:22:11 +00:00
jschauma
b6fdd52c56 Rather than hardcoding IRIX into bsd.pkg.mk when checking if xpkgwedge is
needed let's use _OPSYS_NEEDS_XPKGWEDGE to be set in defs.${OPSYS}.mk
2003-07-11 15:40:18 +00:00
grant
d6cada760d define user-visible variable PTHREAD_LDFLAGS that contains options
to link pthreaded code, ala PTHREAD_CFLAGS.

this adds support for systems which have no libpthread, but rather,
have pthreads functions in libc_r, such as FreeBSD 5.x.

export PTHREAD_CFLAGS and PTHREAD_LDFLAGS via MAKE_ENV.
2003-07-10 23:10:07 +00:00
agc
dfea60511f Append perl to the list of interpreters to be replaced if ${REPLACE_PERL}
is set, rather than a straight assignation.
2003-07-09 16:18:06 +00:00
agc
8338c82ca3 Make REPLACE_PERL more general, so that it will work with any interpreter,
and also with multiple interpreters.

Keep REPLACE_PERL for backwards compatibility.
2003-07-09 16:07:29 +00:00
agc
1303652d68 In pre-config-override, don't trumpet the fact that we're doing nothing. 2003-07-09 14:23:56 +00:00
agc
a0a34c21ee Fix a typo in a comment 2003-07-08 11:48:37 +00:00
chris
95ae206c22 Fix for _CONFIGURE_PREREQ targets not being run when a package defines a
do-configure target.  To do this I've introduced a new target,
pre-configure-overrides, that depends on ${_CONFIGURE_PREREQ}.   It's run
after pre-configure but before do-configure.

This fixes pkg/22077, and allows benchmarks/benchfft to build correctly on
a -current cats box.

Reviewed by wiz@
2003-07-08 09:20:30 +00:00
jmmv
c7fd765c70 When extracting a .zip archive, overwrite existing files without promping.
Fixes PR pkg/21732 by reed at reedmedia.net.
2003-07-02 23:02:23 +00:00
jschauma
54f06d5eb9 default MAINTAINER is tech-pkg@ 2003-06-23 14:26:32 +00:00
seb
5ab8be8066 Introduce a new framework to handle info files, install-info and
makeinfo commands.

The goal of the new framework is twofold:
        - reduce the number of '@exec' and '@unexec' in PLIST by
using INSTALL/DEINSTALL scripts to handle entries addition/removal
Info directory file.
        - achieve lighter dependencies by avoiding unnecessary run-time
dependency on the gtexinfo package and if needed with the help of the
standalone install-info command provided by the recently imported package
pkgtools/pkg_install-info.

A package must be sightly updated to use this new framework and
must define the variable USE_NEW_TEXINFO. This variable will
be removed from the pkgsrc tree when all package would have been
updated.

For details see section 10.24 of Packages.txt, comments in
mk/{texinfo.mk,buildlink2/bsd.buildlink2.mk} and upcoming mail to
<tech-pkg at netbsd dot org>.
2003-06-19 21:41:13 +00:00
abs
6d2172ee27 Change uptodate-digest check from excluding digest on 'digest-* | pkgchk-*)'
to excluding when ! -f ${DISTINFO_FILE}.
Now packages without distinfo do not need to build digest before installing
(such as cpuflags)
2003-06-17 14:33:17 +00:00
grant
3a0c716e1e if defined, add CXX and CPP to the make environment, as per CC. 2003-06-14 21:13:13 +00:00
atatat
e239c6dd3a Add a ``show-needs-update'' target that checks each dependency to see
if it's up to date.  For dependencies (including the current package)
that are not up to date (or are not installed), a one line note is
printed thusly:

	% cd audio/xmradio/
	% make show-needs-update
	audio/mad => mad-0.14.2b => needs update to mad-0.14.2bnb1
	audio/xmradio => (none) => needs install of xmradio-1.2
2003-06-14 18:52:46 +00:00
agc
123b2a254d When setting up the lockfile, don't store whitespace printed by ps(1), so
that

% make
===> do-fetch [digest-20021220] ===> Checking for vulnerabilities in digest-20021220
=> Lock acquired on behalf of process  356
=> Lock released on behalf of process 356

becomes

% make
===> do-fetch [digest-20021220] ===> Checking for vulnerabilities in digest-20021220
=> Lock acquired on behalf of process 814
=> Lock released on behalf of process 814
2003-06-14 16:53:00 +00:00
grant
56f140feb6 add tab to list of separators for parsing BUILD_INFO.
fix from drochner@.
2003-06-13 11:29:09 +00:00
jschauma
7e75c9318a Initiate support for X11 apps under IRIX.
We introduce two new variables: ABI and IMAKEOPTS
ABI determines the correct ABI to use and is set during bootstrapping
from /etc/compiler.defaults.
IMAKEOPTS are the options passed to imake to allow it to set the right
definitions and find the right paths etc.  Use IMAKEOPTS with SunOS, too.

IRIX will always require xpkgwedge, since it's got a bogus X11BASE.

When linking against libXaw, make sure we get the right ABI.
2003-06-12 15:27:08 +00:00
grant
d60c936e59 make OBJECT_FMT test of installed packages work again. 2003-06-10 06:01:12 +00:00
grant
e7b8ced04f remove whitespace after '=' in the generated BUILD_INFO file, making
it more sane for parsing.
2003-06-10 05:21:42 +00:00
abs
a521d4d1a4 if CC is defined, add it to MAKE_ENV 2003-06-07 09:22:37 +00:00
drochner
b13a0cdbfe export LINK_ALL_LIBGCC_HACK into the environment, just like
OPSYS_WHOLE_ARCHIVE_FLAG
saves some lines in the pkg Makefiles
2003-06-06 19:30:47 +00:00
jmmv
80df38e928 Introduce the MASTER_SITE_DEBIAN variable. It currently contains a list of
all primary mirror sites, as listed in http://www.debian.org/mirror/list.
2003-06-05 17:20:04 +00:00
jmmv
5f94f4937a Set the AWK environmental variable to the value of ${AWK} (as given by all
defs.*.mk files) when running the configure script.  Most of them look for
an awk parser, and this way they will always pick the right one without
having to check all the possibilities.
2003-06-04 09:39:17 +00:00
hubertf
d95e3cbf12 more wording tweak for missing vulnerability file. 2003-06-01 23:59:07 +00:00
hubertf
0324de6b5d Improve message when vulnerability file is not there. 2003-06-01 23:56:50 +00:00
grant
392ba6fb3d include gcc.buildlink2.mk if USE_GCC_SHLIB is defined. this replaces
the (now deprecated) USE_CXX.
2003-05-29 23:08:01 +00:00
agc
72de6a586b Now that we're checking more thoroughly for vulnerabilities in the "do-fetch"
target via "check-vulnerable", there's no need to use "show-vulnerabilities"
target when installing a package.
2003-05-29 11:39:22 +00:00
wiz
b0d9aa8b0f In case license is not acceptable per /etc/mk.conf, tell user to view license
with "make show-license". Addresses PR 21616.
2003-05-19 06:02:10 +00:00
agc
6f3c5aef75 Check for the existence of the vulnerabilities file before telling people
that we're checking for vulnerabilities. If the vulnerabilities file can't
be found, display a warning.

Addresses PR 21572 from Robert Elz.
2003-05-18 20:52:28 +00:00
wiz
e6869911af Add aleron, easynews, and heanet sourceforge mirrors. 2003-05-18 13:06:56 +00:00
tron
7032df1c90 Remove "belnet.dl.sourceforge.net" from sourceforge master site list
because it doesn't work for weeks now.
2003-05-18 12:35:16 +00:00
jmc
a2a3feb0bb Wrap EXTRACT_COOKIE like all others that could have an interactive step
and check for it if doing a batch build
2003-05-11 07:06:23 +00:00
rh
3d1c3b18b4 Default DEPENDS_TARGET to replace if UPDATE_TARGET == replace. This avoids
multiple rebuilding attempts for prerequisite packages.
2003-05-04 02:59:15 +00:00
rh
5263b93abf Make UPDATE_TARGET=replace somewhat useful: don't remove the original
package in this case.
2003-05-04 01:20:13 +00:00
atatat
925c851209 Actually, Mesa's Makefile.common seems like a much better place for
MESA_REQD, and it works much better, too.  :)
2003-04-30 04:05:48 +00:00
atatat
de4d36d9e7 Move MESA_REQD from bsd.pkg.defaults.mk to bsd.pkg.mk, since the
latter appears to be a much better place to put something like that.

Also, remove a ) from the awk expression in the check-vulnerable
target, since it is extraneous and only causes awk to die.
2003-04-30 03:05:06 +00:00