Commit graph

8986 commits

Author SHA1 Message Date
khorben
1778fc2c25 Also determine when compiling from source files
This allows fixing an issue with PKGSRC_MKPIE, where "gcc source.c" would
not work. Some packages rely on this test to determine if a working
compiler is available.
2016-03-13 15:32:06 +00:00
khorben
d8dbc296fa Also register "-pie" as a known argument for gcc(1)
As suggested by wiz@
2016-03-12 21:22:04 +00:00
tnn
75c9f740a4 don't default to EOL versions of java:
- change Linux x86 from sun-jdk6 to oracle-jdk8
- change SunOS x86 from openjdk7 to openjdk8
- change DragonFly from openjdk7 to openjdk8

leave Darwin at sun-jdk6 for now, not sure how the builtin stuff works ...
2016-03-12 06:27:17 +00:00
khorben
03a56367ef Re-arrange support for FORTIFY/MKPIE/RELRO/SSP
- 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-11 23:54:08 +00:00
khorben
dc4ad6b750 Add support for a number of security features
- 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-11 23:03:31 +00:00
fhajny
124d88ee1d Strip --enable-new-dtags GNU ld arg on Darwin and SunOS. 2016-03-11 22:04:34 +00:00
dholland
69936c6955 Explicitly skip directories. PR 50955. 2016-03-11 21:11:47 +00:00
tnn
7ca6d09a6a let's do just "Solaris" instead of "Oracle"
The only current use of this is pbulk's subject line, and Solaris 11.3
makes more sense than Oracle 11.3.
2016-03-11 05:42:35 +00:00
tnn
52872bb412 for SunOS, assume that OS_VARIANT is Oracle if no match on other variants
for OmniOS, stop processing /etc/release after the first line
2016-03-11 04:58:51 +00:00
jperkin
111893bb36 Remove _OPSYS_WHOLE_ARCHIVE_FLAG and _OPSYS_NO_WHOLE_ARCHIVE_FLAG, these
variables are unused and in at least one case were completely wrong anyway.
2016-03-10 16:58:19 +00:00
jperkin
640104b74c Reset 'found' variable for each library check. Previously, all subsequent
tests would pass after the first successful check.  Exposes library issues
in a number of packages.
2016-03-10 15:56:24 +00:00
tnn
926fcc3996 Add special handling for Debian derived systems as they do not have GNU awk
in /usr/bin/awk but mawk. Use /usr/bin/gawk if it exists, otherwise
depend on gawk from pkgsrc when required.
2016-03-09 22:27:29 +00:00
ryoon
f35fb0553e Add gnupg2 and gnupg21 options 2016-03-07 12:05:01 +00:00
tnn
7f5db266bf pass correct ABI via OBJECT_MODE environment variable on AIX
It turns out a handful of AIX binutil-like utilities are particular
about type of object files they should examine.  Instead of piping
through flags for each utility everywhere, it is easier to just export
'OBJECT_MODE=[32|64]' instead.

From Eric N. Vander Weele.
2016-03-04 21:25:47 +00:00
jaapb
acc9ee8227 Added OCAML_USE_OASIS_DYNRUN option 2016-03-04 15:19:42 +00:00
tnn
fbb9c37ab2 pass correct ABI flags to ar(1) on AIX
AIX is particular about the type of object files `ar` should examine.
This should be set explicitly to coincide with the user's defined $ABI.

