Commit graph

6210 commits

Author SHA1 Message Date
Bryan Drewery
6f53931fcd MFH: r458083
Disallow forced FLAVOR as make argument.

This otherwise prevents properly setting FLAVOR to the default internally
since it is in a separate namespace in bmake that is read-only.

Approved by:	portmgr (implicit)
2018-01-04 20:18:03 +00:00
Bryan Drewery
1176a819b2 MFH: r458058
Follow-up r458048: Properly trim FLAVOR from .MAKEOVERRIDES.

The code I removed was wrong but it still achieved the proper effect of
removing FLAVOR from .MAKEOVERRIDES.  This is still needed and now is
done properly without truncating away all of the other valuable variables.

Pointyhat to:	bdrewery
Approved by:	portmgr (implicit)
2018-01-04 20:06:48 +00:00
Bryan Drewery
6fbe5af994 MFH: r458056
Fix typo in r458054.

Reported by:	antoine
Approved by:	portmgr (implicit)
2018-01-04 20:02:28 +00:00
Bryan Drewery
03b2d78d2a MFH: r458054
Fix some *-list targets not properly passing FLAVOR down the chain.

Approved by:	portmgr (implicit)
2018-01-04 19:58:42 +00:00
Bryan Drewery
f2faba7a2c MFH: r458050
Pass FLAVOR in enviroment to avoid forcing an empty value in some cases.

Approved by:	portmgr (implicit)
2018-01-04 19:41:02 +00:00
Bryan Drewery
dcba6972cb MFH: r458048
Stop truncating .MAKEOVERRIDES after the FLAVORS work.

There is no such variable as ${MAKEOVERRIDES}, only ${.MAKEOVERRIDES}, so this
code was simply truncating .MAKEOVERRIDES entirely which could cause performance
and other odd issues with OSREL and make recursion.

We don't want to leak FLAVOR to child sub-makes but that can be fixed later;
this code was not doing what it intended.

Approved by:	portmgr (implicit)
2018-01-04 19:19:11 +00:00
Bryan Drewery
ba5ec533a1 MFH: r458041
Fix package-depends-list for FLAVORS.

Reported by:	dinoex
Approved by:	portmgr (implicit)
2018-01-04 19:09:04 +00:00
Jan Beich
a92932d57a MFH: r457797
gecko, mesa-dri: shave unnecessary quoting for absolute path to LLD

Left side already unquoted and Mk/bsd.port.mk didn't quote.

Approved by:	ports-secteam blanket (style, merge conflict avoidance)
2018-01-01 20:30:33 +00:00
Tobias C. Berner
deebc4f35b Add CMAKE_ON and CMAKE_OFF to cmake.mk
USES=cmake now supports two additional list variables:
    * CMAKE_ON  : List of variables to turn on
    * CMAKE_OFF : List of variables to turn off
  This can be used as a shortcut to append these to CMAKE_ARGS.

  For example ports that previously set
    CMAKE_ARGS=		-DVAR1:BOOL=TRUE -DVAR2:BOOL=TRUE -DVAR3:BOOL=FALSE
  can now set this as
    CMAKE_ON=		VAR1 VAR2
    CMAKE_OFF=		VAR3

Reviewed by:	adridg, rakuco, mat
Differential Revision:	https://reviews.freebsd.org/D13636
2017-12-31 09:43:05 +00:00
Jan Beich
543bbdecf0 www/firefox: unbreak OPTIMIZED_CFLAGS=off build after r450707
x86_64-unknown-freebsd/release/libgkrust.a: could not read symbols: File format not recognized

PR:		222641
Reported by:	many
2017-12-31 00:57:06 +00:00
Tobias C. Berner
3a217fd1a8 Define licence for PyQt ports via pyqt.mk
Reviewed by:	adridg, jrm
Differential Revision:	https://reviews.freebsd.org/D13055
2017-12-30 18:01:32 +00:00
Sunpoet Po-Chuan Hsieh
1365753b2d Update comment: add ruby 2.5 2017-12-27 19:51:25 +00:00
Sunpoet Po-Chuan Hsieh
5d8d3b7c8d Add ruby25 2.5.0 (copied from ruby24) 2017-12-27 19:51:11 +00:00
Jan Beich
54d482ae91 Update USES=compiler:c++14-lang to Clang 5.0 on FreeBSD 10
PR:		224591
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2017-12-27 10:41:30 +00:00
Ed Maste
6e0a95a88d libtool.mk: pass through LDFLAGS -fuse-ld=*
Some ports depend on permissive or broken behaviour from the GNU BFD
linker, ld.bfd.  Clang and GCC support a -fuse-ld= flag to choose a
specific linker, and as we migrate to installing lld as the base system
/usr/bin/ld we'll want to make use of -fuse-ld=bfd to use bfd for ports
that fail to link, or fail to run when linked with lld.

