The result was achieved via the following pipeline:
pkgcheck scan -c RestrictTestCheck -R FormatReporter \
--format '{category}/{package}/{package}-{version}.ebuild' |
xargs -n32 grep -L RESTRICT |
xargs -n32 sed -i -e '/^IUSE=.*test/aRESTRICT="!test? ( test )"'
The resulting metadata was compared before and after the change.
Few Go ebuilds had to be fixed manually due to implicit RESTRICT=strip
added by the eclass. Two ebuilds have to be fixed because of multiline
IUSE.
Suggested-by: Robin H. Johnson <robbat2@gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/13942
Signed-off-by: Michał Górny <mgorny@gentoo.org>
* Excluding xorg.freedesktop.org
* Excluding tango.freedesktop.org
The following modified ebuilds were found to have problems after modification
but the problems were determined to not be a regression.
Upstream tarball has a new hash:
* app-misc/evtest-1.29
* app-misc/evtest-1.30
* dev-embedded/scratchbox2-2.0-r1
* dev-ml/cairo-ocaml-1.2.0
* net-libs/libqmi-1.0.0
* sys-auth/libfprint-0.4.0
* sys-auth/libfprint-0.5.0
* sys-auth/libfprint-0.5.1
Upstream tarball has been deleted:
* dev-libs/liblazy-0.2
* dev-util/pkgconfig-openbsd-20130507-r1
* x11-libs/xvba-video-0.8.0-r3
* x11-misc/driconf-0.9.1-r1
* x11-misc/xdg-utils-1.1.0_rc2-r1