Commit graph

9520 commits

Author SHA1 Message Date
markd
335384b2f7 describe the pymalloc option 2018-11-13 19:33:34 +00:00
jperkin
71e098497c mk: Add CTF infrastructure support.
Platform support is determined by _OPSYS_SUPPORTS_CTF from mk/platform, the
user enables support by setting PKGSRC_USE_CTF=yes, and packages can
explicitly disable support with CTF_SUPPORTED=no or skip certain files with
CTF_FILES_SKIP.

The path to ctfconvert is configured via TOOLS_PLATFORM.ctfconvert.

If all of the requisite variables are enabled, a compiler-specific debug flag
is passed via the wrappers to ensure we have DWARF information to convert,
_INSTALL_UNSTRIPPED is explicitly defined to avoid binaries being stripped
prior to conversion, and the conversion is performed during the install stage.

It is recommended that users who enable the feature also set STRIP_DEBUG=yes
to reduce the final binary size once the conversion has been performed.

This has been used for the past year in Joyent SmartOS builds.  FreeBSD is
marked as supported but is untested.
2018-11-12 14:22:58 +00:00
jperkin
f4ee910183 mk/install: Add support for STRIP_DEBUG_SUPPORTED.
This is a package-settable variable that will disable stripping binaries if
set to anything other than "yes" (the default).  This helps packages such as
anything built using golang where stripping binaries is harmful to them.

Document this and the recently introduced STRIP_FILES_SKIP.
2018-11-12 13:47:32 +00:00
jperkin
9a4b07e774 mk/install: Improve the strip-debug target.
Use the new strip-dbg tool, ensuring that we don't fail when the native strip
doesn't support -g.  Actually check for the existence of the output file
before trying to move it into place.  Add support for STRIP_FILES_SKIP for
certain files which should not be stripped.  And finally, improve performance
slightly by skipping symlinks.
2018-11-12 13:42:16 +00:00
jperkin
c34c184787 mk/tools: Create a strip-dbg tool.
On platform where strip supports -g it is used, otherwise this is a no-op.
2018-11-12 13:36:50 +00:00
jperkin
3bf4c3441e mk/tools: Add a gstrip tool on platforms where it exists.
This will be used in places where GNU strip (or equivalent) is required,
specifically for the "-g" flag.
2018-11-12 13:34:39 +00:00
rillig
f455fea050 mk/help: document PREPEND_PATH 2018-11-11 20:38:27 +00:00
rillig
f37f30c061 mk/misc: adjust layout of the show-all output to pkgsrc format
In Makefiles, the variable values are aligned vertically. This format is
now also used in the show-all target, which makes it easier readable.

Some more variables have been marked as multi-value, and single-valued
variables ending in space are clearly marked. Without the latter, the
regression test would have a line with significant trailing whitespace.
2018-11-11 19:07:12 +00:00
rillig
8f1611a664 mk/misc: in show-all, list values of *_ENV and *_ARGS in separate lines
The *_ENV and *_ARG values are typically very long, and reading them in
a single line is unnecessarily difficult. Therefore, each of their
values is listed on a separate line, for example:

fetch:
  usr   DIST_PATH (undefined)
  pkg   MASTER_SITES = \
                http://ftp.gnome.org/pub/GNOME/sources/glib/2.56/ \
                ftp://ftp.gnome.org/pub/GNOME/sources/glib/2.56/ \
                ftp://ftp.cse.buffalo.edu/pub/Gnome/sources/glib/2.56/ \
                https://download.gnome.org/sources/glib/2.56/ \
                # end of MASTER_SITES
  pkg   DIST_SUBDIR (undefined)
2018-11-10 10:40:55 +00:00
schmonz
102609bd1c Remove leftover from testing. Clearly had been time to take a break. 2018-11-09 13:32:59 +00:00
rillig
1c73868572 mk/help: update information about environment variables like MAKE_ENV 2018-11-09 07:03:37 +00:00
schmonz
317f9ffa4f Fix previous. Time to stop committing for the day. 2018-11-08 22:34:24 +00:00
schmonz
cda3fb8eec Add OSX_TOLERATE_SDK_SKEW to control whether we try to find an
unversioned SDK if the versioned lookup fails. Off by default, as
before; must be explicitly enabled, as suggested by gdt@.
2018-11-08 22:18:14 +00:00
schmonz
47ae48e310 If an SDK matching our OS X version isn't found -- for instance, because
OS X has been upgraded and Xcode hasn't been -- try again without
specifying the version. This (1) works better and (2) gives a better
error message when it doesn't. From Markus Mayer in PR pkg/50317.
2018-11-07 16:50:27 +00:00
schmonz
c4f430b744 Optionally detect whether the compiler supports "-fstack-protector-strong".
If not, set _OPSYS_SUPPORTS_SSP=no during bootstrap and in mk.conf.

Do SSP detection on "SunOS", and let mk/platform/SunOS.mk's default
"yes" be overridden in mk.conf.

