Commit graph

1212 commits

Author SHA1 Message Date
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
agc
7ec0debf3a Speed-ups for the check-vulnerable target, from Jeremy Reed in PR 21393. 2003-04-29 20:31:52 +00:00
agc
004fc67e75 Provide the command to remake package tools which are out of date in a
format which can be cut and pasted.
2003-04-29 20:27:50 +00:00
agc
726138526b Use the full pathname for the pkg_install package directory when
giving instructions on how to get up-to-date pkg_install tools.

Fix from Jonathan Perkin in PR 21277.
2003-04-29 14:34:19 +00:00
jmmv
92e726795a Make the PKGVULNDIR variable more generic, so one can choose where to
store the vulnerabilities file.  This variable was already recognized by
audit-packages but not by bsd.pkg.mk which hardcoded DISTDIR.
2003-04-25 20:05:18 +00:00
grant
6c5f6bb6c3 allow defs.*.mk to override PKGTOOLS_REQD, starting with Solaris
requiring 20030417 for recent bug fixes.

if platforms require (or desire) a newer version of pkg_install than
20021123 (the current default) for correct operation, please set
_OPSYS_PKGTOOLS_REQD in defs.OPSYS.mk.
2003-04-17 15:33:26 +00:00
agc
7c8fe29c1d Add an ALLOW_VULNERABLE_PACKAGES switch, defaulting to undefined, to allow
vulnerable packages to be built (in extremis, of course).

Prompted by Thomas Klausner.
2003-04-17 13:04:56 +00:00
agc
b7b87649b3 Add a check at fetch time to see if there are any known vulnerabilities
in a package - should keep some admins' blood pressure a bit lower.

Inspired by PR 19479.

Output where there is a vulnerability looks like:
	[13:30:05] agc@sys1 ...pkgsrc/net/samba 28 > make fetch
	===> do-fetch [samba-2.2.8] ===> Checking for vulnerabilities in samba-2.2.8
	*** WARNING - remote-root-access vulnerability in samba-2.2.8 - see http://lists.samba.org/pipermail/samba-announce/2003-April/000065.html for more information ***
	*** Error code 1

	Stop.
	make: stopped in /usr/pkgsrc/net/samba
	*** Error code 1

	Stop.
	make: stopped in /usr/pkgsrc/net/samba

whilst output where there is no vulnerability looks like:
	[13:30:28] agc@sys1 ...pkgsrc/net/ethereal 30 > make fetch
	===> do-fetch [ethereal-0.9.11] ===> Checking for vulnerabilities in ethereal-0.9.11
	=> ethereal-0.9.11.tar.gz doesn't seem to exist on this system.
	=> Attempting to fetch ethereal-0.9.11.tar.gz from ftp://ftp.sunet.se/pub/network/monitoring/ethereal/.
	=> [4457475 bytes]
	Trying 194.71.11.40...
	Connected to ftp.sunet.se.
	220-####################################################################
2003-04-17 12:36:54 +00:00
grant
89cd178cf1 only add ${LOCALPATCHES}/${PKGPATH}/* to the list of patches to apply
if LOCALPATCHES is defined.

fixes problem on Solaris w/ automounter handling /net, where any package
from the 'net' category would cause a blocking read on /net/pkgname
looking for 'pkgname' as a host exporting NFS file systems (saves a
few useless stat() calls, too).
2003-04-15 19:51:21 +00:00
grant
3f620389b6 add OPSYS_{,NO_}WHOLE_ARCHIVE_FLAG which defines the argument passed
to the linker to (not) extract all symbols from static archives and
export these variables to packages as {,NO_}WHOLE_ARCHIVE_FLAG.

these are not currently set for IRIX.
2003-04-15 05:29:45 +00:00
grant
8f61aa22f5 use ${CC} -dumpversion instead of --version to avoid multiline output
from gcc3.

XXX this needs to be better handled for non-gcc compilers.
2003-04-15 00:57:22 +00:00
hubertf
f8aad4bb28 Don't descend into filesystems /usr/pkg/emul/linux/proc etc. as this
will lead to wrong PLISTs.

Works around PR kern/21187.
2003-04-14 23:18:40 +00:00
grant
40eaf6003a planetmirror -> http (the ftp server has a 250 user limit), use
`planetmirror.com.au' to help MASTER_SORT and add planetmirror to a
few MASTER_SITES.
2003-04-10 20:32:28 +00:00
grant
6df5770761 pass -O arg to pax. 2003-04-10 20:29:08 +00:00