Commit graph

2462 commits

Author SHA1 Message Date
jmc
0357645827 If CPP is set (via sys.mk) and not fully qualified in it's pathname, reset it
to the fully qualified path name to avoid rpcgen bugs with undocumented usage
of CPP.
2003-07-23 20:13:47 +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
jmmv
6bf23df930 Add locale directories: af, tg, th; used by xmms. 2003-07-22 23:21:18 +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
seb
751840e777 Sync comments with reality wrt to USE_MAKEINFO == "no". 2003-07-22 01:10:32 +00:00
kristerw
b154c252d9 Include "../../mk/bsd.prefs.mk" to make sure PKGPATH is defined. 2003-07-22 01:00:25 +00:00
jmmv
a468557543 Add locale directories: fo, nso, ven, xh, xx, zu; all used by kopete. 2003-07-21 17:50:05 +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
uebayasi
223429e75f Introduce CUE_USE_CANNA, which determines whether to enable Canna support.
Default is NO.

This addresses PR19010 by Takashi Yamamoto.
2003-07-17 09:09:58 +00:00
bad
d6973cf441 "make update" works fine for me with SPECIFIC_PKGS=1, so enable it and the "clean-update" target. 2003-07-14 23:23:21 +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
salo
67b59b1f25 Add PURE_FTPD_USE_PGSQL and use sane default for PURE_FTPD_USE_MYSQL. 2003-07-12 14:24:15 +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
grant
58657ac9cf portability fixes:
quote a shell test, and run ${AWK} -f tflat instead of using
#!/usr/bin/awk.
2003-07-11 23:54:32 +00:00
grant
4f52e90180 also set PTHREAD_LDFLAGS=-lpthread if we aren't using native threads. 2003-07-11 23:37:13 +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
102641b4be use /usr/xpg4/bin/expr 2003-07-11 14:33:45 +00:00
chris
6fca61c3f5 Sync config.guess and config.sub to the latest.
Still have local diffs for sh5, so I'm not sure if sh5 still works (I've
reapplied the patches).
2003-07-11 10:11:33 +00:00
grant
6790bfa9bc minor style nit 2003-07-10 23:12:40 +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
salo
21b6a8eb80 Use proper compiler test.
(the former was unreliable anyway, there could be GCC installed as cc == no
*gcc* pattern in path)
2003-07-09 20:07:46 +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
salo
d750aba607 More support bits for native Sun compilers (on Solaris).
Sun's C++ compiler (CC) doesn't support passing arguments to ld via -Wl flag,
remove this flag from the buildlink2 environment.
2003-07-09 16:07:21 +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
abs
4107ad2a64 Handle blank MACHINE_ARCH on Linux (as seen on 20030630 bootstrap kit) 2003-07-09 11:38:17 +00:00
salo
0eb8222777 Don't insist on using/compiling GCC if different compiler is in use. 2003-07-09 08:25:04 +00:00
salo
bf262a9684 Introduce few new variables for (mostly) non-GCC compilers use with pkgsrc
so compiler-dependent settings can be set later.

USE_GCC2    - GNU Compiler Collection 2.x	(default)
USE_GCC3    - GNU Compiler Collection 3.x	(used already)
USE_MIPSPRO - Silicon Graphics, Inc. MIPSpro Compiler
USE_SUNPRO  - Sun Microsystems, Inc. WorkShop/Forte/Sun ONE Studio
              Compiler Collection

