Commit graph

9367 commits

Author SHA1 Message Date
rillig
3ea36ec82f mk/plist: make print-PLIST discoverable by "make help"
Because print-PLIST uses mixed case (unlike most of the other make
targets), it is not found by the keyword search of "make help".
2018-03-11 14:53:10 +00:00
rillig
c060c9bc20 mk/help: run "make help" through the pager by default 2018-03-11 14:50:49 +00:00
rillig
afd12090f3 mk/tools/autoconf.mk: improve documentation for autoreconf 2018-03-09 21:51:20 +00:00
wiz
380b6ec244 xorgproto: use xorgproto instead of separate *proto packages
Remove now obsolete packages.
2018-03-07 11:57:28 +00:00
rillig
7e49fb99d5 mk/help: sort keywords 2018-03-07 00:14:57 +00:00
rillig
03ae6d7a54 mk/help: ignore topics in lines that are indented by at least 2 tabs
The variable names are typically mentioned in one of these styles:

# Package-settable variables:
#
# VARNAME
#	Description

# Package-settable variables:
#
#	VARNAME
#		Description

Lines that are indented with two tabs contain text. And if one of these
lines starts with a variable name, it is just a coincidence. A practical
example of this happening is in mk/misc/developer.mk 1.24, where PKGNAME
starts a line of description.
2018-03-06 23:49:37 +00:00
rjs
014d98c2ce Describe bluray option. 2018-03-05 21:18:12 +00:00
rillig
cb09d12497 mk/check/check-relro.mk: explain what RELRO means 2018-03-04 20:45:19 +00:00
wiz
39d5ed7e0b mk/pkgconfig-builtin.mk: use more recent package in example in comment 2018-03-02 15:15:10 +00:00
khorben
48a848d0cd Default to devel/libusb-compat for libusb 0.1
No objection on tech-pkg@

Tested on NetBSD/amd64.
2018-02-27 23:43:21 +00:00
rillig
d77131ac6a mk/misc/show.mk: document the show-all-* targets 2018-02-26 22:51:42 +00:00
wiz
14951f1d12 mk: bump mysql default to 57. 2018-02-20 13:21:45 +00:00
rillig
a90fa290b9 mk/internal/locking.mk: improve documentation for "make help" 2018-02-19 13:00:10 +00:00
rillig
50392d258e mk/license.mk: drop the selfmade license guessing code in favor of ninka 2018-02-19 12:58:51 +00:00
maya
192d0ba9af Reorder MASTER_SITES_GNU:
- Put the main mirror at the lowest priority. it seems to be struggling.
- Add two mirrors that seem decent at the highest priority.
2018-02-18 19:31:56 +00:00
khorben
47bb455c2d Import global switch for libusb's implementation [1/2]
This switch is meant to be used by packages requiring an implementation of the
former libusb (as in devel/libusb). The original implementation can be
chosen by setting LIBUSB_TYPE to "native".

The alternative implementation libusb-compat (as in devel/libusb-compat) wraps
libusb1 (in devel/libusb1). This implementation can be chosen by setting
LIBUSB_TYPE to "compat". On NetBSD, it has the advantage of not requiring root
privileges to locate and use USB devices without a kernel driver.

This first part only imports the switch framework itself.
2018-02-10 13:45:45 +00:00
triaxx
3417f2b33b Fix an inconsistency for package database directory.
The pkgdb variable generated for pbulk.conf is ${PREFIX}/var/db/pkg but
bootstrap generates by default PKG_DBDIR=${PREFIX}/pkgdb.
This fix add a common PKGDBDIR variable used for both pbulk.conf and
bootstrapkit.
2018-02-08 12:59:28 +00:00
kamil
2b3365c02a Append happy to the DEFAULT_ACCEPTABLE_LICENSES list
happy is DFSG, not evaluated by OSI/FSF

