1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00
Commit Graph

4986 Commits

Author SHA1 Message Date
Bryan Drewery
94b4d68eae USE_GITHUB: Treat 'V' special just as 'v' is for DISTVERSIONPREFIX.
Fixes security/libzrtpcppcore after r385420.

Reported by:	antoine
With hat:	portmgr
2015-05-04 22:02:29 +00:00
Bryan Drewery
007bf7a3d4 USE_GITHUB: Fix WRKSRC to contain the full DISTVERSION prefix/suffx when GH_TAGNAME not set.
The GH_TAGNAME-based GH_TAGNAME_EXTRACT is now always used for the new style
USE_GITHUB WRKSRC default.

This was not spotted before since all but 1 github ports were using 'v' as a
prefix, where github already stripped it. So the default GH_PROJECT-DISTVERSION
was fine. The other case was x11-fonts/sourcesanspro-ttf where
GH_TAGNAME was defined to have the full DISTVERSION prefix/suffx.

Tested against all current USE_GITHUB !GH_COMMIT ports.

PR:		199913
With hat:	portmgr
Reported by:	jbeich
2015-05-04 17:42:29 +00:00
Guido Falsi
2c44e6acd0 - Add USE_OCAML_CAMLP4 and USE_OCAML_TK to bsd.ocaml.mk which add
depends on the camlp4 language and labltk ocaml modules, which are
  now in separate ports.
- Update x11-toolkits/ocaml-lablgtk2 to 2.18.3
- Update graphics/ocaml-lablgl to 1.05
- Make unison ports use USE_OCAML
- Convert ports to the new flags where needed
- Bump PORTREVISION on ports depending on ocaml-lablgtk2, those need to be rebuilt

PR:			199845
Submitted by:		jbeich@
Differential Revision:	https://reviews.freebsd.org/D2434
Approved by:		portmgr (mat)
2015-05-04 15:46:51 +00:00
Antoine Brodin
f7f5de9089 Remove _*OWNGRP, with staging it's not useful anymore
With hat:	portmgr
Original submission:	bapt
Exp-run:	self
2015-05-04 13:21:17 +00:00
Antoine Brodin
ff258d339c Finish r385284 (audio/linux-c6-sdl_mixer: update to 1.2.12)
Pointy hat:	xmj
2015-05-04 12:35:17 +00:00
Baptiste Daroussin
0f5d587ef2 Remove unintended change from r385384 those will come later 2015-05-04 08:55:04 +00:00
Baptiste Daroussin
dd86eab2d5 Mark NEED_ROOT as deprecated, It was a wrong idea as people are abusing it.
There is now USES=fakeroot for complicated cases if needed.
2015-05-04 08:53:20 +00:00
Tijl Coosemans
6b3b61fe7d Use base system iconv.h again on FreeBSD stable/10. 2015-04-30 16:53:06 +00:00
Bryan Drewery
d200dc8283 Fix strip check to consider setuid binaries.
file(1) returns 'setuid' before the rest of the ELF output.

With hat:	portmgr
Sponsored by:	EMC / Isilon Storage Division
2015-04-30 02:44:30 +00:00
Bryan Drewery
aa6ad6e726 USE_GITHUB: For the new support, fix DISTNAME to be more consistent.
When using GH_TAGNAME the DISTNAME would have GH_PROJECT and GH_ACCOUNT in
it. When not using GH_TAGNAME it would not have this. Now both cases
will add in the GH_PROJECT and GH_ACCOUNT.

Add special care to ensure that the DISTVERSION is not added in twice. If
a port does GH_TAGNAME=v${PORTVERSION} it will be added in twice though. For
that case DISTVERSIONPREFIX=v should be set and no GH_TAGNAME should be used.

empty() is used rather than (!defined || !${}) to support fmake.

The purpose of setting DISTNAME at all in these cases is to make it more clear
that the distfile is from *GITHUB* and to avoid collisions if a project were
to be renamed or moved. Without adding in GH_PROJECT and GH_ACCOUNT then there
are real risks that collisions on filenames would happen on renamed or moved
projects, which is fairly common. A GITHUB-generated file may not match
a custom-rolled or git-archive-rolled distfile.

