Commit graph

9426 commits

Author SHA1 Message Date
joerg
03f704711c Retire CLANG_NO_VALUE_PROPAGATION_PASS. CVP has been fixed in LLVM to
require much less memory.
2017-07-11 19:41:20 +00:00
jaapb
2437ab894b Added cmxs option (for net/ocamlnet). 2017-07-11 14:13:06 +00:00
jaapb
59596d1de7 Changes in OCaml support:
- added support for TOPKG
- installation through OPAM install files now possible
- oasis support improved
2017-07-11 09:54:21 +00:00
joerg
80852c70a2 Deal with wc in /bin. From Thomas Orgis. 2017-07-10 12:32:30 +00:00
schmonz
a6335c2ab0 Define PKG_HAVE_KQUEUE where available. 2017-07-09 17:03:12 +00:00
khorben
e519f07826 Register support for PKGSRC_USE_STACK_CHECK
This adds -fstack-check to the CFLAGS (with GCC on NetBSD x86). Only
tested on NetBSD/amd64 so far.

Disabled by default.
2017-07-09 14:30:07 +00:00
minskim
04c8890fa6 Delete an obsolete file: mk/tex.buildlink3.mk 2017-07-06 18:35:08 +00:00
khorben
8fd0957f3f Enable both SSP and FORTIFY by default
This is only actually in use where known supported.

Prepared for a while, also the default in the base system (for NetBSD and
numerous others), introduced on mailing-lists and in my talk "Hardening
pkgsrc", and finally accepted unanimously during pkgsrcCon 2017.

Used by Joyent already (according to jperkin@) and tested in EdgeBSD for a
couple years now (amd64 and i386).
2017-07-05 15:58:30 +00:00
khorben
b6f9200eca Also check for RELRO in shared libraries 2017-07-05 15:49:00 +00:00
khorben
b6e04d7b1c Only check ELF binaries for RELRO 2017-07-05 15:24:22 +00:00
khorben
ca2b8ac385 Implement a check for RELRO
This is only performed if PKG_DEVELOPER and RELRO are in use.

After a suggestion during my talk at BSDCan 2017; thanks!
Also, submitted on tech-pkg@ for review mid-June.

As a next step, it seems this can be extended to libraries, just like the
check for SHLIBS does (from which this is inspired).
2017-07-04 18:29:24 +00:00
gdt
6d81083d0b Improve USE_LANGUAGES explanation
Reference the notion of making compilers visible to the build
environment.  Mention setting --std flags.  Note that the text is
currently aspirtational relative to gcc and C++.

(Comment change only.)
2017-07-04 14:35:55 +00:00
joerg
5f789069ad Fix typo. 2017-06-25 01:41:15 +00:00
schmonz
f9392c69f5 Add defaults for djbdns users and group. 2017-06-23 15:44:06 +00:00
schmonz
f7ae81693c Add webdav, remove qmail-run-ofmipd. 2017-06-21 19:29:00 +00:00
jperkin
24df526b4c Set LIBABISUFFIX correctly on SunOS/sparc64. Tested by Jörn Clausen as
part of PR#52250.
2017-06-21 08:20:10 +00:00
jperkin
0d96cc5144 Default to oracle-jdk8 on newer Darwin/x86_64. 2017-06-20 11:59:20 +00:00
maya
7e02908133 Use the fgrep binary explicitly on OSF1
Fixes PR pkg/52312: "Checking for fgrep" causes Fork bomb
From Naruaki Etomi
2017-06-19 06:25:45 +00:00
youri
ba2f6d95e1 Add GVFS option. 2017-06-18 21:27:05 +00:00
kamil
0e21766de5 Correct ccache(1) typo: CPPATH -> CPPPATH 2017-06-17 02:47:20 +00:00
kamil
df999dfb68 Correct shadowing system compiler with a pkgsrc one in ccache
ccache needs to call real compiler and it detects it with looking in $PATH.
In case of usage of /usr/local/bin/clang as the desired pkgsrc $CC option,
it will be shadowed by /usr/pkg/bin/clang if someone will build it in as a
package. Workaround the problem with setting CCACHE_PATH through
PKGSRC_MAKE_ENV. Little bit overzelaously set it to
${CCPATH:H}:${CXXPATH:H}:${CPPATH:H}, just in case that they might be in
different paths. To ensure that they are not shadowed in narrow cases,
there is an option to rename clang to xclang or similar and use it this
way in $PKG_CC.

While there, introduce new user settable option: CCACHE_LOGFILE.
If set, ccache logs to file specified in ${CCACHE_LOGFILE:Q}.

+# CCACHE_LOGFILE
+#       If set to a file path, ccache will write information on what it is
+#       doing to the specified file. This is useful for tracking down
+#       problems.

This fixes another set of problems building large projects like Clang, LLVM
with ccache.

Sponsored by <The NetBSD Foundation>
2017-06-17 01:44:54 +00:00
prlw1
5c827f6f0e Essentially from OBATA Akio in private mail, June 2015:
Introduce Icon Theme cache handling framework

Icon Theme cache files are used by GTK+ and maintained with the
gtk-update-icon-cache tool.  Each Icon Theme package duplicates
its own maintainance scripts: only the specified icon theme directory
differs.  With this framework, if packages have ICON_THEMES=yes,
associated icon themes will be detected and their cache files will
be maintained automatically.

Change cache handling behaviour as follows:
* Icon theme caches will be updated if either gtk2+ or gtk3+
  gtk-update-icon-cache tool is available.
* With installation of gtk2+ package, not only hicolor icon theme but
  also any other icon theme cache files will be updated.
* Prevent removal of icon caches at deinstall, gtk3+ may be installed and
  using them.
* Ditto with gtk3+, gtk2+ may not be installed now, so caches must be
  maintained by gtk3+.
2017-06-14 16:23:09 +00:00
sevan
2302c91479 Whilst the version of find in Darwin 8 & prior is insufficient for installing Python modules,
there are further issues with circular dependencies which need to be resolved
before the change to using find from coreutils can be made.
Revert previous change for now.
2017-06-12 16:11:51 +00:00
maya
2b5f2f1662 Reorder so cpan http mirrors are first
at least with nbftp, ftp downloads involve several slow back and forth 'cd'
commands and end up being noticeably slower for lots of little files
2017-06-12 07:13:35 +00:00
kamil
9e8b293e05 Restore c++ support in ccache.mk
The ccache.mk file was checking for languages "c" and "c++".
New framework for C++ dialects (or revisions) was setting implicitly c++,
translating e.g. c++11 to c++.

