Commit graph

9960 commits

Author SHA1 Message Date
otis
730ac283b1 Set MYSQL_VERSION from within mysql.buildlink3.mk simialrly
to what pgsql.buildlink3.mk does for PostgreSQL.

And while here, document PGSQL_VERSION as variable set by
pgsql.buildlink3.mk
2020-10-20 21:53:31 +00:00
tnn
2f1875f990 mk/compiler/gfortran.mk: bump default from gcc9 to gcc10 on current aarch64
lang/gcc8 has patches for NetBSD/aarch64 and lang/gcc10 has support mostly
upstreamed. Nobody seems interested in fixing gcc9, but the pkgsrc
logic defaults to it when the system compiler is GCC 9 which leads to
broken fortran packages. Let's just skip forward to gcc10.
2020-10-20 19:35:07 +00:00
rin
842c504e92 Add NetBSD/aarch64eb support.
Patch provided by ryo@.
No objections when proposed on tech-pkg@.
2020-10-20 10:40:19 +00:00
schmonz
bfd3541400 Belatedly add default TINYDYN_USER. 2020-10-19 07:10:30 +00:00
adam
8ecbf81f41 postgresql13: added version 13.0
PostgreSQL 13 contains many new features and enhancements, including:
* Space savings and performance gains from de-duplication of B-tree index entries
* Improved performance for queries that use aggregates or partitioned tables
* Better query planning when using extended statistics
* Parallelized vacuuming of indexes
* Incremental sorting
2020-10-18 09:24:02 +00:00
bacon
87edcb24b1 math/blas, math/lapack: Install interchangeable BLAS system
Install the new interchangeable BLAS system created by Thomas Orgis,
currently supporting Netlib BLAS/LAPACK, OpenBLAS, cblas, lapacke, and
Apple's Accelerate.framework.  This system allows the user to select any
BLAS implementation without modifying packages or using package options, by
setting PKGSRC_BLAS_TYPES in mk.conf. See mk/blas.buildlink3.mk for details.

This commit should not alter behavior of existing packages as the system
defaults to Netlib BLAS/LAPACK, which until now has been the only supported
implementation.

Details:

Add new mk/blas.buildlink3.mk for inclusion in dependent packages
Install compatible Netlib math/blas and math/lapack packages
Update math/blas and math/lapack MAINTAINER approved by adam@
OpenBLAS, cblas, and lapacke will follow in separate commits
Update direct dependents to use mk/blas.buildlink3.mk
Perform recursive revbump
2020-10-12 21:51:57 +00:00
triaxx
6ce8724faa libusb1: Fix PR pkg/54903
pkgsrc changes:
---------------
  * Remove the pkgconfig file generation since the version of libusb1 cannot
    be obtained by parsing LIBUSB_API_VERSION from libusb.h (e.g. FreeBSD
    provides 0x01000102 for 1.0.13 and Arch provides 0x01000107 for 1.0.23).
  * At least FreeBSD, Debian and Arch provides a libusb-1.0.pc file for
    their native implementation. Link this file to ${BUILDLINK_DIR}.
  * Add logic in mk/buildlink3 to find pkgconfig files in common pkgconfig
    directories (for at least FreeBSD, Debian and Arch).
2020-10-10 14:17:02 +00:00
jperkin
381af86204 mk: Stop using XCode binaries on Big Sur.
These no longer support being executed via a symlink, failing with errors
such as:

  xcode-select: Failed to locate 'gmake', and no install could be requested

This breaks the entire .tools/bin directory, so we just have to avoid them
and use tools from pkgsrc instead.

It's likely a lot more will need to be added to this list, but this is
enough to get devel/cmake building at least.
2020-10-10 09:31:50 +00:00
jperkin
7fca306169 mk: Exclude /System/Library on Big Sur too.
As expected this is necessary, as early as requring the CoreFoundation
framework for devel/gettext-lib.
2020-10-09 20:18:30 +00:00
jperkin
cc608c9260 mk: Set _OPSYS_LIB_DIRS to the SDK directory on Big Sur.
This is required for find-libs.mk to continue detecting the presence of
libraries supported by the system.  It's definitely not ideal, and only
still works because Apple happens to ship .tdb files for each library, and
these are found via the current "lib${_lib_}.*" glob.

