Commit graph

9547 commits

Author SHA1 Message Date
rillig
7f610ea49f mk/defaults: add option gcc-d 2019-04-28 21:24:26 +00:00
rillig
2c90b6c046 mk/configure: when there are multiple CONFIGURE_DIRS, print current dir
This helps to find out which of the several configure scripts has
problems, for example when checking for unknown command line options
using GNU_CONFIGURE_STRICT.
2019-04-28 13:18:18 +00:00
rillig
89e7671cfc mk/subst.mk: use simpler words in the documentation, add an example 2019-04-28 12:31:15 +00:00
rillig
620c3c228b mk/help: do not provide help for topics starting with underscore
These are reserved for the pkgsrc infrastructure.
2019-04-28 12:10:24 +00:00
rillig
c3f5e8d4d1 mk/configure: mention CONFIGURE_DIRS in show-all-configure 2019-04-28 11:25:32 +00:00
tron
70de5f3798 openssh: Add optional command line editing to "sftp"
Add new package option "editline" (enabled by default) which adds
command line editing and filename completion to the "sftp" client.

Bump the package revision because of this change.
2019-04-25 14:55:03 +00:00
roy
baf17776bb Describe nis 2019-04-25 13:08:31 +00:00
maya
e34ba8f311 Don't complain if binaries without an interpreter or .dynamic section don't
have a GNU_RELRO flag. (they won't because it doesn't do anything to them).

Should eliminate some of the need for CHECK_RELRO_SKIP, especially for some
Go binaries.
2019-04-24 22:56:47 +00:00
rillig
21c0a41a76 mk: fix pkglint warnings about ambiguous variables
When a Makefile fragment contains $0, this means a Makefile variable, not
a shell or AWK variable.

The bug in ccc.mk survived unnoticed for almost 15 years. The bug in
gnu-configure.mk for MirBSD got only half as old.
2019-04-20 16:32:42 +00:00
wiz
dec806e5ed fonts.mk: hide echo itself, and improve quoting 2019-04-06 08:43:41 +00:00
maya
e1e1001a1a Fix previous properly:
Avoid matching newly created files in destdir and re-installing them
and erroring on install.

find | xargs achieves the same by coincidence.

suggested by kre.
2019-04-06 06:55:18 +00:00
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