Commit graph

9392 commits

Author SHA1 Message Date
rillig
d01040b2f7 mk/misc/show.mk: improve wording of the help text 2018-05-28 22:34:47 +00:00
rillig
072f2096f3 mk/bsd.pkg.mk: include PKGVERSION in show-all target 2018-05-28 20:37:47 +00:00
jperkin
47e24bbfb7 check-shlibs-macho.awk: Implement revision 1.3 correctly.
Skip any lines of otool output that do not start with a tab, ensuring we
only check valid files and ignore e.g. shell scripts.  Older versions of
otool would simply print no output on such files, whereas newer releases
print "is not an object file".
2018-05-25 10:57:28 +00:00
jperkin
3a6695c335 check-shlibs-macho.awk: Revert revision 1.3.
It completely broke the checks, resulting in broken binary packages
being shipped, e.g. https://github.com/joyent/pkgsrc/issues/104
2018-05-25 09:26:49 +00:00
wiz
b621cbd744 mk/compiler/gcc.mk: move _GCC_LDFLAGS setting for relro.
At the previous location it was overridden if a gcc from pkgsrc was used.

Problem found by bacon@
2018-05-24 05:47:21 +00:00
maya
78432ca7c3 Describe some of the security mitigation flags and their impact 2018-05-23 11:26:54 +00:00
jperkin
d8bb1d8957 mk: Fix GCC PKGPATH matches. 2018-05-23 10:17:58 +00:00
jperkin
512dfdee29 mk: Add USE_PKGSRC_GCC_RUNTIME gcc7-libs support. 2018-05-23 08:11:59 +00:00
adam
8276c64ad4 Removed postgresql92 support 2018-05-21 08:07:49 +00:00
rillig
db16752718 mk/*: improve documentation for "make help" 2018-05-16 21:23:02 +00:00
triaxx
e5992a1552 Add dante option used by mail/fetchmail 2018-05-16 13:30:53 +00:00
wiz
2dcfcfb7b3 *: remove references to obsolete DragonFly/i386 2018-04-30 10:41:35 +00:00
rillig
ce6481904d mk/tools/create.mk: revert filtering duplicate tool names
The "split" program is not managed by the tools framework. It just has a
wrapper that is placed into the same directory. This is confusing since
intuitively, "split" is a tool like many others.

The "duplicate script for target" warning from Make is therefore correct,
albeit obscure.

Currently, neither the pkgsrc infrastructure nor pkglint check for
allowed tool names.
2018-04-27 20:53:14 +00:00
rillig
6357c6f5e5 mk/tools/create.mk: sort tools before creating the wrapper targets
The TOOLS_CREATE variable is only ever appended to, without checking for
duplicates. In some rare cases, this produces warnings about
doubly-defined make targets. An example is adding USE_TOOLS+=strip to
pkgtools/pkglint:

".../mk/tools/create.mk" line 149: warning:
    duplicate script for target ".../work/.tools/bin/strip" ignored

The above line number 149 is zero-based, which in reality means the
duplicate definition is in line 150.
2018-04-27 20:16:36 +00:00
wiz
7b5eba52e9 mk: Describe tiff option. 2018-04-27 14:26:32 +00:00
wiz
f367007762 *: gd.tuwien.ac.at/ftp.tuwien.ac.at is gone, remove it from various mastersites 2018-04-21 13:38:04 +00:00
adam
8e731eb460 Print a message if REPLACE_INTERPRETER does not change anything (similar to SUBST_) 2018-04-17 09:31:41 +00:00
rillig
81c4fbd48d mk/fetch: add documentation for show-all-github 2018-04-08 20:39:47 +00:00
chuck
a655dc59c4 add support for CMAKE_PKGSRC_BUILD_FLAGS
CMAKE_PKGSRC_BUILD_FLAGS
     If set to yes, disable compiler optimization flags associated
     with the CMAKE_BUILD_TYPE setting (for pkgsrc these come in from
     the user via variables like CFLAGS).  The default is yes, but you can
     set it to no for pkgsrc packages that do not use a compiler to avoid
     cmake "Manually-specified variables were not used by the project"
     warnings associated with this variable.
2018-04-08 19:11:27 +00:00
jaapb
19c74901a0 Updated OPAM to use opaline instead of opam-installer 2018-04-07 10:35:01 +00:00
triaxx
0ea3f55391 Wrong place to patch readelf 2018-03-23 04:31:53 +00:00
triaxx
317bd14dc5 Fix wrong parsing due to localized readelf on Linux
Linux version of readelf (at least on Arch) translates output
(e.g. "Shared library") and makes the script broken.
2018-03-22 09:37:17 +00:00
dholland
702361dd1b Add more diagnostic info for when packages are forced to non-builtin.
The voodoo that checks this now keeps track of which packages caused
what, and in addition to the list FORCED_PKGSRC of packages that have
been forced to non-builtin, it also produces a list FORCED_PKGSRC_REASONS
of the form pkg:causing-pkg{,causing-pkg...}.

(which means that USE_BUILTIN.pkg has been set to no because
USE_BUILTIN.causing-pkg is set to no.)

This could probably just be one list but I'm not sure if anything is
relying on the format of the current FORCED_PKGSRC.
2018-03-19 03:53:29 +00:00
rillig
0e0d2af856 mk/configure/replace-interpreter.mk: document variables for show-all 2018-03-11 15:07:45 +00:00
rillig
ea32a33dbd mk/configure/replace-interpreter: add "make help" keywords 2018-03-11 14:59:14 +00:00
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