1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00
Commit Graph

6204 Commits

Author SHA1 Message Date
Jan Beich
17c106b5b3 gecko, mesa-dri: shave unnecessary quoting for absolute path to LLD
Left side already unquoted and Mk/bsd.port.mk didn't quote.
2018-01-01 20:25:54 +00:00
Jan Beich
6191d576e5 bsd.port.mk: don't create a new variable just to check LLD
PR:		224760
Approved by:	portmgr (antoine)
2018-01-01 20:16:39 +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
Dmitry Marakasov
9a7c47672e Fix default python flavor wrt python version
There's a flaw in FLAVOR selection logic which makes python FLAVOR
default to py27 even with DEFAULT_VERSIONS=python=3.6. Fix this and
generate FLAVOR based on PYTHON_DEFAULT, PYTHON2_DEFAULT, PYTHON3_DEFAULT
(in that order) similar to how it's done in other parts of python.mk.
This does not affect FLAVOR in default setup (py27 remains), but
if python default version is modified, it will now properly affect FLAVOR.

Approved by:	portmgr (antoine)
Differential Revision:	D13326
2017-12-03 20:03:09 +00:00
Gerald Pfeifer
b1cc5272ce Remove 4.8 as a documented option for GCC_DEFAULT. Technically nothing
has changed, so it still should work as well (or not) as before, but it's
essentially untested and if anyone needs an older version from the GCC 4.x
era, 4.9 is still available.
2017-12-03 16:19:45 +00:00
Mathieu Arnold
244209f68c Fix build-depends-list and run-depends-list.
Sponsored by:	Absolight
2017-12-01 12:11:58 +00:00
Mathieu Arnold
3d94ff12c5 11.0 is no longer supported.
Sponsored by:	Absolight
2017-12-01 11:54:35 +00:00
Mathieu Arnold
551be3c723 Convert Python ports to FLAVORS.
Ports using USE_PYTHON=distutils are now flavored.  They will
  automatically get flavors (py27, py34, py35, py36) depending on what
  versions they support.

  There is also a USE_PYTHON=flavors for ports that do not use distutils
  but need FLAVORS to be set.  A USE_PYTHON=noflavors can be set if
  using distutils but flavors are not wanted.

  A new USE_PYTHON=optsuffix that will add PYTHON_PKGNAMESUFFIX has been
  added to cope with Python ports that did not have the Python
  PKGNAMEPREFIX but are flavored.

  USES=python now also exports a PY_FLAVOR variable that contains the
  current python flavor.  It can be used in dependency lines when the
  port itself is not python flavored.  For example, deskutils/calibre.

  By default, all the flavors are generated.  To only generate flavors
  for the versions in PYTHON2_DEFAULT and PYTHON3_DEFAULT, define
  BUILD_DEFAULT_PYTHON_FLAVORS in your make.conf.

  In all the ports with Python dependencies, the *_DEPENDS entries MUST
  end with the flavor so that the framework knows which to build/use.
  This is done by appending '@${PY_FLAVOR}' after the origin (or
  @${FLAVOR} if in a Python module with Python flavors, as the content
  will be the same).  For example:

    RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}

PR:		223071
Reviewed by:	portmgr, python
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D12464
2017-11-30 15:50:30 +00:00
Mathieu Arnold
471896e0a8 Add various FLAVOR related helpers.
To help with flavored ports, helpers are available.  In these, replace <*>
  with the flavor name.

  *_PKGNAMEPREFIX *_PKGNAMESUFFIX *_PLIST *_DESCR will overwrite the variable.

  *_CONFLICTS *_CONFLICTS_BUILD *_CONFLICTS_INSTALL *_PKG_DEPENDS
  *_EXTRACT_DEPENDS *_PATCH_DEPENDS *_FETCH_DEPENDS *_BUILD_DEPENDS
  *_LIB_DEPENDS *_RUN_DEPENDS *_TEST_DEPENDS will append to the variable.

Reviewed by:	portmgr
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D12483
2017-11-30 15:33:46 +00:00