Patch taken from sjmulder@, I only limited it to Big Sur for now in case
there are issues using the SDK directory on older releases.
2020-10-09 17:43:48 +00:00
jperkin
4d7409c2ae mk: Handle missing system libraries on Big Sur.
The new release of macOS removes system libraries from the file system, only
providing access to them via a linker cache and dlopen().  This obviously
breaks many assumptions about how libraries work on Unix systems, and so we
unfortunately need to cripple various checks when running on those systems.

Introduce DARWIN_NO_SYSTEM_LIBS which, when defined, will trigger alternate
behaviour in the infrastructure.  Currently this is in two places:

  * In CHECK_SHLIBS, skip any path beginning with /usr/lib.

  * In registered package metadata, any path beginning with /usr/lib is
    removed from REQUIRES.

The former fixes all package builds, while the second will be necessary for
package managers such as pkgin, as they will no longer be able to verify that
those files are available on the target system.

This is obviously a gross hack, and removes our ability to ensure that the
target system is suitable for the packages we are attempting to install, but
Apple have left us with no alternative, and users will unfortunately be left
to find out at runtime instead.

It's likely this will need to be extended to /System/Library paths too, but
this is required first to actually get packages building before we can start
running bulk builds.
2020-10-09 16:00:16 +00:00
nia
a6c232727e Add OpenAL to the SUSE 13.1 Linux emulation subsystem 2020-10-08 10:42:48 +00:00
he
cac2aab044 Describe new(ish) options:
doh		-- Enable DNS-over-HTTPS support.
softhsm2	-- Enable SoftHSM version 2 for key management.
2020-10-08 07:29:59 +00:00
jperkin
bd6a60f14a checksum.awk: Avoid warnings with newer gawk.
Reported by Jörn Clausen in PR#55581.
2020-10-07 18:09:52 +00:00
rillig
28065d1fcb mk/subst.mk: remove SUBST_NOOP_OK
This means that from now on, there is no global setting to switch off
this redundancy check.  Individual SUBST classes can still set their own
SUBST_NOOP_OK.<id> in order to ignore no-op filename patterns.

The current bulk builds do not show any build failures that are caused
by this, which means that really almost all packages have been migrated.
2020-10-06 17:48:02 +00:00
rillig
c44518e90f mk: fix undefined variables for current make running in -dL mode
In lint mode, NetBSD's make is stricter about undefined variables.  In
conditions, the function arguments must be fully defined.
2020-10-06 17:36:50 +00:00
schmonz
870ab75c2b Describe 'djbdns-listenmultiple' and define default DJBDNS_IP_SEPARATOR. 2020-10-03 13:02:36 +00:00
schmonz
36b0b26e17 Xcode 12 (or its associated Command Line Tools) ships with default-on
-Werror=implicit-function-declaration, which will be great someday when
we're ready for it. Until then, on macOS, detect this situation and tell
the cc wrapper to prepend -Wno-error=implicit-function-declaration.

Taking mail/qmail as our example, this fixes the build on Catalina
with "Apple clang version 12.0.0 (clang-1200.0.32.2)". Adding
-Werror=implicit-function-declaration to CPPFLAGS or CFLAGS (in
mk.conf or on the command line) re-fails the build, as expected, with
a pile of "error: implicit declaration of function". Also as expected,
a full -Werror fails earlier on one of the many other problems with
qmail's code.

For clang on non-macOS platforms, no change.

clang-and-wrapper-ok: joerg@
during-the-freeze-ok: gdt@
2020-09-21 13:09:21 +00:00
rillig
fb1dd6fb9d show-all: use descriptive variable names
The show-all code is mostly line noise, therefore it is all the more
important to provide at least a few hints to a potential reader, by
using descriptive variable names for the iteration variables:

	g => grp
	c => cat
	v => var
	w => width
	x => word