No change to generated mk.conf on NetBSD 8 or CentOS 6. Fixes bootstrap
on Tribblix.
2018-11-05 19:26:38 +00:00
sevan
d192480c51 Add unzip. From Minix 3.4RC6 2018-11-05 13:44:05 +00:00
sevan
1764d6ec78 Reduce whitespace noise when compared to NetBSD config. NFC 2018-11-05 13:42:24 +00:00
sevan
f869fad911 Add gsoelim, readlink, sdiff, shlock, soelim. From Minix 3.4RC6 2018-11-05 13:32:53 +00:00
sevan
dfe1a14b98 Add the relevant parts for cross compilation on Minix. - untested but the
relevant paths are set as expected.
2018-11-05 13:24:46 +00:00
sevan
15f2653da5 provide paths for byacc, gegrep, gfgrep, ggrep, install-info, makeinfo, openssl,
xz, xzcat on Minix. From Minix 3.4RC6
2018-11-05 12:57:47 +00:00
abs
c025aae024 Don't rely on gcc version fallthrough for GCC_REQD+=8
(Thanks to eagle eyes from leot@)
2018-10-29 11:53:18 +00:00
sevan
fb56cf7f44 Update path to false(1). nologin(8) exists on Minix 3.4RC6, however, currently
status is set to 0 despite exiting with 1
2018-10-29 10:53:31 +00:00
sevan
aa7df6147c Update some more paths from Minix 3.4RC6 2018-10-29 10:44:29 +00:00
sevan
77fb75889d Update path to chown(8) as found on Minix 3.4RC6 2018-10-29 10:31:05 +00:00
sevan
d14bc1e07d Use the same method to create the pbulk user on Minix as NetBSD 2018-10-29 02:47:08 +00:00
sevan
9ba78728c0 Minix 3 is ELF based 2018-10-29 01:50:00 +00:00
abs
2c974aa3c5 Add GCC_REQD+=8 support to compiler/gcc.mk 2018-10-28 22:22:19 +00:00
sevan
0a5a21105a libcompat_minix was removed some years back and minlib does not exist as a
linkable library in 3.4RC6 so don't try to link against these.
2018-10-28 18:41:41 +00:00
sevan
f5cbdf9aa2 Minix runs on platforms besides x86, match GNU config.guess. 2018-10-28 18:08:15 +00:00
sevan
277e45c036 Update location for true(1), taken from 3.4RC6 build. 2018-10-28 17:17:40 +00:00
schmonz
8c0a55f86e Remove old checkpassword, djbdns, and qmail options. Catch up to a new
djbdns option.
2018-10-24 15:51:38 +00:00
maya
8d0e197859 Remove dead mozilla mirrors. ESR mirrors are not used. 2018-10-23 23:22:31 +00:00
minskim
4b82a59c7e lang/rust: Extract .cargo without making a copy in ${WRKDIR} 2018-10-23 16:39:29 +00:00
adam
eee51a9821 postgresql11: added version 11.0
PostgreSQL 11 provides users with improvements to overall performance of the database system, with specific enhancements associated with very large databases and high computational workloads. Further, PostgreSQL 11 makes significant improvements to the table partitioning system, adds support for stored procedures capable of transaction management, improves query parallelism and adds parallelized data definition capabilities, and introduces just-in-time (JIT) compilation for accelerating the execution of expressions in queries.
2018-10-23 16:02:51 +00:00
jperkin
2aa8c6b07e mk: Add native GNU/BSD grep where they are known to exist. 2018-10-17 08:30:43 +00:00
jperkin
c61f061ba7 mk: Add support for a ggrep tool.
This is for when GNU features are required that aren't available in some
other greps, for example -o or --color.  If ggrep is requested then it
takes precedence over grep/egrep/fgrep and the GNU versions are used for
all three.

BSD grep aims for GNU compatibility so it is anticipated that it can be
used as a native tool to avoid a dependency on textproc/grep on platforms
that provide it.
2018-10-17 08:22:19 +00:00
maya
637d08c6eb drop ftp://ftp.gnu.org, they have a notice stating they intend to shut down
ftp services. (http remains)
2018-10-13 02:46:11 +00:00
adam
f584999b44 Fix for platform/Haiku.mk:12: Makefile lines should not start with space characters. 2018-10-11 08:30:16 +00:00
abs
752fb11aed Support single digit GCC_REQ values (5, 6 or 7)
Do not add 4 to avoid confusion between gcc44/48/49