PR:		199069
With hat:	portmgr
Testing done:	All USE_GITHUB ports without GH_COMMIT were checksum/fetch/extract/WRKSRC tested.
2015-04-28 18:44:04 +00:00
Bryan Drewery
63408327b0 USES=xfce: Stop overriding MASTER_SITE_SUBDIR.
Add an XFCE SITE_SUBDIR abbreviation and use it forf or the xfce ports,
which removes the need to set MASTER_SITE_SUBDIR in any of them.

This fixes ports that have USES=xfce but do not use the XFCE MASTER_SITE,
namely sysutils/xfce4-bsdcpufreq-plugin.

With hat:	portmgr
2015-04-28 17:01:46 +00:00
Antoine Brodin
a5673b92fb Do not error on dependency on ${NONEXISTENT}:dir:target when STRICT_DEPENDS
is set

Reviewed by:	bdrewery
With hat:	portmgr
2015-04-28 15:56:30 +00:00
Mathieu Arnold
fc722249ab Forgot that when I updated Perl lang/perl5-devel.
Sponsored by:	Absolight
2015-04-27 15:44:03 +00:00
Ashish SHUKLA
2893a8de0c GNU Emacs Updates
editors/emacs:
 - Update to 24.5
 - Remove dependency on GCC for i386 platform, if the bug is fixed
   in the version in use
 - Remove upstreamed diff

editors/emacs-devel:
 - Update to git snapshot def0df01
 - Remove git revision from PORTVERSION, rather encode it in
   DISTNAME
 - Remove dependency on GCC for i386 platform, if the bug is fixed
   in the version in use
 - Fix portlint warnings

Mk/bsd.emacs.mk:
 - Update version number for editors/emacs
 - Remove deprecated block for emacs23

PR:		199553
2015-04-27 10:28:00 +00:00
Sunpoet Po-Chuan Hsieh
b160de8279 - Add shared WOLFSSL description 2015-04-25 10:01:44 +00:00
Gerald Pfeifer
e7ac27ee6a Since there is not going to be any new version of GCC in the FreeBSD
base system ever again, simplify the GCCVERSION table and logic to not
worry about minimum system versions carrying a certain version of GCC.

This also removes the _GCCVERSION_${v}_R variables and simplifies some
logic and debug output.
2015-04-22 21:29:21 +00:00
Bryan Drewery
7925d59ca7 Add a STRICT_DEPENDS feature which validates dependencies are installed, does
not install missing ones, and considers any missing ones as fatal.

This will be used by Poudriere to validate dependency lines are correct.

An example case is:
  RUN_DEPENDS= foo:${PORTSDIR}/ports-mgmt/bar where the port does not provide
  anything named 'foo'. In every phase it will attempt to install the bar port
  to satisfy the depdendency and continue to fail to satisfy it. This can
  eventually lead to unexpected errors such as trying to install a port
  in the 'stage' phase when running as non-root and will encounter a pkg(8)
  permissions issue.

  This sort of issue occurred in http://lists.freebsd.org/pipermail/freebsd-ports/2015-April/098892.html

Discussed with:	bapt
With hat:	portmgr
2015-04-21 18:16:31 +00:00
Tijl Coosemans
f3d0196f85 Remove the destination of a copy before copying to it because it may be
a symlink and then cp follows the link.

Approved by:	portmgr (antoine)
2015-04-21 09:03:52 +00:00
Tijl Coosemans
68edbeeaae - Display a stage-qa warning when ports use PREFIX/var instead of /var
- Add --localstatedir=/var to _LATE_CONFIGURE_ARGS (like --mandir) but not
  when CONFIGURE_ARGS already sets it.  (GNU configure scripts set it to
  PREFIX/var when PREFIX != /usr.)
- Add --localstatedir="${PREFIX}/var" to CONFIGURE_ARGS in some ports so
  they aren't affected by this change (for now at least).  This commit is
  meant to ensure that new ports don't make the same mistake.

- games/acm: the configure script in this port is very old; instead of
  patching it more, just replace GNU_CONFIGURE with HAS_CONFIGURE.
