Commit graph

1498 commits

Author SHA1 Message Date
Rene Ladan
a0ee11c51d bsd.port.mk: update minimal supported version of FreeBSD to 11.3
Reviewed by:	mat (and others)
Approved by:	portmgr (implicit)
MFH:		2019Q4
Differential Revision:	https://reviews.freebsd.org/D21974
2019-11-05 21:08:12 +00:00
Niclas Zeising
5b67b34c82 Retire XORG_CAT
Retire XORG_CAT, it is not needed since all ports has moved to use
USES=xorg-cat.
Add a check to bsd.sanity.mk causing an error if any port happens to set it
in the future.

PR:		241694
Approved by:	portmgr (mat)
2019-11-04 18:08:20 +00:00
Rene Ladan
669ed30e87 Remove "palm" from VALID_CATEGORIES in bsd.port.mk after r516635
Reported by:	sunpoet
Approved by:	portmgr (implicit)
2019-11-04 12:33:05 +00:00
Piotr Kubaj
23cf3608ad Mk/bsd.port.mk: use GNU LD from ports on powerpc64 elfv2 when GNU LD is required
The reason is that on elfv2 systems we still have ld.bfd in base, but it's only used for 32-bit binaries (LLD currently doesn't support linking 32-bit PPC binaries).
ld.bfd from base supports only elfv1 and using it breaks linking many ports that set LLD_UNSAFE. Use Binutils from ports in such case.

PR:             239743
Submitted by:   jbeich
Approved by:    portmgr
Differential Revision:	https://reviews.freebsd.org/D21996
2019-10-12 20:49:35 +00:00
Baptiste Daroussin
0ed98fafae Remove the ipv6 virtual category
in 2019 the norm is for applications to support both v4 and v6 version of the ip
stack. Furthermore, the ipv6 category was clearly not consistently spread over
the ports tree defeating the goal of the category.
2019-10-09 12:28:26 +00:00
Tijl Coosemans
50d2c82e01 Let "make makesum" pass DISTFILES to "make fetch". For Linux ports "make
makesum" downloads distfiles for all supported architectures while "make
fetch" only downloads files for the build architecture.

Approved by:	portmgr (bapt)
2019-10-08 18:31:23 +00:00
Baptiste Daroussin
f6fd84cfb5 BINARY_WRAPPERS allow to push in front of the PATH wrappers for binaries.
This is useful when 2 tools do provide the same feature, but the configure
scripts do test for some variables which are not in one of the tool.

For example m4 in base is mostly compatible with GNU m4 when called with the -g
arguement. This wrapper allows to use it with build systems that do check for it
calling --version and expecting GNU in the arguments.

Reviewed by:	mat (final discussions on irc)
Differential Revision:	https://reviews.freebsd.org/D21835
2019-10-01 14:33:24 +00:00
Baptiste Daroussin
fba040e62b Reduce code duplication by calling fetch target
when converting the do-fetch target to proper scripting
we lost the ability to overwrite do-fetch when running make makesum.
as reported here: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=

Let's call again do-fetch directly instead of duplicating its content

PR:		215530
Reported by:	jbeich
Differential Revision:	https://reviews.freebsd.org/D21544
2019-09-29 04:15:47 +00:00
Adam Weinberger
7f5a1bfdf3 Fix string typos
Submitted by:	Rebecca Cran
2019-09-10 01:58:04 +00:00
Baptiste Daroussin
4b13af055f Avoid appending FLAVORS to PORTS_FEATURES multiple times
PR:		224158
Reported by:	yuri@
2019-09-05 13:45:38 +00:00
Baptiste Daroussin
56f344f8c9 Fix make deinstall-depends with pkg.
drop pkg itself from the list of deinstall-depends in order
to keep pkg around to be able to deinstall more ports.