2020-09-12 21:27:15 +00:00
rillig
40c4b60f02 show-all: use separator for long rows of backslashes
I had been confused by the printf commands since some of them used '\n'
and some used '\\\n', which seemed as if there were some quoting issue
that would make it necessary to double the backslashes.

This assumption was wrong though.  The printf commands for the
single-valued variables use the normal '\n', while the lines for the
multi-valued variables end with a real backslash in the output, to
mimick the continuation lines in makefiles.

As a hint that the '\\\n' means backslash + newline, add single quotes
between the two characters.
2020-09-12 21:00:10 +00:00
rillig
b234c33c38 show-all: fix escaping of '$' in variable modifiers
The previous code relied on the exact implementation of Var_Parse in
bmake, and that it does not issue any error messages in case of $$ in
variable modifiers.

In variable modifiers, a $ is escaped using \$, not $$, as documented in
the manual page.

At the time when I wrote the previous version with the _SHOW_ALL.d4 and
_SHOW_ALL.d8 hacks, I did not know about the backslash escaping rule,
and I just added dollar signs until everything seemed to work.  I
couldn't explain why it worked though, which is not surprising since the
code was using an undocumented implementation flaw of bmake.
2020-09-12 20:48:13 +00:00
rillig
245e6ba7ed mk/plist: fail fast on programming mistake 2020-09-12 06:55:08 +00:00
rillig
7ee8a6b95a bsd.build-vars.mk: describe MAKE_FLAGS in details, rewrite and reformat 2020-09-12 06:51:15 +00:00
gutteridge
17ea8d78c2 options.description: add several options offered by ffmpeg4 2020-09-12 03:18:30 +00:00
js
8f9699c585 mk/platform/QNX.mk: Add ACCEPT_INFERIOR_RM_PROGRAM=yes 2020-09-04 19:44:24 +00:00
js
32196b411d mk/platform/QNX.mk: Add /usr/qnx650 to _OPSYS_LIB_DIRS 2020-09-04 19:36:30 +00:00
gutteridge
cca85ce220 options.description: fix a couple of typos 2020-09-04 01:15:42 +00:00
gutteridge
fed75cdfa9 options.description: addition of py-game 2020-09-04 01:14:24 +00:00
kim
b3f2f0abe1 Use http with ftp.funet.fi 2020-09-02 22:16:48 +00:00
kim
c4c3218df0 Refresh the "Finland" section 2020-09-02 20:32:37 +00:00
ryoon
e00f3c4739 mk/compiler: Support GCC_REQD=9 or 10
A pert of PR pkg/55637.
2020-09-02 16:16:43 +00:00
ryoon
aebad2b83b mk/defaults: Add heif option description 2020-09-01 12:21:28 +00:00
jperkin
d26e851380 mk: Remove an unwanted NetBSD RCS tag. 2020-08-27 11:56:38 +00:00
jperkin
dc189ce30d mk: Rewrite the checksum script in awk.
The previous shell script version's runtime was quadratic against the
number of distfiles to verify.  Historically this has not been an issue,
with usually only a handful of files per package.  However, with the
introduction of Go modules the number of distfiles used by a single
package can be very high.

For example, in an upcoming update of www/grafana to version 7.1.5, the
number of GO_MODULE_FILES is 821.  Running 'bmake checksum' takes:

  real    18m20.743s
  user    17m27.975s
  sys     0m49.239s

With the awk code, this is reduced to a far more sensible:

  real    0m4.330s
  user    0m3.241s
  sys     0m0.875s

The script has been written to emulate the previous version precisely,
preserving the same output and error messages and supporting all of its
behaviour, with the one exception that previous exit values of 128 have
been changed to 3, in order to avoid any potential signed 8-bit issues.