- irc/charybdis: it already used /var but adding --localstatedir=/var
  changed the behaviour of the configure script; adjust the port to this.

PR:		199506
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2015-04-20 19:06:29 +00:00
Gerald Pfeifer
728fb3cb3d Abstract ${WRKDIR}/pkg/${PKGNAME}${PKG_SUFX} which appears five times
and introduce and use WRKDIR_PKGFILE instead.

PR:		199526
Approved by:	portmgr (bdrewery)
2015-04-19 18:33:37 +00:00
Tijl Coosemans
e81a5e63ab Mark USE_AUTOTOOLS deprecated and remove support for libtoolize.
Approved by:	portmgr (bapt)
2015-04-19 18:16:40 +00:00
Koop Mast
1fc509c591 Misc X.org port updates:
Update gccmakedep to 1.0.3.
Update imake to 1.0.7.
Update libpciaccess to 0.13.3.
Update libdrm to 2.4.60.
Update bitmap to 1.0.8.
Update fstobdf to 1.0.6.
Update iceauth to 1.0.7.
Update libXdmcp to 1.1.2.
Update libXp to 1.0.3.
Update libXvMC to 1.0.9.
Update libXxf86vm to 1.1.4.
Update libxshmfence to 1.2.
Update randrproto to 1.4.1.
Update rgb to 1.0.6.
Update sessreg to 1.1.0.
Update xcb-util-cursor to 0.1.2.
Update xedit to 1.2.2.
Update xkbcomp to 1.3.0.
Update xkeyboard-config to 2.14.
Update xproto to 7.0.27.
Update xf86-input-mouse to 1.9.1.
Update xf86-input-synaptics to 1.8.2.
Update xf86-video-i710 to 1.3.5.
Update xf86-video-mga to 1.6.4.
Update xf86-video-tdfx to 1.4.6.
Update xf86-video-vmware to 13.1.0.
Update bdftopcf to 1.0.5.
Update font-util to 1.3.1.
Update fslsfonts to 1.0.5.
Update mkfontscale to 1.1.2.
Update showfont to 1.0.5.
Update xfs to 1.1.4.
Update xfsinfo to 1.0.5.

Remove :keepla from USES=libtool for X libraries in bsd.xorg.mk, and bump
  all affected ports.

PR:		199400
Obtained from:	Xorg-devel repo
2015-04-18 15:34:36 +00:00
Tijl Coosemans
563a7043bb Remove unused variables related to USE_AUTOTOOLS=libtool which has been
removed in r368357
2015-04-18 10:29:35 +00:00
Dmitry Marakasov
44b12e9ff7 - Set variables with libexecinfo preprocessor and linker flags
Differential Revision:	D2298
Reviewed by:	portmgr (bapt)
Approved by:	portmgr (bapt)
2015-04-16 14:15:12 +00:00
Baptiste Daroussin
ad02434ab8 bye lua@ 2015-04-16 12:44:17 +00:00
Mathieu Arnold
d7534a0d39 Add lang/perl5-devel, which will be the one from which the lang/perl5.xx ports
will come from, from now on.

Please, only use the -devel port for testing, not for production purposes.

Sponsored by:	Absolight
2015-04-16 11:44:21 +00:00
Tijl Coosemans
131a6f5b8d Hide _LIBICONV_VERSION when LIBICONV_PLUG is defined.
This fixes building devel/gettext-runtime with gcc from lang/gcc*.
With base system compiler gettext includes /usr/include/iconv.h but
lang/gcc* implies -I/usr/local/include and gettext calls
libiconv_set_relocation_prefix when it sees _LIBICONV_VERSION which
isn't implemented (and isn't needed) by libc iconv.

Reported by:	Dewayne Geraghty <dewayne.geraghty@heuristicsystems.com.au>
2015-04-16 10:57:57 +00:00
Bryan Drewery
005a60b7c9 Improve the OSVERSION==UNAME_r validation from r369644 by skipping it
if OSVERSION is specified on the cmdline. This makes testing simpler.

