Commit graph

9536 commits

Author SHA1 Message Date
maya
54a4b19da8 Tolerate uppercase .TTF (for uralic-ttf) and do a case-insensitive compare
use find -print | xargs to avoid hitting find limits.

Thanks leot for lots of help figuring out why some packages were failing.
2019-04-04 10:27:35 +00:00
maya
66557204a2 Add a generic fonts.mk makefile fragment.
Reviewed by rillig in
http://mail-index.netbsd.org/tech-pkg/2019/03/05/msg020895.html

I am only adding TTF and OTF handling because I don't know enough about
the other font formats. :)
2019-04-04 07:34:11 +00:00
rillig
fc81f83e6e mk/configure: allow strict option checking for GNU configure scripts
When a GNU configure script is run with unknown --enable, --disable,
--with or --without options, it doesn't fail but just prints a warning.
This hides outdated package definitions that may still pass options that
have been removed already.

See https://mail-index.netbsd.org/pkgsrc-users/2019/04/02/msg028272.html
for a recent case.

The default behavior doesn't change. After a period of testing this new
check, the check is expected to become enabled by default so that future
problems like this are prevented.
2019-04-03 19:10:26 +00:00
rillig
3378b74ea0 mk/pkgformat: add show-all-depends target 2019-04-03 18:38:16 +00:00
rillig
119b552796 mk/tools/replace.mk: take versions of FLEX_REQD into account
If a package had said FLEX_REQD=1000.0, the actual dependency had still
been flex>=2.5.4. Now all version numbers from FLEX_REQD are taken into
account, too.
2019-04-03 18:37:24 +00:00
ryoon
2d98c3f039 Add openjdk-bin support 2019-03-26 21:05:15 +00:00
rillig
81a41d0b94 mk/tools: correctly quote arguments in the tool wrapper log
Before, the tool arguments were written to the log as plain strings. Now
the arguments are properly quoted, which makes it possible to replay the
commands by copying them from the .work.log file.

This only affects tools that are shell builtins (echo, true, false), get
additional arguments (mkdir -p) or define a custom TOOLS_SCRIPT
(pkg-config, to set an environment variable; or autotools). Tools that
are symlinked to the real tool are not affected.

The calls to the compiler are already properly logged since cwrappers
takes care of that. This commit therefore makes the log entries for the
compilers and the other tools more similar.
2019-03-24 11:29:19 +00:00
rillig
575f219e37 mk/tools: fix quoting when logging tool invocations
When a package or the infrastructure defined a tool with custom
TOOLS_ARGS or TOOLS_SCRIPT containing special characters, these could
lead to unintuitive interactions at the time when that tool invocation
was logged in the tool wrapper log. Some of the logging output ended up
on stdout, while some of the normal output ended up in the log, and parts
of the quoted arguments were even evaluated as shell commands.

The logging of the wrapped tool commands is not perfect yet, but at least
it's much more predictable now.
2019-03-24 08:40:07 +00:00
rillig
23128f791d mk/tools: fix unintended filename expansion in the tool wrapper log file 2019-03-22 22:13:21 +00:00
rillig
016d9a0f3d mk/tools: sort tools by name when calling "make show-all-tools" 2019-03-22 16:17:50 +00:00
rillig
09dc181cca mk/tools: fix BISON_REQD handling for lists of multiple Bison versions 2019-03-21 21:47:29 +00:00
jaapb
0c0943f8d1 Added cmdliner and fmt options. 2019-03-19 11:23:09 +00:00
rillig
85d27b43fd mk/subst.mk: substitute embedded newlines, escape dots in variable names 2019-03-17 12:01:14 +00:00
dholland
c389701cbb Add support for MAKE_JOBS.pkgpath.
This allows setting MAKE_JOBS high and then setting e.g.
MAKE_JOBS.emulators/qemu=2 (or some such low value) to keep it from
thrashing during build.

Discussed/approved on tech-pkg two months ago and then I forgot to
actually commit it.
2019-03-17 03:59:11 +00:00
tsutsui
9471b40155 mk/emulator/linux.mk: add avahi as a module. 2019-03-17 01:13:21 +00:00
joerg
6537bdc125 ghostscript-esp is long gone. 2019-03-10 19:52:18 +00:00
jaapb
d04cfea806 Added variable OCAML_TOPKG_FLAGS 2019-03-05 16:14:35 +00:00
wiz
0b07edd732 mk/: let fonts/mkfontscale provide mkfontdir 2019-03-04 11:56:05 +00:00
rillig
f3467f95fd mk/help: remove extra empty line when listing all help topics 2019-03-03 16:47:58 +00:00
rillig
2e8773d102 mk/compiler.mk: replace empty lines with empty comments
This is necessary for "bmake help" to interpret the whole comment as a
single block.
2019-02-22 00:06:46 +00:00
tsutsui
e5bb9f6fe0 mk/emulators/linux.mk: add missed modules and sort entries. 2019-02-21 04:12:25 +00:00
bsiegert
ce19293462 replace-interpreter.mk: support REPLACE_PERL6.
This is basically the same as REPLACE_PERL, except that there is a default
for ${PERL6} inline if it is not otherwise defined.
2019-02-18 14:10:37 +00:00
triaxx
43226095e2 tools.FreeBSD.mk: make groff conditional
FreeBSD 12 removes groff: test its existence before using it.
2019-02-12 18:40:16 +00:00
leot
750e0bf0c5 options.description: Add xls option
Will be used for math/sc-im.