Also switch USE_PKGSRC_GCC_RUNTIME checks to use _GCC_PKGBASE to match
against selected gcc
2018-10-09 15:02:48 +00:00
rillig
d578ca80ec Fix whitespace issues reported by pkglint 2018-10-08 20:35:00 +00:00
rillig
88d1c1b9b7 Remove leading whitespace 2018-10-08 20:13:35 +00:00
rillig
b353c90862 Remove trailing whitespace 2018-10-08 20:02:17 +00:00
roy
af5c609886 Add ripoffline as a curses function to test for 2018-10-04 15:34:42 +00:00
tnn
61c4b6113a add generic "ocaml" option for building optional ocaml bindings in packages 2018-10-04 14:13:43 +00:00
maya
e6c33287cf s/wip/games/, thanks leot for the ping. 2018-10-01 18:25:17 +00:00
triaxx
1866d140cc check-shlibs.mk: avoid l10n of awk-parsed messages.
Fix PR 53119
2018-10-01 14:59:49 +00:00
maya
6719bb25ed Add love.mk, helps generate wrappers to execute LOVE2D games
with the correct LOVE version.
2018-09-30 19:22:18 +00:00
maya
bf3470aa29 describe av1 option. 2018-09-30 19:20:50 +00:00
sevan
83186f21bf GCC 8.0 as the compiler in base is incoming. 2018-09-29 11:47:33 +00:00
sevan
d736694b6b Sync with upstream, among the various changes is the update to the MINIX entry. 2018-09-16 10:38:48 +00:00
tnn
3b9a76ea38 mk: enable Java on NetBSD-*-aarch64 2018-09-14 16:01:05 +00:00
wiz
75ca86378b mk: describe canlock option 2018-09-03 09:41:05 +00:00
maya
6c25dec844 Remove clauses 3,4 from TNF-only copyright blocks.
This is based on the decision The NetBSD Foundation made in 2008 to
do so, which was already applied to src.

This change has been applied to code which is likely not in other
repositories.

ok board@, reviewed by riastradh@
2018-08-22 20:48:36 +00:00
wiz
11646718df options.description: add descriptions for flnews options. 2018-08-20 12:57:43 +00:00
adam
107ec1e19d pkglint fix 2018-08-19 09:37:12 +00:00
ryoon
adedc2bccd Fix typo. Thank you, jperkin@. 2018-08-18 08:18:42 +00:00
ryoon
474d34ae31 Add fcitx option 2018-08-18 01:25:58 +00:00
ryoon
61a42de382 Fix typo in variable name 2018-08-18 00:14:39 +00:00
nia
e58b44c7d0 Remove 'dynarec' option and enable it by default instead.
Discussed with wiz.
2018-08-16 13:25:27 +00:00
rillig
bd80bac9a0 mk/compiler.mk: sort supported compilers alphabetically 2018-08-12 19:36:40 +00:00
nia
d5d2bce328 + dynarec 2018-08-11 13:57:27 +00:00
nia
4a26a6c893 license.mk: Remove duplicate entry I accidentally added.
Sorry, I thought I had committed this earlier.
2018-08-10 19:29:04 +00:00
nia
33f246505c license.mk: Add some more acceptable Creative Commons licenses, suggested
by leot.
2018-08-07 15:43:41 +00:00
rillig
3866b420a6 mk/fetch/github.mk: document that PKGBASE influences GitHub variables
See https://mail-index.netbsd.org/pkgsrc-users/2018/07/thread1.html#027251
2018-08-01 18:01:32 +00:00
bsiegert
b4f2a458cc Add description for psl option.
PR pkg/53459 (first step).
2018-07-28 11:22:41 +00:00
rillig
72f7766091 mk/help: if no intentional documentation is found, list containing files 2018-07-22 06:45:31 +00:00
maya
049476ecd8 mips64 is more likely not 64bit. 2018-07-16 19:53:53 +00:00
jperkin
593ba9f18c mk/compiler/gcc.mk: Darwin needs _USE_GCC_SHLIB too. 2018-07-11 11:11:52 +00:00
jaapb
e5090fa968 mk/ocaml.mk now handles ulimit commands properly 2018-07-11 09:18:28 +00:00
wiz
107bfe0475 emacs: document more *nox versions, and switch to emacs26 by default 2018-06-24 21:19:10 +00:00
khorben
ff2d2f3e7a Disable the flags for PKGSRC_MKPIE when explicitly required
This notably allows emulators/qemu to properly detect support for PIE, and
disable it where appropriate. This does not work with cwrappers yet.
2018-06-19 05:02:10 +00:00
schmonz
fc936bf281 Provide defaults for UCSPI_SSL_{USER,GROUP}. 2018-06-18 10:59:55 +00:00
dbj
ad7e5443a5 check-shlibs-macho.awk: revert previous
Revert this fix until we can determine a possibly better fix.
2018-06-07 07:00:10 +00:00
dbj
0af4e4a4a0 check-shlibs-macho.awk: fix support for checking modules
Allow the dylib install_name to be just the library basename
2018-06-07 04:58:46 +00:00
youri
a0b335c3d2 + upower 2018-06-01 14:22:15 +00:00
jaapb
48b7bc7ff6 Updated ocaml.mk to work with opaline 0.3.1. 2018-05-31 11:22:46 +00:00
youri
1ff8a0091d + polkit 2018-05-29 03:30:54 +00:00
youri
b7fe3dcd2d + daap 2018-05-29 03:22:56 +00:00
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