Commit graph

447 commits

Author SHA1 Message Date
jperkin
b4e6a0bbf3 Remove a commonly used set of GNU ld arguments which are incompatible
with the Darwin linker.  Fixes various packages.
2016-02-29 10:05:47 +00:00
jperkin
43cbbd8b78 Default to the system libuuid. The system headers assume that the libuuid
header provides the uuid_string_t typedef, which is not the case with the
version coming from pkgsrc.
2016-02-24 14:59:56 +00:00
jperkin
22af365a50 Export OSX_VERSION (renamed from OSX_VERS) to the environment regardless of
whether we're using the SDK path or /usr/include, as it is useful for other
contexts than simply determining the SDK directory.
2016-02-22 19:57:41 +00:00
jperkin
698717d710 Extend the El Capitan HFS+ bug workaround to 15.1.0 but no further, I can
confirm that Apple fixed the bug in the recent 15.2.0 (10.11.2) update.
2015-12-14 14:14:33 +00:00
sevan
168d1b7354 Define MACOSX_DEPLOYMENT_TARGET for Tiger to allow current releases
of software such as Ruby to build on Tiger/PowerPC.
Tested with & without on a G4 with Tiger & Leopard.
It was not needed on Leopard as the linker defaults to a target of 10.5 &
setting it back broke the bootstrap process.

Reviewed by wiz@ long ago.
2015-12-13 22:38:00 +00:00
jperkin
42f3575ed2 Ensure building 32-bit on 64-bit is supported when using cwrappers too. 2015-11-18 22:30:12 +00:00
jperkin
6e420f7378 Always set _OPSYS_CAN_CHECK_SHLIBS to "yes" regardless of whether
TOOLS_PATH.readelf is set.  This is a PKG_DEVELOPER feature and it's
likely the developer is smart enough to either have it already available
in $PATH or be able to install it (e.g. via devel/binutils) if required.
2015-11-16 15:59:59 +00:00
sevan
a34c13abf3 MACHINE_ARCH for Bitrig/amd64 is now set to x86_64
Ammend if statement
2015-11-07 23:46:28 +00:00
jperkin
f0a45a9e36 GCC on SunOS supports a non-standard -mimpure-text argument which clang
does not have, so remove it unconditionally in the latter case.  Fixes
various packages.
2015-10-26 09:33:16 +00:00
jperkin
2385012594 Set PKG_FAIL_REASON with a useful failure message if we cannot find an SDK. 2015-10-10 13:12:50 +00:00
jperkin
8c5fa136b6 OSX El Capitan has an interesting file system bug which allows a deep
directory hierarchy to be created but not removed.  This is triggered by
the GNU getcwd-path-max.m4 configure test used in lots of GNU software,
and causes the builds to fail in pbulk as 'make clean' cannot complete.

For now we provide a cached result for the test to avoid running it,
using a 'no' value as the test is for a specific glibc bug.

This bug has been brought to Apple's attention by the NixOS developers,
raised as https://openradar.appspot.com/radar?id=6160634819379200.  For
now we mark only 10.11.0 (15.0.0) as having the bug - it remains to be
seen whether Apple will fix it in the upcoming .1 release.
2015-10-08 11:36:00 +00:00
jperkin
348b937c46 Re-order the way _OPSYS_INCLUDE_DIRS is calculated, and only perform checks for
the SDK path if we need to.

This avoids issues on Yosemite and Xcode 7, which drops support for the 10.10
SDK.  Trying to determine the SDK path fails, but the failure is not cached in
the xcrun database, so each call to a compiler tool is unecessarily delayed (by
around 3 seconds on my build hosts).

For users still on Yosemite who have upgraded to Xcode 7, the solution is to
install the Command Line Tools so that /usr/include is populated and used.
2015-10-05 17:06:22 +00:00
jperkin
d81e076eb6 _OPSYS_LIB_DIRS entries must be space-separated, not colon. 2015-09-10 19:49:58 +00:00
jperkin
7af5418044 Disable the strip flag for install(1) by default on Darwin. When called
without arguments, strip(1) will attempt to strip all symbols by default,
and when it is unable to do this will fail with a non-zero exit status.

