Commit graph

5459 commits

Author SHA1 Message Date
Sunpoet Po-Chuan Hsieh
647dc43651 - Add ruby23 2.3.0
- Do not silence installation message
- Use . instead of \* for COPYTREE_SHARE
- Use do-test:
- Use MAKE_CMD
- Remove validate:
- Cosmetic change

Differential Revision:	https://reviews.FreeBSD.org/D4749
PR:		205774
Exp-run by:	antoine
MFH:		2016Q1
2016-01-05 19:19:34 +00:00
Bernard Spil
eeb8c50582 security/libressl-devel: Add next-stable LibreSSL 2.3 port
- Add security/libressl-devel for version 2.3.1
  - Including corrections for CVE-2015-3194/3195
  - Add support for multiple versions to bsd.openssl.mk
  - Add option to optionally install API man-pages (201462)
  - Disable silent rules output

Changes:

  - ftp://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.3.0-relnotes.txt
  - ftp://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.3.1-relnotes.txt

PR:		201462
Submitted by: 	adamw (201462)
Reviewed by:	vsevolod (mentor, maintainer), koobs (mentor), feld (mentor)
Approved by:	koobs (mentor), feld (mentor)
Differential Revision:	https://reviews.freebsd.org/D3585
2016-01-04 13:54:38 +00:00
Raphael Kubo da Costa
1fc9a94f24 Qt5: Add a patch to allow using clang, -std=c++11 and base libstdc++.
This is similar to what we did for Qt4 in r362770. Some C++11 features actually
depend on the C++ standard library, such as <initializer_list> or std::move().

So far, ports with USES=compiler:c++0x and similar failed to build with Qt5 on
FreeBSD 9.x, as base libstdc++ is very old and does not support those C++11
features.

Piggyback on a check that is already present upstream for OS X, which has the
same ancient libstdc++ version. Apple's version has a custom patch with version
macros that we can't use, so we make a broader check and disable the features
that depend on a modern standard library if libc++ is not used.
2016-01-03 21:25:23 +00:00
Sunpoet Po-Chuan Hsieh
fc996dfe53 - Sort PYTHON_* knobs 2016-01-02 17:30:28 +00:00
Kubilay Kocak
30e7a4173b Mk/Uses/python.mk: Add support for optional 'test' argument
Some ports may need to use Python for their testing suite but otherwise
do not need it at all (ie, not for build or run). This patch adds
support for the test argument to be used in the USES clause, such as
python:3.2+,test. This enables the relevant Python environment and
modifies TEST_DEPENDS as necessary.

For non-Python ports that use Python as their testing suite, add
python:<ver>,test as required to the USES clause.

PR:			205616
Submitted by:		Brendan Molloy <brendan+freebsd bbqsrc net>
Reviewed by:		mat, miwi, koobs, antoine
Approved by:		koobs (python)
Differential Revision:	https://reviews.freebsd.org/D4711
2016-01-02 15:24:37 +00:00
Sunpoet Po-Chuan Hsieh
f43ad0fe27 - Update MASTER_SITE_CHEESESHOP: remove http:// because it always redirects to https://
% fetch -v http://pypi.python.org/packages/source/s/setuptools/setuptools-19.2.tar.gz
looking up pypi.python.org
connecting to pypi.python.org:80
requesting http://pypi.python.org/packages/source/s/setuptools/setuptools-19.2.tar.gz
301 redirect to https://pypi.python.org/packages/source/s/setuptools/setuptools-19.2.tar.gz
2016-01-01 17:06:19 +00:00
Rene Ladan
e603983d54 Remove lang/perl5.16 and the support bits in perl5.mk, it is no longer
supported and expired today.

Approved by:	portmgr (mat), perl (sunpoet)
Differential Revision:	https://reviews.freebsd.org/D4745
2015-12-31 21:06:14 +00:00
Mathieu Arnold
64e435f631 Be consistent.
Noticed by:	amdmi3
Sponsored by:	Absolight
2015-12-29 17:01:42 +00:00
Mathieu Arnold
e109535adf Remove unneeded .for loops.
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D4484
2015-12-29 16:19:55 +00:00
John Marino
6256117d69 lang/python27(3*), Mk/Uses/python.mk: remove make spawn
There are some inefficiencies in python.mk that significantly slow down
full tree scanning.  The use of bmake to obtain the current version of
a specific python is responsible for the majority of the slow done.

This commit splits out the PYTHON_PORTVERSION definition (which is the
same as the lang/python* PORTVERSION) into separate files.  With this
change, python.mk can simple include the makefile fragment instead of
spawning a new instance of make.

Different Revision:	https://reviews.freebsd.org/D4660
Approved by:		antoine (python), mva (python)
2015-12-29 12:03:09 +00:00
Raphael Kubo da Costa
8ceb79f0fe Make sure ${WRKSRC}/lib is passed before /usr/local/lib when linking.
This is another shot at fixing the linkage problems that have plagued our
users particularly when upgrading from Qt 5.x to 5.(x+1). Quick recap: in
Qt5, qmake will by default pass QMAKE_LIBDIR to the linker before other
directories such as ${WRKSRC}/lib, which is where the port's libraries are
built. When a user is upgrading Qt, we can end up with the following linker
line:
  c++ -o SomeBinary -lfoo1 -L/usr/local/lib -L${WRKSRC}/lib -lfoo2 -lfoo3
If libfoo2.so is being built by the port and an older version is currently
installed on the system, /usr/local/lib/libfoo2.so will be picked up instead
of the newly-built ${WRKSRC}/lib/libfoo2.so. At best things just work, at
worst SomeBinary needs some new symbol that is not present in the old
libfoo2.so and linking fails. Case in point: bug 198720.

The previous approach, adopted when fixing bug 194088, was to stop setting
QMAKE_{INC,LIB}DIR in the FreeBSD mkspecs and set the CPATH and LIBRARY_PATH
environment variables in Uses/qmake.mk. This way we just did not pass
-L/usr/local/lib to the linker at all and things mostly worked. However,
people using Qt to build their own software without the ports tree were out
of luck, as they would then need need to deal with passing
/usr/local/{include,lib} to the compiler/linker themselves (bug 195105). Not
only that, but if a dependency mentioned /usr/local/lib we would still have
problems anyway (in bug 198720, the GStreamer pkg-config files contain
-L/usr/local/lib, for example).

We now solve the issue by setting the QMAKE_LIBDIR_FLAGS variable in
.qmake.cache to ${WRKSRC}/lib instead. qmake appends the value of
QMAKE_LIBDIR to QMAKE_LIBDIR_FLAGS, so we are always sure -L${WRKSRC}/lib
will come before -L/usr/local/lib in the linker options. Moreover, qmake is
smart enough to automatically call sed(1) and remove references to
${WRKSRC}/lib from .prl and .pc files when installing them.

PR:		194088
PR:		195105
PR:		198720
MFH:		2015Q4
2015-12-28 18:51:41 +00:00
Jan Beich
8af65d5d19 gecko: phase out GStreamer support
H.264 is decoded by FFmpeg directly since Firefox 43.0. GStreamer
doesn't support DASH and no longer used by default since r397984
brings libavcodec.so.

https://bugzilla.mozilla.org/show_bug.cgi?id=1234092
2015-12-28 18:18:03 +00:00
Antoine Brodin
d05e4290c0 Remove PYTHON_PORTVERSION guards since it's no longer exported
With hat:	portmgr
2015-12-27 16:44:32 +00:00
Antoine Brodin
2e5d78ca45 Do not advise to strip object files, it can be harmful
Reported by:	koobs
With hat:	portmgr
2015-12-25 23:22:47 +00:00
Antoine Brodin
c6ef4747ef Do not cache PYTHON_PORTVERSION, it is not invariant between ports 2015-12-25 21:55:34 +00:00
Sunpoet Po-Chuan Hsieh
3b79030e80 - Update to 2.0.0p648
- Add LICENSE_FILE
- Use USES=autoreconf instead of USE_AUTOTOOLS=autoconf
- Use USES=libedit
- Use USES=tar:xz
- Silence patch and build messages