PR:		204296
Reported by:	ian
2019-09-05 09:07:49 +00:00
Baptiste Daroussin
5a05e1d207 Fix documentation of the reinstall target 2019-09-04 12:23:18 +00:00
Baptiste Daroussin
b4b7cb1c9f Fix the reinstall target to make it follow a proper sequence
first deinstall then reinstall.

For now keep the DEPENDS_TARGET, which should probably die, but
let study that in a second step

PR:		224244
Submitted by:	Walter Schwarzenfeld <w.schwarzenfeld@utanet.at>
2019-09-04 12:01:19 +00:00
Baptiste Daroussin
7610a280b5 Add support for overlays
overlays are a way to help users to integrate their own ports tree
with the official ports tree without having to maintain clone of the
official tree and remerge on regular basis.

The ports tree will lookup in the overlays (in the order the are listed in
OVERLAY variable) for the dependencies and the USES. It will use the first
found.

in order to use it the user have to declare his overlays that way in their
make.conf:
OVERLAYS= overlay1 overlay2 overlay3

Reviewed by:	manu
Approved by:	swills
Differential Revision:	https://reviews.freebsd.org/D21468
2019-09-03 14:36:00 +00:00
Baptiste Daroussin
6a7ef0bf27 Now that bmake is the only supported make
Remove old fmake compatibility

Reviewed by:	mat
Differential Revision:	https://reviews.freebsd.org/D21432
2019-09-03 14:12:06 +00:00
Baptiste Daroussin
293e996eb6 Factorize if statements in fake-pkg 2019-08-27 09:01:43 +00:00
Niclas Zeising
9d1b627466 Change bsd.xorg.mk to USES=xorg and USES=xorg-cat
Change the handling of xorg dependencies to use the USES framework instead
of bsd.xorg.mk.  bsd.xorg.mk is split into two parts:
* USES=xorg for ports depending on xorg ports with USE_XORG
* USES=xorg-cat for xorg ports with XORG_CAT

USES=xorg is fairly straight forward.  The components needed are specified
with USE_XORG, and USES=xorg is needed to pull in this part of the
framework.

USES=xorg-cat requires that the category, previously specified with
XORG_CAT, now be passed as an argument to xorg-cat, like this
USES=xorg-cat:category.  Not specifying a category is an error.
Further, it is also possible to specify which build system to use.  The
default if nothing is specified is autoconf, but meson will also be supported.
This is added with a second argument: USES=xorg-cat:category[,buildsystem].

Detailed changelog:
* Add support in Uses/xorg-cat.mk to specify build system.  Previously, only
  autoconf was supported for xorg ports, but with this change, it's possible
  to use meson instead.  Autoconf is still the defaultx, if nothing else is
  specified.  The meson support is still disabled, and requires more testing.
* Add support in Uses/xorg-cat.mk to pull sources from freedesktop.org
  gitlab.
  When specifying USE_GITLAB in a port using xorg-cat, then various GL_*
  variables will be set up automatically, as well as needed changes to the
  build.
* Switch x11-drivers/xf86-video-intel to use the USE_GITLAB framework.
* While touching xf86-video-intel, switch to USES=xorg xorg-cat:driver, and
  pet portlint.
* Add compat shims and warnings to bsd.port.mk, which will handle the old
  style ports Makefiles.
* Change Uses/gl.mk and Uses/motif.mk to use this new framework.
* Change Uses/autoreconf.mk to check and add dependencies later.  This is
  needed because xorg-cat uses autoreconf, and without this fix
  dependencies were not added properly.
* Be stricter about checking for arguments in USE_XORG, previously, :build
  and :run were accepted, but not supported.  Only the default or :both
  supported.
* Change multimedia/gstreamer1-vaapi to handle the stricter argument
  checking in USE_XORG, and add USES=xorg
* change x11/xscope to get distinfo from xorg-cat, instead of rolling it's
  own, and add USES=xorg-cat

PR:		238988 (exp-run)
Reviewed by:	antoine, tcberner, tijl, mat, tobik
Approved by:	portmgr (antoine)
Obtained from:	FreeBSD Graphics Team development repo
		https://github.com/FreeBSDDesktop/freebsd-ports/tree/feature/usesxorg
