Commit graph

9868 commits

Author SHA1 Message Date
tnn
dfc42e92b5 mk: document iscsi PKG_OPTION 2020-03-13 13:26:34 +00:00
nia
af217bc787 *: Remove mysql51 - EOL since 2013, completely broken with OpenSSL 1.1 2020-03-13 10:05:41 +00:00
rillig
774a30f68e mk/check: revert collateral damage from previous commit
Killing the editor does not stop cvs from committing; to achieve that, it
is necessary to remove the file containing the commit message being
edited.
2020-03-13 08:11:36 +00:00
rillig
f481cb99f6 mk/check/check-perms: allow packages to skip the check completely
When all files are skipped, the tool dependency is not added as well.
This allows packages to skip the check without defining the user-settable
variable CHECK_PERMS.
2020-03-13 08:04:08 +00:00
rillig
5efaae1b1b mk/check/check-portability: exclude REPLACE_BASH by default
Since the portability checks are concerned about bashisms, it doesn't make
sense to apply them to programs that will later be run in bash anyway.

Suggested by gdt via private mail.
2020-03-13 06:31:43 +00:00
rillig
8f5b373f2f mk/check/check-portability: check plain Makefiles as well
Like Makefile.in, these files contain shell commands but don't start with
a #! line.

Suggested by gdt via private mail.
2020-03-12 19:09:41 +00:00
rillig
0418380975 mk/check/check-portability: don't check Makefile.am
These files typically come with a corresponding Makefile.in file, and the
same portability issue is in the .in file as well. For building the
package it is only necessary to patch the .in file. Patching the .am file
as well would mean additional work for the pkgsrc package maintainer.

Nevertheless, such fixes should be reported upstream. The upstream
maintainer is more interested in a patch for Makefile.am, since the .in
file is only generated.

Suggested by wiz via private mail.
2020-03-12 18:54:59 +00:00
rillig
a05002b399 mk/check/check-portability: support file names with spaces
Before, file names that start or end with spaces were trimmed by read(1),
as specified by POSIX 2004 and POSIX 2018.

https://pubs.opengroup.org/onlinepubs/9699919799/utilities/read.html

This edge case bug had been present since the very beginning of this
code, in November 2006.

Filenames containing backslashes or newlines are still not supported, and
probably never will be intentionally supported.
2020-03-12 18:40:06 +00:00
gdt
8088666ab9 mk/platform/NetBSD.mk: Default to bsdtar
Native tar on NetBSD <=8 (and later, if MKBSDTAR is no) does not
handle archive formats increasingly being seen in pkgsrc.  bsdtar
("libarchive tar") does, and is natively provided on NetBSD >=9.

pkgsrc already has a mechanism to use /bin/tar as the bsdtar tool when
it is bsdtar, so this change should not cause anything different on
NetBSD >= 9.   On <=8, it will depend on archivers/bsdtar, which can
be built without using an extract tool, and which will then be broadly
usable.

As broadly discussed over multiple days on tech-pkg.
2020-03-12 17:01:39 +00:00
gdt
e06c5526b7 mk: Disable default assignment of EXTRACT_USING
This is unnecessary, becuse extract/extract.mk has the same default
assignment.  It is harmful, because it prevents setting a value in
platform/Foo.mk.

Change the comment to say this is platform specific (which will be
true soon).
2020-03-12 16:57:23 +00:00
gdt
b9c8f5d661 extract.mk: Fix comment about nbtar
Maybe long ago nbtar was pkgsrc's pax-as-tar, but now this is just
${TOOL_PLATFORM.tar} which might be anything.
2020-03-12 16:55:31 +00:00
rillig
b0fc62a5e2 mk/check/check-portability: check Makefile.am and Makefile.in as well
Up to now, these files had been skipped because they didn't start with a
#! line. Still, they contain shell programs, therefore it makes sense to
check them.
2020-03-12 08:44:15 +00:00
rillig
19807d1dcd mk/bsd.pkg.use.mk: add more keywords for "bmake help"
The added empty line separates this help topic from the header comment of
this file, since USE_BSD_MAKEFILE does not add any dependencies and
therefore doesn't fit that description.
2020-03-12 00:12:23 +00:00
rillig
a08feb9dad mk/check/check-portability: document why *.am and *.in must be checked
Thanks gdt for noticing this.
2020-03-11 23:59:27 +00:00
rillig
1e7918cf88 mk/check: reduce running time of portability check
Since several years, the portability check only checks for shell files.
Instead of opening each extracted file to see whether it is a shell file,
it is more efficient to filter the files based on their names. This saves
a few system calls and in the case of lang/gcc9, half of the total
running time.

