Commit graph

63 commits

Author SHA1 Message Date
gavan
4de3840eec Fixes PR pkg/22528 2003-08-21 11:59:22 +00:00
grant
102641b4be use /usr/xpg4/bin/expr 2003-07-11 14:33:45 +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
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
bbb8f396a8 set correct values for IMAKE_MAN_SUFFIX. 2003-04-10 01:39:52 +00:00
seb
f3bbd5629b m4 on solaris is /usr/ccs/bin/m4 or /usr/xpg4/bin/m4.
set M4 to /usr/ccs/bin/m4 for starter.
2003-03-29 20:49:11 +00:00
seb
89dce5e7f1 Move M4 default definition into the defs.$OPSYS.mk files: unconditionally
set it to /usr/bin/m4 for everyone, at least for now.
2003-03-04 14:50:09 +00:00
jschauma
5f58e72933 Add definitions for HOSTNAME_CMD, so that just-in-time-su doesn't fail
on Irix.  Noted and suggested by Pavel Cahyna in a private email.
2003-02-28 03:41:39 +00:00
tron
7b18e1d951 SunOS stores manual pages in "share/man" not in "man". 2003-02-27 08:15:53 +00:00
jschauma
660899fee5 Add defaults for IMAKE_MAN_DIR and friends.
Until we determine better values, use NetBSD defaults:
currently, package _not_ using IMAKE_* install there anyway, so if packages
work this way, all's well.  If not, then they were broken to begin with
and need attention.
2003-02-26 15:15:37 +00:00
grant
019a559042 prefer PREFIX/bin/gzip (and friends) and pax, if they exist. 2003-02-26 03:03:47 +00:00
jlam
63029a767b Make BUILD_DIR always point to a physical path by invoking /bin/pwd instead
of relying on the shell's builtin pwd.  This makes BUILD_DIR consistently
point to the correct directory regardless of the definition of SHELL.  This
fixes elusive some buildlink2 errors due to the fact that BUILDLINK_DIR is
derived from BUILD_DIR and some paths were incorrectly being translated.
2003-01-15 20:55:38 +00:00
jlam
1abdd450fe Install a ${PREFIX}/bin/shlibtool as part of the devel/libtool-base
package.  shlibtool will not build static libraries.  Add handling in
bsd.pkg.mk for a variable named "SHLIBTOOL_OVERRIDE" that is analogous to
LIBTOOL_OVERRIDE and causes any listed libtool scripts to be replaced with
a symlink to shlibtool, and teach buildlink2 about shlibtool.  Bump
PKGREVISION of devel/libtool* packages to 11.
2003-01-10 08:44:18 +00:00
grant
01eae24936 use ${LOCALBASE}/{g,}patch (in that order) if gpatch is not in
the base system.
2003-01-06 22:29:23 +00:00
salo
ae087ffe0d .elseif -> .elif. Thanks to grant for pointing this out. 2002-12-22 10:09:46 +00:00
salo
dbe1dbb68d When pkg_install is installed over zoularis, new tools reside in
${ZOULARISBASE/sbin so look there as well.  Otherwise old tools are used
(or new tools are not found if old tools were removed).
2002-12-22 09:30:03 +00:00
schmonz
e1c77ef496 Introduce _OPSYS_HAS_INET6, and use it to determine the default
value of USE_INET6.
2002-12-18 06:18:14 +00:00
salo
4e528fa8a9 Add TEE and TSORT (required for bulk builds). 2002-12-16 09:18:56 +00:00
salo
1449f89b48 Add DATE and NICE (required for bulk builds). 2002-12-15 13:03:02 +00:00
salo
4ff76ecb85 Add FGREP. 2002-12-15 02:12:32 +00:00
grant
5b32eafd0e use /usr/xpg4/bin/grep as GREP, as /usr/bin/grep does not support -e. 2002-12-09 05:38:57 +00:00
grant
1fb16f97a6 Solaris has /usr/include/iconv.h, but it's not GNU iconv. Mark it
incompatible.

Fixes buildlink2 problems with converters/libiconv, which assumed that
iconv was in the base system (on Solaris) due to the existance of
/usr/include/iconv.h.
2002-12-09 01:22:07 +00:00
agc
3c7775dbdd Eliminate another usage of ${OPSYS} in bsd.pkg.mk - realy on Darwin
defining _OPSYS_PERL_REQD to the correct value to make sure there's
a valid perl version for that platform.
2002-12-03 21:13:37 +00:00
agc
c4b7d25c61 Add a layer of abstraction into bsd.pkg.mk for Java settings - set the
path to the java home directory depending upon whether the operating
system includes Java by default. Use the operating system-dependent
definitions files to set this value.
2002-12-03 20:53:39 +00:00
agc
1418b13a80 Use ${_PATCH_CAN_BACKUP} rather than hardcoding an OPSYS value into
the logic for doing backups when applying patches, and set the value
accordingly in the opsys-dependent defs file.
2002-12-03 19:24:26 +00:00
agc
642c8c8176 Use a more generic way of determining, on an opsys-dependent basis,
whether the gettext package should be used.
2002-12-03 19:17:33 +00:00
agc
7dc9a2b816 Handle the different rpath directive to the linker for Irix in a different,
more generic, way - use an abstraction called ${_OPSYS_RPATH_NAME} which
takes the value "-rpath," or "-R", set appropriately in the opsys-dependent
defs files.
2002-12-03 19:11:30 +00:00
agc
46e9326213 Abstract out the base value of libtool required into _OPSYS_LIBTOOL_REQD,
and use that rather than a hardcoded ${OPSYS} default in bsd.pkg.mk
2002-12-03 18:57:52 +00:00
salo
8fe1ab8d3a Make gcc default compiler for packages using imake on Solaris.
Addresses PR pkg/18077 and PR pkg/18430 and possibly others.
2002-11-23 00:00:36 +00:00
jlam
62a470a755 Remove HAVE_OPENWINDOWS. Packages that wonder whether X11 is OpenWindows
can just test whether X11BASE is /usr/openwin (see x11.buildlink2.mk).
2002-11-14 10:08:01 +00:00
bouyer
d522c87431 Use ${LOCALBASE}/bin/gtar if it exists. 2002-10-27 18:27:11 +00:00
wiz
b56fb57bf8 Remove USE_LIBINTL and _DO_LIBINTL_CHECKS, which have been replaced
by devel/gettext-lib/buildlink2.mk.
2002-10-23 12:21:29 +00:00
grant
bc0094b054 Use mtree and pkg_* from bootstrap-pkgsrc if they exist.
ok'd by agc.
2002-10-17 14:39:18 +00:00
seb
31d37f8832 Full pathname for expr command. 2002-10-06 22:16:41 +00:00
jlam
3b536452b9 Add definitions for EXPR == expr, used for portable shell arithmetic. I
was only able to check the paths for NetBSD and Linux...Solaris and Darwin
pkgsrc developers should change the path to expr in the right defs.*.mk
file.
2002-10-04 23:32:17 +00:00
agc
cb0e38446b Apply patches from Lubomir Sedlacik <salo@Xtrmntr.org> in PR 18115 to
generalise the linker flags used to export symbols by setting them on
a per-OS basis.

> many packages force -Wl,-export-dynamic which is not portable outside GNU ld
> and cause problems e.g. on Solaris.  some of these packages use if
> conditionals either only for NetBSD or except SunOS, but the state is not
> coherent and it may complicate later when support for new OS is added to
> pkgsrc (e.g. ongoing work on HP-UX support).
>
> jlam proposed the following framework in discussion on tech-pkg:
>
>   http://mail-index.netbsd.org/tech-pkg/2002/06/21/0009.html
>
> now, ${EXPORT_SYMBOLS_LDFLAGS} is used instead of directly defining
> -Wl,-export-dynamic which is set in appropriate defs.*.mk to reasonable
> values.  packages should be converted to this framework by:
>
> 1) replacing LDFLAGS+= -Wl,-export-dynamic and LIBS+= -export-dynamic with:
>
>    LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS}
>
> 2) for use in patchfiles, add this variable to MAKE_ENV if needed:
>
>    MAKE_ENV+= EXPORT_SYMBOLS_LDFLAGS=${EXPORT_SYMBOLS_LDFLAGS}
>
> 3) replace occurances of -Wl,-export-dynamic and -export-dynamic in patch
>    files with:
>
>    $(EXPORT_SYMBOLS_LDFLAGS)
2002-09-04 14:47:32 +00:00
seb
9a2cbf0ab0 Allow more flexibility in the handling of UNLIMIT_RESOURCES.
Each word of UNLIMIT_RESOURCES is supposed to be a knob on
ULIMIT_CMD_<word> variable which value if defined is added to _ULIMIT_CMD.
The ULIMIT_CMD_* variables are set per $OPSYS in defs.*.mk and are overridable
by the user.