Sponsored by:	B3 Init (zeising)
Differential Revision:	https://reviews.freebsd.org/D20724
2019-08-26 09:45:15 +00:00
Baptiste Daroussin
7d135651b2 Use keywords to simplify ldconfig code
PR:		239226
Reviewed by:	mat@
Differential Revision:	https://reviews.freebsd.org/D20951
2019-08-23 12:46:14 +00:00
Mathieu Arnold
55b249bab3 Add a QA check warning porters about non UCL pkg-message files.
Reviewed by:	adamw
Differential Revision:	https://reviews.freebsd.org/D21262
2019-08-19 12:18:21 +00:00
Koichiro Iwao
222e095f2a Implement new virtual category: net-vpn for VPN related ports
based on discussion at ports@ [1]. As VPN softwares are put in different
physical category net and security. This is a little bit confusing. Let's
give them new virtual category net-vpn.

[1] https://lists.freebsd.org/pipermail/freebsd-ports/2019-April/115915.html

PR:		239395
Submitted by:	myself
Approved by:	portmgr (mat)
Differential Revision:	https://reviews.freebsd.org/D21174
2019-08-14 03:26:09 +00:00
Tobias Kortkamp
b751249006 Mk/bsd.port.mk: Extend pre-check-config to check option group names too
Approved by:	portmgr (mat)
Differential Revision:	https://reviews.freebsd.org/D20426
2019-06-09 04:31:02 +00:00
Alex Kozlov
c23fc82315 - Remove obsolete (since r473503) USE_QT4/5 variable descriptions
PR:	238172
Approved by:	portmgr (rene)
2019-05-29 08:18:10 +00:00
Alex Kozlov
4fcb6520ab - Remove no-op (since r415842) NOFETCHFILES variable from the ports tree.
Approved by:	portmgr (mat)
2019-05-27 10:33:44 +00:00
Mathieu Arnold
a9c92b0801 Cleanup USE_GIT(HUB|LAB) a bit.
- Make USE_GIT(HUB|LAB) behave more responsibly with DISTNAME.
- Fix a small bug in the USE_GITLAB extra distfile naming.

Differential Revision:	https://reviews.freebsd.org/D20140
2019-05-03 13:58:27 +00:00
Piotr Kubaj
3a69880c81 Remove checks for ia64, this is not a supported architecture.
PR:		237104
Approved by:	portmgr
2019-04-23 17:52:38 +00:00
Sunpoet Po-Chuan Hsieh
7c4d62b13a Minor fixes
Differential Revision:	https://reviews.freebsd.org/D19360
Submitted by:	sunpoet (myself)
Approved by:	portmgr (bapt)
2019-02-26 18:54:42 +00:00
Dmitry Marakasov
14223135a0 Convert bsd.sdl.mk to Uses/sdl.mk
Frow now on, USES=sdl should be used to specify dependency on SDL
libraries.
USE_SDL is still required to specify components, specifying it
without USES=sdl is still supported, but deprecated, and leads to
a warning. USE_SDL=yes support was removed, and now leads to error,
USE_SDL=sdl should be used instead (all ports which still used
USE_SDL=yes were fixed). sdl.mk was simplified and modernized along
the way.

PR:		https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235561
Approved by:	portmgr (mat)
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D19075
2019-02-11 15:21:25 +00:00
Mathieu Arnold
2c40989aa2 Make sure check-sanity runs when running make makesum, to catch up
errors early.  This will prevent errors introduced in r492127 from
happening again.
2019-02-06 12:15:11 +00:00
Koichiro Iwao
63e9eb8909 Mk/bsd.port.mk: fix grammar
PR:		232979
Submitted by:	Chris Petrik <christopherpetrik335@student.athenstech.edu>
Approved by:	portmgr (mat)
2019-02-05 09:06:05 +00:00
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