Passing '-u -r' to strip(1) would in theory resolve the issue, but there
is no simple of way of doing this due to the way strip is called by the
native install program through XCode.  We would need to build a patched
bsdinstall for Darwin, so for now we just disable stripping on install,
as many packages have had to do individually up until now.
2015-09-07 11:48:35 +00:00
jperkin
e278916c18 Default to pkgsrc openssl from OSX Lion / 10.7 onwards, where the native
openssl is marked as deprecated.  This causes failures in pkg_install now
that WARNS works correctly (-Werror,-Wdeprecated-declarations).
2015-09-01 11:12:30 +00:00
jperkin
f648dfa7c3 Introduce support for checking Mach-O dynamic libraries.
This works in a similar way to the ELF checks, but uses otool(1) to list the
library name and its dependencies, and the checks fail if there are WRKDIR
references or if the -install_name of the library does not match $PREFIX, as
well as ensuring that any libraries from pkgsrc are correctly registered as
full dependencies.

Removes support for the user to set USE_CHECK_SHLIBS_ELF, but there were no
reasonable reasons for doing so in the past anyway, and it may be masking
issues in platform files we should fix.
2015-08-17 17:35:23 +00:00
khorben
8ce191e1e1 Add support for building with fortify
This is pretty much the same change as with SSP, and completes it with
support for fortify (like USE_FORT in NetBSD's base system). Like SSP, this
is disabled by default for the moment. Like in NetBSD's base system,
enabling fortify explicitly also enables SSP by default - but SSP can still
be disabled explicitly in this situation.

All four combinations tested on NetBSD/amd64.
2015-08-10 21:44:34 +00:00
khorben
f8c9df2a2f More efficient check if SSP is enabled
With this change, the check if the current architecture is supported is
only performed if SSP is enabled in the first place. This should not
change the current behavior; tested on NetBSD/amd64.

Suggested by wiz@
2015-07-27 23:37:38 +00:00
khorben
ae79ea7d78 Add support for compiling with stack-smashing protection
This is enabled with PKGSRC_USE_SSP in mk.conf(5), as documented there.
Most NetBSD platforms are supported (when compiling with gcc).

After consensus on tech-pkg@.
2015-07-26 22:13:17 +00:00
wiedi
6bd4b3b644 Detect arm-linux-gnueabihf correctly 2015-07-18 15:08:43 +00:00
ryoon
eef963f5da Fix QNX bootstrap.
From Jan Danielsson.
2015-07-04 07:15:22 +00:00
tron
fc671b3ed5 Don't use "/bin/ksh" as wrapper shell under Mac OS X Mavericks. It was
previously excluded for a good reason.
2015-07-01 17:47:14 +00:00
adam
d223dd19c2 Always use current system version SDK avoiding future SDKs, because this makes unuable binaries; use ksh as wrapper script on newer systems as well 2015-06-26 13:51:57 +00:00
sevan
8514571a7a Introduce preliminary support for Bitrig to pkgsrc
Initial patchset to add support by rodent@
Further adjustments made based on feedback by joerg@
Tested by myself with numerous bulkbuilds thanks to Patrick Wildt @ Bitrig

Reviewed by bsiegert@ joerg@ wiz@
2015-06-04 15:48:45 +00:00
joerg
9ac8fcc75b Let's unconditionally depend on useradd on NetBSD. It has been in base
since 1.4 at least.
2015-05-26 10:08:37 +00:00
sevan
392fe1c36f The path to SU is correct
type is a shell builtin on the bundled OpenBSD pdksh
Remove comment as instructed by comment.
Checks performed on OpenBSD 5.7-current
2015-05-21 17:15:48 +00:00
sevan
98f4407ec4 For 64bit little endian PowerPC hosts running Linux
Set the ABI to 64 bit
Define the suffix appended to the locations in the library search path

Reviewed by bsiegert@
2015-05-08 20:28:30 +00:00
joerg
cd74494def Add a new ulimit modifier for cputime. Support raising limits for
package creation.

There are very few things in pkgsrc that needs more than one hour per
process on decently fast hardware, so setting that as (soft) limit for
bulk builds avoids the infinite loops seen in some other packages. There
are a few select exceptions, i.e. flightgear-data needs more than one
hour for pkg_create when using xz. This flag allows selectively giving
those places more time without wasting resources in the broken cases.
2015-04-21 17:01:55 +00:00
tnn
1706e60098 NOLOGIN needs to be /usr/bin/false here. Probably copy-pasto from OSF1.mk. 2015-04-19 12:02:15 +00:00
tnn
e9d8d4a3f7 fix comment about pkgtools/compat_headers 2015-04-18 22:56:19 +00:00
jperkin
47daaded56 Default to the native getopt when available. 2015-04-17 08:22:30 +00:00
jperkin
19d9cf3aa3 Stop defaulting to the builtin mit-krb5, it's an old copy which is
unlikely to be updated any time soon, and is preventing some Samba
Kerberos features from working correctly.
2015-04-17 08:21:01 +00:00
tron
30e45f837e Report that SunOS 5.10 and older don't have "err.h".
Change during freeze approved by Jonathan Perkin.
2015-03-19 19:15:23 +00:00
jperkin
d460a8ce9f Remove obsolete bulk build variables. 2015-02-16 10:42:00 +00:00
obache
d1dc7d256d Revert "Drop obsolated old bulk build related variable settings."
proposed/discussed is required for such changes.
2015-02-01 11:42:59 +00:00
gdt
45d83d6697 10.9 also has Xcode 6.
Note that older os versions sometimes get xcode updates and that
pkgsrc generally expects xcode that is up-to-date relative to the base
os.
2015-01-03 21:30:52 +00:00
ryoon
d011bd8c78 My OS X Yosemite machine says Xcode is version 6.1.1. 2015-01-03 18:27:15 +00:00
bsiegert
af85f266f9 Do not use gcc-specific compiler flags on Mac OS versions that come with
clang. Update version for bootstrap-mk-files.

Patch provided by Todd Kover in PR pkg/48966.
2014-11-22 16:32:13 +00:00
obache
da209eba3e Drop obsolated old bulk build related variable settings. 2014-11-21 10:46:36 +00:00
jperkin
7df37958c1 Expand --version-script removals for SunOS back out into package Makefiles
rather than trying to consolidate into a single fnmatch.  There aren't that
many of them, and it will aid the integration of cwrappers which doesn't
support globs.
2014-09-10 15:59:33 +00:00
gdt
c127d72893 Default to X11_TYPE=modular on netbsd-5.
Base xsrc on netbsd-5 has not really worked with pkgsrc for a while,
because various programs need newer versions of various X pieces.  The
2014Q2 official bulk builds are missing about 1500 packages as a
result of this.  Therefore, switch to modular on netbsd-5 (as netbsd-4
has been for a very long time), which should result in more useful
binary packages for netbsd-5 for 2014Q3.

(There is a notion of updating netbsd-5 base xsrc to more modern xorg.
If that happens, and there's a 5.x formal release, and builds show
that pkgsrc with native succeeds on it, this can perhaps be flipped
back.  Odds are that's not going to happen, and it's overwhelmingly
unlikely to happen soon.)

Anyone who prefers to stay with native can set X11_TYPE=native in
mk.conf.

Note that this is about pkgsrc and specifically the default
dependencies for pkgsrc programs that use X11, so the native servers
are unaffected and can be run from /usr/X11R7, the same as they are
now, without any changes being necessary.  (This message is in fact
being typed on a system with a native server, native xterm and modular
libs for pkgsrc.)

Discussed on tech-pkg, tech-x11 multiple times over the last 6 months
or so, and specifically encouraged by wiz@.
2014-09-02 16:13:27 +00:00
jperkin
209b757821 Expand out the list of GNU ld flags we want to remove, rather than applying
a blanket removal of any long options, richard@ is concerned this may affect
packages which use the long options now available in newer SunOS ld.

Whilst here, transform --rpath to -R, used by a few packages.
2014-08-28 15:46:35 +00:00
jperkin
2c9fb0222c Remove any -Wl,--* arguments, they are guaranteed to be GNU ld specific
and unsupported by the SunOS linker.  Tested to only have positive results
in a bulk build.
2014-08-28 10:54:07 +00:00
jperkin
bcc20d049d Add -Wl,-export-dynamic to the list of GNU ld patterns to remove. 2014-08-21 15:31:24 +00:00
tron
9cea3f4878 Don't use "/bin/ksh" as wrapper shell under Mac OS X Mavericks.
It frequently crashes, at least if you use parallel builds.
2014-08-17 08:32:32 +00:00
cheusov
eec1402772 Fix packages creation on Interix.
User/group names are used instead of uid/gid.
  Problem with spaces inside user/group name should be fixed by Cygwin
  support added some time ago.
2014-08-14 00:21:24 +00:00
cheusov
c71e2b3be9 Interix has dlopen(3) and family, they are provided by gcc (Interix-6.1).
pkgsrc'c check is broken, so, we set IS_BUILTIN.dl to "yes".
2014-08-13 18:48:09 +00:00
schmonz
fbc1046875 Document what Yosemite looks like (modulo XCode, which I haven't needed). 2014-08-01 14:59:14 +00:00
ryoon
8dd20d4308 Fix shlib check error under DragonFly 3.8.1.
It has no libc.so.8 in /usr/lib.
2014-07-25 23:40:01 +00:00
joerg
b2b9a12840 Always use OpenPAM as fallback PAM implementation if a native one is
missing. Drop PAM_ACCEPTED and PAM_TYPE as unused or redundant.
2014-06-10 13:52:57 +00:00
obache
d318583b57 -lpthread not needed, it's in libroot. 2014-06-09 08:47:29 +00:00
obache
39c4da3f85 catch up to /boot/common removal, adust header/library location.
noticed by diger in pkgsrc-users@.
2014-05-18 10:13:59 +00:00
obache
d6c2320781 Haiku has groupadd now.
noticed by diger in pkgsrc-users@.

While here, enable useradd only for the case groupadd exists,
because former useradd is interactive command, not usable with pkgsrc framework.
2014-05-18 09:45:40 +00:00
obache
2fb784864b On Haiku:
ulimit -m: invalid option
 ulimit -d: data sg size: cannot get limit: Invalid Argment
 ulimit -s: stack size: cannot modify limit: Invalid Argment

noticed by diger in pkgsrc-users@.
2014-05-18 07:56:21 +00:00
bsiegert
3d10a134a4 MirBSD: remove -fvisibility=hidden until there is a version of gcc that
supports it.
2014-03-19 16:44:08 +00:00
ryoon
d2e4b66d48 Add SCO OpenServer 5 and 6 support, 6 support is not tested yet. 2014-03-14 22:05:18 +00:00
jperkin
e393ce6d94 Introduce infrastructure support for SMF.
SMF is the Service Management Facility, the default init system in
Solaris and derivatives since version 10.  This adds "smf" to the list
of supported INIT_SYSTEM types, and makes it the default init system on
platforms where it is available.

Packages can introduce SMF support by providing a manifest file, by
default located in ${FILESDIR}/smf/manifest.xml but manifests under
${WRKSRC} can be used too if the package source includes one.

SMF method scripts are supported too if required, using SMF_METHODS in a
similar manner to RCD_SCRIPTS.

Many parts of the SMF infrastructure are configurable, see mk/smf.mk for
the full details.
2014-03-11 14:07:04 +00:00
jperkin
fd9c505e3a When building 32-bit packages on x86_64 GNU ld isn't smart enough to
figure out the target architecture based on the objects so we need to
explicitly set it.

This allows bootstrap --abi=32 to complete successfully on x86_64.
2014-03-07 15:03:15 +00:00
jperkin
0872d5b92c Prefer the native libexecinfo implementation by default. 2014-02-20 11:03:09 +00:00
jperkin
189149a206 Prefer the native libinotify implementation by default. 2014-02-20 10:52:33 +00:00
jperkin
0959cc13c9 Use the _OPSYS_PREFER mechanism rather than LIBC_BUILTINS. 2014-02-19 17:20:23 +00:00
obache
160d601c01 document _OPSYS_PREFER.<pkg> 2014-02-14 13:11:17 +00:00
jperkin
ea861a35ec Check for stdio.h in /usr/include test, as on upgrades the /usr/include
directory may still exist containing legacy application headers.

Noticed by schmonz.  Also add Mavericks to the version table while here.
2013-12-31 11:13:43 +00:00
tron
73293ff6a6 Don't use "${ECHO}" which isn't defined yet, hard code "echo" instead.
As this doesn't have to be portable anyway it won't cause problems.
2013-11-24 10:13:41 +00:00
jperkin
c52ee7c5a3 Handle older versions of xcrun. 2013-11-24 09:36:41 +00:00
jperkin
a1ff659fd1 Use xcrun to determine the full path to the SDK, and use the headers from
that location in the new find-headers infrastructure when they have not
been installed into /usr/include.

This allows us to remove the hardcoded builtins, as they can now be
correctly determined automatically.
2013-11-23 11:42:38 +00:00
obache
2abcdf8fe9 fixes 3rdparty header path 2013-11-23 07:50:51 +00:00
jperkin
bdb291bf7d OSX Mavericks and Xcode 5 no longer ship system headers in /usr/include, they
are instead moved to SDK-specific locations.  This breaks many builtin checks
which assume headers are in a fixed place.

Rather than trying to dig around finding where Xcode.app might be installed,
just override IS_BUILTIN for libraries that we know exist.
2013-11-01 12:22:32 +00:00
jperkin
83b6d9d86f Move platform-specific code to the platform file. 2013-11-01 11:58:48 +00:00
wiz
3099b2b8eb Remove config.rpath override file and related code.
This file is from libtool-1.x, which is not in pkgsrc any longer
(using libtool-2.x since 2009). Also, it was only used for packages
using autoconf-2.13 AND libtool; I found three packages in pkgsrc with
that combination, and all of them still build on NetBSD-6.99.24/amd64
after this change.
2013-10-13 10:10:05 +00:00
jperkin
948c742e84 Introduce CATMAN_SECTION_SUFFIX which if set to 'yes' will ensure that
catman pages are installed with a suffix which matches their section
instead of the default '.0'.

Enable it by default on SunOS, which requires that particular layout.
2013-09-12 11:01:47 +00:00
jperkin
6c97838c0c Introduce _OPSYS_PREFER.<pkg> variables as a way to set an advisory
per-platform default.  Previously PREFER.<pkg> was used, and as that
has the highest precedence it meant the defaults could not be overridden
with the PREFER_PKGSRC and PREFER_NATIVE user variables.

While here, set the openssl default for SunOS back to pkgsrc, now that
users who wish to use the builtin can do so via PREFER_NATIVE=openssl.
2013-09-04 15:14:45 +00:00
obache
df0b172e18 CPP is /bin/cpp on Cygwin. 2013-08-31 13:45:43 +00:00
richard
57973e7744 fix openssl builtin support, at least for solaris 2013-08-27 05:42:34 +00:00
jperkin
816174fe8b Move platform-specific settings to the platform file. 2013-08-16 12:11:17 +00:00
jperkin
e10db1a20e Use the native mit-krb5 implementation by default on SunOS. 2013-08-16 12:10:31 +00:00
ryoon
4a0907cc4d Add (Debian) GNU/kFreeBSD port.
Similar to GNU/Linux.

Bump bootstrap-mk-files to 20130727.
2013-07-26 09:38:15 +00:00
ryoon
cd3bc9c160 Fix typo.
libossaudio is unavailable.
2013-07-23 13:01:05 +00:00
jperkin
5ff2de86e6 Default to using the native version of libexecinfo on SunOS. 2013-07-15 12:06:45 +00:00
jperkin
02b10daeaf Rename the PKGNAME for the OPSYS-specific user packages to include the OPSYS,
so that they are correctly calculated as independent.

This avoids issues in bulk builds where the package version was taking
precedence and causing the wrong user package to be depended upon.
2013-07-12 10:41:58 +00:00
jperkin
37ecec314f Apply removal of -export-dynamic for SunOS across all of pkgsrc.
Avoids lots of copy/paste and fixes a bunch of packages which hadn't been
looked at yet.
2013-07-05 15:10:00 +00:00
dsainty
3eec5c936c Fix a pasting botch in v1.54 that killed Linux i386 2013-05-17 03:40:02 +00:00
jperkin
0b70154faa _OPSYS_SYSTEM_RPATH must match _OPSYS_LIB_DIRS or else the buildlink
substitutions will not be correct.

Fixes issue with ABI=64 where /usr/lib/amd64 was being exposed, but
packages will need to be rebuilt for the change to take effect.
2013-05-16 17:09:07 +00:00
ryoon
e35468c714 On Debian/Ubuntu Linux, set system's library path as Debian's multiarch
hierarchy.
This values should be generated from output of some commands,
but I cannot find the rule.
Tested on armel and x86_64 Debian GNU/Linux environment.
The values are shown in http://wiki.debian.org/Multiarch/Tuples .
2013-05-11 23:56:24 +00:00
obache
5024bad0b1 Introduce _OPSYS_LIB_DIRS and _OPSYS_INCLUDE_DIRS varables.
list of system library and header file directories.

Also add missing _OPSYS_SYSTEM_RPATH for some platforms.
2013-04-28 12:53:56 +00:00
obache
465a0376e7 Note some variables defined in ${OPSYS}.mk. 2013-04-08 13:29:26 +00:00
jperkin
05cb950dc2 Default to the native linux-pam implementation. It is available
since at least Leopard (10.5) and the security/PAM package does
not currently build, breaking PREFER_PKGSRC=yes.
2013-04-04 10:24:14 +00:00
obache
e5b374f8d0 bump required user_cygwin package to 20130313. 2013-03-13 12:38:19 +00:00
obache
b292fbe970 Switch to use own user_cygwin for _USER_DEPENDS. 2013-03-06 12:41:44 +00:00
jperkin
50ada5fd89 Enable check-shlibs if the user supplies a working readelf, e.g. from binutils. 2013-03-01 16:58:51 +00:00
tcort
6933dd0064 Minix.mk: update GROUPADD/USERADD. OK by agc. 2013-03-01 00:09:20 +00:00
obache
ad51f051b0 introduce _OPSYS_EXE_SUFFIX, for platform specific executable suffix. 2013-02-27 12:03:49 +00:00
obache
72722c091d Drop Interix-ish, not for Cygwin. 2013-02-27 10:59:33 +00:00
obache
e41afcfbf9 prefer native X11 on Cygwin. 2013-02-23 05:41:04 +00:00
obache
381fd5cad9 Fix ROOT_USER/ROOT_GROUP for Cygwin to Administrators/Administrators (not using
its UID/GID), and sync platform privilege check with bootstrap script.
2013-02-22 13:39:31 +00:00
obache
cd901ade7c ${ID} is not defined here. 2013-02-21 11:19:27 +00:00
obache
b0ab224f20 Use ${ID} instead of bare 'id'. 2013-02-20 13:08:26 +00:00
obache
6773d2ae90 Fixes ROOT_GROUP setting for Cygwin. 2013-02-20 12:42:43 +00:00
obache
8351306655 check requirement of uac manifest, it is required for Windows Vista
(aka NT-6.0) and later.
2013-02-15 09:22:50 +00:00
obache
59f7f450d0 Add preference for Cygwin. 2013-02-10 12:25:17 +00:00
tcort
b203217b96 Minix now supports ELF shared libraries.
OK by obache@
2013-02-09 03:40:01 +00:00
wiz
6e3b6b5bea Remove "-no-cpp-precomp" from CPP_PRECOMP_FLAGS.
Obsolete since about Darwin-4.4.
Per Jason Bacon in PR 47531.
2013-02-04 15:53:16 +00:00
hans
8cf5164992 Prefer openssl from pkgsrc on SunOS by default. 2013-02-01 12:36:06 +00:00
hans
b239a2ebb9 Set LIBABISUFFIX on SunOS x86_64. Should probably also be done for
sparcv9, but I can't test that.
2013-02-01 12:25:16 +00:00
jperkin
1c7721e671 Default to builtin solaris-pam, allows PREFER_PKGSRC=yes to work. 2012-11-26 10:40:32 +00:00
ryoon
815857fa38 Make MOTIF_TYPE_DEFAULT as motif (LGPL Motif) instead of openmotif or lesstif.
No objection on tech-pkg@.
2012-11-19 11:34:15 +00:00
agc
4871e3add7 Add platform file for QNX - from Sean Boudreau, thanks! 2012-11-09 04:36:27 +00:00
bsiegert
8ec322d1f9 Comment out dependency on sysutils/user for user and group management.
The user package was removed two years ago :/.
Let's see how we can handle this better on MirBSD.
2012-06-16 20:13:06 +00:00
jperkin
830bf24fec Default to X11_TYPE?=modular if OpenWin headers are not installed. 2012-06-01 09:47:49 +00:00
bsiegert
045cd0e748 Add a global BUILDLINK_TRANSFORM to remove -ldl. This library is an empty
static library for compatibility reasons. If a libtool library is linking
against -ldl, libtool only builds it statically because there is no
libdl.so. This prevented, at least, the build of devel/gobject-introspection.
Add it globally because there is no reason anyone would want to link against
libdl on MirBSD.
2012-05-18 14:15:17 +00:00
obache
0504e225e5 Set LD_TRACE_LOADED_OBJECTS_FMT{1,2} for OpenBSD so that output of ldd will be
expected format.

workaround of PR 38838.
2012-05-13 08:20:11 +00:00
obache
d0f6d256be It is possible to check shlibs on OpenBSD now. 2012-05-04 11:46:02 +00:00
sbd
e7de802238 The path to libc.so.6 needs to include ${LIBABISUFFIX}. 2012-04-23 08:14:36 +00:00
sbd
c3c450359b Oops I had the sense inverted for NOGCCERROR. 2012-04-09 04:19:24 +00:00
joerg
9765e41589 Drop imake-check logic from X11 components' builtin.mk.
Always use xorg-cf-files and imake from pkgsrc, replacing xpkgwedge.
Always install man pages, not cat pages when using imake.
Unify the various imake PLIST variables in preparation for dropping.
Adjust xbattbar for the new expectations.
2012-03-19 12:34:12 +00:00
sbd
6e18dafcab If NOGCCERROR is defined pass it to the make process. 2012-03-05 07:53:42 +00:00
tron
2dae6ecc20 Fix comment about NetBSD X11: the default for NetBSD 4 is now "modular". 2012-02-28 19:35:58 +00:00
hans
e7d34a93ec Use ${MAKE} as IMAKE_MAKE. 2012-02-15 15:15:23 +00:00
sbd
b21b15a027 Remove GNU_CONFIGURE_LIBDIR setting on x86_64-linux systems, setting this
for all packages that use GNU_CONFIGURE causes to many packages to break.

Packages that need the libdir passed to them will need to be handled one
at a time.
2012-01-22 08:40:11 +00:00
obache
53b0cfe395 OpenBSD-2.9 and later support kqueue(2). 2012-01-19 10:53:56 +00:00
sbd
7d410a233f Add the GNU_CONFIGURE_LIBDIR variable, if defined it will be passed to gnu
configure scripts as the value of --libdir.

On Linux x86_64 set GNU_CONFIGURE_LIBDIR to ${GNU_CONFIGURE_PREFIX}/lib,
this will stop package trying to install into ${PREFIX}/lib64.
2012-01-17 21:10:24 +00:00
hans
b0aed5d3a6 Default to lesstif instead of dt if X11_TYPE != native. 2012-01-12 15:53:37 +00:00
marino
478c16e258 mk/platform/DragonFly.mk: Correct setting for _OPSYS_HAS_OSSAUDIO
DragonFly never had libossaudio.
2011-12-17 16:20:01 +00:00
tcort
3daa7e95c9 Define the Minix platform. 2011-11-05 17:09:15 +00:00
sbd
f0315578c5 Add LIBC_BUILTINS platform definition to Linux.
Designed to be used in mk.conf like so:
PREFER_PKGSRC= yes
PREFER_NATIVE= ${LIBC_BUILTINS}
2011-10-31 23:22:59 +00:00
sbd
be522e59ef Change the X11_TYPE conditional to work with the switch in the default
X11_TYPE to modular.
2011-10-15 03:15:37 +00:00
bsiegert
0e77bd1e01 Tentatively switch X11_TYPE to modular to MirBSD. The native X is still
X11R6 so many new applications do not build. meta-pkgs/modular-xorg-libs
built correctly in my tests, so let's see what a bulk build will show.
2011-09-18 19:11:29 +00:00
abs
777afd3e4b switch NetBSD-4 and AIX to default to modular X11_TYPE 2011-09-18 12:42:23 +00:00
abs
2750273003 IRIX 6 made it to X11R6, but never X11R7, so default to X11_TYPE=modular 2011-09-17 08:13:06 +00:00
abs
e6d9e50cd6 UnixWare 7 has move dup to X11R6, still less than X11R7, so default to
X11_TYPE=modular
2011-09-17 08:10:33 +00:00
abs
021c4489b5 Sinc BSD/OS has been oprhaned since 2004, default to modular X11_TYPE 2011-09-17 08:06:40 +00:00
abs
ac04381173 Since Interix appears to use X11R5, switch to modular X11_TYPE by default 2011-09-17 08:05:02 +00:00
abs
bf20ddf838 From "What platforms work with X11_TYPE=native" thread on pkgsrc-users.
Based on the responses I'm going to switch the default X11_TYPE to
be modular, and override in platform/*.mk files as required. The
new values will be:

Changed - from native to modular
- FreeBSD
- FreeMiNT
- Linux

Changed - older versions switched from native to modular
- NetBSD - native for NetBSD-4 and later

Native (unchanged)  - should probably be switched to modular
- AIX
- BSDOS
- IRIX
- Interix
- MirBSD
- UnixWare

Native (unchanged)
- Darwin - for Leopard (10.5) and later
- OpenBSD.mk
- SunOS.mk

Modular (unchanged)
- DragonFly
- HPUX
- Haiku
- OSF1

I'd like to encourage anyone using X11 apps on any platforms other
than NetBSD, Darwin, DragonFly, FreeBSD, Linux, FreeMiNT, HPUX,
Haiku or OSF1 to speak up, whether they are happy with native or
having to set modular.
2011-09-10 16:30:02 +00:00
yyamano
79edae70ae Add comment for Mac OS X 10.7.x Lion. 2011-09-09 09:31:56 +00:00
cheusov
d900dedc95 Pass a maximum command line length to "configure" script on Linux.
PR 45274 by Emmanuel Kasper
2011-08-22 15:17:53 +00:00
obache
f0dc7f55fd NOLOGIN=/sbin/nologin for SSD/Linux. 2011-05-11 12:46:20 +00:00
cheusov
e96d5977ff Use useradd/groupadd scripts from sysutils/user_irix package on IRIX
Closes PR pkg/44564
2011-05-07 22:16:16 +00:00
obache
b3a2579d74 /usr/bin/su for SSD/Linux. 2011-03-20 09:00:08 +00:00
dholland
0a55f693f1 Remove SETGIDGAME logic from here, like it was removed from the other
platform .mk files.
2011-03-19 14:07:10 +00:00
agc
e81f515156 Add support for MirBSD to pkgsrc. Patches from Benny Siegert and
Thorsten Glaser.
2011-01-23 19:07:24 +00:00
adam
e52787fa21 Removed _INCOMPAT_ICONV.
The problem is Darwin's libiconv does not have symbols for libiconv_<name>
(e.g. libiconv_open), but iconv_<name> (e.g. iconv_open).
BUT when there's pkgsrc/converters/libiconv installed instead, it doesn't
have symbols for iconv_<name>, but libiconv_<name>.
Some packages auto-configure looks for libiconv_open (like glib2), others
look for iconv_open (like proftpd), and there's a conflict.
The solution is to replace libiconv_open with iconv_open with SUBST framework.
2011-01-04 09:53:31 +00:00
abs
6842004891 Why should apps compiled for OS X 10.4 and earlier have to languish with
outdated X libraries? Default to modular x11 for a more modern set of
features, bugfixes (and bugs), and to simplify application support
Does *not* affect 10.5 (Leopard) or later
2010-12-22 20:43:45 +00:00
obache
9a6ed5c66f Force to use symbolic link for wrapper if WRAPPER_USE_SYMLINK is defined.
Workaround for missing hard link support on Haiku, PR#43398.
2010-08-16 10:03:44 +00:00
dholland
4424b4c08b Begin cleanup of setgid game infrastructure.
* Introduce USE_GAMESGROUP, which causes the games user and group to
be made available.

 * Retain SETGIDGAME as an alias for USE_GAMESGROUP. Describe it as
deprecated.

 * Always define GAMES_USER, GAMES_GROUP, GAMEMODE, GAMEDIRMODE, and
GAMEDATAMODE, regardless of whether USE_GAMESGROUP is turned on or not.

 * Define these variables in defaults/mk.conf instead of separately in
every platform/*.mk file. The definitions used to be the same for each
of these platforms anyway, except for some where they were randomly
missing or commented out for no clear reason, leading to broken game
packages.

 * Handle all these variables properly when unprivileged.

 * Update the comments/documentation for these variables.

 * Describe GAMEOWN and GAMEGRP as deprecated. These need to be
retained as aliases for GAMES_USER and GAMES_GROUP respectively for
supporting packages that use bsd.*.mk but should otherwise not be
used.

 * Add GAMEDATA_PERMS and GAMEDIR_PERMS using GAMEDATAMODE and
GAMEDIRMODE respectively.

 * Fix a bug I noticed that was improperly mixing the "games" group
and "games" user.

Things this does *not* do:

 - get rid of GAMES_USER, for which there should ultimately be no need.

 - move the declaration/documentation/default value of USE_GAMESGROUP
to a suitable place. (It is currently where SETGIDGAME was, which is
suboptimal.)

 - touch any of the games, all of which need updating with at least
s/SETGIDGAME/USE_GAMESGROUP/ and probably more.

 - update the guide to explain how to handle games properly.

Also, it would be nice if using GAMES_GROUP without setting
USE_GAMESGROUP=yes caused an error but as far as I know there isn't
any particularly good way to arrange this right now.

Note that these changes may alter the build/install behavior of broken
game packages, e.g. some may silently become setgid when they weren't
before or things like that. If you run into any of this file a PR.

While one might arguably bump the PKGREVISION of all games or other
packages using any of these variables as a precaution, that seems like
a bad idea. Instead, I think I will be bumping each game once it
itself has been fixed up to do everything the right way.
2010-07-08 04:57:36 +00:00
obache
71467f96b2 Fixes paths for useradd/groupadd. 2010-06-20 04:05:39 +00:00
sbd
1c5f2a96f3 On Linux systems record the glibc version in the build information.
OKed by wiz@
2010-05-20 07:57:22 +00:00
sbd
b2c2350a94 Use mk/check/check-shlibs-elf.awk for the run-time search-path check on
linux.
2010-05-16 06:59:26 +00:00
sbd
db09236f72 imake should only ever use gmake if ${X11_TYPE}==native. Pointed out by joerg@
Fixes PR 42274

OK wiz@
2010-03-18 22:46:01 +00:00
obache
d8b89dd040 for SSD/Linux, /usr/bin/false, not /bin/false. 2010-02-13 08:29:12 +00:00
obache
37095ae4b4 Add Haiku support file. 2010-02-06 10:39:59 +00:00