No objections from <Greg Troxel>
2018-02-03 17:38:13 +00:00
triaxx
3790b6da3c Remove useless options for duplicity 2018-01-26 14:55:31 +00:00
jperkin
0a552fe622 mk/compiler.mk: Support gnu++03 and c++03 in USE_LANGUAGES.
These can be used by packages when building with a compiler which defaults
to a newer standard than the source supports (e.g. namespace issues).
2018-01-26 13:14:35 +00:00
joerg
6abe02f428 Don't include TEST_DEPENDS in the normal dependency reduction run. 2018-01-25 00:34:27 +00:00
joerg
bc9e00d767 Fix spelling, it is PKGSRC_RUN_TEST. 2018-01-25 00:33:56 +00:00
leot
b637c0c04c mk/tools/replace.mk: Add support for `:test' to add tools to TEST_DEPENDS
With this change is now possible to mark tools only needed for testing via:

 USE_TOOLS+= <tool>:test

Discussed with <joerg>
2018-01-24 13:30:04 +00:00
jperkin
dc208e1a90 mk: Introduce *_SUPPORTED variables for security features.
Using variables such as PKGSRC_USE_SSP in package Makefiles to disable SSP does
not work due to the parsing order in bsd.prefs.mk.  Even if it did, it's not a
good idea to mix user and package settable variables, and would cause issues in
complex packages where bsd.prefs.mk is included early (e.g. Makefile.common).

Packages can now set {MKPIE,MKREPRO,FORTIFY,RELRO,SSP,STACK_CHECK}_SUPPORTED=no
to correctly disable security features if necessary.
2018-01-15 09:35:45 +00:00
joerg
dbaa510884 Add missing empty TEST_DEPENDS for the bootstrap case. 2018-01-14 10:47:43 +00:00
joerg
e97fae9138 Introduce TEST_DEPENDS.
Place them in ALL_DEPENDS iff PKGSRC_RUN_TESTS is set, so that bulk
builds will pick them up.
2018-01-13 12:48:56 +00:00
alnsn
cbe853ca6d Add FETCH_PROXY and FETCH_PROXY.{ftp,http,https}. 2018-01-11 08:54:37 +00:00
jaapb
46d4f8ee72 Added 'lwt' option. 2018-01-10 16:35:18 +00:00
rillig
f650479ce5 In guess-license, use ninka for determining the licenses.
Ninka can be installed from wip/ninka and analyzes each file individually,
thereby providing a much more detailed analysis than the ad-hoc method that
only looks at some COPYING files.

If Ninka is not installed, the naive fallback continues to be used.
2018-01-07 19:44:31 +00:00
rillig
06317929ae Improved documentation for "make help".
The check for target(help) prevents a warning when "make help" is run from
a category directory.
2018-01-07 11:23:37 +00:00
rillig
3924951144 Improved license detection for the guess-license target.
Before, the first file that looked like a license file was considered.
The others were completely ignored. This led to a wrong license for
cross/arm-none-eabi-gcc. To prevent these cases in the future, the license
is only guessed if there is exactly one file with a typical license name.

This approach is still naive, but at least a little more precise. Replacing
the guess-license with a determine-licenses is much more complicated
though, since each source code file may have its own license declared, and
handling all these special cases leads to very complex license expressions
(like "gnu-gpl-v3 for all files, except for special.c, which is apache-2.0
or mit). This is very hard to do correctly.
2018-01-05 07:54:39 +00:00
rillig
9ef5587f5c Improved guess-license for practical use. 2018-01-03 00:41:37 +00:00
rillig
2fb1eb3659 Added the guess-license target.
It compares the license file from the package with the available licenses
in licenses/ and shows the diff to the best match.

This will hopefully make it easier for package authors to include the
LICENSE variable in the package Makefile. This variable being missing is
one of the most frequent error messages from pkglint (4187 out of 20044).
2018-01-02 22:40:32 +00:00
rillig
1cba6ef059 Allow package developers to easily see and check the SUBST changes. 2018-01-02 21:18:48 +00:00
maya
7cfd815255 Remove traces of crypto restrictions.
ok for idea riastradh
2018-01-02 05:49:44 +00:00
maya
061d4eea80 Remove crypto restrictions from kerberos users. 2018-01-02 05:39:00 +00:00
rillig
a63e53443e Added more keywords for "make help". 2018-01-02 01:01:42 +00:00
wiz
67ea766c4c apache22: remove, it was eol'd in June 2017
Remove packages that only work with apache22.
Remove apache22 references.
2018-01-01 10:23:04 +00:00
wiz
190c209fdf mk/configure/cmake.mk: Fix typos in comments. 2017-12-27 18:56:27 +00:00
wiz
79497474b9 mk: Describe new fossil options. 2017-12-23 21:12:13 +00:00
adam
bef2acf7aa Removed unused vatnumber-suds option name 2017-12-13 14:24:30 +00:00
wiz
75e48a20b0 *: remove ftp.kddlabs.co.jp, does not provide ftp service 2017-12-03 11:09:46 +00:00
wiz
e9d95506d5 mk: Remove ftp.kddlabs.co.jp from sites, does not provide ftp service 2017-12-03 11:01:19 +00:00
joerg
4a1e17bcfc Revert gnu-config/missing, new version loops. 2017-12-03 00:10:46 +00:00
sevan
a04e51058d Sync with upstream 2017-12-01 20:48:40 +00:00
khorben
fd7a4f25a3 Also append the CFLAGS for MKPIE for c++(1)
From spz@, thanks!
2017-11-29 22:55:15 +00:00
bsiegert
25d59f2644 Add /usr/local for include and libdir on ChromeOS.
Third-party (i.e. non-pkgsrc) C toolchains (I am using chromebrew)
install to /usr/local, as that is where you can have write access.
With this, a bootstrap on ChromeOS finishes successfully.
2017-11-21 19:16:47 +00:00
leot
104096936c mk/defaults/options.description: add `oauth' PKG_OPTION
This is used by mail/nmh and probably can be useful also for other packages.
2017-11-21 10:34:32 +00:00
minskim
51312b8775 Escape whitespace in PKG_JAVA_HOME when setting JAVA_HOME 2017-11-20 17:17:50 +00:00
khorben
5535fa5372 Really use the parent sink for ld(1) 2017-11-16 02:43:51 +00:00