Commit graph

1795 commits

Author SHA1 Message Date
tron
01817b5b43 Add a "list" target which invokes "pkg_info -L" for the current package. 2002-09-08 06:59:26 +00:00
jlam
6a3ef162c6 Filter out -R and -Wl.-R arguments that point to /usr/local as well as
just -I and -L (modulo if LOCALBASE == /usr/local).
2002-09-07 07:33:14 +00:00
jlam
993383ae30 * Use a for loop to consolidate identical logic for removing paths in the
argument transform filter.

* Remove special ZOULARISBASE hack and use the new _BLNK_*PROTECT_SED
  variables to accomplish the same thing.
2002-09-06 14:39:41 +00:00
jlam
08c8404aae Create _BLNK_PROTECT_SED and _BLNK_UNPROTECT_SED variables to protect
${_PKGSRCDIR} and ${BUILDLINK_DIR} from any filtering, as they may be
subdirectories of ${LOCALBASE}, /usr/pkg, or /usr/local.

This should fix pkg/18142 and other puzzling problems reported on the
tech-pkg mailing list where it was necessary to revert back to buildlink1
versions of packages in order to build when the pkgsrc tree or the work
directories are kept under /usr/local.
2002-09-06 14:25:24 +00:00
jlam
e5981c7c8d Don't add the perl dependency if perl5/buildlink2.mk is included as the
buildlink2.mk file has it's own logic for how to add the perl dependency.
2002-09-06 08:10:40 +00:00
jlam
2552a2329c Minor whitespace nit. 2002-09-06 07:21:28 +00:00
jlam
3f8fb9faec Move the l:lib1:lib2 transformation to _BLNK_TRANSFORM_SED.3, which now
contains all of the transformations that we may want to use to fix up
any *-config scripts that have incorrect paths or library names.  Also
add some _BLNK_UNTRANSFORM_SED.* variables that do the opposite of the
corresponding _BLNK_TRANSFORM_SED.* variables, and that are used to clean
up libtool archives.
2002-09-06 07:20:20 +00:00
wiz
11b8523589 add mk locale dirs (for gnome-mime-data) 2002-09-05 16:29:56 +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
jlam
e3d8bd520f Also protect -L${ZOULARISBASE}* from being transformed. 2002-09-03 22:10:17 +00:00
jlam
a72ff273d0 Invert test in buildlink-${OPSYS}-wrappers that was causing the OPSYS
wrappers to not be generated.  I forgot to flip this back after testing on
my NetBSD box.
2002-09-03 22:06:50 +00:00
jlam
144e45523e Fix botch in previous commit which caused the sanitized PATH to not be
inserted into the wrapper scripts.
2002-09-03 21:43:40 +00:00
jlam
e90ca9f172 Add a missing shell wildcard which was causing the expression to not
catch arguments with symbols that are special to the shell.  This should
fix pkg/18156 by Matthias Scheler.
2002-09-03 21:36:18 +00:00
jlam
721f556b8c Don't munge references to directories in ${ZOULARISBASE} if
${ZOULARISBASE} != ${LOCALBASE}.  This should fix problems compiling
pkgtools/digest with zoularis where ${ZOULARISBASE} != ${LOCALBASE}.
2002-09-03 03:14:10 +00:00
jlam
08bc981080 Add OPSYS-specific section for overriding the generic wrapper scripts, and
add one section for SunOS to possibly allow using the SUNWspro compilers
when building X11 packages that use imake.  Many thanks to Matthias Scheler
for his help on this.

Also use _BLNK_OPSYS instead of OPSYS in bsd.buildlink2.mk so that's it's
easier to pretend I'm using a different OS when doing buildlink2 work.
2002-09-02 21:53:23 +00:00
abs
de040ce391 openoffice requires the unlimit on configure (for jdk) as well as for build.
Add ${_ULIMIT_CMD} to do-configure:
2002-09-02 02:42:26 +00:00
jlam
48ac015754 Don't protect the creation of ${_BLNK_LIBTOOL_FIX_LA} with USE_LIBTOOL.
This script is part of the buildlink2 infrastructure and is harmless if
not used.  This allows devel/zlib to build on Solaris.  Problem noted by
Stoned Elipot.
2002-09-01 18:38:15 +00:00
wiz
87fc391620 Fix sourceforge path on ftp.tuwien.ac.at. 2002-09-01 16:15:32 +00:00
tron
df0b4367aa The "Xpm" library is distributed with Solaris 9. Handle this case like
XFree86 4.x and don't install the package.
2002-09-01 15:13:41 +00:00
schmonz
169b48dc9d Move default definitions of P4USER, P4GROUP, P4ROOT, and P4PORT here. 2002-09-01 04:59:05 +00:00
fredb
0c11c3b7f2 Add TRPlayer license, in support of soon-to-be-imported TRPlayer package. 2002-08-31 19:51:17 +00:00
grant
dc8fcff76a Add variables for openssh privilege separation to bsd.pkg.defaults.mk:
OPENSSH_USER
	OPENSSH_UID
	OPENSSH_GROUP
	OPENSSH_GID
	OPENSSH_CHROOT

Use these to automatically create user/group if they do not already
exist. Assists platforms which do not have an 'sshd' user by default,
while adding flexibility for NetBSD systems.