(Intel compilers on Linux, anyone? :) )
2003-07-09 08:22:22 +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
seb
ddfc49b652 Use "$@" when it matters. 2003-07-02 21:19:09 +00:00
grant
84205e4308 patch from seb@ to pass --split-size to gtexinfo >= 4.6.
thanks seb :)
2003-07-02 16:07:01 +00:00
seb
7cbf83dab0 Only consider as makeinfo's version the first version number looking word
in `makeinfo --version'.

This is needed for older makeinfo which output thing like:

makeinfo (GNU texinfo 3.12) 1.68
Copyright (C) 1998 Free Software Foundation, Inc.
....

This should fix the problem encountered by Thorsten Frueauf on 1.5.4_ALPHA
(I reproduced it on stock 1.5.3) and reported in private email via
jschauma@.
2003-07-01 14:56:25 +00:00
jlam
b48f0f9468 XLOCK_LIGHT is deprecated, but we still support it in xlockmore/Makefile
until users figure out to install xlockmore-lite instead.
2003-06-30 07:34:37 +00:00
jschauma
16b6beba8f Introduce a variable called "MAKEINFO_ARGS", which may be used to pass
arguments to makeinfo(1).  This was made necessary by the fact that under
IRIX64 makeinfo(1) does not use a default split-size of 50000, which breaks
our PLISTs.  After feedback from seb@, initialize MAKEINFO_ARGS per default
to _OPSYS_MAKEINFO_ARGS, which is set in defs.<OPSYS>.mk (currently only
for IRIX using 64-bit ABI).
2003-06-29 21:25:49 +00:00
seb
8c50b1beff Using GNU missing script as makeinfo seemed like a good idea
when a package use the buildlink2 framework but does not define
USE_MAKEINFO. Well it was not after all.

This caused annoying messages because missing's commands emit annoying error
messages when the script is invoked with only 'makeinfo' as argument
(typically run this way by configure scripts). And more it does not
handle makeinfo's '--output=...' argument.

I first thought that it could be used as a nice way to get ride of the need
for makeinfo when it was only dubiously run during build or installation
of a package. But it also has the annoying behavior of creating empty files
because of the typical automake generated Makefile target for info file
build.

Making the buildlink2's makeinfo hiding script only logging an error
and doing 'exit 1' is actually a better tool to spot the need for makeinfo.
2003-06-25 22:48:02 +00:00
seb
58a5818ee0 Better error handling. 2003-06-25 22:45:14 +00:00
seb
082b66be00 At DEINSTALL time after un-registering info files from the Info
directory file remove it if it is empty i.e. if it contains only one
menu/entry line i.e. only one line starting with '*'.

This allow INFO_DIR to be set to a package specific directory while
not registering in the PLIST the Info directory file (${INFOR_DIR}/dir).

Registering such an Info directory file in the PLIST is not really
possible as a md5 signature of it holding the registered info entries
would be stored in PKG_DBDIR. At deinstall time this signature would not be
matched because the DEINSTALL script would have modified it by
un-registering the info files from it. Hence the package removal would
be reported as incomplete...

You are probably right if this looks like a hack to you...
2003-06-25 20:51:25 +00:00
jlam
5b02a8a8c4 Only change the owner/group/mode of a directory tree if it's not
pre-existing.  This should fix pkg/21975 by Matthias Scheler.
2003-06-25 08:26:51 +00:00
jschauma
f033db9a55 Hand ABI to CONFIGURE_ENV and MAKE_ENV on IRIX. 2003-06-23 21:36:29 +00:00
salo
6fcb841a50 Introduce MPLAYER_USE_MEDIALIB.
It's used to enable optional support for Sun mediaLib library.  (only takes
effect on Solaris).
2003-06-23 15:46:22 +00:00
salo
cf2eb06cb1 Remove DOVECOT_USE_LDAP in favor of generic USE_OPENLDAP.
Correct USE_OPENLDAP comment accordingly.
2003-06-23 15:10:44 +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
jschauma
07aec53fd8 Apply patch by Joachim Koenig-Baltes (joachim at handshake dot de) in
followup to PR pkg/20529:

Some libraries (in this example, a given Linux's native libpthread) don't
come with a version number at all and/or are in fact symlinks.  Test for
this and act accordingly in fake-la.

This allows packages that use pthread to buildlink under various Linuxen.

Should close PR pkg/20529 and PR pkg/21854.  Thanks, Joachim.
2003-06-19 17:20:41 +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
jmmv
86606c89e5 Add 'li' locale directory (used by glib2, version 2.2.2). 2003-06-09 23:04:19 +00:00
jschauma
5b2a23668d Use the public RPATH_FLAG in favor of the private _OPSYS_RPATH_NAME. 2003-06-08 22:47:28 +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
jschauma
03b2022e5c test, too, can be in /bin or /usr/bin. Apparently. 2003-06-06 19:07:42 +00:00
jschauma
435145eb16 If we want to try a bulk-build on a non-NetBSD platform, we need to take
care not to blow away our bootstrap-pkgsrc stuff in the initial phase.
Also mark devel/bmake and devel/mk-files as broken on non-NetBSD so as not
to blow away our precious files from the bootstrap process in the middle
of a bulk-build.  Now let's see if bulk-building works on Linux...
2003-06-06 18:28:47 +00:00
jschauma
066edded53 Found some more programs that may be in either /bin or /usr/bin depending
on what todays flavor of Linux is.
2003-06-06 17:57:36 +00:00
drochner
1afb6de11e Introduce a variable "LINK_ALL_LIBGCC_HACK" which
is "-Wl,--whole-archive -lgcc -Wl,--no-whole-archive" on
NetBSD-1.5* and empty otherwise.
This is needed on build of programs which dlopen() extension
libraries.
(Some pkgs do the libgcc linking already, but independantly
of the OS version.)
2003-06-06 17:13:31 +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
markd
2d4086d16a Add EMACS_USE_XAW3D. 2003-06-05 12:13:34 +00:00
jschauma
e8fa35b02c Use a better value as LOWER_OPSYS for IRIX. 2003-06-05 00:23:29 +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
jmmv
c112e1c041 Add "gd" locale directory, used (at least) by gnome-pim. Pointed out by
Douglas Brebner in private mail.
2003-06-03 20:50:54 +00:00
jmmv
5ebed838a1 Add yi locale (used by libgnomeui). 2003-06-03 18:42:51 +00:00
jmmv
fb2818516a Add the be locale directory. 2003-06-03 14:51:40 +00:00
jmmv
a2fd2c7b2d Add ee locale directory, used by xmule. 2003-06-03 09:20:16 +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
jschauma
b35d09294d Add some, per default undefined, variables for the blender package. 2003-05-28 15:53:12 +00:00
grant
5776b4fd75 add pulling in buildlink includes/libraries from lang/gcc, or gcc3
when USE_GCC3 is defined.

ok'd by jlam@.
2003-05-27 07:01:56 +00:00
jlam
a4b2a82c02 Define user-visible variable "PTHREAD_CFLAGS" that contains compiler
options to compile/link pthreaded code.
2003-05-25 19:02:32 +00:00
jlam
3372f12ca0 Clarify comments to more explicitly note how to _not_ add the dependency
on the JDK.
2003-05-25 18:39:12 +00:00
jmmv
d2f81924bd Add ml and sr@Latn locale directories, used by libgnome. 2003-05-25 08:00:15 +00:00
salo
0ca23e301d Remove MPLAYER_USE_REALMEDIA, used by default on i386, powerpc and alpha. 2003-05-24 17:32:02 +00:00
salo
89b4d8b5ab Add es_ES locale dir (initially for sysutils/mc). 2003-05-22 16:57:24 +00:00
salo
8028257820 Convert MTOOLS_ENABLE_FLOPPYD to YES/NO from defined/undefined. 2003-05-22 16:53:40 +00:00
wiz
8e181d3f3c Add USE_LIBCRACK variable for PAM. 2003-05-22 14:36:31 +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
salo
6d737e4095 Add couple of missing .., oops. 2003-05-15 20:47:00 +00:00
salo
d0649c5caf Forgot pl in previous. 2003-05-15 20:34:17 +00:00
salo
e1b06da6b7 Add few more subtrees for localized man pages (initially for editor/lpe). 2003-05-15 20:28:30 +00:00
salo
cc3e81c2f7 Add GOLEM_WITH_SOUND, default NO. 2003-05-15 11:31:49 +00:00
salo
81429e399a Add DOVECOT_USE_{GNUTLS,LDAP,PGSQL} defaults. 2003-05-14 04:11:48 +00:00
salo
0bcbcab267 Add no_NO (for xdialog). 2003-05-13 23:00:04 +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