This only works for bmake.

	# make -V CONFIGURE_LIBS
	-lnew_release
	# make -V CONFIGURE_LIBS OSVERSION=800000
	-lolder_release
	# env OSVERSION=800000 make -V CONFIGURE_LIBS
	make: "/root/svn/ports/Mk/bsd.port.mk" line 1182: UNAME_r (11.0-CURRENT) and OSVERSION (800000) do not agree on major version number.
	# echo OSVERSION=800000 >> /etc/make.conf
	# make -V CONFIGURE_LIBS
	make: "/root/svn/ports/Mk/bsd.port.mk" line 1182: UNAME_r (11.0-CURRENT) and OSVERSION (800000) do not agree on major version number.

Reported by:	danfe
With hat:	portmgr
2015-04-15 16:14:47 +00:00
Bryan Drewery
25a26ebfe9 The CATEGORY warning should be dev-only.
PR:		199464
Submitted by:	Anton Yuzhaninov <citrin+pr@citrin.ru>
2015-04-15 15:51:36 +00:00
Bryan Drewery
a19989cb5d Rework change from r383665 for CATEGORY validation so it does not show a
warning when PORTSDIR is set to a directory that is symlinked to the real
ports directory.

Reported by:	smh
With hat:	portmgr
2015-04-15 15:49:01 +00:00
Martin Matuska
da24a220d3 Use "horde" as default CPE vendor for all horde applications 2015-04-15 11:13:49 +00:00
Tijl Coosemans
074ea5282a converters/libiconv:
- Remove const qualifier from iconv(3) to match POSIX:
  http://pubs.opengroup.org/onlinepubs/9699919799/functions/iconv.html
- Patch iconv.h to expose more GNU extensions when LIBICONV_PLUG is
  defined because the base system iconv supports these extensions too.

Add/remove patches to/from ports to call iconv with non-const arguments.

This breaks some ports on FreeBSD 10 because base system iconv.h still has
the const qualifier.  Fix this by letting USES=iconv add a build dependency
on converters/libiconv so ports can use its iconv.h (with LIBICONV_PLUG
defined) instead of the base system iconv.h.

This exposed some ports that link with libiconv when it is available instead
of using libc iconv.  In these cases one of the following changes has been
made:
- patch configure scripts to test for libc iconv first
- add ac_cv_lib_iconv_libiconv=no or similar to CONFIGURE_ARGS to disable
  some configure tests
- converters/wkhtmltopdf: this includes Qt4 so add a patch from devel/qt4
- lang/gcc5-aux: respect CFLAGS and friends during configure such that
  LIBICONV_PLUG is defined in the iconv test, also switch to external
  gettext
- mail/gnarwl: replace patches with CPPFLAGS/LIBS
- multimedia/ffmpeg2theora: remove iconv test from SConstruct and use
  ICONV_LIB in port Makefile instead, also fix a bug in subtitles.c
- net-im/licq: finish conversion to cmake
- net-mgmt/bandwidthd, net-mgmt/icinga, net-mgmt/nagios, net-mgmt/nagios4:
  don't need iconv
- textproc/p5-XML-TinyXML: finish conversion to USES=perl5

Other changes:
- databases/qdbm and slaves: respect CFLAGS and friends, also enable bzip2
  and lzo support
- games/ldmud: respect CFLAGS and friends
- graphics/inventor: replace some patches with MAKE_ARGS/MAKE_ENV to respect
  CFLAGS and friends, also remove FreeBSD/alpha patch and add missing xorg
  dependencies

PR:		199099
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2015-04-15 08:20:27 +00:00
Bryan Drewery
ea5adfb8f1 Let WITH_CCACHE_BUILD work on the pkg port that is not PKG_ORIGIN.
For example, if ports-mgmt/pkg is PKG_ORIGIN then it is safe to use
ccache for ports-mgmt/pkg-devel.
2015-04-14 20:58:26 +00:00
Steve Wills
5d4ff11096 Update Ruby to latest versions to address CVE-2015-1855.
Security:	https://www.ruby-lang.org/en/news/2015/04/13/ruby-openssl-hostname-matching-vulnerability/ (vuxml forthcoming)
2015-04-14 00:35:59 +00:00
Michael Gmelin
0871f061d7 Add OPENSSLRPATH to MAKE_ENV.
Also fix a few obvious spelling glitches.

