Commit graph

9070 commits

Author SHA1 Message Date
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
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
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
richard
f373158641 Make sure FAKEHOMEDIR is created when WRKDIR is.
Add fgrep to default USE_TOOLS for good measure.
2015-12-13 06:05:25 +00:00
jperkin
454f6fae69 Perform interpreter sed(1) check with LC_ALL=C, avoids failures on newer
Darwin releases with "sed: RE error: illegal byte sequence".
2015-11-27 12:45:04 +00:00
jperkin
7002b040bb Remove mk/find-prefix.mk and its usage from the mk infrastructure.
The find-prefix infrastructure was required in a pkgviews world where
packages installed from pkgsrc could have different installation
prefixes, and this was a way for a dependency prefix to be determined.

Now that pkgviews has been removed there is no longer any need for the
overhead of this infrastructure.  Instead we use BUILDLINK_PREFIX.pkg
for dependencies pulled in via buildlink, or LOCALBASE/PREFIX where the
dependency is coming from pkgsrc.

Provides a reasonable performance win due to the reduction of `pkg_info
-qp` calls, some of which were redundant anyway as they were duplicating
the same information provided by BUILDLINK_PREFIX.pkg.
2015-11-25 13:05:47 +00:00
jperkin
266de5d44b Do the "defined && !empty" dance for NetBSD 5 make. 2015-11-24 09:41:20 +00:00
mef
5808390ba6 Fix typo in comment line (three -> two) 2015-11-23 00:49:26 +00:00
richard
9537608068 PR pkg/47404
wrapper should convert '--rpath' to '-rpath', fixing pysvn as well as
many other packages inadvertently using double-dash form of rpath.
2015-11-20 05:49:24 +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
mef
50f7fae790 Adding wxGTK.mk, main purpose for migration to wxGTK30 from wxGTK28
for the memoent:
  Because multiple versions of wxGTK cannot currently coexist, the
strategy is to use a single version, with each package building with
it if possible and failing otherwise.
Thanks gdt@ for comments and corrections.
2015-11-17 13:42:35 +00:00
jperkin
c2fe79eceb Add support for CHECK_WRKREF_EXTRA_DIRS to check-shlibs. If "extra" is
listed in CHECK_WRKREF then these directories will added to the checks
for rpath references.
2015-11-16 17:53:29 +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
leot
aff1d75674 Fix a typo in a comment. 2015-11-08 03:21:46 +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
sevan
93d320158c With OpenBSD/amd64 & Bitrig/amd64 switched to using MACHINE_ARCH=x86_64,
amd64 no longer needs to be accounted for specifically.
Remove redundant references.


Reviewed by wiz@
2015-11-07 20:00:19 +00:00
sevan
4de02a05c5 Add the necessary logic for setting Bitrig/amd64 to Bitrig/x86_64.
Switch to using arch(1) to populate $LOWER_ARCH on Bitrig

Reviewed by wiz@
2015-11-07 19:53:49 +00:00
sevan
266cff67cd Add the necessary logic for setting OpenBSD/amd64 to OpenBSD/x86_64.
Reviewed by wiz@
2015-11-07 13:35:44 +00:00