Commit graph

355 commits

Author SHA1 Message Date
Tobias Kortkamp
d8fbaa503c
Scripts/cargo-crates.awk: Move split_url() to separate file
Also stop leaking local variables
2021-09-07 18:53:36 +02:00
Kevin Bowling
b5a56c9450 Mk/Scripts/qa.sh: Add QA for libglvnd
Reported by:	tcbrener
Reviewed by:	tcbrener
Differential Revision:	https://reviews.freebsd.org/D31375
2021-08-02 09:20:45 -07:00
Li-Wen Hsu
09704c68fc
Mk/: Update the URLs in the comments to the latest location
Reviewed by:	rene
Differential Revision: https://reviews.freebsd.org/D31152
2021-07-16 16:16:45 +08:00
Po-Chuan Hsieh
fcb34faf70
Mk/Scripts/smart_makepatch.sh: Force diff to produce the patch file instead of "Binary files ... differ" message
It helps avoid generating wrong patches, e.g. patch-grpc.gemspec in r567838 [1].

from diff manpage:
    -a --text
        Treat all files as ASCII text.  Normally diff will simply print
	"Binary files ... differ" if files contain binary characters.
        Use of this option forces diff to produce a diff.

[1] https://cgit.FreeBSD.org/ports/diff/net/rubygem-grpc130/files/patch-grpc.gemspec?id=073c1c710a0c7254820adab9920c1903ace83fae