The one change in the pkgsrc infrastructure is that the mk/fetch/fetch
script no longer sets a working default value for ${CHECKSUM}.  This is
not a problem in a pkgsrc environment as all of the required variables
are set correctly, but if there happen to be any users who are using
this script in a standalone environment, they will need to set it
accordingly.  This was probably required in many situations previously
anyway, as none of the script's environment variables were set, and
trying to support this would be fragile at best.
2020-08-27 11:45:45 +00:00
sjmulder
55958d5bab mk/platform: Update Darwin version list 2020-08-21 21:29:16 +00:00
wiz
c2bc74e978 mk: describe notmuch option. 2020-08-21 14:55:37 +00:00
riastradh
aaabb1ab41 Add description for `fido' option. 2020-08-21 01:51:16 +00:00
riastradh
6ad068fca8 Add 0-clause-bsd to DEFAULT_ACCEPTABLE_LICENSES.
This is OSI-approved open source:

https://opensource.org/licenses/0BSD

Omitted from license.mk when introduced only because a freeze was on:

https://mail-index.netbsd.org/tech-pkg/2019/12/22/msg022374.html
2020-08-18 20:18:32 +00:00
schmonz
0b38123be9 Add CMAKE_INSTALL_NAME_DIR, a package-settable variable containing the
destination directory to install shlibs. It's used on macOS by
install_name_tool(1). The default is ${PREFIX}/lib.
2020-08-12 14:10:11 +00:00
hauke
b9d2c53c56 Up to 10.12.6 at least, the Mac OS X linker, does not support "-no_warn_inits". 2020-08-11 12:45:54 +00:00
brook
fb1eef408e Add URLs to the MASTER_SITE_R_CRAN list
At some point CRAN added the https protocol to its repositories, but
this was never reflected in MASTER_SITE_R_CRAN.  Add analogues for
all the http sites with responsive https servers.
2020-08-09 16:50:13 +00:00
rillig
6fb4f703ff mk/fetch/fetch.mk: add keywords for "bmake help" 2020-08-04 21:54:46 +00:00
rillig
10ce0dbeb1 mk/help: fix help parser for variable names followed by comma
Seen in mk/fetch/fetch.mk for FETCH_USE_IPV4_ONLY.
2020-08-04 21:46:44 +00:00
rjs
6e897e40af Allow use of openjdk11 on NetBSD/aarch64. 2020-07-29 21:42:30 +00:00
kardel
e285ded710 Complete import of bareos - a fork of bacula 5.2 around 2010 providing
LTO hardware encrytion, bandwidth limitation, data replication across
sites and more.
2020-07-28 06:42:44 +00:00
gdt
c05ad132ea mk/pgsql: Change default to 12
As discussed on foo-pkg at some length, with no significant
objections.
2020-07-27 00:17:12 +00:00
wiz
e92116bd91 mk: remove backwards compatibility for pkg_install from before 2010 2020-07-13 20:25:57 +00:00
jperkin
7880b72e99 mk: Skip unnecessary dirs for CTF/debug conversion.
There won't (or at least should never!) be any files under share/ or man/ that
require conversion for CTF or debug support, so set sensible defaults for both
CTF_FILES_SKIP and STRIP_FILES_SKIP.  Further additions are welcome.

While here rearrange the ordering of the debug skips to match CTF and deliver
a small performance improvement by avoiding unnecessary file tests.

Combined, these reduce the runtime for "make install-ctf install-strip-debug"
in lang/rust down from wall/user/sys 10m33s/2m34s/9m30s to 1m13s/0m46s/1m4s.
2020-07-08 12:37:13 +00:00
maya
a53780f17e revert metadata.mk:1.24, keep passing useless flag -U.
It wasn't useless in older pkg_create, as used by netbsd-7.
Reported by sborrill.
2020-07-06 18:29:11 +00:00
rillig
e806a92e54 mk/misc/show.mk: fix reference to further documentation 2020-07-04 18:08:35 +00:00