The file extensions to be excluded from the check have been sorted by
their count in the PLISTs. This data does not accurately represent the
source files of the package, but it's better than nothing.
2020-03-11 22:30:59 +00:00
rillig
203bc78cac mk/check: remove obsolete SKIP_PORTABILITY_CHECK variable
Marking a variable as obsolete for 12 years should be enough for everyone
to migrate.
2020-03-11 19:58:45 +00:00
rillig
edf2ea6495 mk/check: enable check-portability for [[
Since pkgtools/check-portability is not installed by default, it will not
harm any existing pkgsrc setup. To activate it, it has to be installed
manually. After a testing phase, it will be installed whenever
PKG_DEVELOPER is set.
2020-03-11 19:21:00 +00:00
gdt
be3d0fb820 Document proj-grids option 2020-03-10 16:19:35 +00:00
maya
400c25c7eb Match indentation. 2020-03-07 15:19:20 +00:00
maya
ea06e5b0d2 Test that the lang/gccN exists before defaulting to N as the gfortran version.
Issue most immediately obvious when trying GCC 9, but probably applies to
some other versions as well.
2020-03-07 15:18:19 +00:00
bacon
fe59885718 mk/compiler/gfortran: Default to same major version as base GCC
GFORTRAN_VERSION should match CC_VERSION as closely as possible for
ABI compatibility.  This update tries to match GFORTRAN_VERSION
to CC_VERSION if the base compiler is GCC.  If base compiler is not
GCC, default to a mainstream version likely to work with base clang/llvm.
2020-02-26 15:58:20 +00:00
tnn
78df98ea63 put back bsdtar as host tool, conditional on MKBSDTAR
http://mail-index.netbsd.org/source-changes/2020/01/17/msg112935.html
2020-02-25 11:20:28 +00:00
rillig
75b71a024b mk/build: make the documentation for build-env more precise 2020-02-25 05:30:14 +00:00
rillig
0867698634 mk/configure: fix configure-env to cd to the correct directory
The previous "cd ${d}" had been a left-over from the .for loop around
CONFIGURE_DIRS.
2020-02-23 20:24:46 +00:00
maya
b1fd52c5a5 Make sure _MAKE_JOBS_N has a valid value even if MAKE_JOBS is unset. 2020-02-18 16:10:37 +00:00
schmonz
79011abf80 Document the ikiwiki-sudo option. 2020-02-13 19:05:40 +00:00
kamil
0e2f37cee8 tools/tools.NetBSD.mk: Register TOOLS_PLATFORM.realpath 2020-02-13 00:40:35 +00:00
rillig
538c9b877c mk/pkginstall/files: allow spaces in configuration file names
Fixes PR pkg/42191.
2020-02-11 01:59:30 +00:00
rillig
944799cea6 mk/pkginstall/files: properly quote all shell variables
This prepares for CONF_FILES containing spaces in their names.
See pkg/42191.
2020-02-11 01:21:25 +00:00
rillig
3d253ab785 mk/bsd.pkg.mk: support spaces in PATH directories
Fixes PR pkg/53959.
2020-02-09 22:39:20 +00:00
rillig
2275f2d46a mk/configure: add configure-env target
This allows easy inspection of the realistic environment in which the
configure scripts are run.

The code is copied from the similar build-env target.

This might help to find the cause for pkg/54894, where "gcc -dumpversion"
is said to output 0 as the version number.
2020-02-09 20:33:38 +00:00
kamil
c9d555d7a0 options.description: Document the spice option (Spice-Space) 2020-02-06 22:07:06 +00:00
fox
c489fb420d options.description: Add security/wolfssl 2020-02-04 20:33:02 +00:00
nia
6a5e6c7a47 mk: Remove some now-unused unrealircd-* option descriptions. 2020-01-28 13:20:36 +00:00
rillig
d6a0479fc0 mk/platform/Linux: fix detection of GLIBC_VERSION on Debian
Running "/lib/x86_64-linux-gnu/libc.so.6 --version" on Debian unstable
inside WSL says:

GNU C Library (Debian GLIBC 2.29-9) stable release version 2.29.

In this case, there is a simple period, not a comma after the version
number.
2020-01-28 08:38:47 +00:00
jaapb
828c3820e9 Added gtksourceview3 option 2020-01-24 14:50:57 +00:00
nia
49d28e1bd7 mk/platform/Linux.mk: Use _OPSYS_LIB_DIRS to find glibc paths.
This seems more correct as it handles Debian/others already.
2020-01-24 12:36:28 +00:00
nia
3ecc5529cb mk/platform/Linux.mk: Fix glibc detection on Debian.
Problem identified and patch reviewed/tested by gutteridge, thanks
2020-01-24 12:32:21 +00:00
kamil
ca614b1505 Allow USE_X11=weak that allows X11 paths without having them reachable
Useful in certain packages (python) where X11 paths are needed in wrappers,
but optional in build and runtime.
2020-01-21 10:56:54 +00:00
kamil
a1b18a2bf5 Set native X11BASE on NetBSD to /usr/X11R7 unconditionally
This is the default option for more than a decade now.
2020-01-21 10:50:48 +00:00
nia
3e162c3b3e *: Remove esound support from pkgsrc
Enlightened Sound Daemon was one of the earlier solutions to the old
"multiple programs can't open /dev/audio at once" problem that was once
a thing we had to worry about.

Eventually, it was adopted as part of GNOME. GNOME lost interest in it
about a decade ago and dropped it in favour of PulseAudio, newer
applications are generally uninterested in supporting it. Last release
was in 2008 and support for newer OS APIs is pretty nonexistent.

Several years ago the original website disappeared.

https://en.wikipedia.org/wiki/Enlightened_Sound_Daemon
https://tracker.debian.org/news/999428/removed-0241-11-from-unstable/
2020-01-20 21:54:00 +00:00
pho
865567336f Build ${WRKSRC}/Setup in the do-configure phase
Doing it in pre-configure makes it unable to do SUBST in that phase.
2020-01-20 14:14:33 +00:00
pho
a1f59741bc Use _MAKE_JOBS_N defined in build/build.mk 2020-01-19 23:45:06 +00:00
maya
25acf4336b Rename EFFECTIVE_MAKE_JOBS -> _MAKE_JOBS_N, suggested by gdt.
I am under the impression we use _THING to mean "defined by the
implementation", which would be similar to the C meaning of __ prefix,
rather than "private to this file".
2020-01-19 18:20:45 +00:00
maya
55b59a0062 Add a visible EFFECTIVE_MAKE_JOBS, a tunable resembling _MAKE_JOBS,
but is defined as 1 in the case of no jobs.

No -j prefix for maximum usability.
(XXX: is _DEF_VARS the right place to add it?)
2020-01-19 16:51:47 +00:00
pho
9bbb8420be Configurable optimization level and compilation parallelism 2020-01-18 01:39:01 +00:00
jaapb
04005267d6 Updated mk/ocaml.mk to deal with changes from devel/ocaml-dune
.install files are now installed somewhere else, I've updated the
ocaml.mk file accordingly.
2020-01-17 09:19:03 +00:00
joerg
1389f0e895 Don't escape newline and tab in regex, newer gawk complains. 2020-01-16 22:53:11 +00:00
rillig
7f191db6be mk/pkgformat: include only relevant ident strings in +BUILD_VERSION
Before, not only files containing an RCS Id were recorded in the
+BUILD_VERSION file but also files containing text that looked similar to
an RCS Id were recorded, even though these didn't contain any valuable
version information.

The effect was that before this change, pkgtools/pkglint was built over
and over again by the bulk builds since pbulk uses a different regular
expression for detecting modified files.

The regular expression for unexpanded RCS Ids is added to record files
that have never been checked in to CVS, just to have them recorded and to
distinguish them from the final committed version.

See https://mail-index.netbsd.org/tech-pkg/2020/01/11/msg022489.html.
2020-01-15 20:11:11 +00:00
rillig
8b2c7d624a mk/pkgformat: include only relevant ident strings in +BUILD_VERSION
Before, not only files containing an RCS Id were recorded in the
+BUILD_VERSION file but also files containing text that looked similar to
an RCS Id were recorded, even though these didn't contain any valuable
version information.

The effect was that before this change, pkgtools/pkglint was built over
and over again by the bulk builds since pbulk uses a different regular
expression for detecting modified files.

The regular expression for unexpanded RCS Ids is added to record files
that have never been checked in to CVS, just to have them recorded and to
distinguish them from the final committed version.

See https://mail-index.netbsd.org/tech-pkg/2020/01/11/msg022489.html.
2020-01-15 20:03:10 +00:00
rillig
1498fcf3dd mk/pkgformat: fix documentation 2020-01-14 22:22:34 +00:00
rillig
1f7df547ed mk/pkgformat: fix documentation 2020-01-14 22:21:19 +00:00
joerg
07c8de54f9 Sort the list of files included during a scan run and remove duplicates.
This avoids some sources of entropy and can save a bit space too.
2020-01-13 22:08:33 +00:00
rillig
48d051044f mk/pkgformat: update documentation in list-dependencies 2020-01-13 07:31:53 +00:00
taca
ca4fe2672a mk/pkgformat/pkg/metadata.mk: Fix awk syntax
Fix awk syntax.
2020-01-13 06:52:57 +00:00
ryoon
bf792e6f39 mk: Add missing line continuation, fix post-install 2020-01-13 03:38:01 +00:00
gutteridge
73513866b8 options.description: add virtfs-proxy-helper 2020-01-13 02:52:28 +00:00
ryoon
8be8affe7f Add lang/adoptopenjdk11-bin support 2020-01-13 01:53:50 +00:00
joerg
43c574a4a9 Add USE_PKG_ADMIN_DIGEST flag for switching between $NetBSD$ and SHA256
digests to identify file versions. Defaults to no for now. For digest
mode, recursive into FILESDIR, so that e.g. the majority of pkg_install
itself is recorded as well SMF manifests.
2020-01-12 23:38:42 +00:00
rillig
ea514da7f0 mk/bsd.pkg.update.mk: fix indentation 2020-01-11 19:30:50 +00:00
pho
024aad2263 Switch from ghc7 to ghc88 2020-01-11 07:47:18 +00:00
pho
ee9f90656c Use hashed package keys for (un)installing Cabal packages
Starting from somewhere around GHC 7.8, Cabal installs packages with a
hashed package key instead of just "{NAME}-{VERSION}". In other words,
the pair of the plain package name and the version is no longer unique
in the package DB, and using it for uninstallation may also remove
packages that we didn't mean to remove.

This is paricularly problematic because GHC comes with several bundled
Cabal packages. Installing and uninstalling a package with the same
name could break GHC itself, if the uninstallation is performed
without hashed keys.
2020-01-09 12:29:32 +00:00
rillig
b1aad323dc mk/plist: make documentation for GENERATE_PLIST more precise 2020-01-05 21:38:54 +00:00
wiz
cb9e56c003 Document jp2 option. Sort. 2020-01-04 19:01:51 +00:00
pho
0215d2d16a Be explicit about shared libraries
Recent versions of Cabal appears to build shared libraries by default unless --disable-shared is explicitly given.
2020-01-02 16:45:15 +00:00
pho
f20c406612 Pass -v to ./Setup when PKG_VERBOSE is defined 2020-01-02 16:34:47 +00:00
rhialto
727e0af859 Rename options for vice to have a "vice-" prefix (x64, cpuhistory). 2020-01-01 16:30:37 +00:00
pho
d3ea0027a2 Suppress an error occurs when buildlink is not present 2020-01-01 04:54:10 +00:00
pho
e8f85a7b71 Remove unused variables 2020-01-01 04:35:29 +00:00
rhialto
b88412f48d options.description: add x64 and cpuhistory, for emulators/vice. 2019-12-31 14:30:09 +00:00
pho
1589ba417e For "Setup" try dynamic linkage first 2019-12-31 07:16:25 +00:00
pho
a62b984936 Support GHC 7.10.x and later 2019-12-29 16:59:55 +00:00
wiz
8bc185a329 apache.mk: update comment, apache22 is gone, so is the "ap22" prefix 2019-12-28 11:43:58 +00:00
taca
01a7fa1cea mk/defaults/options.description: add some descrptions
Add descrption of ap-php, argon2, disable-filter-url, php-cgi and php-fpm.
2019-12-16 15:26:57 +00:00
gutteridge
a52529ae45 options.description: note pango and vera-ttf options 2019-12-07 05:00:26 +00:00
gutteridge
9ebff42314 licenses & mk/license.mk: add license for Enlightenment 16
Enlightenment 16 uses a modified (non-standard) MIT license that
includes an advertising clause. (This makes it incompatible with the
GPL.) I've named it enlightenment16 to differentiate that Enlightenment
>=17 releases use the 2-Clause BSD. (Enlightenment 16 continues to be
developed independently, and is of current interest to pkgsrc users.)

In some places, this is referred to as the "MIT With Advertising"
license, but I'm not aware of other projects using this variant. If it
becomes more broadly relevant to pkgsrc, we could rename it such.

(This should have been added a long time ago, the wm/enlightenment
package simply has never had a LICENSE variable set. Better late than
never.)
2019-12-07 04:47:32 +00:00
ng0
4b115e597b net/tor: Add rust option to build the rust features in tor. 2019-11-24 18:42:15 +00:00
rillig
276bc87b64 mk/fetch: add SITES.* to the variables for the show-all-fetch target 2019-11-22 19:30:23 +00:00
minskim
7f94d0a54c mk: Set LC_ALL=C to avoid encoding issue with tr and sed 2019-11-22 18:04:49 +00:00
tnn
672bc47484 remove bsdtar as tool because it was reverted in src for some reason ... 2019-11-21 21:11:22 +00:00
martin
c844c0d4d4 PR pkg/54686: try to handle NetBSD/arm without architecture version the same
as {e,}armv4 or {e,}armv6 / {e,}armv7. We do not add an explicit version to
our current default (v5).
2019-11-13 19:06:42 +00:00
maya
ae84d1864a Add SCO Unix to the ELF pile.
Blind commit intended to help PR pkg/54681
2019-11-09 21:24:24 +00:00
rillig
af0890f6c6 mk/fetch: sort variables for bmake show-all-github 2019-11-04 19:05:18 +00:00
rillig
c18ce611ff mk: make BROKEN a list of lines, like PKG_FAIL_REASON
Packages defined the variable BROKEN inconsistently. Some added quotes,
like they are required in PKG_FAIL_REASON, some omitted them.

Now all packages behave the same, and pkglint will flag future mistakes.
2019-11-04 17:47:29 +00:00
gutteridge
8d1d50e470 options.description: add libpcap option 2019-11-04 05:53:29 +00:00
gutteridge
d1246d8c02 options.description: add gnuplot option 2019-11-01 06:03:57 +00:00
he
f1b9418e64 Prepare for compat80 package. 2019-10-15 11:15:49 +00:00
rillig
0d03a9a964 mk/build/test.mk: reorder the _VARGROUPS variables
The tests are only run if TEST_TARGET is defined. Therefore it should be
listed first.
2019-10-13 11:08:10 +00:00
rillig
34460df6b7 mk/build/test.mk: clean up line continuations 2019-10-13 10:34:37 +00:00
adam
6c545580f8 postgresql12: added version 12.0
Release 12:

General performance improvements, including:
* Optimizations to space utilization and read/write performance for B-tree indexes
* Partitioning performance enhancements, including improved query performance on tables with thousands of partitions, improved insertion performance with INSERT and COPY, and the ability to execute ALTER TABLE ATTACH PARTITION without blocking queries
* Automatic (but overridable) inlining of common table expressions (CTEs)
* Reduction of WAL overhead for creation of GiST, GIN, and SP-GiST indexes
* Support for covering GiST indexes, via the INCLUDE clause
* Multi-column most-common-value (MCV) statistics can be defined via CREATE STATISTICS, to support better plans for queries that test several non-uniformly-distributed columns

Enhancements to administrative functionality, including:
* REINDEX CONCURRENTLY can rebuild an index without blocking writes to its table
* pg_checksums can enable/disable page checksums (used for detecting data corruption) in an offline cluster
* Progress reporting statistics for CREATE INDEX, REINDEX, CLUSTER, VACUUM FULL, and pg_checksums

Support for the SQL/JSON path language

Stored generated columns

Nondeterministic ICU collations, enabling case-insensitive and accent-insensitive grouping and ordering

New authentication features, including:
* Encryption of TCP/IP connections when using GSSAPI authentication
* Discovery of LDAP servers using DNS SRV records
* Multi-factor authentication, using the clientcert=verify-full option combined with an additional authentication method in pg_hba.conf
2019-10-07 19:21:48 +00:00
rillig
e5b3aa104f mk/check: remove documentation for obsolete SKIP_PORTABILITY_CHECK 2019-10-06 13:38:22 +00:00
rillig
3e003dd7ca mk/configure: add more keywords for bmake help 2019-10-06 09:44:41 +00:00
ryoon
e70a6f154b Add openjdk11 and set it as default for NetBSD/amd64 and /i386 7 or later 2019-10-02 13:16:29 +00:00
rillig
1a49091403 mk/check/check-perms.mk: complete the _VARGROUPS section 2019-10-01 21:56:11 +00:00
rillig
3e43360828 mk/check/check-perms.mk: fix typo in _VARGROUPS section 2019-10-01 21:48:30 +00:00
jperkin
41c29c5abd mk: Ensure only the first NetBSD rcsid is used.
There are a couple of places in pkgsrc where rcsid's are generated, and
these were leaking into "pkg_info -b" output.  This had the side effect of
causing those packages and all their dependencies to be rebuilt for every
bulk build as the output and the respective files always mis-matched.
2019-10-01 13:01:02 +00:00
rillig
1604275256 mk/compiler/gcc.mk: reorder variables in _VARGROUPS section
By listing the public variables first, the focus is put on the most
important variables.
2019-09-19 06:46:59 +00:00
ng0
4c62e57cfa options.descriptions: Add dane keyword description. 2019-09-18 15:27:59 +00:00
rillig
95fe8ca6c6 mk/compiler/gcc.mk: add missing variables to _VARGROUPS section 2019-09-18 06:46:13 +00:00
rillig
fe8d2392e3 mk/compiler/gcc.mk: search for GCCBASE/bin/gcc as well
A default installation of GCC doesn't install bin/cc but only bin/gcc.
Adding bin/cc is only done by the pgksrc packages, not by the upstream
package.

The previous strategy of just checking whether ${GCCBASE}/bin/${CC:[1]}
exists did not work in such a situation. Therefore, if CC still has its
default value from sys.mk, that is changed to the intended gcc, which
then detects the base GCC properly.

See https://mail-index.netbsd.org/pkgsrc-users/2019/09/07/msg029329.html.
See https://mail-index.netbsd.org/tech-pkg/2019/09/18/msg021976.html.
2019-09-18 06:35:12 +00:00
rillig
d7f638ee99 mk/compiler: replace complicated :M_asdf_ modifier with :[1]
The :[1] modifier has been added to bmake in 2006.
2019-09-18 06:15:13 +00:00
nia
264a5bbdf8 mk: describe sdl options better 2019-09-10 13:33:05 +00:00
nia
cf0676c9b5 libappindicator: Make this the gtk3 version.
Nothing is using the gtk2 version.

Bump PKGREVISIONs.
2019-09-09 12:59:06 +00:00
maya
25bf7f7d9d Be more verbose about how to list the available topics. 2019-09-09 09:38:36 +00:00
maya
3659de2832 gcc{48,49,5,6,7,8}: In the case of a "system GCC", detect if the system
libgcc is newer than the one about to be installed. If so, don't install
the libgcc.

Having an older libgcc appear in the lookup may result in binaries not
running, as they need symbols from the newer libgcc.
Such a case is PR pkg/54506.

Leaves SunOS unchanged, by request from jperkin.
2019-09-08 14:47:52 +00:00
maya
e10763bf89 Add a new option 'always-libgcc', whether to install libgcc.
If the pkgsrc compiler is GCC, don't install libgcc.

Having an older libgcc is problematic: it may be missing symbols from
newer libgcc. This is what happened in PR pkg/54506.

Use this on gcc-aux and gcc5-aux: the libgcc_s.so they install is going
to be older in all the operating systems these packages support.
(Other GCC packages will require a more elaborate rule)

Leaving SmartOS unchanged, by request from jperkin.
2019-09-08 14:05:38 +00:00
rillig
e8b4d71240 mk/compiler/gcc.mk: refactoring for PKGPATH comparison
Since PKGPATH can only ever consist of a single path, there is no point
in applying the :M modifier to it.
2019-09-08 09:24:52 +00:00
rillig
ef2e2c5b89 mk/bsd.pkg.error.mk: fix alignment of the backslashes 2019-09-08 09:15:01 +00:00
rillig
ec4d6a7c7f mk/subst.mk: document variables used in the file, remove SUBST_TARGETS
All variables that are used or defined in the file are now listed in the
_VARGROUPS section.

The "is text file" command variable has been renamed since pkglint
thought the former variable name would specify a filename, not a shell
command.

The "is text file" command has been rewritten to only rely on tr(1)
instead of both tr(1) and wc(1). This makes it both simpler and maybe
also a little faster, since the file only has to be read once.

The SUBST_TARGETS variable has been removed since it is used nowhere
else. To get the list of all subst targets (should that ever be
necessary), use the expression ${SUBST_CLASSES:S,^,subst-,}.
2019-09-08 09:06:06 +00:00
rillig
f8efb25323 mk/misc/show.mk: document how to explicitly mark variables as ignored
An upcoming check in pkglint will require that if a file has a _VARGROUPS
section, it must contain the full truth, mentioning every variable that
is used or defined in the file.

Some variables may be so internal though that they are not interesting in
any scenario for understanding what goes on in the file. These variables
can be explicitly ignored. They will not be listed by "bmake show-all" and
pkglint will not complain about them.
2019-09-08 09:01:04 +00:00
rillig
a504a7a55a mk/compiler/gcc.mk: improve _VARGROUPS section 2019-09-07 22:20:32 +00:00
rillig
22bac2bbe2 mk/compiler/gcc.mk: update _VARGROUPS 2019-09-07 07:10:15 +00:00
gutteridge
f59ae753d0 options.description: add the libappindicator3 option 2019-09-07 04:17:42 +00:00
jperkin
21159ce40d mk: Skip CTF_FILES_SKIP before anything else. 2019-09-06 09:00:35 +00:00
ryoon
914dc9f9ab NetBSD 9 or later has bsdtar as /bin/tar 2019-09-06 03:52:55 +00:00
rillig
bd2ae3cf10 mk/build: in build-env, output BUILD_DIRS relative to WRKSRC 2019-09-02 02:59:47 +00:00
rillig
d54bc5b842 mk/build: for build-env, show the BUILD_DIRS 2019-09-02 02:54:57 +00:00
rillig
0ff5dc4a46 mk: use a single form for headings in the documentation comments 2019-09-02 02:23:02 +00:00
rillig
a8b249fd3c mk/mysql.buildlink3.mk: add missing BUILD_DEFS 2019-09-02 02:14:58 +00:00
rillig
d4c41cddbd mk/help: remove unnecessary backslash before # in AWK program
GNU Awk on Cygwin warns about these.
2019-08-25 20:30:11 +00:00
nia
b0edece552 options.description: Add some options from MesaLib 2019-08-22 17:25:19 +00:00
nia
2367d4f38b options.description: add full stops 2019-08-22 11:54:43 +00:00
nia
9d87ba1247 options.description: +glesv1, +glesv2 2019-08-22 11:53:40 +00:00
nia
f6254aa8d8 options.description: add vulkan 2019-08-21 12:34:42 +00:00
rillig
d13d7ca81c mk/bsd.pkg.mk: prevent the WRKDIR path from containing symlinks
This is the same underlying issue as in bootstrap/bootstrap from
2019-05-01.

See https://mail-index.netbsd.org/pkgsrc-users/2019/08/18/msg029207.html
2019-08-18 21:58:51 +00:00
rillig
a4d021bb7b mk/buildlink3: add some more variables to show-all-bl3 2019-08-18 21:00:10 +00:00
nia
571ac1faf9 mk: Add wayland to options.description 2019-08-18 16:09:24 +00:00
brook
8e3cceea64 Add the biopython license to DEFAULT_ACCEPTABLE_LICENSES.
The biopython license is _very_ similar, but not identical, to many
other open source licenses used throughout pkgsrc.  The gratuitous
differences are being addressed by the project through an effort to
relicense all files to the 3-clause BSD license.  In the meantime,
Debian has accepted that the current biopython license meets the DFSG
and includes the package in their main distribution.  Consequently,
rename the license file and add it to DEFAULT_ACCEPTABLE_LICENSES.

See http://mail-index.netbsd.org/pkgsrc-changes/2019/08/13/msg195804.html.
2019-08-14 18:12:00 +00:00
maya
cb6ce400a2 Add Microsoft Public License as acceptable license by default.
FSF considers this a free software license, see:
https://www.gnu.org/licenses/license-list.en.html#ms-pl
2019-08-13 04:27:18 +00:00
gutteridge
c1d1d5e7fd options.description: add erlang-hipe 2019-08-11 21:35:39 +00:00
nia
d790e74201 teach extract about .txz, a weird alias for .tar.xz. 2019-08-02 11:48:17 +00:00
tnn
71fbc29207 mk/ocaml.mk: don't assume MAKE_JOBS is defined 2019-07-26 09:59:27 +00:00
gdt
743636bc54 mk/compiler.mk: Add c++17
We have a new language making its way into pkgsrc: C++17!  Add gnu++17
and c++17 to the list of _CXX_STD_VERSIONS.
2019-07-23 13:57:04 +00:00
ryoon
a73d906dd6 Do not pass -std=c++03 to GCC 4.4
No objection on tech-pkg@.
2019-07-15 16:06:19 +00:00
jaapb
2752687fd0 Changes to mk/ocaml.mk, commentary and bugfix
Install bytecode files unstripped.
2019-07-15 09:36:26 +00:00
sevan
6b0923a661 Don't need it on Lion 2019-07-11 15:16:12 +00:00
sevan
3448b40764 Avoid pulling in libnbcompat on every platform, mark the specific builds of
Darwin which libnbcompat should be pulled in on to provide strnlen instead.
2019-07-10 17:15:27 +00:00
riastradh
14df6bc748 aarch64 has no compiler flag for ABI=64. 2019-07-09 15:46:02 +00:00
riastradh
2f9efeb223 Avoid passing _CC as cross-compiler to recursive makes.
This way we don't inadvertently tell a native dependency that it is
supposed to be compiled with the cross-compiler.

No functional change intended for USE_CROSS_COMPILE=no.
2019-07-09 15:45:46 +00:00
riastradh
f36aab5cd5 Sync cross-libtool-base with libtool-base. Eliminate CROSSBASE.
cross-libtool-base now installs into $PREFIX/cross-$TARGET_ARCH
unconditionally.
2019-07-09 15:45:25 +00:00
sevan
9f35364b7e Support USE_FEATURES=strnlen to provide an implementation of strnlen(3) via libnbcompat, should the host OS lack support 2019-07-08 22:09:22 +00:00
jaapb
122fe90bf0 Added CeCiLL-B license.
This is a free software license according to the FSF:
https://www.gnu.org/licenses/license-list.en.html#CeCILL-B
2019-07-02 09:28:12 +00:00
jaapb
7102f282c5 Added descriptions for async, http and unix options 2019-07-01 15:47:22 +00:00
rillig
1d8887c980 mk: use direct include paths
This saves a few system calls since the included files are searched first
in .PARSEDIR and only then in .CURDIR.
2019-06-30 21:28:28 +00:00
ryoon
61d8f528cd Fix a typo in flag in comment 2019-06-26 00:22:56 +00:00
sjmulder
c279607aa4 mk/curses.builtin.mk: add mouse function check
Lets one do USE_CURSES=getmouse
2019-06-17 18:19:55 +00:00
leot
284dcb54c5 librsvg: Add available.mk and tool.mk mk fragments
Rename LIBRSVG_USE_RUST to LIBRSVG_TYPE.

Isolate the LIBRSVG_TYPE logic in available.mk mk fragments in
order that can be used by other librsvg mk (e.g. tool.mk) or by
other package to check the preferred librsvg implementation to be
used. (e.g. devel/pango, fonts/harfbuzz and misc/libreoffice).

Add a tool.mk mk fragment in order to be able to specify librsvg
as a tool dependency honoring user's LIBRSVG_TYPE.
Thanks to <wiz> for suggesting that!

Discussed on tech-pkg@:

 <https://mail-index.NetBSD.org/tech-pkg/2019/06/05/msg021393.html>
2019-06-08 19:51:38 +00:00
tm
0f9f220c00 apache24: Add mod_brotli option
The mod_brotli module provides the BROTLI_COMPRESS output filter that
allows output from your server to be compressed using the brotli
compression format before being sent to the client over the network.
2019-06-07 11:26:20 +00:00
jperkin
6a956a0ad2 mk/tools: Ensure GNU grep is used when requested.
Previously a "grep" tool was created, but GREP still pointed at the platform
grep, breaking any package that used the environment variables rather than
PATH when the native platform grep does not have GNU features.
2019-06-06 11:54:33 +00:00
wiz
8d82044d8f mk: Fix ctan path on sunsite.dk 2019-06-05 21:05:00 +00:00
wiz
5aecd0b762 ftp.at.NetBSD.org does not provide ftp, remove references. 2019-06-05 21:02:57 +00:00
gutteridge
d303ea40b1 options.description: fix typo 2019-06-01 18:08:07 +00:00
nia
b4de63fb17 Use more neutral language for the geoip option.
The GeoIP C library is deprecated and some packages are using this for
libmaxminddb (the official replacement for the GeoIP C library) support
instead.
2019-06-01 14:07:07 +00:00
wiz
bef01d0fe2 mk: document LIBRSVG_USE_RUST 2019-05-29 12:38:39 +00:00
jperkin
3f3dc70553 mk: Support MESSAGE.rcd and MESSAGE.smf.
Previously packages configured these manually based on INIT_SYSTEM, this
centralises support for them so they only need to exist to be pulled in
accordingly.
2019-05-28 13:32:06 +00:00
rillig
122d791da2 mk/tools: in the wrapper log, quote arguments containing = naturally 2019-05-22 20:47:05 +00:00
adam
0bc15a6e5c Remove references to Postgresql 9.3 2019-05-21 05:52:31 +00:00
leot
f127cb7934 mk/tools: Add support for autoconf*:test and automake*:test
Thanks to <martin> for catching the unintended autoconf tool dependency!
2019-05-15 10:49:28 +00:00
jaapb
ac1b8e04e3 Synced if statement in mk/ocaml.mk with that in lang/ocaml/Makefile 2019-05-14 15:35:19 +00:00
leot
41e0261d71 platform/Darwin.mk: Fix a typo (s/Mojava/Mojave/) 2019-05-14 10:49:37 +00:00
yyamano
5f2a9b7c0d Add Sierra, High Sierra and Mojava to the version comparison table. Non functional change. 2019-05-14 09:30:24 +00:00
nia
e7819a570f options.description: Add sixel. 2019-05-08 12:52:59 +00:00
rillig
b88d952e81 mk: allow "bmake clean depends" as shortcut
When "bmake clean depends" was called for a package where the various
cookie files already existed, these would enable different rules than a
clean package directory.

Since "bmake clean" deletes all the cookie files before "bmake depends"
starts, in these combined command lines the cookie files must be treated
as absent.
2019-05-07 19:36:43 +00:00
rillig
629d9c85db doc/guide: fill in the MASTER_SITE variables automatically
Keeping these two lists in sync is not something that humans should do.
2019-05-05 18:36:05 +00:00
rillig
bc4f604de5 mk/configure: assist in finding unrecognized configure options
Instead of giving instructions, just to the work automatically as far as
it can be automated.
2019-05-04 15:16:50 +00:00
leot
62ab9a17d6 bsd.depends.mk: Document {,BUILD_,TEST_,TOOL_}DEPENDS variables 2019-05-04 11:45:14 +00:00
rillig
7ea001aa3f mk/configure: document how to fix GNU_CONFIGURE_STRICT failures 2019-05-04 08:43:06 +00:00
nia
cf16757f1d options.description: Add mbedtls. 2019-05-03 17:17:25 +00:00
wiz
49b1bb13c3 sun-jdk6, sun-jre6: remove
Last update in 2013, remove sun-jdk7/sun-jre7 instead
2019-05-02 08:36:09 +00:00
rillig
d23530b497 mk/buildlink3: remove references to buildlink2 from the documentation 2019-05-01 10:55:13 +00:00
taca
f9710db4ad mk/defaults/options.description: add PKG_OPTIONS description
Add PKG_OPTIONS description:

    - blacklist
    - dlz-filesystem
    - dnstap
2019-04-30 03:45:21 +00:00
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