Commit graph

3884 commits

Author SHA1 Message Date
hubertf
8f1c2afbd1 Upload pkgs built in sandbox
(wrapper to 'upload' script, similar to do-sandbox-build).
2005-01-10 18:52:25 +00:00
jlam
d67a649768 Allow the creation of error handlers for shell commands in make targets.
PKG_ERROR_CLASSES is a list of error handlers, PKG_ERROR_HANDLER.<class>,
to create.  The default error handler will rethrow the exit code after
emitting an error message that may be specified per-class with
PKG_ERROR_MSG.<class>.

Create error messages for the configure and build phases that inform
the user of places to go looking for why the build didn't complete.
2005-01-10 18:34:48 +00:00
jlam
bde2c8d1b9 Fix error in previous that turned off all transformations in all
wrappers.  "Oops".  We now do transformations by default, and turn
them off explicitly for wrappers that don't want them, e.g. IMAKE.
2005-01-10 17:16:35 +00:00
jlam
9451157a8f Sort the compiler list in the comments. 2005-01-10 09:05:01 +00:00
jlam
f563b96808 Whitespace nits. 2005-01-10 08:59:07 +00:00
jlam
b73353dae2 Remove redundant CONFIGURE_ENV lines (they're already present in the
shell environment passed in the do-configure target.
2005-01-10 08:30:43 +00:00
jlam
fe94a16933 Avoid the silly optimization in the make logic and push it into the
shell script instead.  We can't avoid invoking sed at least once since
we need to protect the arguments against shell expansion, but we avoid
invoking sed for transformations unless there actually are transformations
to perform.  The code is simpler, more straightforward, and logically
correct now.

This fixes problems with using a non-GCC compiler with packages that
haven't been converted to use buildlink3, noted in PR pkg/28896.
2005-01-10 03:40:25 +00:00
jlam
c1a8410ae8 Modify krb5.buildlink3.mk so that we choose a single, well-known
package (heimdal) for all Kerberos 5 dependencies instead of choosing
the best installed Kerberos 5 package by default.  This can be overridden
with the following variables:

KRB5_DEFAULT is a user-settable variable whose value is the default
	Kerberos 5 implementation to use.

KRB5_ACCEPTED is a package-settable list of Kerberos 5 implementations
	that may be used by the package.
2005-01-09 23:59:26 +00:00
jlam
691395aa89 Modify bdb.buildlink3.mk so that we choose a single, well-known package
for all Berkeley DB dependencies instead of choosing the best installed
DB package by default:

1. BDB_DEFAULT is set in /etc/mk.conf for the life of pkgsrc and
   represents the package we use when either (1) a db-1.85 interface
   isn't required, or (2) a db-1.85 interface *is* required, but it's
   not builtin.  It defaults to "db4" but can be any of db[234].

2. BDB185_DEFAULT is set in /etc/mk.conf for the life of pkgsrc and
   represents the package we use when a db-1.85 interface is required.
   It defaults to "db1" if it's builtin, or to ${BDB_DEFAULT}
   otherwise.[**]

3. If we want db1, then we use the package named in BDB185_DEFAULT.
   If we don't want db1, then we use the package named in BDB_DEFAULT.

4. If ${BDB_DEFAULT} isn't listed in BDB_ACCEPTED for a package, then
   that package will be marked with PKG_FAIL_REASON as "${BDB_DEFAULT}
   not a supported Berkeley DB type for ${PKGNAME}."

Using the above scheme, on NetBSD, the default of BDB_DEFAULT=db4 and
BDB185_DEFAULT=db1 will cause db1 to be used whenever we want a db-1.85
interface and db4 to be used for all other packages.
2005-01-09 23:56:21 +00:00
jlam
840bee35ba If we fail the user/group existence test, then don't proceed to the
directory creation, which often need to create directories owned by
a particular user.
2005-01-06 23:44:35 +00:00
jmmv
5baeaac432 Add my_MM locale, initially used by gaim-1.1.1. 2005-01-04 09:01:44 +00:00
seb
ae6f41a73d Apache6 package was removed on 2004/11/22: remove code to support it in
mk/apache.mk and references to it in mk/defaults/mk.conf.

It is now only referenced in some CONFLICTS specifications and some
dependencies specifications (for www/ap-dav and www/ap-jserv; should theses be
removed too?)
2005-01-03 13:20:28 +00:00
minskim
1d36b321d6 Make IS_BUILTIN.dl work on Interix. Patch provided by Hiramatsu Yoshifumi
in PR pkg/28836.
2005-01-03 04:57:51 +00:00
minskim
472c0e0fe2 Add the perl path to CONFIGURE_ENV here, so that we don't have to fix
every package using perl.
2004-12-31 13:13:56 +00:00
minskim
90e4fe3699 Create a symlink to the pkgsrc perl executable in ${TOOLDIR}/bin so
that native perl is never used.

Suggested by jlam@.
2004-12-30 09:47:01 +00:00
minskim
dcc78c4962 Use GNU make on Linux when USE_IMAKE=yes, because Makefile generated
by imake on Linux requires GNU make.
2004-12-29 23:19:42 +00:00
wiz
bc871f8be3 Fix ttf/type1 handling in fonts.mk:
Previously, ttmkfdir's output was redirected to fonts.dir,
while the correct behaviour is to let it create fonts.scale
and then let mkfontdir merge fonts.scale into fonts.dir.
type1 handling had a similar problem.
Get the wanted behaviour by automatically appending the contents of
FONTS_TTF_DIRS and FONTS_TYPE1_DIRS to FONTS_X11_DIRS.
Also, save a subshell in install/fonts while there.

Bump PKGREVISION for all affected packages.

jmmv@ says ok.
2004-12-28 14:38:03 +00:00
reed
32d8f290c2 The default location of the pkgsrc-installed rc.d scripts is now
under share/examples/rc.d. The variable name already was named
RCD_SCRIPTS_EXAMPLEDIR.

This is from ideas from Greg Woods and others.

Also bumped PKGREVISION for all packages using RCD_SCRIPTS mechanism
(as requested by wiz).
2004-12-28 02:47:40 +00:00
jlam
25b0d4a59c OpenBSD uses the NetBSD user/group management tools, so re-add back
support for USERADD/GROUPADD on OpenBSD.
2004-12-27 08:38:09 +00:00
jlam
25b81680be Remove USERADD and GROUPADD definitions from OSes where the useradd
and groupadd commands won't follow the calling conventions of the
NetBSD useradd/groupadd.  Modify the INSTALL scripts to *never* create
users or groups if there is no available ${USERADD} or ${GROUPADD}
command, but will warn the user of users and groups that need to be
created before the package can be installed.
2004-12-27 06:41:50 +00:00
jlam
25ecd0385c It's "modules/by-module". 2004-12-26 23:15:48 +00:00
jmmv
7bfa622ee9 Set default values for MLDONKEY_{GROUP,HOME,USER} and document them. 2004-12-25 19:16:29 +00:00
jlam
d8184c92cf Back out CPAN_MODULE_DIR change. Due to the way make variables are
evaluated, this broke MASTER_SITES in many p5-* packages.
2004-12-25 03:43:33 +00:00
jlam
687d5dc611 Rename to "CPAN_MODULE_PATH" to "CPAN_MODULE_DIR". 2004-12-25 03:22:37 +00:00
jlam
eeecb05048 Create CPAN_MODULE_PATH which points to the location of Perl modules at
a CPAN mirror.  By default, it is "modules/by-module".
2004-12-25 03:20:33 +00:00
jmmv
22c78c78fb Add 'as' locale, initially used by atk 1.9.0. 2004-12-24 12:28:58 +00:00
jmmv
eb0c4759ca Enable theme-dirs. 2004-12-24 10:06:41 +00:00
jmmv
77acc28001 Add rw locale, initially used by GTK+ 2.6.x. 2004-12-23 22:42:08 +00:00
jlam
1a36b3b670 Don't remove library options from the command line quite so aggressively.
Allow the configure process a chance to detect on its own whether the
named library exists or not by allowing those library options to pass
through to the compiler on a test compile.  A package that *needs*
those library options to be removed can add the appropriate rm:
BUILDLINK_TRANSFORM command to its package Makefile.
2004-12-23 14:27:04 +00:00
jlam
650b62997d Remove support for some variables that are supposed to go away after
pkgsrc-2004Q4 is branched.
2004-12-22 21:46:24 +00:00
jlam
bf4e0b5a64 On NetBSD, rpcgen must *always* be invoked with "-b":
-b      Compile stubs in "backwards compatible" mode, disabling
             support for transport-independent RPC.  The -b should always
             be specified when generating files for NetBSD, since there is
             no transport-independent RPC support in NetBSD.

Therefore, force "-b" to be the first argument whenever rpcgen is invoked
via the wrapper.
2004-12-22 21:39:25 +00:00
agc
429fdd9cb8 Whitespace police - no functional change 2004-12-21 17:30:07 +00:00
grant
2ba54e3789 libtool>=1.5.10nb9 actually works on DragonFly, so require at
least that version.
2004-12-21 13:52:26 +00:00
schmonz
18d08b239f Introduce QMAIL_QFILTER_TMPDIR, the temporary directory for
qmail-qfilter. Defaults to ${VARBASE}/tmp/qmail-qfilter.
2004-12-21 00:19:40 +00:00
grant
80e7ac22fb Darwin 7.7.x has poll() in libc, but no poll.h. Address this in GNU
configure packages by testing for poll.h and sys/poll.h and pretending
that there is no poll() if neither exist.
2004-12-20 13:09:04 +00:00
grant
8e83f3f367 fix MASTER_SITE_GNOME .au example. 2004-12-19 00:45:19 +00:00
grant
40a1b4637f transform -fPIC to -qnocommon and clarify the related comment. 2004-12-19 00:38:59 +00:00
jlam
8b2040b409 Always create a ${TOOLS_DIR}/bin/rpcgen to wrap the real rpcgen.
The wrapper will correctly set the CPP environment variable to a
stat((2)able path to a C preprocessor, then rely on the PATH to
find and invoke the real rpcgen.

Remove NO_EXPORT_CPP in package Makefiles where it was used just to
avoid problems with rpcgen.  The build system now just does the right
thing automatically without needing package-specific knowledge.

This fixes PR pkg/27272.
2004-12-18 19:24:26 +00:00
grant
7bbc828ce7 document QPOPPER_SPOOL_DIR. 2004-12-18 04:03:16 +00:00
jlam
651a4a40fd Ensure that libtool-base>=1.5.10nb7 is required for packages that set
USE_FORTRAN.
2004-12-18 00:14:04 +00:00
jlam
88648515a2 Rewrite func_infer_tag in the libtool script so that it's easier to
specify (hardcoded) compilers from which we can infer the correct tag
(CC, CXX, F77).  Use the following patterns to match compilers to
tags:

	CC:	*cc *xlc
	CXX:	*++ *CC
	F77:	*77 *fort

Bump the PKGREVISION to 1.5.10nb7 since we now infer the F77 tag from
likely Fortran compilers.  Also require at least this version of
libtool when building packages that set USE_FORTRAN.  This should fix
PR pkg/28661.
2004-12-17 16:24:22 +00:00
tron
ecdfaff3a2 Remove "http://aleron.dl.sourceforge.net/sourceforge/" once more because
it still doesn't work.
2004-12-15 14:38:53 +00:00
grant
22c75b5b2f fix perl modules path in cpan.pair.com URL. 2004-12-14 10:06:16 +00:00
kristerw
4b4db9826b Make bulk builds mark packages failing due to "no acceptable JVM found"
as unavailable instead of broken.
2004-12-14 00:08:57 +00:00
kristerw
fdb6419bd5 The documentation claims you can use -m as an alias for --mirror_only.
Make it so.
2004-12-11 02:49:57 +00:00
jlam
bda6801430 Create directories before putting files in them. This should fix
PR pkg/28480.
2004-12-11 00:32:16 +00:00
jlam
82d866954b Nuke bsd.perl.mk... we compute these values where they're needed in
perl5/buildlink3.mk already, so no need to include this file in
bsd.pkg.mk anymore.
2004-12-10 04:25:09 +00:00
jlam
452e77d799 From inspecting configure scripts, it seems FreeBSD wants "-D_THREAD_SAFE"
as part of the CPPFLAGS when building threaded apps.
2004-12-09 15:27:13 +00:00
wiz
cc53e3582a ftp2.sf.net is much more responsive than ftp3; replace the latter with the former. 2004-12-08 16:21:00 +00:00
schmonz
c0b159de2e In the show-options target, ensure that PKG_OPTIONS and friends
are non-empty before shelling out to xargs. Silences spurious output
from "pkg_chk -i" and probably others.
2004-12-05 23:23:50 +00:00
grant
c463b8b491 make sure some variables are initialized before using them. 2004-12-05 22:38:06 +00:00
grant
748314ae90 add handling for some required -Wl, transformations for packages that
assume Apple gcc on Darwin. thanks, Johnny :)

this allows perl to build with xlc.
2004-12-05 09:29:26 +00:00
grant
273a47a3d8 whitespace fix 2004-12-05 09:27:23 +00:00
grant
71232b1911 transform -dynamiclib and -fno-common to the appropriate arguments
for xlc.
2004-12-05 09:26:59 +00:00
grant
e221a993eb add show-options target which displays the options available, default,
and enabled for the current pkg, eg. mail/sendmail:

available: db2 db4 inet6 ldap sasl sasl2 socketmap starttls tcpwrappers
default: canna esound gif idea inet6 inet6 sj3 tcpwrappers wnn4
enabled: inet6 tcpwrappers
2004-12-05 09:20:48 +00:00
jlam
bd720de98f Allow the wrapper-specific transform scripts to replace one arg with
several args by setting split_arg="yes" as part of the transformation.
2004-12-05 03:43:18 +00:00
grant
17c0839438 don't throw away all "-Wl," arguments, they are needed to pass various
shlib options to the Darwin linker.
2004-12-05 02:47:52 +00:00
grant
b0797b36a4 fix typo 2004-12-05 02:41:31 +00:00
wiz
6e02d7ee41 Rename ALL_TARGET to BUILD_TARGET for consistency with other *_TARGETs.
Suggested by Roland Illig, ok'd by various.
2004-12-03 15:14:50 +00:00
dillo
36aee2a648 add MASTER_SITE_IFARCHIVE -- list of mirrors of the Interactive Fiction Archive 2004-12-02 21:56:06 +00:00
jlam
406700e994 Don't hardcode /usr/include/db.h and /usr/include/db1/db.h all over the
place.  Also, modify the buildlink-db1-db185-h target to use symlinks
instead of include <db.h> since several bdb implementations might be
buildlinked, and we need to be more precise about exactly which db.h
header is being used.
2004-12-02 17:40:49 +00:00
jlam
6c02e9e0aa If we're using the builtin dlopen(), and libdl.* doesn't exist, then
drop the "-ldl" option on the floor.  This "fixes" packages that
hardcode "-ldl" into the command line when linking software.
2004-12-02 15:04:16 +00:00
wiz
913b2647ad "the the" -> "the" 2004-12-01 09:52:59 +00:00
tv
29b0526b9b We already know that bsd.prefs.mk is included before this, so reduce make
parser churn by skipping a second include of it.

Use PKGDIR in preference to .CURDIR as in other .mk files.
2004-11-30 15:09:45 +00:00
jlam
28e0cb9288 Remove the trailing whitespace in the values of the toolchain variables
(CC, LD, CXX, etc.) if the default values have no arguments.  Now,
CC == "cc" and not "cc ".
2004-11-30 15:07:26 +00:00
jlam
eb9034727a Modify the way that the toolchain variables, e.g. CC, CPP, CXX, LD, etc.,
are handled.  The idea now is to simply remove the paths in the values
of these variables, leaving behind only the basename plus any arguments,
e.g.:

	CC= /usr/local/bin/gcc       becomes   CC= gcc
	CPP= /usr/local/bin/gcc -E   becomes   CPP= gcc -E

The wrapper scripts are generated for every unique executable mentioned
by the toolchain variables, so for the example above, only a "gcc"
wrapper script is generated for ${CC} and ${CPP}.  PKG_{CC,CPP,CXX,etc.}
are the paths to the executables wrapped by the wrapper scripts.

Note that it's now possible to set "CC" to something more than just the
path to the compiler, e.g.

	CC= cc -ffast-math -funroll-loops -fomit-frame-pointer

and the full value of ${CC} will be passed through via CONFIGURE_ENV
and MAKE_ENV.
2004-11-30 14:50:37 +00:00
seb
3e4e8e4fea Since last revision PTHREAD_AUTO_VARS defaults to 'no'. 2004-11-29 17:27:14 +00:00
tv
fbbc1e4cdf Remove anl.gov from _CYGWIN as it is either slow or dead most of the time. 2004-11-29 02:00:30 +00:00
jlam
c88ff0fa15 Set initial values for PKG_{CC,CPP,CXX,FC} which are used within the
${compiler}.mk files to discover the short names of the compilers.
This allows ccache.mk to properly create symlinks when CC is set
explicitly within /etc/mk.conf.
2004-11-28 21:32:47 +00:00
jlam
40377c791f Remove pre-buildlink and post-buildlink as part of getting pkgsrc ready
for pkgsrc-2004Q4.  The "buildlink" phase was removed for the last branch,
and this is the final cleanup.  "post-buildlink" is now "post-wrapper".
2004-11-28 19:19:51 +00:00
jlam
b87ac57b91 Don't show the currently selected options if there aren't any. 2004-11-28 08:00:51 +00:00
jlam
9636b9d697 Reverse the tests so that we actually check for the existence and not
the non-existence of the library -- this more accurately reflects what
we want to say.
2004-11-28 05:44:34 +00:00
grant
e71f192b37 CFLAGS+=-ma because most packages expect alloca to be available and
this makes it so with xlc.
2004-11-27 15:28:34 +00:00
xtraeme
ce8b80770c Remove "LYNX_SCREEN_LIB" option, not supported by the lynx package right
now, use PKG_OPTIONS.lynx+=foo bar instead.
2004-11-27 08:47:36 +00:00
jlam
add5eb0d1d Output the currently selected options after telling the user which
options are available.
2004-11-27 04:50:55 +00:00
jlam
172a3cdee1 Match NetBSD-2.x_RCn as well as NetBSD-2.x. 2004-11-26 21:04:46 +00:00
jlam
061ff7543b Move the section that defines DLOPEN_REQUIRE_PTHREAD outside of the
CHECK_BUILTIN.dl-protected section so that it's value can be usd after
dlopen.buildlink3.mk is included.  This should fix PR pkg/28422.
2004-11-26 17:42:42 +00:00
jlam
f96609e939 Check that USE_BUILTIN.dl is "yes", not that it's just defined. 2004-11-26 09:32:06 +00:00
jlam
bdbcf6f038 Don't auto-add -ldl to LIBS since most GNU configure scripts already
check for this condition.
2004-11-26 08:26:51 +00:00
jlam
96786425e0 Don't append BUILDLINK_CFLAGS.pthread to itself if pthread.builtin.mk
gets included multiple times.
2004-11-26 08:18:30 +00:00
jlam
b47bc866c0 Move all dlopen-handling code into dlopen.{builtin,buildlink3}.mk. 2004-11-26 08:15:25 +00:00
jlam
399f4ba496 More tightly integrate the OSF1 changes into pthread.builtin.mk by using
more feature tests instead of OPSYS tests.
2004-11-26 08:12:59 +00:00
jlam
825f6216b4 Split dlopen.buildlink3.mk into two files: dlopen.buildlink3.mk, which
is included by packages that use dlopen(), and dlopen.builtin.mk,
which checks for the presence of built-in dl*() functions.  On Darwin,
including dlopen.buildlink3.mk will cause the devel/dlcompat package
to be used if the base system lacks a dlcompat library.
2004-11-26 07:05:19 +00:00
jlam
67e7448da0 Fix the "MACHINE_PLATFORM" patterns by appending "-*". 2004-11-26 01:58:47 +00:00
jlam
a3af230352 Define DL_{CFLAGS,LDFLAGS,LIBS} as compiler/linker flags for building
or linking code that uses dl*() functions.  Also re-structure a bit to
pave the way for a future dlopen.builtin.mk that handles -ldl on some
platforms and dlcompat on Darwin.
2004-11-26 01:56:17 +00:00
jlam
f551f31daf Missing a make variable modifier. 2004-11-26 01:40:42 +00:00
jlam
72d942ad5a Add missing quotes. 2004-11-26 01:22:31 +00:00
jlam
cf6bd5fad8 Don't recursively define _DLOPEN_REQUIRE_PTHREADS. 2004-11-25 22:18:34 +00:00
jlam
b0427900c8 Perl is all about loadable perl modules, so include dlopen.buildlink3.mk.
If we include pthread.buildlink3.mk, then build with Perl ithreads
support.  Bump the PKGREVISION.

Nuke the perl58-thread package.  The perl package can now be forcibly
built with thread support by setting PERL5_USE_THREADS to "yes".
2004-11-25 22:02:49 +00:00
jlam
3c17831da9 Only include pthreads if we prefer native pthreads. This allows building
pkgsrc without any pthreads if we don't want to.
2004-11-25 21:43:19 +00:00
jlam
2e5e6fbf72 dlopen.buildlink3.mk should be added to packages that use dlopen() to
load shared objects.  Some platforms require pthreads to be linked
into the application if it uses dlopen() or else the applications will
core dump when they dlopen a shared module that _is_ linked with
pthread support.  Including dlopen.buildlink3.mk in a package Makefile
will cause pthread.buildlink3.mk to also be included.

It is up to the package to ensure that PTHREAD_{CFLAGS,LDFLAGS,LIBS}
(defined by pthread.buildlink3.mk) are passed to the compiler when
building/linking the applications, possibly by setting PTHREAD_AUTO_VARS
to "yes" in the package Makefile.
2004-11-25 21:33:36 +00:00
jlam
e2cc31acb2 Default USE_GIF to "yes". This affects graphics/tiff and x11/qt1,
which will now be built by default with the ability to write LZW-compressed
files.
2004-11-25 19:37:58 +00:00
jlam
3bbe73c68a Default PTHREAD_AUTO_VARS to the safer value of "no". Most packages
that use pthreads already implement their own probes for pthreads, so
we don't need to auto-add the compiler/linker flags.
2004-11-25 19:34:03 +00:00
wiz
c48a7167ce Sync MASTER_SITE_SOURCEFORGE with reality. 2004-11-24 15:36:34 +00:00
jlam
4952f1a79c Don't hard-code "lang/perl58". Instead, use the value of PERL5_PKGSRCDIR
which is computed based on whether perl or perl-thread should be the
default.
2004-11-23 19:44:02 +00:00
jlam
19c97f1019 Fix the find command used to print out all of the .broken* files. It now
prints out both the .broken.html and .broken.work.html files instead of
just the latter.
2004-11-23 19:31:46 +00:00
jlam
b72e03c8a5 Use CCPATH instead of referring to the C compiler by its full path in
multiple places.
2004-11-23 05:32:22 +00:00
jlam
539fa6a01b Whitespace changes. 2004-11-23 05:24:28 +00:00
dmcmahill
1efd592495 add {CC,CXX,FC,F77}PATH variables which give the complete path and
name of the {CC,CXX,FC,F77} compilers.  These will be used by pkgs
which need to know which compiler and where it is at run time.

Approved by jlam@
2004-11-23 00:46:26 +00:00
wiz
43de7f8bc0 Now that no package uses USE_GCC_SHLIB any longer, remove support
for it from compiler.mk.

Move the variable of the same name used by compiler/gcc.mk and
the gcc* buildlink3 files into private namespace (_USE_GCC_SHLIB).
2004-11-22 22:24:46 +00:00