Changes:	https://www.ruby-lang.org/en/news/2015/12/16/ruby-2-0-0-p648-released/
		http://svn.ruby-lang.org/repos/ruby/tags/v2_0_0_648/ChangeLog
Security:	3b50881d-1860-4721-aab1-503290e23f6c
Differential Revision:	https://reviews.freebsd.org/D4668
PR:		205487
Exp-run by:	antoine
MFH:		2015Q4
2015-12-23 19:11:44 +00:00
Sunpoet Po-Chuan Hsieh
46b072cd1b - Update to 2.1.8
- Add LICENSE_FILE
- Use USES=autoreconf instead of USE_AUTOTOOLS=autoconf
- Use USES=libedit
- Silence patch and build messages

Changes:	https://www.ruby-lang.org/en/news/2015/12/16/ruby-2-1-8-released/
		http://svn.ruby-lang.org/repos/ruby/tags/v2_1_8/ChangeLog
Security:	3b50881d-1860-4721-aab1-503290e23f6c
Differential Revision:	https://reviews.freebsd.org/D4668
PR:		205487
Exp-run by:	antoine
MFH:		2015Q4
2015-12-23 19:10:47 +00:00
Sunpoet Po-Chuan Hsieh
69857748b9 - Update to 2.2.4
- Add LICENSE_FILE
- Use USES=autoreconf instead of USE_AUTOTOOLS=autoconf
- Use USES=libedit
- Silence patch and build messages

Changes:	https://www.ruby-lang.org/en/news/2015/12/16/ruby-2-2-4-released/
		http://svn.ruby-lang.org/repos/ruby/tags/v2_2_4/ChangeLog
Security:	3b50881d-1860-4721-aab1-503290e23f6c
Differential Revision:	https://reviews.freebsd.org/D4668
PR:		205487
Exp-run by:	antoine
MFH:		2015Q4
2015-12-23 19:09:55 +00:00
Olli Hauer
3ad4a7aca8 - add additional blank line, else the first line of the error message
is directly appended to the last line from the build output

deamon@ already fixed the typos in the error message (r404229)

PR:		203157
2015-12-23 11:49:08 +00:00
Olli Hauer
283f684ca4 - adopt new pkg keywords (CHANGES: 20150926)
- s/exec/postexec/
   - s/unexec/postunexec/

with head apache@
2015-12-23 11:39:00 +00:00
Dmitry Sivachenko
efa42a5fc4 Fix typo in message. 2015-12-22 12:56:28 +00:00
Sunpoet Po-Chuan Hsieh
fdb011d8e1 - Add http://ftp.ruby-lang.org/ to MASTER_SITE_RUBY
- Remove dead links:
  - Error code 403: http://www.ibiblio.org/
  - Error code 404: http://mirrors.sunsite.dk/
  - Error code 550: ftp://xyz.lcs.mit.edu/, ftp://ftp.easynet.be/, ftp://ftp.ntua.gr/
  - Unable to resolve: ftp.SpringDaemons.com
2015-12-21 18:33:23 +00:00
Raphael Kubo da Costa
978b5a598d Update Calligra to 2.9.10.
This is the latest Calligra release, and the 2.9 series will be the last
KDE4-based release series.

As usual, huge thanks to Tobias Berner <tcberner@gmail.com> for working on this
in kde@'s area51 experimental repository (including previous Calligra releases
between 2.7.5 and 2.9.10).

Notable changes from a packaging perspective:
- Several dependencies have been updated to use more recent ports versions.
- Old translations not shipped by the current Calligra release have been
  removed.
- The dependency on sysutils/nepomuk-core has been dropped, following what
  upstream has done.
- The dependency on Qt3-compatibility Qt4 ports has been dropped, following
  upstream.
- CONFLICTS with ancient ports have been removed.
- Support for G'MIC (GREYC's Magic for Image Computing), introduced after
  2.7.5, is disabled by default, as building the code with clang requires
  insane (>24GB) amounts of memory. We reported this bug to the LLVM developers
  (bug 22199) almost a year ago, but there has been no activity upstream.
- Stopped depending on graphics/pstoedit in an unorthodox way: just follow what
  every major Linux distribution does and unconditionally depend on it. I could
  not figure out why we were originally depending on the port if it was already
  installed.