Solaris' default value of ULIMIT_CMD_memorysize adjusted as suggested in PR
pkg/18087 by Jonathan Perkin <sketch@rd.bbc.co.uk>.
2002-08-28 11:06:17 +00:00
schmonz
a9600197ee Provide per-${OPSYS} defaults for how to run a command as root.
Darwin ships with a disabled root account and a working "sudo".
2002-07-15 16:24:01 +00:00
grant
cc60a7b9d4 on Solaris, depend on gzip-base if GZCAT is not set, and neither
/usr/bin/gzcat nor ${LOCALBASE}/bin/gzip exist.

required for Solaris systems which do not include gzcat in the base
system.

sanity checked by Stoned Elipot <seb@netbsd.org>.
2002-07-11 15:52:35 +00:00
schmonz
63ce60909f Introduce CPP_PRECOMP_FLAGS, defaulting to "-no-cpp-precomp" on
Darwin (meaning "don't use the OS X cpp that groks precompiled
headers", which gets us the more compatible GNU cpp instead), and
blank on other systems.

Approved by agc and yyamano.
2002-06-02 00:40:18 +00:00
jlam
d3dec729ba Move definition of PERL5 from bsd.pkg.mk into defs.*.mk. This is something
that is used regardless of whether perl is installed or not, and we
sometimes want its value before include bsd.pkg.mk.
2002-04-09 22:15:40 +00:00
lukem
35dc87e356 make _PATCH_BACKUP_ARG be more useful to callers by moving "-V simple"
definition to be part of it instead of appending to PATCH_ARGS.
otherwise, $VERSION_CONTROL or $PATCH_VERSION_CONTROL would still
override -b/-z.
2002-03-14 02:28:22 +00:00
yyamano
9163c67246 Add _STRIPFLAG_CC and _STRIPFLAG_INSTALL to fix PR 15467.
I'll replace all STRIPFLAG in pkgsrc with STRIPFLAG_CC or STRIPFLAG_INSTALL.
2002-02-27 04:41:22 +00:00
agc
22bb6a588b Add coarse-grained locking to pkgsrc builds, by means of a beefed
up version of the bare-bones code in PR 7590, from David Maxwell.

The definition governing the type of locking used is PKGSRC_LOCKTYPE,
which can take any of the values "none", "sleep", and "once".  The
default is "none".  If "sleep" locking is used, and process A is
building a package, when process B attempts to build the same package,
process B will sleep for PKGSRC_SLEEPSECS seconds, and attempt to grab
the lock again.

Coarse-grained locking uses the OBJHOSTNAME definition to ensure that
the PID space is regular for shlock(1) to do its work.  The
pkgsrc/pkgtools/shlock package has been provided for environments
where shlock is not standard.
2002-01-19 21:29:41 +00:00
agc
f42759a800 Add a new _OPSYS_HAS_GMAKE definition, to denote that the OS has GNU make
as standard.

Hoist the default definition of ${GMAKE} from bsd.pkg.mk into the different
defs.${OPSYS}.mk files.

A non-standard location or name for GMAKE can still be specified in
/etc/mk.conf.
2001-12-19 10:29:11 +00:00
tron
b19ba9582c Use "/usr/xpg4/bin/sed" instead of "/usr/bin/sed" under Solaris because
the later one has problem with very long lines which will e.g. break the
"x11-links" package.
2001-12-17 09:36:31 +00:00
agc
6dde5fcc79 Move some operating-system specific definitions to the individual
defs.${OPSYS}.mk files.
2001-11-21 14:10:06 +00:00
agc
beda0b43f8 Add an _OPSYS_HAS_OSSAUDIO definition to the individual defs.${OPSYS}.mk
files, and use it in ossaudio.buildlink.mk. The definition shows whether
or not libossaudio is available in the OS.
2001-11-21 13:57:31 +00:00
agc
1b690b5a38 Move MOTIF_TYPE_DEFAULT and MOTIF12_TYPE_DEFAULT definitions into the
individual defs.${OPSYS}.mk files. No change in functionality.
2001-11-21 13:54:14 +00:00
agc
89257b87f1 Add _OPSYS_HAS_MANZ and _PREFORMATTED_MAN_DIR definitions to the
individual defs.${OPSYS}.mk files, and use them in bsd.pkg.mk.

+ _OPSYS_HAS_MANZ defines whether or not the OS does MANZ handling as standard

+ _PREFORMATTED_MAN_DIR is the name of directory (cat or man) where
preformatted manual pages go.

Rename the internal definitions used in the generation of PLIST files to
start with '_'.

This completes the "generic" changes to bsd.pkg.mk.
2001-11-21 13:44:44 +00:00