PR:		257027
Approved by:	mat (portmgr)
2021-07-15 00:15:03 +08:00
Guangyuan Yang
de745e3b9f Mk/*: Update the link about adopting ports
Approved by:	rene (portmgr), lwhsu (mentor)
Differential Revision:	https://reviews.freebsd.org/D30744
2021-06-20 19:29:13 -04:00
Baptiste Daroussin
9c23cce831 devel/libbonobo: remove
Gnome2 lib, dead upstream, no consumers left in the ports tree
2021-05-01 23:00:05 +02:00
Baptiste Daroussin
8e6f2eb82e devel/gnome-vfs: remove
Dead upstream, no consumers left in the ports tree
2021-05-01 15:29:37 +02:00
Baptiste Daroussin
e9cac8e2ce x11/libgnome: remove
Gnome2 library dead upstream with no consumers left in the ports tree
2021-05-01 15:26:12 +02:00
Baptiste Daroussin
eaec3af059 Mk/*: cleanup leftovers from ancient removal 2021-05-01 14:58:26 +02:00
Baptiste Daroussin
b391fefab5 qa.sh: adjust after removal of some gnome ports 2021-05-01 14:47:33 +02:00
Mathieu Arnold
0b1ee55426
Cleanup executable bits, prompted by 9e1d7c39a1. 2021-04-08 11:36:35 +02:00
Mathieu Arnold
5d33e04596
framework: Remove $FreeBSD$
Where appropriate fiddle with a few other things.
2021-04-06 16:27:10 +02:00
Baptiste Daroussin
6b1ccfbb27 Remove upgrade script
It never actually really have been a thing, and can be done
directly in install/deinstall scripts

Reviewed by:	mat (portmgr)
Differential Revision:	https://reviews.freebsd.org/D29427
2021-03-29 07:42:20 +00:00
Olivier Cochard
578eb55645 Allows atf scripts to pass qa
Approved by:	rene
Sponsored by:	Netflix
Differential Revision:	https://reviews.freebsd.org/D28581
2021-03-08 14:11:44 +00:00
Gerald Pfeifer
b2e6ef7f3b Revert r562049 which I committed by mistake.
Pointy hat:	gerald
2021-01-19 15:04:17 +00:00
Gerald Pfeifer
db1e3fae20 GCC_DEFAULT now sits at 10, so remove the special setting we added for
powerpc64le which is a nop now (essentially reverting revision 559637).

Reported by:	pkubaj
2021-01-19 15:02:22 +00:00
Rene Ladan
8a45ee228f Remove graphics/jpeg which has expired in favor of graphics/jpeg-turbo
Update qa checks and add a note to UPDATING to help users migrate.
Differential Revision:	https://reviews.freebsd.org/D27425
2020-12-01 19:12:47 +00:00
Adam Weinberger
db15051ca5 Add education virtual category
PR:		248402
Submitted by:	PauAmma
2020-11-20 07:16:06 +00:00
Mathieu Arnold
292183dbc4 Ignore readelf's return value.
PR:		251110 (with style fixes)
Submitted by:	John Hein
2020-11-16 10:50:54 +00:00
Mathieu Arnold
47b1e9c0c2 Ignore grep return value.
Most of the time, we use grep in a test, where its return value is
important.  In this instance, it is only used for filtering, and we do
not care about its return value, so ignore it.

PR:             250723
Exp-run by:     antoine
Differential Revision:  https://reviews.freebsd.org/D27007
2020-11-11 13:30:03 +00:00
Mathieu Arnold
f916081e1c Add set pipefail in most framework scripts.
set pipefail changes the pipeline return status from being the return
status of the last command to the last non 0 exit status of any command
in the pipeline.  This is needed to make sure all the commands in a
pipeline did actually return a non 0 status and not only the last one.

PR:		250723
Exp-run by:	antoine
Reviewed by:	bapt
Approved by:	bapt
Differential Revision:	https://reviews.freebsd.org/D27007
2020-11-11 13:29:52 +00:00
Tobias C. Berner
9e0e8d17a4 Prefer graphics/ligvrsvg2-rust over graphics/librsvg2
- switch to the more modern version of librsvg2 on architectures
  supporting rust
- this will fix some graphical issues on these architectures

PR:		250276
Exp-run by:	antoine
Submitted by:	tobik
Differential Revision:	https://reviews.freebsd.org/D18878
2020-11-09 17:08:12 +00:00
Mathieu Arnold
aeda355b1b Backout r554139. 2020-11-05 16:51:30 +00:00
Mathieu Arnold
e9b2078c6c Add set pipefail in most framework scripts.
set pipefail changes the pipeline return status from being the return
status of the last command to the last non 0 exit status of any command
in the pipeline.  This is needed to make sure all the commands in a
pipeline did actually return a non 0 status and not only the last one.
2020-11-05 16:42:35 +00:00
Steve Wills
550c20cac5 Fix permissions 2020-10-19 19:38:03 +00:00
Steve Wills
dd763c441c Revert 2020-10-19 12:19:14 +00:00
Matthias Andree
2b627c0022 Make executable. 2020-10-17 14:39:32 +00:00
Matthias Andree
07deda6217 Tools/scripts/sed_checked.sh: make more useful
- when sed expressions fail, report them, and the failing files,
  to aid developers in identifying the commits
- check whether a REINPLACE_CMD is partially effective, or totally
  ineffective, and adjust wording (please check vs. please FIX)
- use SED variable instead of /usr/bin/sed if set, for consistency.

portmgr@ hasn't raised objections other than performing power play,
and haven't responded with reasons to core@s question in
https://reviews.freebsd.org/D24240#592660 posed Sept 30 (17 days ago)

Approved by:	portmgr@ (timeout, 200 days)
Differential Revision:	https://reviews.freebsd.org/D24240
2020-10-17 12:37:13 +00:00
Tobias C. Berner
0edfaee1ed KDE's August 2020 Apps Update
Dozens of KDE apps are getting new releases from KDE’s release service. New
features, usability improvements, re-designs and bug fixes all contribute to
helping boost your productivity and making this new batch of applications more
efficient and pleasant to use.

Full announcement:
        https://kde.org/announcements/releases/2020-08-apps-update/
2020-08-13 17:10:30 +00:00
Mathieu Arnold
466a092fb2 Move script to a more appropriate location. 2020-08-03 13:53:06 +00:00
Ryan Steinmetz
178b0490c2 - Update wording/style on REINPLACE_CMD checks 2020-08-03 13:46:11 +00:00
Tobias C. Berner
89fc0f48dc Update KDE Framewokrs to 5.72
July 04, 2020. KDE today announces the release of KDE Frameworks 5.72.0.

KDE Frameworks are over 70 addon libraries to Qt which provide a wide variety
of commonly needed functionality in mature, peer reviewed and well tested
libraries with friendly licensing terms. For an introduction see the KDE
Frameworks web page.

This release is part of a series of planned monthly releases making
improvements available to developers in a quick and predictable manner.

Changelog:
	https://kde.org/announcements/kde-frameworks-5.72.0.php?site_locale=en

- net/kdav became a framework and was therefore moved to net/kf5-kdav.
- thanks to adridg@ for fixing the fallout

Exp-run by:	antoine
PR:		247907
2020-07-21 17:15:38 +00:00
Dan Langille
c1f39c706a At present, the policy implemented in Mk/Scripts/qa.sh prevents me
from adding lang/python, lang/python2, or lang/python3 as a dependency of
another port. "This is to prevent adding dependencies to meta ports that
are only there to improve the end user experience." - I build my own packages
via poudriere. I want to create my own meta-package which has such packages
as RUN_DEPENDS. It's been suggested that I patch my own copy of the tree.
This patch moves towards tools, not policy.

This patch allows me to set this variable in a poudriere make.conf file:

QA_ENV+= IGNORE_DEPENDS_BLACKLIST="YES"

Reviewed by:	mat
Approved by:	portmgr
Differential Revision:	https://reviews.freebsd.org/D25450
2020-07-20 19:22:16 +00:00
Mathieu Arnold
653dab23f7 Fix overlays when using flavors.
Move FLAVOR processing before the overlays processing so that flavors
can be used with overlays.

PR:		247741
Submitted by:	mikael
2020-07-06 11:10:16 +00:00
Mathieu Arnold
c671212915 Add PATCH_CONTINUE_ON_FAIL to allow patching to go through all the
patches even if one fail.

This helps when upgrading ports with a large number of patches, like
www/chromium where having to fix one patch, re-do the patching, fix the
fallout, 800 times, is really painful.

This fixes the first attempt at this which would make ports with
multiple patches patching one file somewhat explode.
2020-05-14 14:33:34 +00:00
Bryan Drewery
a4ecca97c2 Support OVERLAY dir passed in from Poudriere. 2020-05-04 18:27:51 +00:00
Mathieu Arnold
0c93135004 When one patch fails, continue with appling patches.
This makes the process of make patch, fix fallout, make makepatch much
easier as only one iteration is required.

While there, refactor things around, and streamline messages passed
between functions.

PR:		244626
Reported by:	cem
2020-04-30 14:48:22 +00:00
Mathieu Arnold
634e7a24f5 Lower case local variable. 2020-04-30 14:47:59 +00:00
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
Emmanuel Vadot
ab88b482cc users-groups-install: Make it pkg -r friendly
The generated pre-install scripts isn't pkg -r friendly for all
ports that have USERS/GROUPS with an homedir, fix that.

Reviewed by:	bapt
Approved by:	portmgr (bapt)
Differential Revision:	https://reviews.freebsd.org/D24531
2020-04-23 18:06:47 +00:00
Bryan Drewery
b74622b8ed Don't show private variable name in user message. 2020-04-10 23:28:56 +00:00
Mathieu Arnold
f5e4ea9e14 Unbreak make makepatch.
The glob in `find ./*` is handled by the shell and actually sorts the
files, so one needs to to ask find to sort the result, using `find -s`.

`find ./* -maxdepth 0` is not equivalent to `find . -maxdepth 0`, the
depth increases by one as `./x` is on level deeper than `.`.

Pointy hat:	bdrewery
2020-01-23 08:55:25 +00:00
Bryan Drewery
ed09885fec find(1) doesn't need a glob to search for patches.
This change also avoids cmdline length errors and other subst
parsing issues that were previously targeted.

Sponsored by:	DellEMC
2020-01-21 20:36:14 +00:00
Tobias Kortkamp
83096313be lang/rust: Add COMPAT_FREEBSD11 canary
This attempts to provide a nicer error message for the subset of
users who build their own kernels without COMPAT_FREEBSD11 and then
attempt to build lang/rust.  The Rust ecosystem currently uses
pre-ino64 syscalls, so building lang/rust without COMPAT_FREEBSD11
is not going to work.

The error message for this is non-obvious and there is a new bug
for this at least every 1-2 months.  Hopefully this will improve
the situation a little.

Cargo and Gecko ports are similarly affected, so add the pre-build
check to them too.

Reviewed by:	jbeich, mikael.urankar@gmail.com
Tested by:	madpilot (negative case)
Approved by:	gecko (jbeich)
Differential Revision:	https://reviews.freebsd.org/D23100
2020-01-13 18:36:04 +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
Baptiste Daroussin
c2ca919129 Garbage collect libgnomeprint 2019-12-26 21:46:02 +00:00
Tobias Kortkamp
bb415dbba6 Mk/Uses/cargo.mk: Support new Cargo.lock format
The new format [1,2] dropped the [metadata] table.  As a consequence
our cargo-crates.awk script no longer outputs CARGO_CRATES.  We can
get the crate list from the various [[package]] tables instead.
This should work with the new as well as the old format.

[1] https://github.com/rust-lang/cargo/pull/7070
[2] https://github.com/rust-lang/cargo/pull/7579

PR:		242416
Reported by:	jbeich
2019-12-05 06:42:22 +00:00
Bryan Drewery
19aa5ff42e generate-symbols: Need @dir entries if PREFIX!=LOCALBASE.
- makeplist/check-plist: Don't suggest or complain about @dir entries
  for debug symbols added by this script. Same as is done for the
  debug symbols themselves.

Sponsored by:	DellEMC
2019-11-07 20:49:17 +00:00
Li-Wen Hsu
a7dfc7e583 Retire the palm category (1999-2019)
Reviewed by:	mat
Approved by:	portmgr (mat)
Differential Revision:	https://reviews.freebsd.org/D22222
2019-11-04 11:57:46 +00:00
Baptiste Daroussin
a472a290be Add make to the list of allowed shebang
PR:		228874
Reported by:	jwb
2019-09-06 08:57:12 +00:00