1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
Commit Graph

1469 Commits

Author SHA1 Message Date
Rene Ladan
dd46c53cb6 Remove partial support for flavored DEPRECATED and EXPIRATION_DATE
Although nice in theory, all 19 ports that were using it had an "if FLAVOR"
block in them anyway and it broke support for various tools, such as rmport,
Freshports (possibly) and pkg notes.

This reverts r484598

Discussed with:	tcberner
2018-12-16 16:56:22 +00:00
Sunpoet Po-Chuan Hsieh
86e848ce5e Use consistent warning message for USE_GL, USE_GNOME, USE_MATE and USE_PHP
Differential Revision:	https://reviews.freebsd.org/D18399
Approved by:	portmgr (rene)
2018-12-03 20:03:02 +00:00
Baptiste Daroussin
7990f81066 Install texinfo files (GNU info) into ${PREFIX}/share/info
After a discussion on the mailing list on moving manpages to
${PREFIX}/share/man for consistency with base where it is
installed in usr/share/man, it appeared the same should happen
to GNU info files which were installed under share in base and
not in ports.

Now texinfo is not in base on any of the supported version of FreeBSD
it is possible to proceed to this move and it is easier to do than
the manpage change.

Other benefit than consistency are less patching: all build tools but
cmake are expecting info files to be under share/info and cmake (patched here)
was having an exception for BSD so the patch makes FreeBSD case less
specific for them

Bump revision of all impacted ports

PR:		232907
exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D17816
2018-11-10 18:12:57 +00:00
Tobias C. Berner
532b7359be Add Flavor helpers for DEPRECATED and EXPIRATION_DATE
If a port has multiple flavors and one needs to be deprecated,
one can now write

	qt4_DEPRECATED=		Qt4 has been EOL since december 2015
	qt4_EXPIRATION_DATE=	2019-03-15

to let users know that changes are coming.

Approved by:	portmgr (rene)
Differential Revision:	https://reviews.freebsd.org/D17740
2018-11-10 10:04:42 +00:00
Rene Ladan
cc6bea1430 Mark FreeBSD 10.4 as unsupported, it is end-of-life as of today.
Users who still rely on FreeBSD 10 should use tags/RELEASE_10_EOL
2018-11-01 10:24:15 +00:00
Rene Ladan
fa05b1d669 bsd.port.mk: remove obsolete PKGREQ variable [1] and modernize a comment about /var/db/pkg.
Differential Revision:	https://reviews.freebsd.org/D5 [1]
2018-10-21 12:02:35 +00:00
Rene Ladan
472e0e7b75 Drop support for FreeBSD 11.1 in bsd.port.mk, its support ended on 2018-09-30.
Submitted by:	jbeich
MFH:		2018Q4
2018-10-01 09:53:10 +00:00
Sunpoet Po-Chuan Hsieh
61c026c101 Update description of MANPREFIX
Differential Revision:	https://reviews.freebsd.org/D17260
Approved by:	portmgr (adamw)
2018-09-23 11:14:53 +00:00
Ed Maste
577a66f233 bsd.port.mk: remove unnecessary if defined() test
Approved by:	portmgr
2018-09-18 18:53:05 +00:00
Ed Maste
635e6cc2e3 Hoist LDFLAGS_${ARCH} logic into bsd.port.mk
Approved by:	portmgr (bapt)
Sponsored by:	The FreeBSD Foundation
2018-09-18 14:48:48 +00:00
Niclas Zeising
87e2a6b841 Change USE_GL to become USES=gl.
Change USE_GL to become USES=gl.  You still need to specify USE_GL as well,
to specify which gl components you need, such as egl glesv2 glut glu glw gl.
Only specifying USE_GL is supported for now, to ease in transition.  It is
however deprecated, and will be removed eventually.
Specifying USES=gl without USE_GL is an error.
USE_GL=yes is also deprecated, but supported for now.  It implies USE_GL=glu.

Fix fallout from this change.