Patch provided by Sijmen J. Mulder via tech-pkg@.
2019-02-11 21:59:32 +00:00
leot
fa122847a1 license.mk: Fix a typo 2019-02-10 21:36:54 +00:00
wiz
5547fd6f4f Revert previous for now. 2019-02-10 21:35:01 +00:00
wiz
40b6e19ea9 mk: allow Affero GPL by default
This follows a recent TNF board decision.
2019-02-06 14:38:02 +00:00
wiz
ffb5aa8ddc *: mirror.switch.ch does not provide ftp/http service any longer 2019-02-04 09:36:41 +00:00
leot
d3433d3184 options.description: Add color and xlsx options
(Used by math/sc-im.)
2019-01-30 13:01:06 +00:00
leot
948e68bb1f mk/tools/replace.mk: Update the check to devel/nbpatch
The check to avoid possible dependency loop was not updated to
check devel/nbpatch (instead of devel/patch).

Fix PR pkg/53920 reported by Dean Matzkov.
2019-01-29 22:41:00 +00:00
abs
06d9bbe5de Add gnupg1 as an option 2019-01-26 18:23:34 +00:00
tnn
790927a09f Linux.mk: provide default LIBABISUFFIX for aarch64 2019-01-24 18:40:56 +00:00
roy
92284935f7 Call replace-names before SU
This allows the replace target to work with OBJ on NFS where root
isn't allowed.
2019-01-22 14:29:44 +00:00
schmonz
45504e4376 Improve 'tai-system-clock' description. 2019-01-17 22:26:21 +00:00
rillig
2b74bc126e mk/check: document how check-portability.sh is typically invoked 2019-01-17 00:11:44 +00:00
gutteridge
016d76c0b9 mk/plist/plist.mk: amend MACHINE_ARCH examples in a comment
To avoid potential confusion, amend the example MACHINE_ARCH to what it
really is. While here, fix a rather subtle typo.
2019-01-16 04:43:42 +00:00
wiz
31d79002d9 mk: Describe termcap option. 2019-01-15 15:49:17 +00:00
tnn
22ac324162 mk/sites: cpan.perl.org advertises Strict-Transport-Security 2019-01-14 09:46:58 +00:00
schmonz
85f9f9aa43 Provide defaults for SNIPROXY_{USER,GROUP}. 2019-01-11 23:09:15 +00:00
schmonz
831d992b03 Document 'tai-system-clock'. Remove extinct 'ucspi-ssl-perl'. 2019-01-10 03:14:10 +00:00
wiz
da5215fd50 Add RELRO support for clang, based on the gcc logic. 2019-01-09 13:19:03 +00:00
bsiegert
64896df507 bsd.prefs.mk: set OS_VARIANT=Microsoft if used under WSL.
WSL is Windows Services for Linux, aka "bash on Ubuntu on Windows".
Some packages need to differentiate plain Linux and running on WSL.

Patch from David Weller-Fahy via PR pkg/53806.
2019-01-06 12:51:45 +00:00
schmonz
b0841837b2 Add MIREDO_{USER,GROUP} defaults. 2019-01-06 00:07:48 +00:00
maya
3b04d43200 Update to the latest upstream config.sub.
No modifications are needed any more, upstream wanted to recognise
netbsd/sh3el differently.

Now upstream recognises even more GPUs, too.
2019-01-04 13:25:07 +00:00
maya
1344d983a0 Merge in newer GNU config files.
- Locally patch in netbsd/superh, not yet accepted upstream.
- upstream did netbsd/mips64eb fix differently.

Other changes that might be notable to us:

- different compiler-based way of identifying 32bit vs. 64bit for
solaris/x86
- different compiler-based way of identifying solaris/sparc 64bit,
that supposedly works for both sun cc and GCC.
2019-01-04 07:35:25 +00:00
maya
cc5855a6a0 Revert accidental change. 2019-01-02 15:45:27 +00:00
maya
456c6ebc97 Really mirror GCC now, including the wildcard.
Thanks joerg for the heads up

PR pkg/53825
2019-01-02 15:41:13 +00:00
maya
38d3bdb0ec Match 32-bit SuperH CPUs in the same way that GCC does.
PR pkg/53825
2019-01-02 15:31:36 +00:00
jklos
b2ad87c797 Fix support for NetBSD mips64 targets. 2018-12-26 19:00:00 +00:00
rillig
ffccad2c9a mk/termcap.buildlink3.mk: add show-all-termcap target for debugging 2018-12-20 17:08:27 +00:00