An upstream libtool change[1] from Feb 2016 supports passing through
-fuse-ld=, but it has not yet made it into a release.  Patch an
equivalent change into ltmain.sh via Mk/Uses/libtool.mk.

Original proposal just patched ltmain.sh in devel/libtool.  That would
address ports that run libtoolize via autoreconf, including lang/mono
which is one of the ports that fails to link with lld and responsible
for many downstream skipped ports.  Patching ltmain.sh via libtool.mk
(tijl's suggestion) handles that case as well as ports that include
their own copy of ltmain.sh.

A later change may patch devel/libtool so that -fuse-ld works if using a
ports-installed libtool to build software outside of the ports tree; the
change in this commit is intended to address building in the ports tree.

[1] http://git.savannah.gnu.org/cgit/libtool.git/commit/?id=f9970d99293faf908fdc153a653fa5781095fb7a

PR:		214864, 224514
Reviewed by:	tijl
Approved by:	portmgr (antoine)
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D13589
2017-12-26 17:20:15 +00:00
Jan Beich
c816a835a9 www/firefox: switch to devel/llvm50 for Stylo 2017-12-26 00:59:07 +00:00
Steve Wills
3e8a768d90 Change default version of ruby from 2.3 to 2.4
PR:		223949
Exp-Run:	antoine
2017-12-24 19:23:49 +00:00
Tijl Coosemans
d686093999 Remove support for USE_AUTOTOOLS=automake. 2017-12-24 15:20:54 +00:00
Tijl Coosemans
f67bb4e33b Remove support for USE_AUTOTOOLS=aclocal and USE_AUTOTOOLS=autoheader. 2017-12-24 13:12:04 +00:00
Tijl Coosemans
e86cf40c8f Take maintainership from autotools@. That group is no longer active. 2017-12-23 13:58:40 +00:00
Antoine Brodin
ddd8c8640e Change default version of samba from 4.4 to 4.6
Reviewed by:	mat
With hat:	portmgr
Differential Revision:	https://reviews.freebsd.org/D13529
2017-12-23 07:03:21 +00:00
Dmitry Marakasov
273db182a9 Report (in q/a) and fix (in shebangfix) python[23] shebangs
Currently, only python shebangs (e.g. /bin/python, /usr/local/bin/python,
/usr/bin/env python etc.) are reported by stage Q/A and fixed by
USES=shebangfix. We need to do the same for python[23] as well.

Before the problem was not noticeable since many ports had e.g.
USES=python:2, which added a dependency on python2 metaport, however
that's going to switch to USES=python:2.7, and neither it, nor more
widely used USES=python adds a dependency on metaports, so there's
very high probability that python[23] links are not available.

Approved by:	portmgr (mat)
Differential Revision:	https://reviews.freebsd.org/D13571
2017-12-21 13:27:51 +00:00
Baptiste Daroussin
dee0383e5f Add an option helper for BINARY_ALIAS 2017-12-20 14:19:04 +00:00
Mathieu Arnold
bf406b4d24 Enhance USES=uniquefiles to be more generic.
This allows to have more complex renaming schemes.  Until now, it could
only add a prefix or a suffix, but this was not working at all for man
pages, because it would give man/man1/pyfoo.1.gz-2.7 or
man/man1/pyfoo-1-2.7.gz.  With this change, a man page will be correctly
renamed to man/man1/pyfoo-2.7.1.gz.

Unfix ports that were already handling man pages.

PR:		220214
Submitted by:	Fukang Chen (previous patch)
Exp-run by:	antoine
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D13444
2017-12-19 16:23:48 +00:00
Steve Wills
71ea9482d3 Update lang/ruby2[2,3,4] to latest versions.
Fixes a security issue.

PR:		224356
Submitted by:	Yasuhiro KIMURA <yasu@utahime.org>
MFH:		2017Q4
Security:	dd644964-e10e-11e7-8097-0800271d4b9c
2017-12-19 02:17:58 +00:00
Antoine Brodin
fa70aaaf98 Revert r456619:
- flang is only supported on amd64
- with default OPTIONS on amd64, R doesn't link against libflang
- in the case R is build with FLANG option, flang is already added as a
  runtime dependency by USES=fortran:flang

With hat:	portmgr
2017-12-18 18:30:42 +00:00
David Naylor
5791b2eb14 USES=cran: add lib dependency to flang
R now compiles addins by linking to libflang (and others).
2017-12-18 11:22:21 +00:00
Antoine Brodin
ca8acdfe49 Allow to use samba47 with USES=samba
PR:		224418
Submitted by:	timur@
With hat:	portmgr
2017-12-18 07:00:10 +00:00
Mathieu Arnold
f3c8470783 Fix a edge case in the fetch related targets.
This would have given an error when:

- The port uses DIST_SUBDIR
- That sub-directory does not exist
- The current user does not have permission to write in DISTDIR.

Something like:

$ sudo rmdir /usr/ports/distfiles/gallery2
$ make fetch-urlall-list
mkdir: /usr/ports/distfiles/gallery2: Permission denied
*** Error code 1

PR:		222819
Reported by:	sunpoet
Sponsored by:	Absolight
2017-12-16 08:53:07 +00:00
Mathieu Arnold
e5587103cd Fix qa lib dependency checks when using libmap.conf.
This happens, for instance, if x11/nvidia-driver is installed.

PR:		221406
Submitted by:	tobik
Approved by:	bapt
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D11977
2017-12-15 15:56:09 +00:00
Antoine Brodin
fe4b675693 Add back a line that shouldn't have been removed in r456375
Reported by:	pkg-fallout
2017-12-15 06:34:12 +00:00
Mathieu Arnold
5d0c42cb25 Remove forgotten old compat code.
Sponsored by:	Absolight
2017-12-14 22:29:33 +00:00
Tobias C. Berner
d7b037be20 Update KDE Frameworks to 5.41
PR:		224227
Exp-run by:	antoine
Reviewed by:	adridg, rakuco
Differential Revision:	https://reviews.freebsd.org/D13367
2017-12-14 20:15:52 +00:00
Mathieu Arnold
8113a6f477 Rework PY_FLAVOR to always work.
Before this, it could have been set to the current flavor of the port
that may not have been related to Python at all.

This of course never came up during development because at that time,
the only flavors were the Python flavors.

Reported by:	dbn
Sponsored by:	Absolight
2017-12-14 13:48:58 +00:00
Antoine Brodin
b30fa14a7a Make py3gobject3 and pygobject3 synonyms
The requested version of python can be set via USES=python:version
This change allows to build most ports depending on devel/py-gobject3
with DEFAULT_VERSIONS=python=3.x
In the future, one of py3gobject3 or pygobject3 could be deprecated.
2017-12-13 16:11:55 +00:00
Mathieu Arnold
986d88d505 Add a DEV_WARNING about some hypotetical case.
Sponsored by:	Absolight
2017-12-12 12:31:10 +00:00
Mathieu Arnold
477fb04a27 Limit matching Python flavors to two digits.
Sponsored by:	Absolight
2017-12-12 11:40:45 +00:00
Mathieu Arnold
4c26d3c024 Make USE_PYTHON=concurrent flavors friendly.
Before, it would only create the default symlink if the Python version
was the default Python version.  Change that to if the Python flavor is
the default flavor.

PR:		224242
Sponsored by:	Absolight
2017-12-11 12:41:56 +00:00
Torsten Zuehlsdorff
04538b6c99 Uses/php.mk: add missing sodium dependency
The issue becomes apparent when trying to build lang/php72-extensions
with sodium checked.

PR:           223811
Submitted by: Daniel Ylitalo <daniel@blodan.se>
Approved by:  ale
2017-12-07 16:40:20 +00:00
Bryan Drewery
15714bc164 Fix 'make -j'.
- Pass MAKEFLAGS down into do-depends properly.
- Remove redundant dependencies, run-depends and lib-depends, from
  targets that already depend on earlier targets that depend on
  the needed targets.

Reported by:	emaste
With hat:	portmgr
2017-12-07 01:51:00 +00:00
Mathieu Arnold
e5eb98236d Add a warning to try and prevent people from mis-using USE_GITHUB.
Sponsored by:	Absolight
2017-12-06 11:55:15 +00:00
Sunpoet Po-Chuan Hsieh
e68441c157 Update BROTLI description
Suggested by:	adamw
2017-12-04 21:30:00 +00:00
Mathieu Arnold
2cd9e57d75 Remove extra .endif.
Reported by:	antoine
Sponsored by:	Absolight
2017-12-04 15:43:36 +00:00
Mathieu Arnold
6063af74e8 Add a USES=python:env, that will not add a dependency on Python.
It has the same effect than setting PYTHON_NO_DEPENDS, but in a more
compact way.

Sponsored by:	Absolight
2017-12-04 15:27:29 +00:00
Mathieu Arnold
e7c64ad660 Add a note about USE_PYTHON=optsuffix being a kludge.
Sponsored by:	Absolight
2017-12-04 11:26:47 +00:00
Mathieu Arnold
c3feeef2c1 Depend on pkgnames and not files, always better.
Sponsored by:	Absolight
2017-12-04 11:17:23 +00:00
Mathieu Arnold
9b3f71316a Deprecate USES=python:2 and USES=python:3
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D13291
2017-12-04 11:07:10 +00:00
Mathieu Arnold
c891fd5d24 Correctly fix the Python 3 being the default but in fact not problem.
Sponsored by:	Absolight
2017-12-04 11:07:07 +00:00
Mathieu Arnold
ae164d1dfd Add a WARNING for people trying to do clever but bad things with Python
versions.

Sponsored by:	Absolight
2017-12-04 11:07:04 +00:00
Sunpoet Po-Chuan Hsieh
4af76adde3 Add shared BROTLI description 2017-12-03 20:38:32 +00:00