PR:		230692
Approved by:	portmgr (antoine)
exp-run by:	antoine
Reviewed by:	mat
Differential Revision:	https://reviews.freebsd.org/D16774
2018-09-10 19:56:32 +00:00
Mathieu Arnold
d0b025ffaa Move sanity checks later.
Some USES set some variables that a porter may need to be aware and
set some variables too late for sanity checks to do a good job.
2018-09-10 13:41:21 +00:00
Mathieu Arnold
0ac9de909b Add a DEV_ERROR if PORTDOCS/PORTEXAMPLES are set and DOCS/EXAMPLES
options are not defined.

PR:		230864
Submitted by:	mat
exp-runs by:	antoine
Differential Revision:	https://reviews.freebsd.org/D13651
2018-09-10 13:16:24 +00:00
Mathieu Arnold
10f4bcf2b6 Add DEV_WARNING when misusing USES=mate/USES=gnome.
Differential Revision:	https://reviews.freebsd.org/D16828
2018-08-28 12:19:06 +00:00
Niclas Zeising
15dac70c75 Switch to xorgproto instead of individual packages
Upstream used to distribute protocol headers as separate packages, but has
decided to merge those to a common package, named xorgproto.  This update
tracks that change.

* Add a new port, x11/xorgproto, with are protocol headers for xorg.
* Hook the new protocol port to the build and to infrastructure in
  bsd.xorg.mk.
* Update all ports with a dependency on any of the old *proto packages to
  instead depend on xorgproto.  Bump portrevision.
* Delete the old *proto packages, update MOVED.

PR:		230023
Submitted by:	zeising
Approved by:	portmgr (antoine)
exp-run by:	antoine
2018-07-31 18:41:30 +00:00
John Baldwin
c6767fbfda Add support for amd64 and i386 to base/binutils and base/gcc.
- To support amd64, map amd64 to x86_64 when generating the --host argument
  to configure in bsd.port.mk and when generating --target arguments in port
  Makefiles.
- Add entries to the plists for i386 and amd64.  amd64 generally includes both
  amd64-specific entries as well as i386 entries.
- Don't include the builtin float.h for i386 and amd64.

Reviewed by:	bapt
Approved by:	portmgr (bapt)
Differential Revision:	https://reviews.freebsd.org/D16250
2018-07-26 22:25:19 +00:00
Mathieu Arnold
7256d8f2f7 Tell people who disabled LICENSE processing that it then cannot be
checked.

Reported by:	mfechner
Approved by:	bapt
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D16450
2018-07-26 10:37:36 +00:00
Mathieu Arnold
f305cacf3a Add a license qa check to tell porters when their ports will be mostly
useless.

Reviewed by:	antoine
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D16103
2018-07-18 11:13:06 +00:00
Mathieu Arnold
1ac9d4e91f Convert to readelf.
objdump is being removed from HEAD, make sure everything still works
when this happens.

PR:		229049
Reported by:	emaste
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D15904
2018-06-30 08:37:33 +00:00
Mathieu Arnold
e55560c172 Keep --forward when using PATCH_DEBUG.
Otherwise, when used with BATCH defined so as to not be bothered by
config screen and all, it will almost silently reverse obsolete patches
and make you wonder why something is now broken.

Reviewed by:	sbruno
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D15804
2018-06-29 10:02:12 +00:00
Tobias C. Berner
b1a1d38bf9 Replace bsd.qt.mk by Uses/qt.mk and Uses/qt-dist.mk
From now on, ports that depend on Qt4 will have to set
	USES=		qt:4
	USE_QT=		foo bar
ports depending on Qt5 will use
	USES=		qt:5
	USE_QT=		foo bar

PR:		229225
Exp-run by:	antoine
Reviewed by:	mat
Approved by:	portmgr (antoine)
Differential Revision:	→https://reviews.freebsd.org/D15540
2018-06-28 17:39:53 +00:00
John Baldwin
f4712360a8 Set OS versions to target system versions for CROSS_SYSROOT.
When cross-building a package via a CROSS_SYSROOT, set OSVERSION,
_OSRELEASE, and OSREL to the target OS version.  OSVERSION is derived
from the <sys/param.h> header in the sysroot.  _OSRELEASE cannot be
easily derived from a sysroot as it is a property of a kernel, so
instead generate a "fake" _OSRELEASE from the OSVERSION, but use a
"-CROSS" branch name that will hopefully fail in any places that make
assumptions about branch names.

