Commit graph

9917 commits

Author SHA1 Message Date
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
rillig
7c3702e7d7 mk/haskell.mk: clean up _VARGROUPS section and unused variables 2020-07-01 15:07:25 +00:00
rillig
207c2f13df mk/haskell.mk: remove variable HASKELL_COMPILER, clean up documentation
There was only a single valid value for HASKELL_COMPILER, therefore the
variable was useless.  It only made the implementation more complicated
than necessary.
2020-07-01 14:58:43 +00:00
adam
a7f1f67f9e remove clang-static-analyzer option 2020-07-01 14:48:04 +00:00
rillig
488f9fbd90 show-all: fix typo in variable name
The width only applies to a single group, not to several or even all
groups.
2020-07-01 09:13:12 +00:00
rillig
d10b39c41d mk/buildlink3: increase width of varnames in show-all-bl3
The buildlink3 variable names are quite long.  So long that using the
default column width of 24 characters, most of the variable values are
not aligned.  In this case, it makes sense to shift them all to the right
a bit.
2020-07-01 07:39:52 +00:00
rillig
ab8c506b0b mk/haskell.mk: regenerate PLIST if it is outdated
Now that haskell.mk distinguishes between plain and outdated PLIST files,
this is possible again.  When haskell.mk knew only missing and outdated,
this was still ambiguous and therefore skipped.
2020-06-29 22:00:58 +00:00
rillig
c8f6fed1ea mk/haskell.mk: fix PLIST status detection
As seen in devel/hs-hashable/PLIST r1.1, which listed only the
package-description but not the package-id.
2020-06-29 20:51:24 +00:00
rillig
a5039d7c3c mk/haskell.mk: only add PLIST_SUBST and PRINT_PLIST_AWK if useful
The PLIST_SUBST and PLIST_PRINT_AWK definitions for Haskell library
packages are only useful if the package-description file exists.  If
that file is absent though, these are skipped.

The test whether the file exists is made as late as possible since that
file does not yet exist at the point where the package Makefile is
parsed.

This also affects the show-all-haskell target, which only shows these
values after the install phase.  This is not perfect but good enough for
practical cases.
2020-06-29 20:30:13 +00:00
rillig
aeff688767 mk/haskell.mk: fix PLIST status detection
Before, running "HS_UPDATE_PLIST=yes bmake update" in wm/xmonad did not
apply the proper substitutions to the generated PLIST file since the
PLIST file was created empty during the GENERATE_PLIST command, and that
empty PLIST file changed the status to "plain" instead of "missing".
Because of that, the HS_INTF and related placeholders were not defined.

The 2 conditions for the status "missing" had to be written in separate
.if clauses because of a bug in bmake that was introduced in 2015 and
will be fixed with the next bmake update.  For further details, see
src/usr.bin/make/unit-tests/cond-short.mk.
2020-06-29 18:07:45 +00:00
rillig
c55271b9e5 mk/subst.mk: activate the SUBST no-op check again by default
It had been switched off to not affect packages in the stable branch
2020Q2.  Now starts the last round where it is possible to disable this
check.  After 2020Q3, all SUBST blocks must either find their patterns or
be explicitly marked as potential no-ops.  This will help to find
outdated SUBST blocks.
2020-06-29 18:04:13 +00:00
ryoon
41860cdb52 mk/defaults: Add option for apache24's mod_md 2020-06-29 13:59:29 +00:00
ryoon
24a47a57af mk: Add db18 to Berkeley DB framework 2020-06-29 13:36:50 +00:00
jperkin
167401291e mk: Handle pdksh issue with "set -e" in for loop.
With our current version of pdksh, a "false && something" construct under
"set -e" conditions will continue as it does with other shells, but if the
construct is within a for loop then it exits, causing failures in the
substitution code.  An explicit "|| true" is necessary to avoid this.

Approved during the freeze by wiz.
2020-06-25 08:45:00 +00:00
schmonz
3948870bde Retire 'djbware-errno-hack' and associated options.mk cleverness.
Instead:

1. Package makefiles including their own options.mk
2. Packages say "SUBST_CLASSES+=djberrno" to get the hack, if needed
3. Packages adjust SUBST_FILES.djberrno, if needed

Should fix bulk build failures due to multiple inclusions of options.mk
and/or incorrect definitions of DJB_ERRNO_HACK.

Approved during the freeze by wiz@.
2020-06-25 05:42:36 +00:00
nia
4b4cfb3fac mk: Add luajit option description 2020-06-24 13:29:23 +00:00
rillig
c842ae6257 mk/haskell.mk: fix PLIST generation for Haskell packages
The package textproc/hs-cgrep does not install a Haskell library.  This
was unexpected to mk/haskell.mk, which generated an obviously wrong PLIST
file for that package, and for 3 other packages.

Noticed by wiz.
2020-06-21 22:21:02 +00:00
taca
fe782b891f mk/defaults/options.description: rename two options
Rename ecap and esi to squid-ecap and squid-esi.
2020-06-21 16:07:06 +00:00
wiz
e597787c88 mk: do not check vulnerability when just fetching distfiles
This is intended to reduce the log output on ftp.NetBSD.org when
fetching all distfiles.

Also, we call the target in basically every step of package creation
(extract, patch, configure, build, install, package) - perhaps we should trim
this down some more.
2020-06-18 17:05:55 +00:00
rillig
548e02a834 mk/subst.mk: SUBST_NOOP_OK defaults to yes again
There are still some packages that fail the strict SUBST check.  These
packages should nevertheless be built using the default pkgsrc
configuration, at least in the stable 2020Q2 branch.  After 2020Q2 has
been switched, the strict SUBST checks will be activated again in the
default configuration.
2020-06-16 18:13:54 +00:00
ryoon
c963102a49 mk/configure: Replace SET(CMAKE_MODULE_PATH... like 'set' too.
This will break print/scribus-qt4.
It uses CMAKE_MODULE_PATH as not a directory list.
It is wrong assumption.
2020-06-13 15:11:11 +00:00
rillig
82d30f4f85 mk/build/build.mk: use SH for the shell in build-env
Providing a realistic build environment has priority over having a
convenient shell with auto-completion and all the likes.
2020-06-12 17:33:23 +00:00
rillig
94077fc887 mk/subst.mk: remove unnecessary SUBST_VARS definition
This is a package-settable variable, and if a package leaves it
undefined, "bmake show-all-subst" should show exactly this.
2020-06-11 20:13:22 +00:00
rillig
97dcdb49ce mk/subst.mk: document the unspecified application order
To avoid bmake warnings because of duplicate class names, the :O:u
modifier had been added in r1.66 on 2020-03-21.  This had the side effect
that the subst classes are now applied in alphabetical order instead of
declaration order.

For this to actually matter, there must be a file that is affected by two
different subst classes and in which the substitutions depend on each
other or prevent each other.  Chances for that are pretty low.

The order is intentionally documented as being unspecified, to allow for
future modifications, just in case that a bmake variable modifier is
invented that filters for duplicates without requiring the duplicates to
be adjacent to each other.  In that situation, it would be nicer to
switch back to declaration order instead of alphabetical.
2020-06-11 19:38:40 +00:00
rillig
86d21b53d7 mk/subst.mk: fix local variable names
These variables don't record whether a file is changed but instead
whether a pattern was found.
2020-06-11 19:27:56 +00:00
rillig
1fb832cc6e mk/subst.mk: always remove temporary file
Fixes PR pkg/55364.
2020-06-11 18:04:41 +00:00
leot
fa8cb992c2 mk/plist: Add EARLY_PRINT_PLIST_AWK
EARLY_PRINT_PLIST_AWK is like PRINT_PLIST_AWK but operates before the
file/directory lists are sorted.

Discussed on tech-pkg@ mainly to address `print-PLIST' order problems for
Python 3 packages:

 <https://mail-index.NetBSD.org/tech-pkg/2020/05/27/msg023249.html>
2020-06-10 16:06:09 +00:00
rillig
12d982ecf7 bsd.buildlink3.mk: add ABI_DEPENDS and API_DEPENDS to show-all-bl3 2020-06-07 17:56:13 +00:00
rillig
e6b0d53b3d mk/check/check-portability.mk: remove leaked debug code
Thanks jperkin@.
2020-06-07 10:42:04 +00:00
rillig
2539de7edb mk/configure/replace-interpreter.mk: clean up show-all-interp variables 2020-06-07 06:10:36 +00:00
rillig
ffb8ba6d5f mk/check/check-portability.mk: use predefined tools
Just in case any of these tools defines some command line arguments. The
correct path had already been used before since both env and sh are added
to USE_TOOLS in bsd.pkg.mk.
2020-06-07 06:05:35 +00:00
rillig
d2050ec11e mk/bsd.prefs.mk: add PKG_DBDIR to show-all-dirs 2020-06-07 05:59:30 +00:00
rillig
c7940cfb7f mk/.../metadata.mk: properly clean up loops after removing ""
There is no evidence that any shell needs the empty string literal in
'for i in "" $var' to loop over a simple variable.  This would only be
necessary if the shell code were generated by a preprocessor such as
bmake or autoconf, and the list of items might end up empty.  In such a
case, the empty string literal prevents to generate 'for i in ; do',
which would produce a syntax error.
2020-06-07 04:41:58 +00:00
rillig
b2a99dcb17 mk/bsd.options.mk: remove redundant assignment to PKG_OPTIONS
This assignment has popped up various times in the pkglint output, even
though it is defined in the infrastructure and not in a specific package.
Since there is no need to have this duplicate assignment, it is removed.
2020-06-06 19:09:37 +00:00
rillig
ff1cb47d6f mk/bsd.options.mk: document variables in the canonical order 2020-06-06 19:02:55 +00:00
rillig
16e188625b mk/subst.mk: fix wrong SUBST failure in mail/policyd-weight
The general rule is that a SUBST_SED that contains _any_ identity
substitution may leave files unmodified, no matter if there are other
substitutions as well.
2020-06-06 13:17:34 +00:00
rillig
cd76433a09 mk/.../metadata.mk: fix reference to undefined shell variable
When RUN includes the -u shell option (see the pkgsrc guide, section
bulk.var.shvar), there is a stray "requires: parameter not set" error.

This error doesn't make the build fail immediately since it is on the
left-hand side of a pipe, where the exit status is ignored.  It would
fail if the shell for bmake were set to bash and its option "pipefail"
were enabled.
2020-06-06 09:33:56 +00:00
rillig
f374c71565 mk, doc: remove obsolete bulk-install and bulk-package targets 2020-06-05 17:05:22 +00:00
gdt
dba3f3a134 subst.mk: Move hint about find to package-settable section 2020-06-03 10:56:46 +00:00
gdt
dc7a002470 subst.mk: Give hint abotu SUBST_NOOP_OK
Note that a typical reason to need this is using find to generate a
list of files.
2020-06-02 23:37:25 +00:00
jperkin
25bb928af5 mk: bmake cannot compare non-integers numerically.
Just use an empty() match instead.
2020-06-02 16:22:40 +00:00
sjmulder
46895896ea mk/defaults: Add 'mouse' option
Used already in sysutils/nnn but forgot to commit options.description.
2020-06-02 10:38:26 +00:00
rillig
c42fb662dc mk/compiler.mk: check for too late GCC_REQD and USE_LANGUAGES
For USE_LANGUAGES there is already a pkglint warning, but for GCC_REQD it
is missing.  It's better to have this check directly in the
infrastructure since it is more reliable.

This check is disabled by default, to not cause any new breakage.
It should be enabled in bulk builds.
2020-06-02 06:58:13 +00:00
gutteridge
79f41f7786 options.description: add "keyring" option 2020-05-31 23:48:00 +00:00