summaryrefslogtreecommitdiff
path: root/mk/platform
AgeCommit message (Collapse)AuthorFilesLines
2015-11-07MACHINE_ARCH for Bitrig/amd64 is now set to x86_64sevan1-2/+2
Ammend if statement
2015-10-26GCC on SunOS supports a non-standard -mimpure-text argument which clangjperkin1-1/+6
does not have, so remove it unconditionally in the latter case. Fixes various packages.
2015-10-10Set PKG_FAIL_REASON with a useful failure message if we cannot find an SDK.jperkin1-5/+7
2015-10-08OSX El Capitan has an interesting file system bug which allows a deepjperkin1-1/+8
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-05Re-order the way _OPSYS_INCLUDE_DIRS is calculated, and only perform checks forjperkin1-11/+15
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-09-10_OPSYS_LIB_DIRS entries must be space-separated, not colon.jperkin1-2/+2
2015-09-07Disable the strip flag for install(1) by default on Darwin. When calledjperkin1-2/+6
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-01Default to pkgsrc openssl from OSX Lion / 10.7 onwards, where the nativejperkin1-1/+4
openssl is marked as deprecated. This causes failures in pkg_install now that WARNS works correctly (-Werror,-Wdeprecated-declarations).
2015-08-17Introduce support for checking Mach-O dynamic libraries.jperkin1-2/+2
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-10Add support for building with fortifykhorben1-1/+6
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-07-27More efficient check if SSP is enabledkhorben1-3/+3
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-26Add support for compiling with stack-smashing protectionkhorben1-1/+11
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-18Detect arm-linux-gnueabihf correctlywiedi1-1/+6
2015-07-04Fix QNX bootstrap.ryoon1-1/+0
From Jan Danielsson.
2015-07-01Don't use "/bin/ksh" as wrapper shell under Mac OS X Mavericks. It wastron1-2/+3
previously excluded for a good reason.
2015-06-26Always use current system version SDK avoiding future SDKs, because this ↵adam1-3/+9
makes unuable binaries; use ksh as wrapper script on newer systems as well
2015-06-04Introduce preliminary support for Bitrig to pkgsrcsevan1-0/+75
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-05-26Let's unconditionally depend on useradd on NetBSD. It has been in basejoerg1-7/+1
since 1.4 at least.
2015-05-21The path to SU is correctsevan1-3/+1
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-08For 64bit little endian PowerPC hosts running Linuxsevan1-1/+6
Set the ABI to 64 bit Define the suffix appended to the locations in the library search path Reviewed by bsiegert@
2015-04-21Add a new ulimit modifier for cputime. Support raising limits forjoerg7-7/+14
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-19NOLOGIN needs to be /usr/bin/false here. Probably copy-pasto from OSF1.mk.tnn1-2/+2
2015-04-18fix comment about pkgtools/compat_headerstnn2-4/+4
2015-04-17Default to the native getopt when available.jperkin1-1/+2
2015-04-17Stop defaulting to the builtin mit-krb5, it's an old copy which isjperkin1-2/+1
unlikely to be updated any time soon, and is preventing some Samba Kerberos features from working correctly.
2015-03-19Report that SunOS 5.10 and older don't have "err.h".tron1-1/+4
Change during freeze approved by Jonathan Perkin.
2015-02-16Remove obsolete bulk build variables.jperkin1-8/+1
2015-02-01Revert "Drop obsolated old bulk build related variable settings."obache1-1/+8
proposed/discussed is required for such changes.
2015-01-0310.9 also has Xcode 6.gdt1-2/+5
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-03My OS X Yosemite machine says Xcode is version 6.1.1.ryoon1-2/+2
2014-11-22Do not use gcc-specific compiler flags on Mac OS versions that come withbsiegert1-1/+6
clang. Update version for bootstrap-mk-files. Patch provided by Todd Kover in PR pkg/48966.
2014-11-21Drop obsolated old bulk build related variable settings.obache1-8/+1
2014-09-10Expand --version-script removals for SunOS back out into package Makefilesjperkin1-2/+1
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-02Default to X11_TYPE=modular on netbsd-5.gdt1-2/+4
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-08-28Expand out the list of GNU ld flags we want to remove, rather than applyingjperkin1-2/+11
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-28Remove any -Wl,--* arguments, they are guaranteed to be GNU ld specificjperkin1-2/+2
and unsupported by the SunOS linker. Tested to only have positive results in a bulk build.
2014-08-21Add -Wl,-export-dynamic to the list of GNU ld patterns to remove.jperkin1-1/+2
2014-08-17Don't use "/bin/ksh" as wrapper shell under Mac OS X Mavericks.tron1-2/+3
It frequently crashes, at least if you use parallel builds.
2014-08-14Fix packages creation on Interix.cheusov1-2/+2
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-13Interix has dlopen(3) and family, they are provided by gcc (Interix-6.1).cheusov1-1/+7
pkgsrc'c check is broken, so, we set IS_BUILTIN.dl to "yes".
2014-08-01Document what Yosemite looks like (modulo XCode, which I haven't needed).schmonz1-1/+2
2014-07-25Fix shlib check error under DragonFly 3.8.1.ryoon1-3/+3
It has no libc.so.8 in /usr/lib.
2014-06-10Always use OpenPAM as fallback PAM implementation if a native one isjoerg1-2/+0
missing. Drop PAM_ACCEPTED and PAM_TYPE as unused or redundant.
2014-06-09-lpthread not needed, it's in libroot.obache1-2/+2
2014-05-18catch up to /boot/common removal, adust header/library location.obache1-1/+8
noticed by diger in pkgsrc-users@.
2014-05-18Haiku has groupadd now.obache1-2/+4
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-18On Haiku:obache1-4/+4
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-03-19MirBSD: remove -fvisibility=hidden until there is a version of gcc thatbsiegert1-2/+4
supports it.
2014-03-14Add SCO OpenServer 5 and 6 support, 6 support is not tested yet.ryoon1-0/+76
2014-03-11Introduce infrastructure support for SMF.jperkin1-1/+6
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.