Differential Revision:	https://reviews.freebsd.org/D2171
Reviewed by:	bapt
Approved by:	bapt
2015-04-13 21:47:09 +00:00
Gerald Pfeifer
1540c897ae Simplify the description of BUNDLE_LIBS.
Approved by:	portmgr (bapt)
2015-04-12 23:01:32 +00:00
Antoine Brodin
a417c432e5 - Remove dead function from find-lib.sh
- Print a message if dependency registration on a package failed

With hat:	portmgr
2015-04-10 08:45:09 +00:00
Gerald Pfeifer
b9dd907905 Fix grammar in description of BUNDLE_LIBS.
Approved by:	portmgr (erwin)
2015-04-10 08:23:22 +00:00
Antoine Brodin
35da4891c2 - Make it possible to override _MAKE_JOBS when MAKE_JOBS_NUMBER=1
- Override it for USES=ninja
With this commit and r383571, ports using ninja and waf now respect
MAKE_JOBS_NUMBER when it's equal to 1

PR:		197910
With hat:	portmgr
2015-04-10 05:45:15 +00:00
Bryan Drewery
4c651a67d3 Follow-up the check added in r383191 for validating the first CATEGORY so it
does not error when using ports outside of PORTSDIR and the general ports
directory structure.

With hat:	portmgr
Tested by:	amdmi3, danfe
Reported by:	amdmi3
2015-04-09 17:34:02 +00:00
Baptiste Daroussin
15da689cce Remove unintended change from r383627 2015-04-09 07:50:52 +00:00
Baptiste Daroussin
39cad29a6e Remove USE_GNUSTEP from bsd.port.mk 2015-04-09 07:49:34 +00:00
Baptiste Daroussin
06f79b66f2 Convert bsd.gnustep.mk to USES=gnustep
Simplify gnustep ports
Hook into the regular ports framework:
- LIB_DEPENDS for library dependencies
- Use regular USE_LDCONFIG

Reuse USES=objc (automatic)
USE_GNUSTEP is now a macro to set the dependencies and build feature needed.
Accepted arguments: back base build gui

Merge deskutils/preferencepanes into deskutils/systempreferences
2015-04-09 07:44:41 +00:00
Baptiste Daroussin
a77d7def34 Stop trying to resolv symlinks when looking up for a shlib
file -L is resolving them properly and actual-package-depends.sh is also
correctly resolving them

Exp-run by:	antoine
2015-04-09 06:36:01 +00:00
Antoine Brodin
e562cb07df Fix a typo
With hat:	portmgr
2015-04-08 18:32:18 +00:00
Baptiste Daroussin
8157e9f800 Add a new USES=waf to handle the waf building system, allowing to factorise code
Plug waf into MAKE_CMD and CONFIGURE_CMD so the regular defined targets can be
reused

Always define _MAKE_JOBS so that when bsd.port.mk will stop overwritting
_MAKE_JOBS when parallel jobs are disabled we can enforce -j1 (which is needed
to really disable parallelisation with waf

WAF_CMD has been created to allow one to override the location of the waf script
relatively to WRKSRC

CONFIGURE_TARGET is by default defined to "configure"
ALL_TARGET is by default defined to "build"
INSTALL_TARGET is by default defined to "install"

USES=waf is by default stagedir safe
2015-04-08 15:05:48 +00:00
Baptiste Daroussin
671d1d9bd1 Introduce CONFIGURE_CMD which default on ./${CONFIGURE_SCRIPT} so that we can
have a variable to overwrite in order to be able to reuse the configure
framework with other mechanism then regulars ./configure
2015-04-08 14:59:25 +00:00
Baptiste Daroussin
4edad698c1 pkg sets the defaults owner and group already, no need to specify it via
COPYTREE_* anymore (which also helps creating packages as non root)
2015-04-08 06:57:20 +00:00
Baptiste Daroussin
3d645b442a Convert missed USE_BZIP2 2015-04-07 12:34:12 +00:00
Baptiste Daroussin
ee2ae85707 Remove check for NO_STAGE in bsd.port.mk bsd.sanity.mk already takes care of
that
2015-04-07 12:29:04 +00:00