Approved by:	portmgr (bapt)
Differential Revision:	https://reviews.freebsd.org/D15812
2018-06-20 17:42:35 +00:00
Mathieu Arnold
ec7204a548 Sort ONLY_FOR_ARCHS and NOT_FOR_ARCHS on display.
This is so that all IGNORE message end up looking the same, and grep'ing
and sorting them is easier.

Reported by:	linimon
Sponsored by:	Absolight
2018-06-20 15:15:23 +00:00
Tijl Coosemans
23e99b00ef Run "/usr/sbin/service ldconfig restart" for USE_LDCONFIG instead of
"ldconfig -m <path>" so the order of ldconfig search directories after
package installation is the same as after a reboot.  The original command
simply appends the path to the list of directories while the ldconfig rc.d
script uses "sort -u".

Bump lang/gcc* which are known to install libraries with exactly the same
name so the library loaded at runtime depends on the order of the search
directories.

PR:		228046
Approved by:	portmgr (antoine)
2018-05-14 19:15:36 +00:00
Baptiste Daroussin
f8fa2e1ba5 Remove LIBDIR from build env variable
This is leaking LIBDIR information (which is defined in base share/mk/*) to
the build environement with a value which is not really suitable for ports
(/usr/lib) which may have an impact on some build system forcing the maintainer
to override the value.

Revealed during the update of liblz4

PR:		228059
Submitted by:	bapt
Exp-run by:	antoine
2018-05-14 19:06:13 +00:00
John Baldwin
3708c41ab9 Add 32-bit mips support to base/binutils and base/gcc.
- When cross-building packages, set ARCH to the target arch instead of
  the arch of the build host.  This fixes bsd.ssp.mk on MIPS which was
  trying to enable SSP on MIPS cross-built packages because the host
  ARCH was amd64.  A new HOST_ARCH variable is added to set the
  --build triple for configure scripts, but I believe most other uses of
  ARCH in ports are really about the target, not the build host so this
  is the more correct general direction.
- Some updates to base/binutils and base/gcc to use ARCH as the target
  architecture.
- Drop the extra arguments to GCC to set include and library paths and
  only set --sysroot.
- Move the --sysroot flags into CC, CXX, CPP (which is now set to XCPP)
  and LD instead of passing it in CFLAGS, etc.  The base/gcc build uses
  ends up using the CFLAGS when building native binaries for the build
  host which fails when tripping over the --sysroot.  I think this might
  have accidentally worked before because the powerpc64 headers in
  /usr/include/machine were "close enough" to the amd64 headers, but with
  32-bit MIPS this failed hard.
- Add the GCC MIPS patch from devel/powerpc64-gcc to base/gcc to add
  MIPS support to base/gcc.
- Add a MIPS plist for base/binutils.
- Set helper variables for the base/gcc plist to tag architecture-specific
  headers (e.g. for intrinsincs) and use these to tag powerpc and MIPS
  specific headers.
- Drop the include-fixed headers from base/gcc.
- Strip /usr/local/include from the default list of include paths for
  base/gcc.
- Use libc++'s include path for C++ for base/gcc.

Reviewed by:	bapt
Approved by:	portmgr (bapt)
Differential Revision:	https://reviews.freebsd.org/D15267
2018-05-09 15:18:27 +00:00
Jan Beich
67a9073255 Drop FreeBSD 10.3 support
Reviewed by:	yuri (SoPlex), sunpoet (nghttp2), cpm (chromium), brooks (llvm*)
Approved by:	portmgr (rene)
Differential Revision:	https://reviews.freebsd.org/D15238
2018-05-07 22:29:46 +00:00
Mathieu Arnold
421b46b698 Add a warning about setting DISTNAME and USE_GITHUB=yes
Sponsored by:	Absolight
2018-05-03 09:16:30 +00:00
Mathieu Arnold
c27599182b Note that 10.3 is not supported any more.
Sponsored by:	Absolight
2018-05-02 15:00:41 +00:00
Jose Alonso Cardenas Marquez
5ab881a5d9 - Migrate Mk/bsd.fpc.mk to Mk/Uses/fpc.mk
- Convert all fpc-based ports to USES=fpc

PR:             227210
Reviewed by:    portmgr
Approved by:    portmgr
Exp-run by:     antoine
Differential Revision:  https://reviews.freebsd.org/D14617
2018-04-05 04:52:36 +00:00
Ed Maste
73ca9e7230 Use BINARY_ALIAS to make LLD_UNSAFE more widely applicable
Some ports do not honour $LD or -fuse-ld=bfd in $CFLAGS, but do invoke
ld via $PATH.   Automatically set BINARY_ALIAS+=ld=${LD} when LLD_UNSAFE
is active to use ld.bfd for these ports.

Approved by:	portmgr (antoine)
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D14876
2018-03-29 15:02:05 +00:00
Baptiste Daroussin
2276775a7e Remove last occurence of WANT_GNOME which was removed
monthes ago
2018-03-21 14:51:52 +00:00
Bryan Drewery
0a333cd5e8 Fix some recursive targets using the wrong FLAVOR.
Reported by:	Andrzej Tobola <ato@iem.pw.edu.pl>, koobs
Approved by:	portmgr (implicit)
2018-03-19 21:39:40 +00:00
Bryan Drewery
4fcbb452e8 Define CONFIG_SITE even without GNU_CONFIGURE as some ports still benefit from it.
Approved by:	portmgr (implicit)
2018-03-15 02:36:47 +00:00
Bryan Drewery
9823f56764 FLAVORS: Reorder so the default is first.
It is documented that the first FLAVOR is the default.  Due to some use
of DEFAULT_VERSIONS and USES, the default FLAVOR may be determined
dynamically.  Poudriere in particular expects the default to be first
and does the wrong thing for emacs ports currently [1].  This resolves
that and avoids other tools making the same mistake.

PR:		225659 comment #14
Approved by:	portmgr (implicit)
2018-03-12 19:04:59 +00:00
Bryan Drewery
30bc9e3223 FLAVORS: Fix several 'make *recursive' targets not passing along FLAVOR properly.
PR:		225659 comment #15
Approved by:	portmgr (implicit)
2018-03-12 18:19:29 +00:00
Bernard Spil
a80b8e64ed Mk/Uses/apache.mk: Migrate Mk/bsd.apache.mk to Uses
- Chase required changes in framework (bsd.sanity.mk, bsd.port.mk)
 - Chase required changes in ports (version checks)
 - Chase required changes in PHP ports (include bsd.apache.mk)
 - exp-run by antoine, brnrd, joneum

PR:             223691 (exp-run)
Reviewed by:    joneum (hat apache), mat (portmgr), antoine (portmgr)
Approved by:    joneum (hat apache)
Approved by:	portmgr
With hat:       apache
2018-03-11 14:23:28 +00:00
Richard Gallamore
8035da77dd * Add USE_GITLAB for fetching from www.gitlab.com and GitLab deployed sites.
Reviewed by:	mat
Approved by:	portmgr (mat)
Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D12162
2018-03-03 06:50:15 +00:00
Bryan Drewery
ecec71a78a ports_env: Store list of variables to export in PORTS_ENV_VARS in mk files.
This will avoid renamed/removed variables being orphaned, and allows for
exporting variables in ports_env that are not wanted to be exported in
sub-makes via _EXPORTED_VARS.

Approved by:	portmgr (implicit)
2018-02-28 18:38:17 +00:00
Bryan Drewery
e5a42a8c3c Fix RANDOMIZE_MASTER_SITES.
- /usr/games/random moved to /usr/bin/random in 11.0+
- Need to explicitly add in the pipe '|'

Approved by:	portmgr (implicit)
2018-02-20 22:58:19 +00:00
Bryan Drewery
51fc1d5b8c Reduce fstat(2) calls for SCRIPTDIR/* scripts.
There's only about 10 ports that actually use this, so rather than
spamming a dozen fstat(2) calls for every port during INDEX reduce
it to 1 for now.

Also avoid the fstat(2) if the target already exists.

Approved by:	portmgr (implicit)
2018-02-20 22:45:24 +00:00
Bryan Drewery
eef0418ce0 Fix editors/vim-tiny hanging on reading stdin during generate-plist.
test -f "" is true so we need to only test if $PLIST is not empty.

Approved by:	portmgr (implicit)
2018-02-08 05:52:06 +00:00
Steve Wills
b52a2cbd82 Fix cross build of base/ ports
This is a follow up to r461057 and fixes base/binutils and base/gcc in my
testing.

PR:		224217
Submitted by:	nwhitehorn (partially, I made additional changes)
Reviewed by:	bapt
2018-02-06 14:32:52 +00:00
Steve Wills
592d8d2d7c Changes from BZ PR 224217 plus minor changes to fix base/gcc fetch 2018-02-06 14:26:41 +00:00
Joseph Mingrone
a3cc513bfc Flavorize and modernize Emacs ports
- Convert USE_EMACS to USES=emacs
- Remove editors/emacs-nox11 (refer to nox flavors of editors/emacs and
  editors/emacs-devel)
- Permit default Emacs flavor to be specified in make.conf
- Rename japanese/migemo-emacs23 to japanese/migemo-emacs
- Update and simplify audio/emms and fix build on FreeBSD 10 [1]
- Update databases/bbdd and fix build on FreeBSD 10 [1]
- Update editors/emacs-devel
- Ensure Makefile shell commands that change directory are executed in a
  subshell
- Silence some portlint warnings

[1] By not depending on base texinfo

PR:		225404
Reviewed by:	antoine
Approved by:	portmgr (mat) ashish (maintainer)
Differential Revision:	https://reviews.freebsd.org/D13506
2018-02-01 18:03:09 +00:00
Mathieu Arnold
f508975358 Don't run create-manifest as root.
PR:		224992
Submitted by:	tobik
Reported by:	yuri
Exp-run by:	antoine
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D13798
2018-02-01 08:31:05 +00:00
Mathieu Arnold
1aecf7b366 Extract desktop-categories, check-desktop-entries, and install-desktop-entries into scripts.
PR:		225301
Exp-run by:	antoine
Reviewed by:	jilles, kevans
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D11304
2018-01-28 08:25:06 +00:00
Mathieu Arnold
3bbc00468a Add support to passing directories to EXTRA_PATCHES.
Instead of:

  EXTRA_PATCHES=	${PATCHDIR}/feat-foo-patch-file.c \
			${PATCHDIR}/feat-foo-patch-file.h \
			${PATCHDIR}/feat-foo-patch-file2.c

Move those files to ${PATCHDIR}/feat-foo/, name them patch-*, and set:

  EXTRA_PATCHES=	${PATCHDIR}/feat-foo

Approved by:	bdrewery
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D10855
2018-01-25 09:12:21 +00:00
Bryan Drewery
6339d61d4f Allow passing -DDEPENDS_SHOW_FLAVOR to list flavors for dependency lists.
Submitted by:	se (based on D13535)
With hat:	portmgr
2018-01-24 18:54:57 +00:00
Torsten Zuehlsdorff
2816b55780 add new stage-qa target: gemfiledeps
This checks whether rubygem based ports have all of their dependencies
in Gemfile(s) satisfied by what's currently installed. Sample output:

====> Running Q/A tests (stage-qa)
Warning: Dependencies defined in /usr/ports/www/gitlab/work/stage/usr/local/www/gitlab/Gemfile are not satisfied

These ports could (!) be broken at runtime. Be aware: some projects
defines multiple Gemfiles and not all are used at runtime. For example
www/gitlab has two Gemfiles, but only one is used for testing and warnings
about it can be ignored.

Approved by: portmgr (mat), lifanov
Differential Revision: https://reviews.freebsd.org/D11865
2018-01-22 16:35:23 +00:00