Commit graph

2370 commits

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