Commit graph

1517 commits

Author SHA1 Message Date
Baptiste Daroussin
86dce8416e Allow lua scripts in the framworks.
Bump the minimum required pkg version to a version that accepts
properly lua scripts

Lua script offers the advantages over shell scripts that they are
running in a capsicum sandbox and they are natively rootdir friendly

Reviewed by:		portmgr (mat)
Differential Revision:	https://reviews.freebsd.org/D21433
2020-04-29 14:01:05 +00:00
Matthias Andree
2fb1dcd59b bsd.port.mk: fix comment typo and excess full-stop in IGNORE (FLAVORS)
This is to fix a cacche type to ccache in a comment, and the double
full-stop on the console when trying to build an unsupported FLAVOR:
===>  py27-example-9.8.7 Unknown flavor 'py27', possible flavors: py37..

Approved by:	portmgr@ (bapt@, on reviews.f.o)
Differential Revision:	https://reviews.freebsd.org/D24588
2020-04-27 12:36:17 +00:00
Bryan Drewery
8c51006062 OVERLAYS: Include <overlay>/Mk/bsd.overlay.mk
Reviewed by:		portmgr (mat, bapt)
Differential Revision:	https://reviews.freebsd.org/D24506
2020-04-21 15:50:40 +00:00
Bryan Drewery
206aaccb73 Revert r532275 2020-04-21 15:49:46 +00:00
Bryan Drewery
f65a47b37f OVERLAYS: Include <overlay>/Mk/bsd.overlay.mk
Reviewed by:	portmgr (mat, bapt)
2020-04-21 15:48:36 +00:00
Mateusz Piotrowski
54357b34ab Fix install-missing-packages when port is missing multiple dependencies
The current implementation of install-missing-packages does not handle
correctly the situation when a port is missing multiple dependencies. pkg(8)
would only get the first missing origin as an argument. All the other origins
would be listed on new lines and would not be passed to pkg(8).

PR:		244215
Discussed with:	mat, tobik
Approved by:	portmgr (implicit, fix r525388)
Differential Revision:	https://reviews.freebsd.org/D23795
2020-03-31 08:31:14 +00:00
Mathieu Arnold
3fd3ed8d43 12.0 is not supported any more.
With hat:	portmgr
2020-03-02 12:43:43 +00:00
Michael Gmelin
54fa262641 Clarify description of OSREL/OSVERSION in bsd.ports.mk.
PR:		244120
Approved by:	portmgr (adamw)
2020-02-14 19:11:46 +00:00
Rene Ladan
7833dbba2d Mk/bsd.port.mk: sort VALID_CATEGORIES, no functional change
Submitted by:	rene
Approved by:	portmgr (swills)
Differential Revision:	https://reviews.freebsd.org/D23545
2020-02-06 21:32:53 +00:00
Mateusz Piotrowski
15d510f7ba Improve implementation of install-missing-packages
As suggested by mat@ in D23484, let's use a proper if statement here
instead of short-circuits operators. Also, arguments to echo should be
quoted and ECHO_CMD should be used instead of ECHO (see bsd.commands.mk for
details).

Reported by:	mat
Reviewed by:	mat
Approved by:	portmgr
Differential Revision:	https://reviews.freebsd.org/D23535
2020-02-06 16:43:52 +00:00
Mateusz Piotrowski
f42c5dfeb9 Fix install-missing-packages
r519284 introduced a new target, install-missing-packages, which is
meant to allow users to install dependencies via pkg(8) instead of
building them themselves locally.

The target was producing errors when the dependencies were already
available on the system. This commit adjusts this behavior to just
silently do nothing if everything is fine. Also, wrap the command
with SU_CMD for better user experience.

Also, fix some trailing whitespace introduced in the original commit.

Reviewed by:	bapt
Approved by:	portmgr
Differential Revision:	https://reviews.freebsd.org/D23484
2020-02-04 10:01:23 +00:00
Mathieu Arnold
3f7f362352 Making REWARNFILE overridable was an artefact from testing.
Fix that.
2020-01-20 19:27:49 +00:00
Baptiste Daroussin
003a571d1d Add LOCALBASE/share/man to the valid path for manpages
Also compress manpages in this location.

As a followup of a discussion which occured in 2017:
https://lists.freebsd.org/pipermail/freebsd-arch/2017-March/018115.html
And following:
https://svnweb.freebsd.org/base?view=revision&revision=315053
and
https://svnweb.freebsd.org/base?view=revision&revision=315142

All the supported FreeBSD version now supports share/man in manpath for
LOCALBASE As a result the ports tree can now accept it for manpage, but
more over migrate to this new path. Resulting in more consistency now the
manpages in base and ports would be in the relative path (under share/)
and a reduced amount of patching needed to port something to FreeBSD

Note1: this has already be done for GNU info pages earlier
Note2: due to the fact that for end user no functionnality will change during
the migration of the manpages to the new location and to avoid massive rebuild
of packages, it has been decided to not bump portrevision when migrating.

Reviewed by:	mat (portmgr)
Differential Revision:	https://reviews.freebsd.org/D23166
2020-01-15 12:06:13 +00:00
Steve Wills
0a82a7c091 Add QA warning about useless REINPLACE_CMD
Reviewed by:	mat, bdrewery, tobik
Approved by:	mat
Differential Revision:	https://reviews.freebsd.org/D22174
2020-01-09 13:01:45 +00:00
John Baldwin
dc4be4c458 Include the tool name for toolchain variables when using CROSS_TOOLCHAIN.
Previously variables such as AS, LD, etc. were only set to the path
but not the tool itself due to a typo.

Approved by:	portmgr (bapt)
Differential Revision:	https://reviews.freebsd.org/D22593
2019-12-20 01:14:23 +00:00
Lars Engels
c86f12f75f Add new Makefile target "install-missing-packages" to install missing dependencies from packages.
Approved by:	portmgr (bapt)
Differential Revision:	https://reviews.freebsd.org/D22551
2019-12-08 10:19:38 +00:00
Piotr Kubaj
95a1d26f49 Mk/bsd.port.mk: detect powerpc64 abi
We'll have a new abi on ppc64 soon (ELFv2) which is incompatible with the ELFv1 abi. We need to detect the abi on which we build stuff.

Submitted by:	mikael_urankar@gmail.com
Approved by:	portmgr (earlier version)
Differential Revision:	https://reviews.freebsd.org/D22039
2019-11-29 15:02:14 +00:00
John Baldwin
e4f098d6a0 Permit multiple packing list files to be listed in PLIST.
This permits a port to use separate packing lists for optional
components instead of depending on PLIST_SUB.

Approved by:	portmgr (bapt)
Differential Revision:	https://reviews.freebsd.org/D22450
2019-11-20 22:44:38 +00:00
Rene Ladan
ee06ec39ce Clean up support for FreeBSD 11.2.
While here, modernize some comments in Mk/bsd.*.mk.

Note that graphics/drm-fbsd11.2-kmod is not renamed yet, this was somewhat
under discussion.

Submitted by:	rene
Reviewed by:	antoine, jbeich, mat, zeising
Differential Revision:	https://reviews.freebsd.org/D21974
2019-11-07 16:30:12 +00:00
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