- Stop playing tricks with PACKAGE_BUILDING: we do not package Vc
  (https://github.com/VcDevel/Vc) so it does not make sense to turn on support
  for it when building packages. Not only that, but the CMake option name was
  wrong (it should be PACKAGERS_BUILD, not WITH_PACKAGERS_BUILD).
2015-12-21 18:10:32 +00:00
John Marino
4c3c676f77 FPC framework: Use generic buildname to support DragonFly 2015-12-21 01:40:44 +00:00
Jan Beich
1608102c47 www/firefox: update to 43.0.1
Changes:	https://www.mozilla.org/en-US/firefox/43.0/releasenotes/
PR:		205357
Submitted by:	Christoph Moench-Tegeder <cmt@burggraben.net>
Security:	2c2d1c39-1396-459a-91f5-ca03ee7c64c6
MFH:		2015Q4
2015-12-19 10:49:09 +00:00
Jan Beich
f1118f9d99 sites: update MOZILLA mirrors
- releases.m.o and ftp.m.o now point to archive.m.o
- CDN (Akamai) uses broken SSL certificate
- ftp:// is turned off [1]

[1] https://blog.mozilla.org/it/2015/07/27/product-delivery-migration-what-is-changing-when-its-changing-and-the-impacts/
2015-12-19 10:46:48 +00:00
Mathieu Arnold
7c47779cb9 Fix usage of ${PERL5}.
${PERL5} points to a specific version of perl, say, perl5.22.1, it is
fine to use it in a ports Makefile to do Perly things, but ports using
it must use ${PERL}, that points to /usr/local/bin/perl so that if the
minor version is updated, the shebang keep working.

While there, make some ports use shebangfix, regen a few patches, and
bump PORTREVISION where a shebang went from PERL5 to PERL.

PR:		205367
With hat:	portmgr
Sponsored by:	Absolight
2015-12-17 17:19:48 +00:00
Jan Beich
1896e1634e gecko: fix typo in r403853 2015-12-16 09:50:13 +00:00
Jan Beich
4871dd171f gecko: drop support for libc++ where it's not default
If it still has an effect the compiler should be fixed instead.
2015-12-16 09:38:29 +00:00
Raphael Kubo da Costa
4c8f1901de Uses/pyqt.mk: Move dbussupport to _USE_PYQT_ALL.
It also has a PyQt5 version.

Submitted by:	Tobias Berner <tcberner@gmail.com>
2015-12-15 21:37:12 +00:00
Kurt Jaeger
3184bed097 New ports: databases/mysql57-client, databases/mysql57-server
The next major release of mysql.

MySQL is a very fast, multi-threaded, multi-user and robust SQL
(Structured Query Language) database server.

WWW: http://www.mysql.com/

PR:		204607
Submitted by:	mokhi64@gmail.com
Reviewed by:	koobs, brnrd
Approved by:	mat
2015-12-15 19:40:21 +00:00
John Marino
cb97dd0575 Mk/bsd.options.mk: Introduce SELECTED_OPTIONS, DESELECTED_OPTIONS
Until now, the only way to obtain information on the valid port options
and the current selection states is by using the pretty-print-config
target.  It would look something like this:

  > make -C /usr/ports/lang/gcc5-aux print-print-config
  Standard[ +FORT +OBJC +NLS -TESTSUITE -ALLSTAGES -STATIC ] \
  Bootstrap[ -BOOTSTRAP ]

To process the total options and the selection state of each option
requires additional processing, e.g. with awk and/or sed.  Moreover, if
other information is needed about the port it question, it would require
a second execution of "make" to reveal variable values. There simply is
no other way to obtain the option selection information in a single pass
(this limitation came when options framework was brought in).

This enhancement allows the option selection information to revealed with
make -V so that all port information can be acquired in a single pass.
Moreover, they won't require piping through sed or awk.  Two read-only
variables are introduced:

  SELECTED_OPTIONS   (list of all "on" options)
  DESELECTED_OPTIONS (liss of all "off" options)

Here's an example of a single pass acquisition:

  > make -C /usr/dports/lang/gcc5-aux -V PKGNAME -V SELECTED_OPTIONS \
    -V DESELECTED_OPTIONS
  gcc5-aux-20150716
  NLS OBJC FORT
  BOOTSTRAP STATIC ALLSTAGES TESTSUITE

Obviously the grouping information seen in pretty-print-config is lost,
so these new variables will not help if option group information is
required.

Approved by:	portmgr (bapt)
2015-12-14 22:44:39 +00:00
Raphael Kubo da Costa
5b3f3dd953 At very long last land PyQt5 5.5.1 ports.
Add the required bits to Uses/pyqt.mk along with all the PyQt5 ports.
Thankfully this commit is mostly adding new ports, as the hard work was
already done in r403297 and r403662.

Huge kudos to Tobias Berner <tcberner@gmail.com> and, most importantly,
Guido Falsi (madpilot@) for their initial work on these ports (see D2910 in
Phabricator for an earlier version of the PyQt5 patch set).

PR:		204672
2015-12-13 21:56:50 +00:00
Raphael Kubo da Costa
b15d595457 Update PyQt4 to 4.11.4, SIP to 4.17 and QScintilla2 to 2.9.1.
Bring in some long overdue updates, some of which are required for us to
later land the PyQt5 ports.

One big change with this update is that the PyQt4 ports now install their
.sip files into share/py-sip/PyQt4 instead of share/py-sip. This way we do
not end up with directories like share/py-sip/QtCore, which are especially
confusing once PyQt5 lands and starts installing files with the same names.

Other noteworthy items:
- PORTREVISION has been bumped on ports depending on devel/qscintilla2
  because libqscintilla2.so's SOVERSION has changed.
- graphics/seexpr has been converted to USE_PYQT, as the file it used to
  define a build-time dependency on x11-toolkits/py-qt4-gui has moved.

Once again, big thanks to Tobias Berner <tcberner@gmail.com> and Guido Falsi
(madpilot@) for their initial work on these ports as part of the effort to
land PyQt5 into the tree (see D2910 in Phabricator for an earlier version of
the PyQt5 patch set).

PR:		205143
2015-12-13 12:45:25 +00:00
Bryan Drewery
064127e4d8 Force DEBUG_FILES to be off when building with /usr/share/mk. Otherwise
debug symbols are split out and extra files are generated that are not
expected by the plist.  This is after the base system enabled DEBUG_FILES
by default in r291955.

I have pending patches to handle debug symbol splitting for ports, that will
benefit all ports, not just the ones using /usr/share/mk.

With hat:	portmgr
Sponsored by:	EMC / Isilon Storage Division
2015-12-10 21:09:54 +00:00
Raphael Kubo da Costa
31469ae565 PyQt: Replace bsd.pyqt.mk with Uses/pyqt.mk.
In preparation for landing PyQt5 ports, generalize devel/py-qt4's
bsd.pyqt.mk and make it a proper file in Uses/.

Ports wishing to depend on PyQt4 ports can now do the following:
  USES=		pyqt:4
  USE_PYQT=	foo bar_build baz_run

Other changes include the renaming of the PYQT4_DIST variable to PYQT_DIST
and the introduction of the PYQT_SIPDIR plist substitution variable. The
rest of the contents of Uses/pyqt.mk are pretty much identical to what we
had in bsd.pyqt.mk with additional processing of USE_PYQT.

Even though this patch touches files in many different ports, the goal is
for it to be a no-op from an end-user perspective (so that the basic
infrastructure is landed before the other, riskier changes): no dependencies
have been changed, PyQt/SIP/QScintilla have not been upgraded and the plists
should remain exactly the same, since PYQT_SIPDIR currently contains the
same value that used to be hardcoded in the plists.

Huge thanks to Guido Falsi (madpilot@) for spearheading most of the work: he
took the initiative to work on PyQt5 and sent D2910 to Phabricator with the
original version of this patch. Tobias Berner (tcberner@gmail.com) later
applied it to kde@'s experimental area51 repositories and did some more work
on it.
2015-12-08 16:49:43 +00:00
Jason E. Hale
6395b1009e Update MASTER_SITES_GNUPG
- Remove dead mirrors
- Sorted with ports-mgmt/fastest_sites and manually moved a few sites
  to the bottom of the list that were not synced
2015-12-08 03:19:44 +00:00
John Marino
4db8d1b0fb Mk/Uses/ada.mk: Support lang/gcc6-aux 2015-12-06 16:21:47 +00:00
John Marino
f01cba6e50 FPC ecosystem: Upgrade version 2.6.4 => 3.0.0
This is the first major release of FreePascal in nearly four years.
There are a ton of new features, way more to list here. see:
http://wiki.freepascal.org/FPC_New_Features_3.0

Several new unit ports were added, some were contracted.  Most of
those were absorbed into the main FPC packages, but two units are
no longer supported: sndfile and matroshka.

All 99 remaining ports (including Lazarus ports) were build tested
on FreeBSD i386 and amd64 Release 10.2
2015-12-05 23:29:36 +00:00
Raphael Kubo da Costa
c502e77d8f bsd.qt.mk: Move QT_NONSTANDARD check to the _POSTMKINCLUDED section.
Do it so that files in Mk/Uses can set it too. It is required by the
upcoming Uses/pyqt.mk that we will land soon to support PyQt5.

PR:		204975
2015-12-05 21:39:13 +00:00
Baptiste Daroussin
c51a425f4d Update ncurses to 6.0
from now ncurses will track the release and not the snapshots
ABI has changed, add a note for users on how to upgrade
2015-12-05 09:46:20 +00:00
Bryan Drewery
baf3ba05d0 Use normal PORTSDIR rather than dp_PORTSDIR so it is passed around properly.
This fixes errors when PORTSDIR is not set and /usr/ports is not used.  The
/usr/share/bsd.port.mk logic will auto set PORTSDIR, but this was not being
passed into children in the dependency scripts.

With hat:	portmgr
Reported by:	bapt
2015-12-04 22:18:29 +00:00
Baptiste Daroussin
fdad782a4e Also add a centos vault master sites for updates 2015-11-26 17:08:23 +00:00
Baptiste Daroussin
218e13e5f6 Fix typo preventing using c6_64 2015-11-26 13:05:07 +00:00
Mathieu Arnold
3a02a9c2cc Indent the make logic inside the USE_GITHUB block properly.
With hat:	portmgr
Sponsored by:	Absolight
2015-11-25 13:17:58 +00:00
Mathieu Arnold
ca55cc861b keep the multi-github-magic inside of defined(USE_GITHUB)
With hat:	portmgr
Sponsored by:	Absolight
2015-11-25 13:17:42 +00:00
John Marino
6819d5d636 Mk/Scripts/smart_makepatch.sh: Fix multi-patch file and locals bug
There were two issues with the new smart_makepatch script.

1) use of "local" declaration

