summaryrefslogtreecommitdiff
path: root/mk/bsd.prefs.mk
AgeCommit message (Collapse)AuthorFilesLines
2017-02-01powerpc64le is little endian.sevan1-3/+3
2016-10-27Add support for enabling cwrappers automatically. USE_CWRAPPERS now defaultsjperkin1-3/+8
to "auto", which will enable cwrappers if the _OPSYS_SUPPORTS_CWRAPPERS platform variable is set to "yes". Switch over to cwrappers by default for Darwin, Linux, and SunOS (except when using the sunpro compiler).
2016-06-13Change PKGSRC_USE_SSP to a quad option. The options are now:jperkin1-2/+2
"no" Do not pass any stack protection flags (the default) "yes" Pass -fstack-protector "strong" Pass -fstack-protector-strong "all" Pass -fstack-protector-all This allows users to configure the level of stack smashing protection they require, and ensures consistent behaviour across platforms. Users running on NetBSD who previously used the option will need to change "yes" to "all" to match the previous default configuration for that platform. While here use _WRAP_EXTRA_ARGS to ensure the flag gets passed regardless of whether the package honours CFLAGS, and support additional wrappers. Discussed a while back with khorben, and used in production for the SmartOS 2016Q1 package sets with the "strong" option.
2016-04-17Revert part of the MACHINE_ARCH cleanup that resulted in the Linux/x86_64jperkin1-2/+2
triplet reporting as x86_64-pc-linux. Go back to the previous triplet of x86_64-unknown-linux which matches what config.guess outputs.
2016-04-10Remove support for USE_DESTDIR=no.joerg1-10/+3
2016-04-10Remove last glue for PKG_DESTDIR_SUPPORT=none.joerg1-7/+1
2016-04-10Drop support for PKG_DESTDIR_SUPPORT=none.joerg1-9/+4
2016-03-17Since the MACHINE_ARCH cleanup, the bootstrap for i386-on-x86_64 Linux hasjperkin1-1/+5
been broken due to NATIVE_MACHINE_ARCH no longer being set to x86_64. Fix this by introducing HOST_MACHINE_ARCH which refers to the underlying host architecture rather than bmake's native architecture, thus differentiating between cross-compiling and multilib. This is currently only set on Linux as the only OPSYS which currently requires such a test, but can be expanded to other OPSYS as necessary.
2016-03-11Re-arrange support for FORTIFY/MKPIE/RELRO/SSPkhorben1-13/+8
- No _GCC_* anything in mk/bsd.prefs.mk; - No compiler flags in platform files. Tested again on NetBSD/amd64, with and without cwrappers, with the same outcome. With feedback from jperkin@
2016-03-11Add support for a number of security featureskhorben1-1/+30
- Revisit (and rename) support for FORTIFY as PKGSRC_USE_FORTIFY (instead of PKGSRC_USE_FORT) for easier support outside NetBSD/gcc; - PKGSRC_USE_SSP is no longer enabled by default when PKGSRC_USE_FORTIFY is enabled; - PKGSRC_MKPIE builds executables as PIE (to leverage userland ASLR) - PKGSRC_USE_RELRO builds with a read-only GOT to prevent some exploits from functioning. Tested on NetBSD/amd64 by myself, in every combination, with and without pkgtools/cwrappers. MKPIE is not supported at the moment with cwrappers. Also, MKPIE is known to still break a number of packages when enabled (and actually supported). Tested on SunOS by jperkin@, thank you! As discussed on tech-pkg@, the default behavior is not changed, except where noted above. ok bsiegert@
2016-03-11let's do just "Solaris" instead of "Oracle"tnn1-2/+2
The only current use of this is pbulk's subject line, and Solaris 11.3 makes more sense than Oracle 11.3.
2016-03-11for SunOS, assume that OS_VARIANT is Oracle if no match on other variantstnn1-2/+5
for OmniOS, stop processing /etc/release after the first line
2016-03-10Remove _OPSYS_WHOLE_ARCHIVE_FLAG and _OPSYS_NO_WHOLE_ARCHIVE_FLAG, thesejperkin1-7/+1
variables are unused and in at least one case were completely wrong anyway.
2016-01-24Attempt to bring sanity to how ABI and MACHINE_ARCH are set.jperkin1-104/+5
Previously there were at least 5 different ways MACHINE_ARCH could be set, some statically and some at run time, and in many cases these settings differed, leading to issues at pkg_add time where there was conflict between the setting encoded into the package and that used by pkg_install. Instead, move to a single source of truth where the correct value based on the host and the chosen (or default) ABI is determined in the bootstrap script. The value can still be overridden in mk.conf if necessary, e.g. for cross-compiling. ABI is now set by default and if unset a default is calculated based on MACHINE_ARCH. This fixes some OS, e.g. Linux, where the wrong default was previously chosen. As a result of the refactoring there is no need for LOWER_ARCH, with references to it replaced by MACHINE_ARCH. SPARC_TARGET_ARCH is also removed.
2016-01-12Added keyword "platform" for "bmake help"rillig1-2/+2
2015-12-27Make USE_DESTDIR != yes an error.joerg1-1/+2
2015-11-07With OpenBSD/amd64 & Bitrig/amd64 switched to using MACHINE_ARCH=x86_64,sevan1-4/+4
amd64 no longer needs to be accounted for specifically. Remove redundant references. Reviewed by wiz@
2015-11-07Add the necessary logic for setting Bitrig/amd64 to Bitrig/x86_64.sevan1-2/+7
Switch to using arch(1) to populate $LOWER_ARCH on Bitrig Reviewed by wiz@
2015-11-07Add the necessary logic for setting OpenBSD/amd64 to OpenBSD/x86_64.sevan1-1/+12
Reviewed by wiz@
2015-10-17Add the mapping for amd64 to its GNU architecture name x86_64.sevan1-1/+2
Needed for switching OpenBSD/amd64 & Bitrig/amd64 to x86_64. Reviewed by wiz@
2015-09-08Ensure OBJECT_FMT is set to ELF on Linux rather than relying on the NetBSDjperkin1-1/+3
MAHCINE_ARCH settings in bsd.own.mk. Fixes at least Sevan's arm64 host.
2015-09-08Remove NetBSD 0.x and 1.x settings, these have long since been unsupported.jperkin1-23/+1
2015-07-25Introduce $LOWER_VARIANT_VERSION, this is used to store version info for variantsevan1-1/+3
Operating Systems. For SmartOS, store the result from running uname -v & trimming the joyent_ prefix. For OmniOS, store the result from processing /etc/release with awk(1) Reviewed by joerg@ bsiegert@
2015-07-04Remove USE_X11BASE and X11PREFIX.joerg1-3/+1
2015-06-04Introduce preliminary support for Bitrig to pkgsrcsevan1-1/+8
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-04-29Introduce _USE_CWRAPPERS logic to ensure consistency, USE_CWRAPPERS couldjperkin1-1/+8
differ between a package and user setting, resulting in incorrect WRAPPER_* values being set from wrapper-defs.mk.
2015-04-27correct MACHINE_ARCH and compiler flags for HP-UX 64-bit ABItnn1-6/+12
2015-04-19Specify safer WRKSRC for meta packages. As they don't extract files,joerg1-1/+3
they won't create the subdirectory either. Since the SUBST targets try to change to WRKSRC first, they fail. This is seen with meta packages depending on Freetype2 when using X11_TYPE=native.
2015-03-14OS X Tiger & prior used X11 from XFree86 project which is installed insevan1-1/+3
/usr/X11R6, set X11BASE to this location on those versions. Reviewed by wiz@
2015-02-24Fix typo: NATIVE_MACHINE_ARCH, not NATIVE-MACHINE_ARCH. Thanks, prlw1!riastradh1-2/+2
2015-02-16Put back SCO LOWER_OPSYS changes.jperkin1-3/+3
2015-02-14Accommodate an -eabi{,hf} suffix in MACHINE_GNU_PLATFORM.riastradh1-4/+26
This is necessary to match what NetBSD `build.sh tools' generates for cross-compiler toolchains on earm. Also, split APPEND_ELF into APPEND_ELF and NATIVE_APPEND_ELF, so we don't get a spurious netbsdelf in NATIVE_MACHINE_GNU_PLATFORM when cross-compiling on amd64 for earm.
2015-02-01Revert "Move version part from LOWWER_OPSYS to LOWER_OPSYS_VERSUFFIX for sco.",obache1-3/+3
proposed/discussed is required for such changes.
2015-01-01Add a bunch of missing LP64PLATFORMS after reviewing the list in NetBSD'sdholland1-2/+4
build.sh: *-*-aarch64{,eb} *-*-ia64 *-*-mips64{eb,el} *-*-powerpc64 *-*-riscv64
2015-01-01Add BIGENDIANPLATFORMS and LITTLEENDIANPLATFORMS, like LP64PLATFORMS, fordholland1-1/+21
restricting broken packages.
2015-01-01Add support for BROKEN_ON_PLATFORM and BROKEN_EXCEPT_ON_PLATFORM, as perdholland1-4/+4
discussion on tech-pkg. BROKEN_ON_PLATFORM and NOT_FOR_PLATFORM are the same, except that (now) BROKEN_ON_PLATFORM sets PKG_FAIL_REASON and NOT_FOR_PLATFORM sets PKG_SKIP_REASON. BROKEN_EXCEPT_FOR_PLATFORM and ONLY_FOR_PLATFORM correspond in the same way. The idea is that going forward we will distinguish unbuildable packages that theoretically ought to be fixed (these are BROKEN) from packages where it doesn't make sense to build (these are NOT_FOR)... examples of the former include most non-64-bit-clean packges; examples of the latter include OS-specific language bindings. A general review of the uses of NOT_FOR_PLATFORM and ONLY_FOR_PLATFORM (converting many of them to BROKEN...) is coming up. Similarly, a general review of the uses of PKG_FAIL_REASON and PKG_SKIP_REASON is coming up. For this to become useful, pbulk needs to be taught to report failing and skipped packages differently - the idea is that failing packages should be reported up front and skipped packages don't need to be. This has not been done yet, but one set of things at a time...
2014-12-30Remove pkg_views support, second part: infrastructure.wiz1-25/+1
2014-12-07undefined PKGSRC_KEEP_BIN_PKGS must not be evaluated unconditionally.obache1-2/+2
2014-12-06Add a new definition, PKGSRC_KEEP_BIN_PKGS, which defaults to "no".agc1-1/+9
This definition controls whether the binary package which is built during package installation will be copied to pkgsrc/packages/All. To retain binary packages in pkgsrc/packages/All, set PKGSRC_KEEP_BIN_PKGS=yes in environment or MAKECONF. If this is not set, binary packages will not be preserved after their WRKDIR is removed. This may not be what you want. To preserve the status quo since 2013/05/22, and just delete the binary package after it's built, the default for PKGSRC_KEEP_BIN_PKGS is "no", or it can be explicitly set. As reviewed on tech-pkg.
2014-11-29Move version part from LOWWER_OPSYS to LOWER_OPSYS_VERSUFFIX for sco.obache1-3/+3
2014-11-18Sync MACHINE_ARCH -> GNU_ARCH mapping table with NetBSD. Most noticablejoerg1-4/+23
change outside ARM is going to i486 as platform name for x86.
2014-08-14Split SMF handling across bsd.pkg.mk and bsd.prefs.mk. Should fix issuesjperkin1-4/+1
with packages which include bsd.prefs.mk before setting SMF variables.
2014-05-06Move INIT_SYSTEM to bsd.prefs.mk, allowing it to be tested injperkin1-1/+9
package Makefiles when packages perform custom rc.d handling.
2014-05-05Add amd64 to LP64PLATFORMS, OpenBSD returns amd64 instead of x86_64ryoon1-2/+3
No objection on public mailinglist.
2014-04-07Define OBJECT_FMT for FreeBSD.asau1-1/+3
Ignore long time obsolete FreeBSD 1-3 and consider FreeBSD ELF-only.
2014-03-14Add SCO OpenServer 5 and 6 support, 6 support is not tested yet.ryoon1-1/+14
2014-03-07Detect newer RedHat distributions.jperkin1-2/+2
2014-02-22Use .elif, not .else ifryoon1-2/+2
2014-02-20Support X11BASE?=/usr for native X11 on RedHat and derivatives.jperkin1-1/+3
2014-02-14tell wget as a tool.obache1-1/+3