summaryrefslogtreecommitdiff
path: root/mk
AgeCommit message (Collapse)AuthorFilesLines
2020-10-20mk/compiler/gfortran.mk: bump default from gcc9 to gcc10 on current aarch64tnn1-1/+6
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-20Add NetBSD/aarch64eb support.rin1-0/+1
Patch provided by ryo@. No objections when proposed on tech-pkg@.
2020-10-19Belatedly add default TINYDYN_USER.schmonz1-1/+6
2020-10-18postgresql13: added version 13.0adam1-3/+12
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-12math/blas, math/lapack: Install interchangeable BLAS systembacon1-0/+108
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-10libusb1: Fix PR pkg/54903triaxx2-1/+85
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-10mk: Stop using XCode binaries on Big Sur.jperkin1-2/+6
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-09mk: Exclude /System/Library on Big Sur too.jperkin2-5/+9
As expected this is necessary, as early as requring the CoreFoundation framework for devel/gettext-lib.
2020-10-09mk: Set _OPSYS_LIB_DIRS to the SDK directory on Big Sur.jperkin1-3/+8
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-09mk: Handle missing system libraries on Big Sur.jperkin4-5/+30
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-08Add OpenAL to the SUSE 13.1 Linux emulation subsystemnia1-1/+2
2020-10-08Describe new(ish) options:he1-0/+2
doh -- Enable DNS-over-HTTPS support. softhsm2 -- Enable SoftHSM version 2 for key management.
2020-10-07checksum.awk: Avoid warnings with newer gawk.jperkin1-3/+3
Reported by Jörn Clausen in PR#55581.
2020-10-06mk/subst.mk: remove SUBST_NOOP_OKrillig1-19/+12
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-06mk: fix undefined variables for current make running in -dL moderillig2-4/+6
In lint mode, NetBSD's make is stricter about undefined variables. In conditions, the function arguments must be fully defined.
2020-10-03Describe 'djbdns-listenmultiple' and define default DJBDNS_IP_SEPARATOR.schmonz2-1/+5
2020-09-21Xcode 12 (or its associated Command Line Tools) ships with default-onschmonz1-1/+11
-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-12show-all: use descriptive variable namesrillig1-29/+29
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-12show-all: use separator for long rows of backslashesrillig1-5/+5
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-12show-all: fix escaping of '$' in variable modifiersrillig1-7/+4
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-12mk/plist: fail fast on programming mistakerillig1-1/+2
2020-09-12bsd.build-vars.mk: describe MAKE_FLAGS in details, rewrite and reformatrillig1-12/+24
2020-09-12options.description: add several options offered by ffmpeg4gutteridge1-0/+3
2020-09-04mk/platform/QNX.mk: Add ACCEPT_INFERIOR_RM_PROGRAM=yesjs1-0/+3
2020-09-04mk/platform/QNX.mk: Add /usr/qnx650 to _OPSYS_LIB_DIRSjs1-1/+1
2020-09-04options.description: fix a couple of typosgutteridge1-1/+1
2020-09-04options.description: addition of py-gamegutteridge1-0/+1
2020-09-02Use http with ftp.funet.fikim1-5/+5
2020-09-02Refresh the "Finland" sectionkim1-11/+6
2020-09-02mk/compiler: Support GCC_REQD=9 or 10ryoon1-4/+71
A pert of PR pkg/55637.
2020-09-01mk/defaults: Add heif option descriptionryoon1-0/+1
2020-08-27mk: Remove an unwanted NetBSD RCS tag.jperkin1-2/+2
2020-08-27mk: Rewrite the checksum script in awk.jperkin4-198/+315
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-21mk/platform: Update Darwin version listsjmulder1-10/+13
2020-08-21mk: describe notmuch option.wiz1-0/+1
2020-08-21Add description for `fido' option.riastradh1-0/+1
2020-08-18Add 0-clause-bsd to DEFAULT_ACCEPTABLE_LICENSES.riastradh1-2/+2
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-12Add CMAKE_INSTALL_NAME_DIR, a package-settable variable containing theschmonz1-2/+7
destination directory to install shlibs. It's used on macOS by install_name_tool(1). The default is ${PREFIX}/lib.
2020-08-11Up to 10.12.6 at least, the Mac OS X linker, does not support "-no_warn_inits".hauke1-1/+2
2020-08-09Add URLs to the MASTER_SITE_R_CRAN listbrook1-1/+7
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-04mk/fetch/fetch.mk: add keywords for "bmake help"rillig1-1/+2
2020-08-04mk/help: fix help parser for variable names followed by commarillig1-4/+4
Seen in mk/fetch/fetch.mk for FETCH_USE_IPV4_ONLY.
2020-07-29Allow use of openjdk11 on NetBSD/aarch64.rjs1-2/+3
2020-07-28Complete import of bareos - a fork of bacula 5.2 around 2010 providingkardel1-0/+1
LTO hardware encrytion, bandwidth limitation, data replication across sites and more.
2020-07-27mk/pgsql: Change default to 12gdt1-2/+2
As discussed on foo-pkg at some length, with no significant objections.
2020-07-13mk: remove backwards compatibility for pkg_install from before 2010wiz1-8/+3
2020-07-08mk: Skip unnecessary dirs for CTF/debug conversion.jperkin2-5/+6
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-06revert metadata.mk:1.24, keep passing useless flag -U.maya1-2/+2
It wasn't useless in older pkg_create, as used by netbsd-7. Reported by sborrill.
2020-07-04mk/misc/show.mk: fix reference to further documentationrillig1-3/+3
2020-07-01mk/haskell.mk: clean up _VARGROUPS section and unused variablesrillig1-10/+22