All function variables were declared "local" during the review.  This
caused the script to break, at least on FreeBSD 9.2.  Given that it's
not being seen on 9.3R or later, it might be a bug in Bourne shell that
has since been fixed.

e.g. This resulted in stderr error on second iteration:
  local contains=$(grep "^+++ " ${existing_patch} | awk '{x++; print x}')

however, this works fine:
  local contains
  contains=$(grep "^+++ " ${existing_patch} | awk '{x++; print x}')

To be safe, all local variables are assigned with $(<shell cmd>) on
separate lines now.

2) The comment extraction was flawed for files that contain multiple
patches.  It was not counting the hunk lines properly which caused some
portion of a patch to be considered as a comment for the next patch.  The
hunk traversal algorithm has been fixed.

Since 1) involved the introduction of local declarations that broke the
script and since only Scripts/smart_makepatch.sh is touched, I will
piggy-back on the original approval.  The fix was tested with devel/nspr,
the port listed in the PR, which uses multi-patch files.

Approved by:		portmgr
Differential Revision:	D4136
PR:			204725
2015-11-22 09:18:07 +00:00
Jan Beich
c68b369d27 www/seamonkey-i18n: unbreak after r401981
=======================<phase: configure      >============================
===>  seamonkey-i18n-2.39 cannot install: seamonkey versions mismatch:
seamonkey-39 is installed and wanted version is seamonkey-.
*** Error code 1

PR:		204692
Reported by:	pkg-fallout, martin.dieringer@gmx.de
MFH:		2015Q4
X-MFH-With:	r401981
2015-11-21 20:04:28 +00:00
Jan Beich
032713d124 devel/nspr: cleanup cruft to improve style
- Remove out-of-tree build (in favor of D4157)
- Remove custom do-install (config/nsinstall works fine) [1]
- Convert to new testing framework
- Refresh patches with |make makepatch| but leave damage out [2]

[1] Requires PORTREVISION per new entry in plist and DEBUG builds
    no longer embedding WRKDIR in source file name
[2] Here's a list with * indicating severity:
    *** Lost original ptthread.c hunk from patch-bug301986
    *** Mixed patch-bug782111 into patch-bug301986
    ** Duplicated context lines
    * Wrong timestamps with USES=pathfix
2015-11-21 02:26:15 +00:00
Jan Beich
a356bf5bac gecko: catch up with 2015-11-03 release train
- Update NSPR to 4.10.10 [1]
- Update NSS to 3.20.1 [2]
- Update Firefox ESR and libxul to 38.4.0
- Update Firefox to 42.0 [2]
- Update SeaMonkey to 2.39

Changes:	http://mozilla.6506.n7.nabble.com/ANNOUNCE-NSPR-4-10-10-Release-td346822.html
Changes:	https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/NSS_3.20.1_release_notes
Changes:	https://www.mozilla.org/en-US/firefox/42.0/releasenotes/
Changes:	http://www.seamonkey-project.org/news#2015-11-08
PR:		204277 [1], 204332 [2], 203099
Submitted by:	swills, Christoph Moench-Tegeder
MFH:		2015Q4
Security:	9d04936c-75f1-4a2c-9ade-4c1708be5df9
2015-11-20 00:38:40 +00:00
Bernard Spil
e30954c605 databases/mariadb-client,scripts,server: Remove
- MariaDB is based on the vulnerable MySQL 5.1 version
  - No new versions since 2013
  - Simplify Mk/bsd.databases.mk

Reviewed by:	koobs (mentor), feld
Approved by:	koobs (mentor)
Differential Revision:	https://reviews.freebsd.org/D4099
2015-11-18 10:51:14 +00:00
Alexey Dokuchaev
2c5c4bf9e3 Currently, when bsd.port.mk outputs a message addressed to a user, it would
typically pipe it through ${FMT} 75 79 command to ensure that if it gets
overly long, it would be wrapped nicely.  Do the same when outputting IGNORE
message which often gets very long.  While here, add missing section number
in sed(1) references in comments.

Differential Revision:	D4116
Approved by:	portmgr (bapt)
2015-11-18 09:19:42 +00:00
Gerald Pfeifer
242073ad09 Add GCC_DESC to Mk/bsd.options.desc.mk. Use this in a number of ports
instead of their own respective settings.
2015-11-16 00:30:00 +00:00
Tijl Coosemans
9f9234cb20 Let USES=autoreconf define AUTORECONF and use it throughout the tree.
PR:		204534
Approved by:	portmgr (antoine)
2015-11-15 15:34:51 +00:00
John Marino
6eff596ebc Enhance "make makepatch" to address two major deficiencies
This update to the "makepatch" target adds the following enhancements:

1) Conserves comments
   If the existing patch has comments, they will be transferred to the
   regenerated patch.

2) Supports multiple patches per file
   If the patch file contains concatenated patches, the makepatch
   target will keep these patches together.  It may change the order
   of the patches the first time, but every time after the multi-patch
   will be assembled in the same order.

Behavioral changes:

A) The "old" patches are not overwritten, but rather archived at:
   ${WRKDIR}/makepatch-tmp/archived-patches

B) Any patch that was not replaced or renamed is deleted by makepatch
   (but it is archived first, see paragraph above)

C) There regeneration messages for the user will show them which patches
   are using "legacy" names formats.

D) Makepatch will do a great job at "cleaning" git patches; it removes
   lines starting with "diff" and "index" in the comments section.

Notes:

E) Should a source file be modified by multiple patches (e.g. two separate
   multi-patches), a composite patch will be generated.  In the above
   example of two multi-patches, one would get the full patch and the
   other no longer patch the source file.

Approved by:		portmgr (mat)
Differential Revision:	D4136
2015-11-15 15:25:12 +00:00
Bryan Drewery
56bd3649b5 - Only consider missing dependency origins to be fatal if they were not
satisfied and needed to be installed.  This restores older behavior of
  allowing a partial checkout where dependencies are already installed. [1]
- Delay fatal errors show that all can be shown at once.

With hat:	portmgr
Reported by:	lev [1]
2015-11-13 18:00:34 +00:00
Mathieu Arnold
6684338e91 Refactor the list of all excluded options so that the second place it is
needed is not forgotten any more.

PR:		204510
With hat:	portmgr
Sponsored by:	Absolight
2015-11-13 13:50:35 +00:00
Bryan Drewery
ab43229f76 Fix partial tree checkouts with 'all-depends-list', 'make clean', etc, after
inclusion of the ports_env feature into that handling around r399791.

With hat:	portmgr
Reported by:	ian, lev
2015-11-09 18:52:19 +00:00
Dmitry Marakasov
270e3dbc28 Don't use cookie for test target
Test target doesn't produce anything and nothing depends on it.
Also it's often useful to run tests multiple times in a row, so
having a cookie which remembers that the tests were already ran
and inhibits subsequent test runs is needless. It also eliminates
the need for retest target.

Approved by:	portmgr (mat)
Differential Revision:	D3875
2015-11-09 17:32:06 +00:00
Mathieu Arnold
b8b878a219 When !defined(DEVELOPER), stage-qa is not put in the stage pipeline.
Make it depend on stage, and point people to adding DEVELOPER=yes to
their environment.

Discussed with:	bapt
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D4082
2015-11-09 15:54:03 +00:00
Dmitry Marakasov
7cffd3c8f9 Remove support for WANT_SDL/HAVE_SDL knobs
WANT_SDL/HAVE_SDL macros allowed a port to check which SDL components
are installed. This goes against the policy of avoiding automatic
dependencies, and there are actually no cases in the portstree where
these knobs are used properly, so axe them out.