Checked by Stoned Elipot <seb@netbsd.org>.
2002-08-31 10:08:59 +00:00
wiz
ff35ca18f0 Another sourceforge mirror site. 2002-08-30 12:54:29 +00:00
abs
dfd095b58c Add 'UNLIMIT_RESOURCES+=datasize' if we are using sun-jdk14. On at least
NetBSD/i386 1.6 datasize needs to be at least 192MB to build jakarta-tomcat.
Also set it for sun-jdk as that can expand to {sun-jdk13,sun-jdk14}...
2002-08-30 10:46:46 +00:00
jlam
81fd4ce214 Rename _BLNK_X11PKG_DIR to BUILDLINK_X11PKG_DIR and make it publicly
usable.
2002-08-29 22:29:03 +00:00
jlam
7b02107173 Number questions and answers to make referring to specific Q&As easier. 2002-08-29 17:08:49 +00:00
wiz
561201e58b Remove superfluous 'be'. pkg/18104 by Julio Merino. 2002-08-29 14:02:28 +00:00
wiz
da994f1178 It's APACHE_USER instead of APACHE_SUEXEC_USER now. 2002-08-29 10:16:44 +00:00
jlam
85d49fe337 Teach about x11/neXTaw. 2002-08-28 15:20:39 +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
jlam
7a9849cf96 Don't try to multiply define the same target for generating buildlink2
wrapper script.  This can occur if you set something like LD=cc where
the cc wrapper is already generated from CC=cc.
2002-08-28 04:49:16 +00:00
jlam
3cabf7e0ed Fix USE_FORTRAN in the USE_BUILDLINK2 case. 2002-08-27 17:35:02 +00:00
jlam
6976525599 FC and F77 point to the same thing, so no need to create wrappers for
both of them -- just create wrappers for one, then set the appropriate
env vars to handle the other one.
2002-08-27 17:34:04 +00:00
jlam
e4d02a9cf4 In print-PLIST, use "${RMDIR} dir 2>/dev/null || ${TRUE}" instead of just
using "true" at the end.
2002-08-27 06:06:38 +00:00
grant
e2b0ec1e59 deprecate SQUID_SYSCONFDIR in favour of PKG_SYSCONFDIR.squid 2002-08-26 06:42:10 +00:00
jlam
7230ff5dd9 PKG_SYSCONFDIR is not supposed to be settable, so change its setting from
?= to =.  Note in Packages.txt that the only variables that a user should
customize in /etc/mk.conf are PKG_SYSCONFBASE and PKG_SYSCONFDIR.<pkg>.
2002-08-26 05:17:39 +00:00
jlam
4ab7ebefaa Remove estimates on increased build times as they're probably not still
accurate.
2002-08-25 22:16:44 +00:00
jlam
fff8372661 Pull up change in buildlink2 branch:
Rename NO_BUILDLINK2 to NO_BUILDLINK.  This better matches what it's
supposed to disable -- the "buildlink" targets.
2002-08-25 18:52:05 +00:00
jlam
944ecea87e It's USE_BUILDLINK2, not USE_BUILDLINK2_ONLY. 2002-08-25 18:51:31 +00:00
dmcmahill
e9286ba966 add cy, en@IPA, fa, ia locale's used by gtk-2.0.6. 2002-08-24 02:18:01 +00:00
wiz
e6c4e8251c Add some more sourceforge mirror sites. 2002-08-23 11:26:07 +00:00
jlam
3cfe800533 Create the include and lib buildlink dirs so that Darwin's compiler won't
complain on stdout (!) when -I or -L args are passed to it and break
scripts that check for output.
2002-08-23 00:27:59 +00:00
jlam
afd2d15ee3 Use sed instead of a funky make RE variable to sanitize the PATH. It was
breaking when the directory names had RE characters like "+".
2002-08-22 20:20:33 +00:00
jlam
b119dbc8ef Merge pkgsrc/mk from the buildlink2 branch back into the main trunk. 2002-08-22 08:21:26 +00:00
grant
a4a0e792bf set USE_INET6 if we are on an IPv6 capable Solaris host. 2002-08-21 08:40:40 +00:00
hubertf
7508b153db Add CVS_FLAGS that will be passed to 'cvs update' before builds.
Allows specifying a branch ("-rnetbsd-1-6") or the trunk ("-A") easily
from the build.conf file.
2002-08-20 02:17:56 +00:00
seb
6490d0675b Now by default the support of micro- and nano-second timestamp values provided
by stat(2) is disabled: it causes grief even for package building.

This is adjustable by the GMAKE_NSEC_TIMESTAMPS variable.

Bump PKGREVISION.
2002-08-19 18:39:14 +00:00
seb
ae89e1a1e1 Actually Alistair was right: $packages and $distfiles also need to be
$mkdirprog'ed, it helps on a fresh/virgin/cleaned up bulk building system.
2002-08-15 10:42:19 +00:00
fredb
fed81d8aec Document `IMAP_UW_NO_SSL'. 2002-08-15 00:34:04 +00:00
grant
af823178c5 make this work on Solaris by using ${EGREP} instead of ${GREP}. 2002-08-14 02:38:25 +00:00