compiler.mk set this c++ after including ccache.mk, so c++ was undefined
and ccache was ignored.

This helps to build large projects like LLVM+Clang+LLDB with ccache.

Sponsored by <The NetBSD Foundation>
2017-06-10 11:32:32 +00:00
khorben
0a3bb24acf Register support for RELRO on Linux (limited to x86 first)
Tested on Debian GNU/Linux 8.8 (amd64).

Actual support will depend on the underlying distribution though.
2017-06-09 17:21:53 +00:00
khorben
7f05f4f5e5 Register support for SSP on Linux (limited to x86 first)
Tested on Debian GNU/Linux 8.8 (amd64).

Actual support will depend on the underlying distribution though.
2017-06-09 17:04:18 +00:00
khorben
369b9cea32 Register support for FORTIFY on Linux
Tested on Debian GNU/Linux 8.8 (amd64).

Actual support will depend on the underlying distribution though.
2017-06-09 16:56:26 +00:00
jlam
a981d05eab Fix the value being substituted for TTMKFDIR in install scripts.
@TYPE1INST@ should be replaced with ${TOOLS_PATH.type1inst}.
Before this change, the sed(1) script being generated was not
replaced @TYPE1INST@ at all, and instead generating a no-op
substitution pattern for TTMKFDIR.
2017-06-07 20:24:27 +00:00
jlam
633861d271 Substitute for LDCONFIG_ADD_CMD and LDCONFIG_REMOVE_CMD in scripts.
LDCONFIG_ADD_CMD and LDCONFIG_REMOVE_CMD are set by emulator/*.mk
in order to update the library search paths in the emulated system
directories.  Substitute for those values, but default them to the
empty string so that the default action taken by the "shlibs" task
can be used.
2017-06-07 20:24:19 +00:00
jlam
f43517c597 Fix subsitutions for @PKG_ADMIN@ and @PKG_INFO@.
The substituted values need to refer to the _CMD variables that
hold the path to the actual commands.
2017-06-07 20:24:09 +00:00
jlam
fafe82389b Subsitute for @CROSSBASE@ and @VARBASE@ in install scripts.
${CROSSBASE} and ${VARBASE} both point to important directories
for installed packages, so always substitute those values into
deinstall/install scripts.
2017-06-07 20:24:01 +00:00
jlam
3521014203 Bump pkgtasks dependency to latest version in pkgtools/pkgtasks. 2017-06-04 00:03:43 +00:00
jlam
faa05c5d4c Using script templates implies a dependency on pkgtasks.
The header template loads pkgtasks' load.subr unconditionally, so
if any script templates are used, then they imply a dependency on
pkgtasks.  Trigger the dependency in the "pkgtasks" framework by
setting USE_PKGTASKS to "yes".
2017-06-02 19:13:44 +00:00
jlam
3140840fab Be more flexible about adding dependency on pkgtasks.
Check the value of ${USE_PKGTASKS} at the time of reference for
the DEPENDS variable to see whether "pkgtasks" needs to be added
or not.
2017-06-02 19:13:34 +00:00
jlam
e697d677aa Fix typo in makefile comment. 2017-06-02 19:13:26 +00:00
jlam
b73b227f3b Create ${PKG_SYSCONFDIR} automatically in "pkgtasks" framework.
Add missing feature from "pkginstall" framework where the config
directory ${PKG_SYSCONFDIR} was automatically created if one of
the following conditions were true:

* PKG_SYSCONFSUBDIR was defined and non-empty.
* Any configuration files were copied into ${PKG_SYSCONFDIR}.
2017-06-02 16:12:25 +00:00
jlam
c57069d38e Fix check for the proper number of words in config files variables.
Remove unnecessary check for ${_VALID.files} in pkgtasks/files.mk
that was a leftover from old, unused code.
2017-06-02 16:11:47 +00:00
jlam
b86c91739a Remove unused variable definition _PKGTASKS_NEEDARGS from test.mk. 2017-06-02 16:11:24 +00:00
jlam
6f3e827791 Remove unused scripts/shlib-type script.
The platform/${OPSYS}.mk files now use platform-specific code to
set ${_OPSYS_SHLIB_TYPE} which is the default value for
${SHLIB_TYPE}.  All previous uses of this script to detect the
native shared library type or native executable format have been
removed from pkgsrc.
2017-06-01 13:30:52 +00:00
jlam
000f312c98 Use public SHLIB_TYPE instead of private _OPSYS_SHLIB_TYPE. 2017-06-01 13:30:24 +00:00
jlam
b47434aa08 SHLIB_TYPE definition has moved to bsd.prefs.mk. 2017-06-01 13:29:18 +00:00
jlam
825762cd05 Toggle using pkgsrc/mk/smf.mk based on ${_USE_NEW_PKGINSTALL}.
Missing change from initial commit to provide the toggle for using
the new frameworks to replace pkgsrc/mk/pkginstall.
2017-06-01 03:41:44 +00:00
jlam
793c69db50 Add pkgsrc/mk/Kyuafile to drive all tests under pkgsrc/mk. 2017-06-01 02:37:12 +00:00
jlam
0a676f1f26 Provide switch to activate new frameworks to replace "pkginstall".
If ${_USE_NEW_PKGINSTALL} is "yes", then use the new "pkgtasks",
"init", and "pkgformat/pkg"-scripts frameworks instead of the
existing "pkginstall" framework.
2017-06-01 02:15:10 +00:00
jlam
d7e2d30603 Make creation of +DEINSTALL/+INSTALL scripts pkgformat-specific.
Move the files needed to generate +DEINSTALL and +INSTALL scripts
for the "pkg" format into pkgsrc/mk/pkgformat/pkg.

Create new script templates that make use of "pkgtasks" to perform
the actual tasks.
2017-06-01 02:09:43 +00:00
jlam
a651f1eccc Add "init" framework for management of init scripts for packages.
${INIT_SYSTEM} is used to select the type of init system in use on
the system, and currently can be either "rc.d" for the NetBSD rc.d
system, or "smf" for the Solaris Service Management Facility
system.

pkgsrc/mk/init/smf.mk is pkgsrc/mk/smf.mk with some very minor
modifications to fit into the "init" framework.
2017-06-01 02:08:04 +00:00
jlam
8e334ba0ec Add "pkgtasks" framework to generate data files used by pkgtasks.
A full dependency on the "pkgtasks" package will be added if a
non-empty data file is generated by the framework.

This framework is not yet hooked into bsd.pkg.mk, pending some
other changes.
2017-06-01 02:06:04 +00:00
jlam
207904f706 Document PRE_CMD.su-<target> and simplify its use in "su-target".
This avoids needing to use a shell command to test whether
${PRE_CMD.su-<target>} is empty before executing it.
2017-05-31 22:56:41 +00:00
jlam
d8e9bb513c Check that some variables have the correct number of words.
Assert MAKE_DIRS_PERMS and OWN_DIRS_PERMS have the right number of
words before using a multivariable .for loop over those variables.
This prevents errors in parsing the makefiles.
2017-05-31 22:56:22 +00:00
jlam
b110ad9dac Move detection of shared library type into the platform file.
Only four platforms, all BSDs, need to resolve "ELF/a.out" into
either ELF or a.out.  Calculate it directly in the platform file
and return the value in ${_OPSYS_SHLIB_TYPE} and export that value
in bsd.prefs.mk as ${SHLIB_TYPE}.

Instead of requiring the file(1) tool, we can expect the base
system of those BSDs to have /usr/bin/file, so make use of it
directly.
2017-05-31 22:55:01 +00:00
schmonz
8f3140b68d Remove "mess822-qmailqueue" option. 2017-05-29 23:21:21 +00:00
maya
340983247b Remove old logic about choosing audio device on freebsd which is
incorrectly applying to recent versions of freebsd. always play audio
to /dev/dsp.
2017-05-28 21:53:06 +00:00
schmonz
8aa48eaa5d Document new "mess822-qmailqueue" option. 2017-05-27 16:59:45 +00:00
adam
f7716a4492 Removed databases/postgresql91 2017-05-24 19:51:12 +00:00
schmonz
398b9c6e51 Document new "qmail-remote" option. 2017-05-22 17:23:26 +00:00
joerg
c9d19aae42 Drop redundant dependency patterns. The normal reduction logic doesn't
work for glob expressions, so multiple generic patterns would not be
reduced.
2017-05-19 14:58:51 +00:00
jperkin
c657f15637 Consolidate setting of SSP flags now that multiple compilers support it. 2017-05-18 08:14:08 +00:00
khorben
8b017f6b3a Register support for SSP on FreeBSD and clang (on x86 architectures)
Support for SSP (Stack-Smashing Protection) is optional so this should not
affect default builds.

Tested on FreeBSD/amd64 (10.3-RELEASE-p11)
2017-05-18 01:29:55 +00:00
prlw1
a1c414e08a typo 2017-05-15 08:12:57 +00:00
jperkin
ab40c7bbee Add the zsh license and add it to the default acceptable list (MIT-like). 2017-05-11 12:56:21 +00:00
ryoon
b9fe77ea59 lang/openjdk8 works under FreeBSD/amd64 10.3 2017-05-10 14:04:31 +00:00
jperkin
3b718bfe38 Default to pkgsrc terminfo. The curses default was switched to pkgsrc a
while ago, but since then any packages that included both curses and
terminfo ended up with conflicting BUILDLINK_TRANSFORM entries, leaving it
to include ordering to determine whether the builtin or pkgsrc curses was
used.  This keeps them in sync, at least by default, though ideally we'd
ensure that at an infrastructure level.
2017-05-08 17:34:15 +00:00
sevan
13b404e17b The version of find(1) included in Darwin did not support {} + being passed to
the exec option up until version 9 (Leopard). sysutils/findutils should be used on
prior releases.
This resolves packaging Python modules which utilise lang/python/egg.mk. find(1)
is called here with '{}' +; passed to exec option.
2017-05-06 16:33:54 +00:00
joerg
8b20e378ad Add GCC_VERSION_SUFFIX, which can be used i.e. on SuSE systems to select
between different compiler versions.
2017-05-04 18:44:12 +00:00
joerg
df836cad8d Simplify PATH handling. Use full pkgsrc path for cwrappers, but skip the
cwrapper directory itself.
2017-05-04 18:30:56 +00:00
jperkin
1421ba461a Introduce CHECK_SHLIBS_BLACKLIST which allows users to specify a list of
regexps that will cause the checks to fail if they match resolved RPATHs.
2017-05-03 13:46:53 +00:00
jperkin
6004c83509 Add support to USE_LANGUAGES for C++ standards from c++0x to gnu++14.
This allows packages to specify the version of the standard that they
require, and the infrastructure then distils that down in a similar way
to GCC_REQD to the newest standard, avoiding clashes with different -std
requirements based on CXXFLAGS.

Broad concensus on tech-pkg and tested in bulk builds.
2017-05-03 08:34:23 +00:00
jperkin
c4f4067d45 Only perform the CHECK_WRKREF_EXTRA_DIRS check on the resolved path rather
than on all of the rpaths.  We can't always exclude the rpath being added,
for example when the compiler adds its own behind our back, so this avoids
false positives.
2017-04-26 11:19:16 +00:00
sborrill
1e2ee6d186 Add vw_printw to list of functions to check for when assessing suitability
of builtin curses
2017-04-24 12:16:38 +00:00
taca
efbc2f124b Remove reference to misc/rubygems and RUBY_VER is "18". 2017-04-23 14:18:09 +00:00
maya
e76c53d7c0 Check for paxctl's existence rather than version+arch check.
It likely only matched amd64 before (looks like i386 had a typo),
but it's necessary on most netbsd archs since netbsd-7.99.x.
2017-04-21 16:03:10 +00:00
ryoon
20ddaf0877 Workaround for make(1) from recent NetBSD-current to detect paxctl 2017-04-21 14:45:07 +00:00
wiz
5a829d2c92 Remove mpeg4ip, unused in pkgsrc, newer version in multimedia/libmp4v2. 2017-04-17 08:48:00 +00:00
khorben
4211ac7e85 Add granularity to PKGSRC_USE_FORTIFY and PKGSRC_USE_RELRO
The new options are, for FORTIFY:
  "no"     Do not pass any flags for FORTIFY
  "weak"   Pass -D_FORTIFY_SOURCE=1
  "strong" Pass -D_FORTIFY_SOURCE=2

This allows users to reduce the level of FORTIFY specified if necessary
or desired. The previous setting as "yes" is now equivalent to "strong"
(the default when enabling).

The new options are, for RELRO:
  "no"      Do not pass any flags for RELRO
  "partial" Pass -Wl,-z,relro
  "full"    Pass -Wl,-z,relro -Wl,-z,now

This allows users to reduce the level of RELRO specified if necessary or
desired. The previous setting as "yes" is now equivalent to "full" (the
default when enabling).

This is intended to match the changes committed by jperkin@ (for SSP)
after our discussion a (long) while back.

No functional change intended (with the settings supported so far).
2017-04-16 23:12:37 +00:00
khorben
6a95312dc6 Remove references to WINDOWMAKER_{OPTIONS,THEMES}
From what I can tell, this is no longer in use.
2017-04-16 22:10:40 +00:00
khorben
8a2d0743ad More consistent log output 2017-04-16 16:48:48 +00:00
jperkin
4c279ad5d4 Let GCC 4.4 handle requests for GCC 4.[0-4] to ensure we are consistent in
using the closest match for each request, as well as fixing platforms where
GCC 6 does not yet build or is unsupported.
2017-04-10 12:22:07 +00:00
joerg
6aea04f07f xz is a valid compression algorithm. 2017-04-09 20:44:41 +00:00
schmonz
8000293e9e Describe qmail-run-ofmipd. 2017-04-09 13:02:32 +00:00
fhajny
2d1e7331a3 Remove traces of textproc/php-dom which is not needed anymore, now that dom is built into PHP. Bump resp. PKGREVISION. 2017-04-05 12:33:47 +00:00
schmonz
9a7cb863a0 Define default names for qmail users and groups. 2017-04-04 07:44:13 +00:00
rillig
e120f955f9 Fixed typo. 2017-04-01 20:55:39 +00:00
schmonz
491e898937 Describe qmail-srs option (Sender Rewriting Scheme). 2017-04-01 01:08:07 +00:00
wiz
91700f433b Remove binary-only realplayer-codecs package from 2004. 2017-03-24 16:55:15 +00:00
schmonz
638cc28080 Describe qmail-maildiruniq and qmail-rcptcheck. 2017-03-23 07:32:42 +00:00
schmonz
f487e082e2 QMAILDIR used to default to "/var/qmail" out of concern for distributors'
obligations. Default to ${VARBASE}/qmail instead: effectively the same
default, and helps for e.g. UNPRIVILEGED.
2017-03-21 13:04:14 +00:00
roy
aa8c0d28e7 quickly remove debug 2017-03-20 10:03:57 +00:00
roy
ced7d88b93 Roll the duplicated function and define tests into lists and then loop
through each with one test.
Reduces code size, makes reading it a lot easier and is more maintainable.

Patch from jperkin@
2017-03-20 10:03:27 +00:00
roy
7d9775842d Describe USE_CURSES, FAKE_NCURSES and INCOMPAT_CURSES. 2017-03-20 00:30:30 +00:00
roy
dc0bdaab5e Add a test for syncok(3). 2017-03-20 00:10:06 +00:00
maya
514159645b default to apache24 (not 22) 2017-03-11 18:29:24 +00:00
jperkin
0828e0c3e8 Ensure PBULK_CACHE_DIRECTORY exists before writing into it. 2017-03-08 16:16:40 +00:00
jperkin
e4d1b9920a Mark SunOS as _INCOMPAT_CURSES, there are lots of issues with the recent work
to use the curses framework and this is the simplest solution for now.
2017-03-08 15:26:51 +00:00
jperkin
00697eb0c6 Update libtool packages to 2.4.6.
Changes since 2.4.2 are too numerous to mention, with over 4,700 lines
in the ChangeLog file.  However, this release does at least fix a large
number of build failures on SmartOS, and doesn't appear to cause any
obvious regressions in bulk builds performed by Joerg and myself.

Some pkgsrc cleanups while here, including merging the MirBSD patches
correctly.  It couldn't be made much clearer how to properly integrate
patches here to ensure they are not lost.  Next time you might not be so
fortunate!
2017-03-06 16:14:07 +00:00
kamil
142e04fc75 Fix path to cross-libtool-base in f2c.mk for crossbuilding 2017-03-05 10:40:18 +00:00
kamil
9e5664b199 Fix path to cross-libtool-base in TOOL_DEPENDS+= for crossbuilding 2017-03-05 10:38:37 +00:00
maya
e0e1e5769b Describe gstreamer-ptp-suid. requested by wiz. 2017-02-03 17:14:35 +00:00
sevan
8907fb92ff MACHINE_ARCH is set to powerpc64le during bootstrap, adjust if statement to
check for new value.
2017-02-01 10:00:17 +00:00
sevan
3425d1a52b powerpc64le is little endian. 2017-02-01 09:55:07 +00:00
jperkin
dc1d0f1622 Indent conditionals to improve legibility. No functional change. 2017-02-01 07:25:28 +00:00
sevan
bb04ef7a57 Add ppc64le paths from the Debian/Ubuntu multiarch hierarchy.
Tested on Ubuntu for POWER8.
Thanks to John Klos.
2017-02-01 03:00:35 +00:00
sevan
f77a337cf6 Sync with upstream 2017-01-31 22:16:20 +00:00
maya
e5900c2b7d replace ftp at kernel.org with http. it will shut down soon. 2017-01-28 00:23:35 +00:00
brook
3f7b4beddb Always take the flex version from the second word of the version string.
When necessary, the flex version is obtained from the version string reported
by running flex.  Generally, the first word of the version string is flex and
and the second is a version number.  At least for MacOS, there is a third
vendor-specific word.  The sed command previously used to capture the flex
version captured the last word, not the second one, because the first capture
group was too greedy and could capture more than a single word.  Instead,
force the capture groups to capture only words, i.e., no blanks, and use the
second word for the version.
2017-01-21 17:10:26 +00:00
taca
1b5ce22675 Coorect version of libtool to current one. 2017-01-18 05:33:39 +00:00
wiz
da976fdeef Bump LIBTOOL_REQD, newer version needed for cwrappers.
PR 51826.
2017-01-17 22:57:39 +00:00
jperkin
24bfb99d67 Cache and use computed variables. 2017-01-17 15:32:17 +00:00
rillig
d231f797e2 Fixed inconsistencies in comments. 2017-01-15 23:55:30 +00:00
sevan
9da918b016 Document the gcc-graphite option, used by lang/gcc*
https://gcc.gnu.org/wiki/Graphite
2017-01-15 02:21:34 +00:00
schmonz
abdcbeb009 Add checkpassword-suid option, off by default. 2017-01-09 04:01:32 +00:00
roy
3dc60e7357 Add a test for resize_term(3). 2017-01-05 21:32:39 +00:00
roy
f633dfa47c Add a test for set_escdelay 2017-01-05 21:19:24 +00:00
roy
b2d292a1e1 Support FAKE_NCURSES=yes for pdcurses and ncursesw. 2017-01-04 15:52:50 +00:00
roy
25cf955394 Add support for detecting the ncurses extension getsyx(3) in system curses. 2017-01-02 10:49:33 +00:00
schmonz
18d6404452 Update djbware configury for new bglibs file locations. 2017-01-02 02:20:52 +00:00
tron
cfbdc4f34e Update comment with default Emacs version 2017-01-01 02:07:53 +00:00
jaapb
d702b2a2bc Corrected an inaccurate comment. No actual changes in behaviour. 2016-12-30 11:45:28 +00:00
maya
2ab36e5237 Remove last mentions of gcc45,46,47 in mk/.
No functional change intended.
2016-12-29 23:16:26 +00:00
maya
bc1d2b7489 Remove some of the mentions for gcc{45,46,47}.
No functional change intended.
Still a few left.
2016-12-29 23:07:17 +00:00
maya
e2f57f6d5e Make GCC_REQD+= 4.5 to 4.8 resolve to 4.8 (dropping the possibility to
match for 4.5, 4.6, 4.7, which will soon be dropped).

This commit is the functional change. Cleanup will be done in separate
commits.
2016-12-29 22:21:13 +00:00
roy
8f6864a291 Fix USE_CURSES feature support. 2016-12-29 20:23:05 +00:00
joerg
a601f79184 Add optional caching of extracted build options. As the number of users
of this feature has exploded over recent years, this avoids quadratic
complexity for many packages during scan and build phase of a bulk
build. Pbulk logic for exploiting this feature will be committed
separately. Over all, this saves ~66% for wm/xfce4-wm
with initially empty cache and ~90% when the cache is populated. Total
scan time can be cut in half.
2016-12-17 23:41:51 +00:00
asau
cc2b5c855f Enable OpenJDK 7 and 8 on Linux. Add builtin support.
Tested on openSUSE 11-42.
2016-12-16 16:27:23 +00:00
hauke
16ed67bd37 Update MASTER_SITE_XEMACS:
- remove three defunct mirrors
- remove xemacs.org - its hoster tux.org went down,
  and the master site as well as all the *.xemacs.org
  DNS entries are gone
- add two mirrors that run under their own domain name
2016-12-11 19:19:36 +00:00
asau
06574a2c84 Update to Emacs 25 by default.
"There's no reason not to upgrade it."
2016-12-09 22:24:50 +00:00
wiz
db05d33e02 Remove ex-CPAN mirror. 2016-12-04 18:26:44 +00:00
bsiegert
7260ae5a46 Enable cwrappers for Dragonfly and FreeBSD. Remove Linux emulation (gone)
for Dragonfly.

From David Shao in PR pkg/51688.
2016-12-04 15:37:41 +00:00
wiz
b89232a807 Add PKG_DISABLED_OPTIONS.
This variable contains the options that are NOT enabled for a package.
2016-12-01 15:28:57 +00:00
marino
e7a91fc2fa Upgrade USE_LANGUAGES=ada to use lang/gcc5-aux instead of lang/gcc-aux
This large commit accomplishes the following:

1) Switch USE_LANGUAGES=ada to require lang/gcc5-aux (gcc 5.4) instead
   of lang/gcc-aux (gcc 4.9.2) on gcc.mk
2) Bump affected ports and fix paths as necessary
3) Upgrade devel/gprbuild to the latest release
   - No longer requires lang/gnat_util
   - gprslave requires gcc6-aux, so it was disabled for now
4) Fix lang/gnat_util but set PKG_SKIP_REASON
   - It has no further purpose in the pkgsrc tree
   - It has no practical purpose outside of the pkgsrc tree
   - Indicate intent to remove from tree in Jan. 2017
5) Set devel/GPS as failed with PKG_FAIL_REASON
   - This version of GPS is several years old and at the time they were
     strongly tied to compiler.
   - Latest release of GPS require gcc6-aux (not available) and several
     new and complex dependencies
   - maintainer (me) has no interest to continue supporting it
   - Leaving GPS in place until Jan 2017 to give another person chance to
     upgrade and take over support
   - Latest version in FreeBSD Ports Collection as a reference point
2016-11-25 20:36:49 +00:00
joerg
5767cbd19c Don't try to adjust BUILDLINK_INCDIRS.curses by a non existing prefix. 2016-11-25 13:35:33 +00:00
pho
0f6827febc fuse.h requires that _NETBSD_SOURCE is defined 2016-11-21 00:01:01 +00:00
spz
5a1d0ee4bd add unicode to DEFAULT_ACCEPTABLE_LICENSES 2016-11-18 09:43:39 +00:00
jdolecek
fbce554b02 fix the test for <poll.h>/<sys/poll.h> - use _OPSYS_INCLUDE_DIRS instead
of assuming /usr/include; this fixes compilation of net/socat,
which has broken !HAVE_POLL code
2016-11-13 11:06:40 +00:00
joerg
8c3ea2e438 Prepend the ABI flags to allow interested programs like qemu to
overwrite them on demand. This allows building ROM images and the like
with a special target ABI. Discussed a while ago with jperkin.
2016-11-10 20:59:43 +00:00
joerg
fea8495735 Handle optional ctfmerge/ctfconvert presence on NetBSD by explicitly
passing down NOCTF when they don't exist.
2016-11-10 20:58:46 +00:00
adam
8889df1526 Added postgresql96 support 2016-10-30 08:57:12 +00:00
jperkin
ea3df7bb6a Enable cwrappers by default on OpenBSD. 2016-10-28 09:21:08 +00:00
wiz
1ce724e294 Enable cwrappers by default on NetBSD. 2016-10-27 12:29:17 +00:00
jperkin
b673fabd21 Add support for enabling cwrappers automatically. USE_CWRAPPERS now defaults
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-10-27 10:31:05 +00:00
marino
0f0623489a DragonFly: Update _OPSYS_SYSTEM_RPATH
It's going on 10 years since gcc 3.4 and gcc 4.1 were part of DragonFly.
DF Release 4.4 is the earliest with any kind of support and the earliest
possible GCC version is 4.7 there.
2016-10-25 20:00:47 +00:00
kamil
5e0738fca8 Add support for overloading CMAKE_INSTALL_PREFIX
By default CMAKE_INSTALL_PREFIX points to PREFIX, but some software requres
custom subprefix. At least blender and brlcad are in this category.

To set new prefix it's sufficient to set CMAKE_INSTALL_PREFIX in a package,
for example (in brlcad):

CMAKE_INSTALL_PREFIX=${PREFIX}/brlcad

Reviewed by <joerg> and <jperkin>.
2016-10-21 11:13:35 +00:00
wiz
2c38733c3a Remove outdated netlib mirror. 2016-10-18 14:03:16 +00:00
jperkin
c034060ef5 Fix mips ABI setup which cannot have possibly worked for a long time. 2016-10-10 08:26:08 +00:00
wiz
fdee5ecd22 Bump pgsql default to 95. 2016-10-09 21:08:18 +00:00
joerg
9b3ec3ae6f Hook up the prepend support. 2016-10-05 12:46:43 +00:00
wiz
59c4a9f6b5 Allow sissl-1.1 per default
See
https://opensource.org/licenses/sisslpl
2016-10-03 11:49:31 +00:00
wiz
577e1cde9e ibm-public-license-1.0 -> ipl-1.0 2016-10-03 08:30:20 +00:00
kamil
40fcb362d5 Appease pkglint(1) - replace () with {}
No functional change
2016-09-24 18:34:24 +00:00
adam
04526fd31d Added support for mysql57 2016-09-21 14:27:51 +00:00
gdt
b177a0f098 Omit pkg_tarup during replace in destdir mode
In destdir mode (the default), make replace creates the replacement
binary package without modifying the installed system, and then
installs it via pkg_add -u.  Thus, the new package is known to have
built and packaged ok before the system is changed, and the risk of
trouble is low; thus the benefit of tarring up the installed package
is very low, especially since the newly-tarred-up package is removed
by "make clean".  Using pkg_tarup costs cycles to run and more
importantly causes users to have to install it since it is not an
automatic dependency.

In addition, binary packages are now kept by default when building, so
the old version should be accessible in case of trouble.

This commit does not change the non-destdir case.  Almost no one uses
that method, and the relative benefit of tarup is much higher.
2016-09-19 12:26:08 +00:00
agc
92ae36d6cf Change default setting of PKGSRC_KEEP_BIN_PKGS to "yes". During the build phase,
binary packages will be preserved under the ${PACKAGES} directory by default.
2016-09-18 22:17:54 +00:00
ryoon
7b9630876e Add emacs25 and emacs25nox to possible values 2016-09-18 14:02:42 +00:00
richard
135ceb1bfd support native linux implementations of oss 2016-09-18 05:25:18 +00:00
richard
c27c54fb31 set LIBABISUFFIX to /aarch64-linux-gnu for arm64
simplifies _OPSYS_SYSTEM_RPATH and _OPSYS_LIB_DIRS
permitting lots of stuff using LIBABISUFFIX to work now.

TODO: probably similar for the armv7 platforms as
the pattern '${MACHINE_ARCH}-${LOWER_OPSYS}-gnu${APPEND_ABI}'
seems like it should work for both.
2016-09-17 05:41:37 +00:00
ryoon
f4cce41621 Allow '-l m' like '-lm' and update the comment for -l and -D
O.k. by jperkin@ and dholland@
2016-09-16 13:12:29 +00:00
taca
a279c1aa65 Add description for iconv, nginx and php-sockets. 2016-09-13 16:07:14 +00:00
maya
7068769a8f Add logic so GCC_REQD+=6.x works
ok jperkin@
2016-09-13 07:59:15 +00:00
maya
3a3ad52105 Introduce GFORTRAN_VERSION, pick which version of gfortran is used.
modified patch from Rin Okuyama
PR pkg/50722: do not hardcode lang/gcc48 in gfortran.mk

"looks ok, needs docs" - wiz
"it'll do for now, ideally I'd like something more robust and possibly
integrate into gcc.mk's path selection" - jperkin
2016-09-12 12:18:13 +00:00
wiz
89b7279e32 Remove ftp.tex.ac.uk, it does not allow connections. 2016-09-11 13:04:28 +00:00
joerg
852712577b Rename RUBY_VERSION_SUPPORTED into _RUBY_VERSIONS_ACCEPTED to follow the
naming scheme of the other multi-version packages. Add support for the
coorresponding RUBY_VERSIONS_INCOMPATIBLE list.
2016-09-08 15:19:16 +00:00
joerg
e9a8511669 Add PHP_VERSIONS_INCOMPATIBLE to filter out unsupported versions,
especially if a package requires newer versions.
2016-09-08 09:40:11 +00:00
jperkin
726fbdb877 Support UNLIMIT_RESOURCES=cputime on Darwin. 2016-09-06 09:50:20 +00:00
jnemeth
464f0c5b40 mention libdbi 2016-08-30 02:01:47 +00:00
joerg
b33b40aeb1 Explicitly unset CONFIG_SITE. Some Linux distributions like SuSE set it
in the default environment and provide a config.site overriding the
default libdir settings. This breaks havoc with our PLISTs and expected
library paths, so kill it.
2016-08-26 16:51:56 +00:00
jperkin
ed6c0a593f Support UNLIMIT_RESOURCES=cputime on SunOS. 2016-08-25 12:08:29 +00:00
richard
334542855d Add experimental aarch64 support (amlogic s905 under ubuntu) 2016-08-24 05:31:20 +00:00
wiz
200e3df4b5 Add two option descriptions for p5-Module-Build. 2016-08-21 07:14:38 +00:00
adam
99864d3ee3 Fix for otool from Xcode 8.0 2016-08-20 18:52:42 +00:00
wiz
7464e41200 Less noise. 2016-08-19 12:17:26 +00:00
asau
8ed2939d16 Handle special case of URLs prepended with dash. 2016-08-09 15:16:35 +00:00
wiz
52d4a1294a Remove some non-working sunsite mirrors (and a mirror of something else) 2016-08-01 09:35:56 +00:00
jperkin
9900231406 Support NetBSD man/html entries. Fixes deforaos-*. 2016-07-26 08:41:36 +00:00
wiz
c9148563a4 Remove special PRINT_PLIST_AWK for a couple of variables.
In particular:
OS_VERSION
MACHINE_GNU_PLATFORM
MACHINE_ARCH
MACHINE_GNU_ARCH
LOWER_OS_VERSION

Reason: Only very few packages really need these, many other have false
positives.

Ok jperkin@
2016-07-25 21:57:23 +00:00
leot
d36f22066b Fix a typo in a comment 2016-07-18 09:57:10 +00:00
leot
7321250d39 Get rid of XXX comment, everything is now installed from ${WRKDIR}/.destdir 2016-07-14 14:43:55 +00:00
jperkin
8fee57ccb0 Switch SunOS-5.11-i386 default back to openjdk7. Oracle have broken 32-bit
support in openjdk8 and have no intention of fixing it.
2016-07-13 14:16:17 +00:00
wiz
ad3aa52d45 Run mk/scripts/mkreadme in quiet mode by default. 2016-07-11 22:53:48 +00:00
rillig
9a44ed19cd Replaced while loop with for loop and initialized indentation. 2016-07-10 07:08:21 +00:00
dholland
f39f6090b1 Remove obsolete anti-cycle logic; fixes PR 48961. 2016-07-09 17:12:22 +00:00
rillig
057875c2f0 Added keywords for "make help". 2016-07-09 16:32:54 +00:00
rillig
a19abe8a9a Fixed pkglint warnings about unnecessary whitespace and indentation. 2016-07-09 09:54:27 +00:00
sevan
62a7145565 Opt to prefer OpenSSL from pkgsrc rather than a builtin version for all versions rather than just 10.7 or newer.
There is no good reason to opt for the builtin on the legacy release prior as they're unmaintained.
2016-07-08 21:23:57 +00:00
wiz
dd02618689 Be less verbose. 2016-07-07 12:01:22 +00:00
wiz
e3a74a47f5 Be less verbose. 2016-07-07 11:29:34 +00:00
wiz
4c15a3aebc Describe new duplicity options. 2016-07-07 08:36:02 +00:00
sevan
bc046352ab DragonFly BSD ships with GCC 5.x as the compiler, add its library location to _OPSYS_SYSTEM_RPATH 2016-06-29 13:37:19 +00:00
jaapb
8bf82f0dd4 Updated pkginstall framework to correct bug in findlib registration.
Discussed on packages@ and okayed by jperkin.
2016-06-25 13:52:28 +00:00
jaapb
c18ee77937 Added variables to package variables 2016-06-20 19:44:04 +00:00
wiz
e8ec446a6d Get rid of INSTALLATION_PREFIX. 2016-06-19 20:03:09 +00:00
wiz
5605293df9 Remove support for USE_CROSSBASE. 2016-06-19 18:01:58 +00:00
prlw1
be471adb13 Describe ecap option - eCAP is like ICAP (RFC 3507) 2016-06-17 16:01:32 +00:00
jaapb
5b9387d7eb Two fixes to the ocaml-findlib-register pkginstall fragment:
- set a sensible default for OCAML_FINDLIB_DIRS (and factorise out
  OCAML_SITELIBDIR)
- make it possible not to register any directory by setting
  OCAML_FINDLIB_REGISTER to no
2016-06-17 08:53:42 +00:00
mspo
9f870b7185 add ftp6 to binpkg_sites, at request of joerg, since cdn is ipv4 only 2016-06-16 18:28:45 +00:00
mspo
dd873a033d add ftp6 into the list of MASTER_SITE_BACKUP 2016-06-16 18:23:01 +00:00
mspo
1a0cbbdc8d set cdn.netbsd.org as the bin install site for netbsd 2016-06-16 00:14:55 +00:00
mspo
521ef20129 add cdn.netbsd.org to the top of MASTER_SITE_BACKUP 2016-06-16 00:13:38 +00:00
jperkin
c02e752f64 Change PKGSRC_USE_SSP to a quad option. The options are now:
"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-06-13 13:26:42 +00:00
rillig
077f4537d6 Improved documentation of show-var and show-vars. 2016-06-11 12:41:30 +00:00
markd
3d30e908bb In cwrappers case transform ${X11BASE} path after ${LOCALBASE} path
in case its a prefix of ${LOCALBASE}.
Fixes build of print/poppler-glib and others when using CWRAPPERS
on Linux with native X and ${X11BASE}=/usr
2016-06-09 02:38:34 +00:00
leot
69c74af7e6 Get rid of the XXX trying to provide a bit more information regarding
PKG_VERBOSE.

PKG_VERBOSE currently is mostly used consistently in order to pass the `-v'
option to various commands (FETCH_CMD, PATCH, plist/doc-compress,
pkg_delete(1)).
It is also used internally (and a bit less consistently) in other cases to
provide more information mostly useful only for debugging.

ok <bsiegert>
2016-06-06 15:13:24 +00:00
joerg
6b5fefdd15 Honour ALL_ENV in print-PLIST. 2016-06-03 14:32:30 +00:00
wiz
40b7c6735c Update URL to new pypi master site. 2016-06-01 12:40:06 +00:00
wiz
1cdbd2a052 Fix MASTER_SITES example. 2016-06-01 12:39:40 +00:00
wiz
8c393357d6 Remove dm-download02.mozilla.org, it doesn't resolve. 2016-05-29 12:17:53 +00:00
schnoebe
c84fde74b2 Add descriptions for fax and websocket. 2016-05-28 23:27:45 +00:00
leot
51abca7132 Add aslr mprotect pax paxctl' keywords to help help' target. 2016-05-27 08:33:00 +00:00
khorben
92db94d1e0 Correct the name of the user-settable variable
Noticed by wiz@, thanks!
2016-05-26 16:37:02 +00:00
khorben
169865dfeb Import mini-framework for paxctl(8) on NetBSD/{amd64,i386}
This allows setting flags for PaX on select binaries. Two new variables
are introduced for packages: NOT_PAX_ASLR_SAFE and NOT_PAX_MPROTECT_SAFE.
They both expect a list of binaries are known to not support PaX ASLR
and/or PaX MPROTECT, respectively.

"Please commit" wiz@
2016-05-26 16:03:04 +00:00
snj
bba3a64409 +geoclue 2016-05-18 22:48:08 +00:00
snj
0e2e0dbaef add libdrm 2016-05-18 22:24:53 +00:00
wiz
e3a623858d ftp.OpenBSD.org does not provide public ftp any longer, only http. 2016-05-17 09:28:06 +00:00
jperkin
3b01e58d8a Restore print-PLIST @pkgdir functionality. This was lost in the @dirrm
cleanup as the implicit print action was removed.
2016-05-10 16:54:05 +00:00
jperkin
11d02981ed Stop using the native texi2html on SunOS. It's not fully compatible
with what packages such as multimedia/ffmpeg2 expect, and as so few
packages have texi2html in USE_TOOLS it may be causing more problems
that it is worth to save a few dependencies.  PR#51113.
2016-05-10 08:54:49 +00:00
joerg
6c00682f76 Stop creating category symlinks in ${PACKAGES}, but keep All/ for now. 2016-05-09 00:07:23 +00:00
jaapb
365da8a4e1 Setting OCAML_USE_OASIS now automatically adds ocamlbuild as a build
dependency
2016-05-06 14:13:23 +00:00
jperkin
7f4b9e129e Handle MANZ for print-PLIST. 2016-05-04 11:17:41 +00:00
taca
1c8b6651cb Add description for sit and tuning PKG_OPTIONS used by bind910. 2016-05-02 13:29:19 +00:00
dholland
8ce9bb5192 Document afterstep option. 2016-05-01 19:35:48 +00:00
leot
cf2c59f74f Add hpnd to DEFAULT_ACCEPTABLE_LICENSES and *default_acceptable_licenses.
Discussed in tech-pkg@:
http://mail-index.netbsd.org/tech-pkg/2016/04/20/msg016755.html

Thanks to Memnon Anon!
2016-04-21 07:51:51 +00:00
ryoon
f5a6e41c04 Add some osdn.jp mirror sites 2016-04-17 09:10:02 +00:00
jperkin
901f82f6b8 Revert part of the MACHINE_ARCH cleanup that resulted in the Linux/x86_64
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-17 08:13:09 +00:00
jaapb
02746ce69d Added a ${RUN} to the UNPACK line for the ocaml-findlib-register script 2016-04-12 16:01:06 +00:00
jaapb
e712e0e4d8 Added a pkginstall fragment that takes over from ocaml-findlib-register (a
script included in the ocaml-findlib package) and removes the need to call
said script explicitly from PLIST.

Packages that use findlib will now automatically add directories that are
in OCAML_FINDLIB_DIRS (set by default to $(OCAML_SITELIBDIR)/${PKGBASE})
to the file ${PREFIX}/lib/ocaml/ld.conf. This behaviour can be disabled by
undefining OCAML_FINDLIB_REGISTER.
2016-04-12 15:52:29 +00:00
jperkin
283634a16c Re-arrange parsing order to fix various combinations of PKGMANDIR, MANZ,
and MKCATPAGES.
2016-04-11 12:29:53 +00:00
dbj
ed7710a502 the native soelim is gsoelim so default it as TOOLS_PLATFORM.gsoelim 2016-04-11 04:49:41 +00:00
dbj
dde82c09aa update PKG_{FAIL,SKIP}_REASON with += 2016-04-11 04:22:33 +00:00
joerg
639d5b402f Remove support for USE_DESTDIR=no. 2016-04-10 15:58:02 +00:00
joerg
738c342050 Adjust USRGROUP_PHASE handling for USE_DESTDIR=no removal. Update
documentation to reflect the pre-install option.
2016-04-10 15:33:42 +00:00
joerg
4287748b6e Always require the 2010 version of pkg_install to simplify things a bit. 2016-04-10 15:20:26 +00:00
joerg
bb6f5a8d35 Rewrite somewhat in light of the non-DESTDIR removal. 2016-04-10 15:15:45 +00:00
joerg
54362eeca1 Remove last glue for PKG_DESTDIR_SUPPORT=none. 2016-04-10 15:10:12 +00:00
joerg
af3ac5987c PKG_DESTDIR_SUPPORT=none is gone. 2016-04-10 15:09:26 +00:00
joerg
bfef30f0c8 Drop support for PKG_DESTDIR_SUPPORT=none. 2016-04-10 15:08:39 +00:00
richard
87d204ea41 add mtpz options to enable MTPZ support using libgcrypt 2016-04-09 10:12:24 +00:00
richard
6d539a4c87 Add two options:
libusb-1 - Enable USB access via libusb-1.
nautilus - Enable nautilus sub-menu option.
2016-04-09 05:26:26 +00:00
wiz
cf765f4607 Switch from pkg-config to pkgconf. 2016-04-08 13:12:33 +00:00
jperkin
13d4067905 Move handling for PKG_SUPPORTED_OPTIONS and PKG_SUGGESTED_OPTIONS as
OPSYSVARS to bsd.options.mk as they affect tests against PKG_OPTIONS
before bsd.pkg.mk is parsed.

Approved for commit during the freeze by agc@.
2016-03-23 11:50:01 +00:00
jperkin
3c2941b993 Since the MACHINE_ARCH cleanup, the bootstrap for i386-on-x86_64 Linux has
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-17 16:02:23 +00:00
markd
9cd5091c7b Add support for -isystem to legacy wrappers.
rewrite "-isystem dir" as "-isystem,dir"
  transform "-isystem,dir" in same ways as "-Idir"
  rewrite "-isystem,dir" back to "-isystem dir" in cmd-sink
2016-03-14 20:11:56 +00:00
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