Approved by:	portmgr (mat)
Differential Revision:	D4093
2015-11-09 14:30:02 +00:00
Bryan Drewery
d715852bba Don't hardcode CCACHE_DIR.
PR:		199509
Submitted by:	ngie (based on)
Sponsored by:	EMC / Isilon Storage Division
With hat:	portmgr
2015-11-06 20:18:35 +00:00
Jung-uk Kim
85eac3e7a7 Fix build with DOCS=off after r400846. 2015-11-06 18:57:01 +00:00
Mathieu Arnold
ec218a1332 Change the meaning of NO_WRKSUBDIR to force a WRKDIR != WRKSRC.
Right now, NO_WRKSUBDIR means that the extraction does not produce a
subdirectory, and that everything goes straight into WRKDIR.  It is
problematic, because during the build of a port, quite a few files are
created in there, and then, a stage directory, where everything is
installed, and then a pkg directory where the package is created, and
those often conflict, or get in the way, of the building process.

With this, NO_WRKSUBDIR will extract the distfiles directly into WRKSRC
instead of WRKDIR.  In this case, WRKSRC is artificial and is based on
PKGNAME and not DISTNAME, mitigate conflicts with rc files.

PR:		204056
Submitted by:	mat
Reviewed by:	bapt
Exp-run:	antoine
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D2735
2015-11-05 12:35:26 +00:00
Brad Davis
a1b693ac92 Fix a bug introduced in r399992, where creating only a user would fail
due to $PW not being set.  This only occurred when just a user was being
created without a group.  Solve this by setting $PW outside of the group
creation and above both the user and group creation parts.

PR:		203489
Reviewed by:	bapt
Approved by:	portmgr (bapt)
Approved by:	bdrewery (mentor)
2015-10-29 15:30:35 +00:00
Kubilay Kocak
9297c40658 Mk/bsd.sites.mk: Remove non-PEP449 Python mirrors [Part III]
PEP-449 [1] describes the 'Removal of the PyPI Mirror Auto Discovery and
Naming Scheme'.

The main elements of this (Accepted) proposal are:

    Removal of [a-z].pypi.python.org DNS CNAMES
    Replacing individual mirrors with a single Geo-aware CDN service