Contributed by Eric N. Vander Weele.
2016-03-04 01:38:39 +00:00
jperkin
d11ccc0d54 Pass correct GCC ABI flags on AIX.
Fix from Eric N. Vander Weele <ericvw@gmail.com>
2016-03-02 18:45:21 +00:00
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
fhajny
ff4009acb2 Add snappy option description 2016-02-26 15:57:21 +00:00
fhajny
259aedbfb1 Add wiredtiger option description. 2016-02-26 12:35:31 +00:00
jperkin
a6c8139ccc Add MAKE_FLAGS to the default list of OPSYSVARS, it's used enough times. 2016-02-26 11:38:37 +00:00
tnn
307ed51e86 PostgreSQL 9.5 awareness 2016-02-25 21:39:07 +00:00
jperkin
499492952d Expand the default list of OPSYSVARS to include those commonly used
already, plus those that are most used in OPSYS-specific sections.
2016-02-25 08:20:25 +00:00
jperkin
9bd8757b52 Remove overrides for OPENAL_INCLUDE_DIR and OPENGL_INCLUDE_DIR. These
conflict with pkgsrc versions of those packages, and do not interact well
with the wrappers anyway as cmake will perform simple file-based tests for
headers but the compiler will be unable to find them.
2016-02-24 15:24:56 +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
jklos
85563e4143 Fix issue with VAX when awk's split is called with empty string. 2016-02-24 08:54:23 +00:00
joerg
ee75c51786 Add a new override mechanism for depcomp, similar to the existing
overrides for libtool. This allows us to easily get the fixed version
from our libtool in place without having to hunt down for the specific
bugs in random places. Disable the override explicitly in clisp, which
installs a copy without explicitly depending on libtool at run time.
2016-02-23 15:19:23 +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
f946849744 Add an additional check to ensure that library REQUIRES are not relative
paths.  These would previously pass the checks as the files would exist
when checking from within the DESTDIR, but were not resolvable at runtime.
2016-02-19 15:10:23 +00:00
jaapb
9101e5296c Added ppx and camlp4 options. 2016-02-17 16:54:59 +00:00
taca
0f21f3b206 Update MASTER_SITE_RUBYGEMS to avoid extra redirection. 2016-02-14 06:55:08 +00:00
wiz
2a9c8e31cf Add paratype to default-allowed licenses, since it is basically ofl-v1.1. 2016-02-10 10:50:18 +00:00
jaapb
339d229d93 Removed the automatic setting of PKGNAME to ocaml-${DISTNAME} from
ocaml.mk. It was becoming more trouble than it was worth: only a minority
of packages used it, and it only made Makefiles more confusing.
(I've left out some packages: these will be updated forthwith)
2016-02-06 12:06:07 +00:00
leot
6ced276e61 Document the glfw option. 2016-02-04 11:52:31 +00:00
rillig
4b745bef97 Changed "Install binary package" to "Installing binary package" 2016-02-02 08:15:07 +00:00
leot
1bcc4f4422 Add keywords to print/texlive/package.mk and instruct mk/help/help.mk to also
look for print/texlive/*.mk files for help.

Now documentation regarding TeX packages for pkgsrc MAINTAINERs and
developers is easily accessible via the "help" target.

ok wiz@
2016-02-01 18:47:23 +00:00
rillig
913583c370 Fixed subst.mk not to corrupt files
Up to now, using subst.mk may have led to file corruption during active
package development. This happened when a sed(1) command had a syntax
error, in which case the whole sed(1) command was terminated, leaving an
empty original file behind.

This commit changes that behavior by applying the sed(1) commands to
the original file and saving the result in a temporary file. Only
after that succeeded is the original file overwritten.

During this rewrite, SUBST_POSTCMD has been removed, since it was
only used in one place (mk/wrapper), and since it relied on the exact
sequence of the internal commands. No package in either main pkgsrc
or pkgsrc-wip uses this variable right now.
2016-01-31 17:27:41 +00:00
tron
8f9479677b Deal with type hiding under NetBSD-current to e.g. fix the build
of e.g. the "fuse-ext2" package.
2016-01-28 20:50:07 +00:00
jperkin
ac56158090 Attempt to bring sanity to how ABI and MACHINE_ARCH are set.
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-24 16:14:44 +00:00
mef
df83c2aea0 mysql.llarian.net is not on DNS record of llarian.net 2016-01-23 02:46:39 +00:00
zafer
e33ff3d3ae update sites.mk. remove non-working mirrors. 2016-01-22 07:56:01 +00:00
khorben
5e84b71d39 Remove support for APACHE_CUSTOM_CFLAGS
This goes as far back as 2001 (mk.conf.example) but there should not be any
reason to explicitly set CFLAGS for specific packages. In practice this
even fixes support for global CFLAGS in www/apache{22,24}.

ok gdt@
2016-01-20 13:29:29 +00:00
wiz
d89eac75cc Add farstream option description. 2016-01-13 22:27:31 +00:00
rillig
d904a0c3e5 Added keyword "platform" for "bmake help" 2016-01-12 19:55:41 +00:00
dholland
ed95567cee Use :tA to make DISTINFO_FILE absolute when passing it to the fetch
and checksum scripts.

Fixes the problem where DISTINFO_FILE=../../foo/bar/distinfo doesn't
work without having an extraneous and ugly ${.CURDIR} stuffed into it
by hand.
2016-01-06 07:38:25 +00:00
wiz
0d10e4a090 Look in lang/go/*.mk for help topics too. 2015-12-27 19:41:29 +00:00
joerg
d0abbc4cdc Make USE_DESTDIR != yes an error. 2015-12-27 12:37:29 +00:00
tsutsui
4af0f9785a Describe scim option. 2015-12-19 14:13:19 +00:00
asau
6409029991 Make the pbulk deployment script more reusable:
- allow setting non-default prefix;
 - avoid embedding non-essential settings into binary bootstrap kit.
2015-12-14 21:12:01 +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