Previous revisions 365159, 347895, 342514 deprecated several individual
mirrors and *.pypi.python.org aliases. The following changes (Part III)
completes the (PEP-449 compatibility) transition:

    Remove pypi.crate.io (NXDOMAIN)
    Remove pypi.python.jp (Outdated, Broken for DISTNAMEs w/ hyphens
    Switch to TLS (HTTPS) MASTER_SITE by default
    Leave a non-TLS (HTTP) MASTER_SITE for fallback (proxy environments)

This change is also likely to fix PyPI (CHEESESHOP) update detection in
Portscout, at least until upcoming changes for the portscout port add a
dedicated sitehandler for it (and GitHub).

[1] https://www.python.org/dev/peps/pep-0449/

MFH:			2015Q4
Differential Revision:	https://reviews.freebsd.org/D3972
2015-10-24 04:28:37 +00:00
Brad Davis
1990bb0598 Teach the ports framework to handle creating users/groups when
PKG_ROOTDIR is set.  This will enable help support pkg cross installs.

PR:		203489
Reviewed by:	bapt
Approved by:	portmgr (bapt)
Approved by:	bdrewery (mentor)
2015-10-22 16:25:52 +00:00
Dmitry Marakasov
e8e7e6da57 - Add shebangfix documentation bits
- Fix tcl_OLD_CMD tk_OLD_CMD

Approved by:	portmgr (bapt)
Differential Revision:	D3939
2015-10-22 13:36:05 +00:00
Bryan Drewery
929dfd6e18 Revert r399921 for now due to fallout with libclc using ninja. 2015-10-21 21:49:46 +00:00
Bryan Drewery
e189ed624b Enable verbose (compiler output) builds for autotools builds when package
building as these commands can be critical for debugging build failures.

Discussed with:	bapt, kwm
With hat:	portmgr
2015-10-21 14:43:29 +00:00
Mathieu Arnold
c8d9fd9b16 PLIST_SUB entries need paths relative to PREFIX.
With hat:	portmgr
Sponsored by:	Absolight
2015-10-21 14:16:36 +00:00
Bryan Drewery
84cb5553e9 Rework change in r399791 for default perl to not execute it on 'make clean'
if perl is not installed.

With hat:	portmgr
2015-10-20 20:26:59 +00:00
Bryan Drewery
25992a0b05 Roll all of the commands into a loop and use the same patterns for every lang.
- /usr/bin/CMD
 - /bin/CMD
 - /usr/bin/env CMD

With hat:	portmgr
Reviewed by:	bapt, amdmi3
Differential Revision:	https://reviews.freebsd.org/D3942
2015-10-20 15:36:56 +00:00
Bryan Drewery
95e25b27ad Avoid redundantly looking up python command executions for dependency calculation.
This gets all-depends-list in x11/kde4 down to 30 seconds after the 52->41
second improvement in r399703.

With hat:	portmgr
2015-10-19 21:10:56 +00:00
Bryan Drewery
ef91c74363 Avoid redundantly looking up perl version when looking up dependencies or in sub-makes.
With hat:	portmgr
2015-10-19 20:53:15 +00:00
Bryan Drewery
278dd71cd6 - Combine clean-depends-list.sh into depends-list.sh
- Refactor how depends-list.sh is called from bsd.port.mk for each variant.

With hat:	portmgr
2015-10-19 19:23:53 +00:00
Bryan Drewery
670c3111ae The command environment from r399703 is only needed if recursing.
With hat:	portmgr
2015-10-19 18:41:01 +00:00
Bryan Drewery
d40cc1cce4 Fix test-depends after r399703.
With hat:	portmgr
2015-10-19 18:37:06 +00:00
Bryan Drewery
92b545ba81 When listing dependencies, export the common command execution results.
In some basic benchmarks this sped up 'all-depends-list' about 20%.  x11/kde4
went from 52 seconds to 41 seconds.  More improvement is expected once
more command executions are cached in the 'export_ports_env' function.

With hat:	portmgr
2015-10-19 18:01:56 +00:00
Bryan Drewery
34da0bbb9e Add some work-in-progress scripts for splitting symbols out into PREFIX/lib/debug.
This is only missing the bsd.port.mk pieces to hook it up fully.  A blocker
for hooking that up has been sub-packages, even though some implementation
could be made without them.  For now just commit what I have so it is not
forgotten.

Obtained from:	OneFS
Sponsored by:	EMC / Isilon Storage Division
With hat:	portmgr
2015-10-19 17:04:33 +00:00
Bryan Drewery
16f2336cda Switch strip test to using readelf(1) instead of file(1) to identify symbols.
This has been slightly faster in my tests since readelf(1) will fail on the
file much quicker if it doesn't find the ELF headers.  This also more directly
finds the symbol table.

With hat:	portmgr
2015-10-19 16:59:49 +00:00
Steve Wills
dfdb719e6a Make OpenJDK 1.8 the default 2015-10-19 16:14:29 +00:00
Dmitry Marakasov
67971bd0fb Improve shebangfix framework
- Support multiple values in *_OLD_CMD, i.e. we can now fix both "/usr/bin/python" and "/usr/bin/env python" at the same time
- Default *_OLD_CMD values are now always appended, so you don't need to specify them in individual ports
- Add lua support (depends on USES=lua)
- Add more default values, such as "/usr/bin/env foo" for python, perl, bash, ruby and lua
- Shebangfix now matches whole words, e.g. we will no longer (erroneously) replace "/usr/bin/perl5.005" with "${perl_CMD}5.005" (but "/usr/bin/perl -tt" is still (correctly) replaced with "${perl_CMD} -tt")

Note that *_OLD_CMD items containing spaces must now be quoted (e.g. perl_OLD_CMD=/bin/perl /usr/bin/perl "/usr/bin/env perl")

Update shebangfix usage according to new rules in many ports:

- Remove *_OLD_CMD for patterns now replaced by default
- Quote custom *_OLD_CMD which contain spaces

Fix shebangfix usage in many ports (irrelevant to infrastructure change):

- Remove redundant SHEBANG_LANG (no need to duplicate default langs)
- Remove redundant *_CMD (such as python_CMD=${LOCALBASE}/bin/python${PYTHON_VER} when USES=python is present)
- Never use *_OLD_CMD in REINPLACE_CMD matchers, these should always look for exact string

Approved by:	portmgr (bapt)
Differential Revision:	D3756
2015-10-19 14:50:52 +00:00
Mathieu Arnold
7f0f664d7e Drop 8 support.
With hat:	portmgr
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D3694
2015-10-15 14:55:14 +00:00
Baptiste Daroussin
8cea2b0147 Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched
This gives more time for tools to get updated, available in packages etc before
bothering users
2015-10-15 07:36:38 +00:00
Baptiste Daroussin
9b1ed98e60 Temporary readd ${PORTSDIR} to perl5 deps as somewhow they are triggering
an issue with sanify check in poudriere that needs to be fixed first

Reported by:	adamw
2015-10-14 20:44:34 +00:00
Baptiste Daroussin
869e1f27d0 Drop the necessity to add ${PORTSDIR} to dependency line
Modify make describe to automatically prepend ${PORTSDIR} if the path for the
port is not absolute

Checked with poudriere, portmaster, portupgrade

PR:		203685
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D3866
2015-10-14 16:49:35 +00:00
Koop Mast
1742c4fbee Xorg-server update to 1.17.2 with related driver updates and bumps.
Update fontproto to 2.1.3.
Update libXfont to 1.5.1.
Update xf86-input-keyboard 1.8.1.
Update xf86-input-vmmouse to 13.1.0.
Update xf86-input-void to 1.4.1.
Update xf86-video-chips to 1.2.6.
Update xf86-video-cirrus to 1.5.3.
Update xf86-video-mach64 to 6.9.5.
Update xf86-video-neomagic to 1.2.9.
Update xf86-video-r128 to 6.10.0.
Update xf86-video-s3virge to 1.10.7.
Update xf86-video-savage to 2.3.8.
Update xf86-video-siliconmotion to 1.7.8.
Update xf86-video-sis to 0.10.8.
Update xf86-video-trident to 1.3.7.
Update xf86-video-vesa to 2.3.4.

* All other xf86-* drivers where bump and/or patched to allow them to
  compile and work with the new xorg-server.
* The ATI-ums driver is removed because the API it depends on was
  removed from the xorg-server.
* Add patch to sunffb to make the lack of XAA non-fatal
  (not build/run tested due to lack of hardware).
* Remove the extra patches in xorg-server for arm. The code seems to
  support it now natively. Please file a bug if this is not the case.
* Update the xorg-server support in virtualbox-ose-additions for vboxmouse. [1]

Submitted by:	jkim@ [1]
Obtained from:	Graphics devel repo
2015-10-13 07:45:08 +00:00
Bryan Drewery
481f66bd21 Follow-up r399170 with a script, ports_env.sh, that can be used for the purpose.
This will allow Poudriere to know if it is possible to use the feature or not
by the existence of the file.

Also fix quoting issues.

With hat:	portmgr
2015-10-13 00:03:10 +00:00
Bryan Drewery
6221392fff Add a function to export vars that bsd.port.mk generates from fork/exec.
This will be useful in Poudriere to avoid needless fork/exec for every
port when gathering dependencies.

Example usage:

  MAKE=make sh -c '. Mk/Scripts/functions.sh; export_index_env; export PACKAGE_BUILDING=1; truss -f make -C sysutils/zfstools -V BUILD_DEPENDS 2>&1' | grep exec

This eliminates 14 exec/fork calls for this example, when PACKAGE_BUILDING
is also set during -V.

Care should be taken with UID not being passed down into actual builds as it
may conflict with non-root builds.

With hat:	portmgr
2015-10-12 23:41:36 +00:00
Bryan Drewery
45535ed69c Don't check for minimal Pkg version for package building.
Package building always builds Pkg first.  If someone downgrades their
pkg locally this change will hurt them, but then they are already
running an unsupported configuration.

With hat:	portmgr
2015-10-12 23:22:20 +00:00
Bryan Drewery
16162f77dd Name the 'uname -r' variable the same as the bsd.port.subdir.mk version, _OSRELEASE.
This will allow passing in the environment consistently from calling script
to avoid looking it up if.

With hat:	portmgr
2015-10-12 22:44:19 +00:00
Bryan Drewery
2dbe9690e1 Apply export handling fixes from bsd.port.mk.
- r399153: Use :Q.
 - r399155: Use a loop to export vars

With hat:	portmgr
2015-10-12 22:42:57 +00:00
Bryan Drewery
5dc6e4f3f3 Export more sysctl(8) vars.
LINUX_OSRELEASE, _SMP_CPUS (used as default MAKE_JOBS), CONFIGURE_MAX_CMD_LEN.

With hat:	portmgr
2015-10-12 22:41:34 +00:00
Bryan Drewery
c04897eb8c Remove debugging leftover from r399160.
With hat:	portmgr
2015-10-12 22:30:01 +00:00
Bryan Drewery
c46779db54 Export HAVE_COMPAT_IA32_KERN to sub-makes and ensure it is not exported if empty.
With hat:	portmgr
2015-10-12 22:28:15 +00:00
Bryan Drewery
1c65a7751e Move the exported variable assignments to where they are looked-up.
This is so we are less likely to carry around old vars that are no longer
needed and to keep logic more coupled.

With hat:	portmgr
2015-10-12 22:19:35 +00:00
Bryan Drewery
fe77fdc73b Spell 'OSREL' properly from r399155.
With hat:	portmgr
2015-10-12 22:17:09 +00:00
Bryan Drewery
6d9ce0831c Don't check for minimal pkg version in sub-makes.
With hat:	portmgr
2015-10-12 22:14:45 +00:00
Bryan Drewery
863afee20a Pass result of 'uname -r' to sub-makes to avoid unneeded lookup.
With hat:	portmgr
2015-10-12 22:13:21 +00:00
Bryan Drewery
4ad83bd568 Use a loop to export vars.
This also fixes adding duplicates to .MAKEFLAGS with fmake, which was a
bug present before recent changes.

With hat:	portmgr
2015-10-12 22:09:47 +00:00
Bryan Drewery
19f179cf3b Re-apply r398953 with protection for 'make *config*'.
This will only include the descriptions file if needed to very slightly
lower overhead with -V lookups and package building dependency calculations.

With hat:	portmgr
2015-10-12 21:41:43 +00:00
Bryan Drewery
1289b5e043 Replace escaping for exported vars with :Q feature.
With hat:	portmgr
2015-10-12 21:38:28 +00:00
Bryan Drewery
ac1cb7e914 Remove SYSTEMVERSION exporting, not needed since r99913.
This is a relic of port.mkversion.

With hat:	portmgr
2015-10-12 21:36:55 +00:00
Dmitry Marakasov
7d137fe741 Use -r flag for read command, this fixes handling of paths containing
backslashes, and, in result, stage-qa for archivers/deco

Approved by:	portmgr (antoine)
Differential Revision:	D3862
2015-10-12 13:33:18 +00:00
Kurt Jaeger
b682911423 Adding CPAL-1.0, https://opensource.org/licenses/CPAL-1.0
PR:		203702
Approved by:	portmgr, eadler
2015-10-11 17:52:00 +00:00
Baptiste Daroussin
3566d56ac4 Add PLIST_DIRSTRY deprecation to sanity check (forgot to add it before) 2015-10-10 21:24:22 +00:00
Baptiste Daroussin
2ae2321acb Avoid a useless call to dirname 2015-10-10 21:19:43 +00:00
Baptiste Daroussin
2af7305829 Remove another unused variable 2015-10-10 20:53:34 +00:00
Baptiste Daroussin
8a102da7c2 Remove unused variable 2015-10-10 20:23:40 +00:00
Baptiste Daroussin
62c0718df2 Check if the port directory is aboslute otherwise prepend ${PORTSDIR} in FETCH_LIST
It allows dependencies to be defined without ${PORTSDIR}
2015-10-10 19:53:36 +00:00
Baptiste Daroussin
81c092df16 Revert r398953 per bdrewery demand it breaks make config
Reported by:	novel
2015-10-10 19:45:51 +00:00
Baptiste Daroussin
ed83abe320 Use USESDIR macro 2015-10-10 17:46:45 +00:00
Tijl Coosemans
3a55a118dd Remove iconv(), iconv_open() and iconv_close() symbols from libiconv.
These were FreeBSD specific aliases for libiconv(), libiconv_open() and
libiconv_close() that are now also provided by libc which complicates
writing configure tests that work correctly when both libc iconv and
libiconv are available.

Also, because the libiconv iconv.h header redefines iconv* to libiconv*
correct use of the header implies that the aliases aren't used.

The following ports needed fixes because there was something wrong with
the way they tried to detect or use iconv:

audio/deadbeef: Remove LIBICONV_PLUG from a source file.  It's a
compile-time option and should not be set in source code.
comms/hidapi: Use standard AM_ICONV configure macro to look for iconv.
deskutils/fbreader: Let ports framework deal with LIBICONV_PLUG.
deskutils/ljclive: Override configure test for iconv.
deskutils/owncloudclient: Add USES=iconv and patch test for iconv.
devel/aegis: Bump PORTREVISION because it no longer uses libiconv.
devel/libexplain: Add USES=iconv and override test for iconv.
devel/sdl20: Override configure test for iconv.
emulators/vmw: Replace OSVERSION checks with ICONV_LIB checks and include
<iconv.h> instead of <sys/iconv.h>.
irc/scrollz: Override configure test for iconv.
japanese/chasen-base: Override configure test for iconv and patch
configure so it no longer adds -liconv to linker flags just because it
happens to be installed.
japanses/eb: Patch configure test for iconv.
japanses/eblook: Override configure test for iconv.
java/jikes: Override configure test for iconv.
multimedia/transcode: Bump PORTREVISION because only one plugin links with
libiconv now.
net/c3270: Override configure test for iconv.
net/samba4*: Bump PORTREVISION because it no longer uses libiconv.  The
configure script will always add -liconv to the linker flags when it
happens to be installed which would be wrong but later on binaries are
linked with -Wl,--as-needed and the linker discards -liconv because it
finds iconv*() functions in libc now and no longer in libiconv.
net-mgmt/icinga-*: Remove dependency on iconv.
net-mgmt/netxms: Patch configure so it no longer adds -liconv to linker
flags just because it happens to be installed.
net/asterisk11: Patch configure so it no longer adds -liconv to linker
flags just because it happens to be installed.
net-p2p/transmission-*: Override configure test for iconv.
www/htmlcxx: Override configure test for iconv.
www/httrack: Override configure test for iconv.
www/xapian-omega: Override configure test for iconv.
x11/mrxvt(-devel): Add USES=iconv and override configure test for iconv.
x11/x3270: Override configure test for iconv.
x11-wm/jwm: Override configure test for iconv.

PR:		202838
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2015-10-10 14:03:00 +00:00
Bryan Drewery
3456a0671a Don't include/parse bsd.options.desc.mk if not needed (showconfig or -V *_DESC).
This is targetting dependency listing overhead.

With hat:	portmgr
2015-10-09 19:20:24 +00:00
Bryan Drewery
2ef20de270 Make missing argument less obscure.
With hat:	portmgr
2015-10-09 18:13:57 +00:00
Bryan Drewery
a1a7117c83 Shift any arguments eaten up from getopts. This script takes no arguments
yet.

With hat:	portmgr
2015-10-09 18:09:02 +00:00
Bryan Drewery
78aeec8db1 Unify depends-list.sh and all-depends-list.sh into one script, depends-list.sh.
With hat:	portmgr
2015-10-09 18:00:44 +00:00
Dmitry Marakasov
a46575cc6b Add LOCALBASE-based ldconfig dir to plist for non-default PREFIX
ldconfig file is always installed into LOCALBASE-based directory
(${LOCALBASE}/${LDCONFIG_DIR}) which is first created. When a port
redefines PREFIX (PREFIX != LOCALBASE), this directory needs to be
mentioned in pkg-plist.

Add the directory to the plist. While here, add identation to nested
make conditions and loops to improve readability and simplify one
empty .if body.

This fixes stage-qa for biology/emboss and cad/brlcad

Approved by:	portmgr (bapt)
Differential Revision:	D3815
2015-10-08 14:57:29 +00:00
Dmitry Marakasov
be25d1eef5 Enable TEST option if DEVELOPER is set
TEST option is used when a port needs extra depends or flags for
build phase to enable tests (so TEST_DEPENDS don't work). Enable
it by default for DEVELOPER builds, so interested parties and Q/A
can have all tests available.

Approved by:	portmgr (bapt)
Differential Revision:	D3844
2015-10-08 14:21:10 +00:00
Dmitry Marakasov
0521b2fe8e Add a way to cleanly handle terminfo.db file used by devel/ncurses
This database contains compiled terminfo entries and is merged from
a large part which comes with ncurses themselves and compiled
.terminfo files installed by other ports (currently only rxvt-unicode
and jfbterm)

- Now the database is always kept up to date, regardless of port
  installation order (both ncurses installed before .terminfo files
  and the other way around work as expected)
- All affected ports now support clean deinstallation and do not
  produce stage-qa errors
- Affected ports are simplified, as they now only need to define
  USES=terminfo
- rxvt-unicode no longer pulls in ncurses: the dependency is not
  really needed for anything beside updating it's own database
- The patch contains Q/A test to check whether a port needs, or
  needs not USES=terminfo

Approved by:	portmgr (mat, bapt)
Differential Revision:	D3747
2015-10-08 14:12:53 +00:00
Dmitry Marakasov
70a6c7d89d - Fix compatibility with fmake
Approved by:	portmgr blanket
2015-10-07 18:45:28 +00:00
Dmitry Marakasov
9a33f6f65c Do not provide empty do-test target for perl5-using ports
perl5's do-test: target should only be enabled when USE_PERL5=configure
or USE_PERL5=modbuild* are used, otherwise it'll end up being empty
and will prevent other tests from running.

Remove NO_PERL5_TEST as it isn't really needed after this fix.

Approved by:	mat, sunpoet
Differential Revision:	D3830
2015-10-07 16:19:43 +00:00
Steve Wills
65087871fe www/firefox: update to 41.0
PR:		203384
Submitted by:	Christoph Moench-Tegeder <cmt@burggraben.net>
MFH:		2014Q4
Security:	2d56c7f4-b354-428f-8f48-38150c607a05
2015-10-06 20:01:59 +00:00
Dmitry Marakasov
bdca2b917a Add support for opt_TEST_TARGET consistent with opt_{ALL,INSTALL}_TARGET
Approved by:	portmgr (mat)
Differential Revision:	D3788
2015-10-05 12:45:29 +00:00
Sunpoet Po-Chuan Hsieh
d1781c2e30 - Add NO_PERL5_TEST: allow ports with USES=perl5 to run default do-test: defined in bsd.port.mk
- Fix comment
2015-10-03 17:06:52 +00:00
Mathieu Arnold
3818d01826 Fix opt_VARS premature expansion.
Due to the way .for loop work, opt_VARS was being expanded too early
evaluation, which made it impossible to use vars that are set/modifies
afterwards (such as PREFIX or PKGDIR)

Fix this by changing opt_VARS handling logic so that the right side is
not prematurely expanded:

- Loop not by words (each word here is single VAR=val / VAR+=val tuple)
  but by unique left sides of assignments (VAR, VAR+ here)
- Using the left side, extract all corresponding right sides and
  append/assign them to a variable

This changes the way this opt_VARS line work, which behavior is between
invalid and undefined:

opt_VARS= FOO=bar FOO=baz

Before it would end up with "FOO=baz", now it ends up with "FOO=bar baz"

Submitted by:	amdmi3
Reviewed by:	antoine, mat
Approved by:	my portmgr hat
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D3729
2015-10-01 07:56:36 +00:00
Dmitry Marakasov
824d6669e1 - Fix typo
Approved by:	portmgr blanket
2015-09-30 15:43:55 +00:00
Koop Mast
bf4361021d Fix qt5-multimedia with GStreamer 1.6.0.
Qt 5 does the following during the build of qt5-multimedia:

--- qt-post-install ---
echo "# define QT_GSTREAMER"  >> /wrkdirs/usr/ports/multimedia/qt5-multimedia/
  work/stage/usr/local/include/qt5/QtCore/modules/qconfig-multimedia.h
echo "# define QT_GST_VERSION=1.0"  >> /wrkdirs/usr/ports/multimedia/
  qt5-multimedia/work/stage/usr/local/include/qt5/QtCore/modules/qconfig-multimedia.h
echo "# define QT_XVIDEO"  >> /wrkdirs/usr/ports/multimedia/qt5-multimedia/
  work/stage/usr/local/include/qt5/QtCore/modules/qconfig-multimedia.h

That's (second line) not how #define works in C of C++

The resulting qconfig-multimedia.h file contains this:

#if !defined(QT_GST_VERSION=1.0) && !defined(QT_NO_GST_VERSION=1.0)
# define QT_GST_VERSION=1.0
#endif

This patch filters out the "=1.0" from the define. Bump qt5-multimedia
since the installed header needs to be corrected.

Reported by:	antoine@
Patch submitted by:	Adriaan de Groot <groot@kde.org>
2015-09-28 20:20:53 +00:00
Dmitry Marakasov
5c57225987 Implemented complete support for test target.
You can now `make test' on any port to run test sequence, no-op by default.
If a port defines TEST_TARGET, it'll run sub-make with specified target,
usually `check' or `test', useful if upstream supports that. The port may
instead define custom do-test target, as well as usual satellite targets:

  {pre,do,post}-test, {pre,do,post}-test-OPT, {pre,do,post}-test-OPT-off

`make test' builds and stages port first, so test may use both WRKDIR and
STAGEDIR, and both BUILD and RUN depends are available for test target.
Additionally, TEST_DEPENDS is now properly supported and may be used to
define additional depends specifically for testing.

Framework may define default tests for specific cases. For instance,
perl5.mk and cran.mk already provide default test target on their own.

This commit also converts my ports which have tests to this new framework.

Approved by:	portmgr (bapt)
Differential Revision:	D3680
2015-09-28 17:20:42 +00:00
Adam Weinberger
b804a6336e Add a message explaining how to fix poudriere build failures if the
ZTS option is enabled.

PR:		201193
Approved by:	maintainer timeout (PR is 3 months old without
		maintainer response)
2015-09-27 18:37:34 +00:00
Rene Ladan
431f5007b1 Mk/bsd.gnome.mk : remove net/linc from the component list.
Approved by:	gnome (kwm)
Differential Revision:	https://reviews.freebsd.org/D3738
2015-09-27 10:52:16 +00:00
Koop Mast
7b97259096 Update gstreamer1 ports to 1.6.0.
* gstreamer1-libav now uses ffmpeg from ports.
* New ports:
  * gstreamer1-validate: Tools to detect if elements are not behaving
    as expected, mainly aimed at developers, or advanced debugging.
  * gstreamer1-rtsp-server: Base foundation for building a rtsp
    server ontop of GStreamer
 * Bunch of new plugins like: mpg123, rsvg, libde265, openh264, x265 and dtls.

Release announcement:
  http://lists.freedesktop.org/archives/gstreamer-announce/2015-September/000357.html

Obtained from:	gnome devel repo
2015-09-26 14:36:23 +00:00
Baptiste Daroussin
5adc8a9faa Extend @sample to accept arguments
Maintainers can now use @sample sample_file target_file for all cases
that does not fall into the usual @sample something.sample

Reviewed by:	antoine
Differential Revision:	https://reviews.freebsd.org/D3734
2015-09-26 12:13:23 +00:00
Baptiste Daroussin
6a22c121be Explicitly run some gnome commands in post (de)install 2015-09-26 08:43:53 +00:00
Baptiste Daroussin
9c60540e18 Explicitly run the ocaml command in post (de)installation 2015-09-26 08:41:45 +00:00
Baptiste Daroussin
f8005ba9f4 Explicly force runnning load-octave-pkg during post (de)installation 2015-09-26 08:39:49 +00:00
Antoine Brodin
a11549b651 Restore _FORCE_POST_PATTERNS, some ports are were missed in the conversion
With hat:	portmgr
2015-09-26 06:37:40 +00:00
Baptiste Daroussin
df5382dbbd ocamlfind is not run anymore from any @exec lines 2015-09-26 00:44:22 +00:00
Baptiste Daroussin
904f48db63 update-desktop-database is not used anymore @*exec 2015-09-26 00:36:40 +00:00
Baptiste Daroussin
70e2226c26 Convert update-mime-database into @post* 2015-09-26 00:26:58 +00:00
Baptiste Daroussin
59eaaf3ef0 Convert load-octave-pkg to proper @postexec 2015-09-26 00:19:56 +00:00
Baptiste Daroussin
0eae03bd38 Specify correctly @post* for gtk-query-immodules 2015-09-26 00:08:26 +00:00
Baptiste Daroussin
12b59fc91a Convert a bunch of @exec into proper @postexec 2015-09-25 23:52:09 +00:00
Baptiste Daroussin
8702bbcc8c mkfontscale and mkfontdir are not used anymore in @exec lines 2015-09-25 23:47:32 +00:00
Baptiste Daroussin
d70351f98d kldxref is not used anymore in any @exec 2015-09-25 23:41:29 +00:00
Baptiste Daroussin
ffc12ae7e2 Bump the minimal version of pkg to 1.6.0 2015-09-25 23:31:35 +00:00
Baptiste Daroussin
fa5faefc21 Use @post[un]exec for ldconfig to ensure ldconfig is run when needed instead of
the hackish _FORCE_POST_PATTERNS
2015-09-25 23:30:40 +00:00
Hiroki Sato
517e0a5401 Add preliminary support of tlmgr.
- TLPDB and tlmgr.log are located in /var/db/tlpkg.

 - "tlmgr conf texmf" modifies /var/db/tlpkg/texmf.cnf.
   libkpathsea looks up it first if it exists and ignore the standard ones
   in PREFIX/share/texmf-dist/web2c/texmf.cnf or
   PREFIX/share/texmf-local/web2c/texmf.cnf.

 - "tlmgr update" can still break consistency of the installed texmf-*
   hierarchy by FreeBSD Ports Collection if it runs by root.
2015-09-25 21:42:25 +00:00
Baptiste Daroussin
e82e5f144b Remove another wrong comment 2015-09-24 23:19:37 +00:00