From 064af661d0c9a31cecdf348632bc5603333a9149 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Tue, 10 Dec 2019 23:02:54 +0100 Subject: */*: [QA] Fix trivial cases of MissingTestRestrict MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Closes: https://github.com/gentoo/gentoo/pull/13942 Signed-off-by: Michał Górny --- sys-fs/eudev/eudev-3.2.5.ebuild | 1 + sys-fs/eudev/eudev-3.2.7-r2.ebuild | 1 + sys-fs/eudev/eudev-3.2.8.ebuild | 1 + sys-fs/eudev/eudev-3.2.9.ebuild | 1 + sys-fs/eudev/eudev-4.9999.ebuild | 1 + sys-fs/eudev/eudev-9999.ebuild | 1 + 6 files changed, 6 insertions(+) (limited to 'sys-fs/eudev') diff --git a/sys-fs/eudev/eudev-3.2.5.ebuild b/sys-fs/eudev/eudev-3.2.5.ebuild index 292095d63780..23b3ca125196 100644 --- a/sys-fs/eudev/eudev-3.2.5.ebuild +++ b/sys-fs/eudev/eudev-3.2.5.ebuild @@ -21,6 +21,7 @@ HOMEPAGE="https://github.com/gentoo/eudev" LICENSE="LGPL-2.1 MIT GPL-2" SLOT="0" IUSE="+hwdb +kmod introspection rule-generator selinux static-libs test" +RESTRICT="!test? ( test )" COMMON_DEPEND=">=sys-apps/util-linux-2.20 introspection? ( >=dev-libs/gobject-introspection-1.38 ) diff --git a/sys-fs/eudev/eudev-3.2.7-r2.ebuild b/sys-fs/eudev/eudev-3.2.7-r2.ebuild index a9b3e55a1b92..b8f4365b8521 100644 --- a/sys-fs/eudev/eudev-3.2.7-r2.ebuild +++ b/sys-fs/eudev/eudev-3.2.7-r2.ebuild @@ -21,6 +21,7 @@ HOMEPAGE="https://github.com/gentoo/eudev" LICENSE="LGPL-2.1 MIT GPL-2" SLOT="0" IUSE="+hwdb +kmod introspection rule-generator selinux static-libs test" +RESTRICT="!test? ( test )" COMMON_DEPEND=">=sys-apps/util-linux-2.20 introspection? ( >=dev-libs/gobject-introspection-1.38 ) diff --git a/sys-fs/eudev/eudev-3.2.8.ebuild b/sys-fs/eudev/eudev-3.2.8.ebuild index a9b3e55a1b92..b8f4365b8521 100644 --- a/sys-fs/eudev/eudev-3.2.8.ebuild +++ b/sys-fs/eudev/eudev-3.2.8.ebuild @@ -21,6 +21,7 @@ HOMEPAGE="https://github.com/gentoo/eudev" LICENSE="LGPL-2.1 MIT GPL-2" SLOT="0" IUSE="+hwdb +kmod introspection rule-generator selinux static-libs test" +RESTRICT="!test? ( test )" COMMON_DEPEND=">=sys-apps/util-linux-2.20 introspection? ( >=dev-libs/gobject-introspection-1.38 ) diff --git a/sys-fs/eudev/eudev-3.2.9.ebuild b/sys-fs/eudev/eudev-3.2.9.ebuild index e56aa608e957..3152f10509ba 100644 --- a/sys-fs/eudev/eudev-3.2.9.ebuild +++ b/sys-fs/eudev/eudev-3.2.9.ebuild @@ -21,6 +21,7 @@ HOMEPAGE="https://github.com/gentoo/eudev" LICENSE="LGPL-2.1 MIT GPL-2" SLOT="0" IUSE="+hwdb +kmod introspection rule-generator selinux static-libs test" +RESTRICT="!test? ( test )" COMMON_DEPEND=">=sys-apps/util-linux-2.20 introspection? ( >=dev-libs/gobject-introspection-1.38 ) diff --git a/sys-fs/eudev/eudev-4.9999.ebuild b/sys-fs/eudev/eudev-4.9999.ebuild index da2372754cf1..ac45032c4807 100644 --- a/sys-fs/eudev/eudev-4.9999.ebuild +++ b/sys-fs/eudev/eudev-4.9999.ebuild @@ -23,6 +23,7 @@ HOMEPAGE="https://github.com/gentoo/eudev" LICENSE="LGPL-2.1 GPL-2" SLOT="0" IUSE="+blkid efi +hwdb +kmod selinux smack test" +RESTRICT="!test? ( test )" COMMON_DEPEND=">=sys-apps/util-linux-2.20 kmod? ( >=sys-apps/kmod-16 ) diff --git a/sys-fs/eudev/eudev-9999.ebuild b/sys-fs/eudev/eudev-9999.ebuild index a9b3e55a1b92..b8f4365b8521 100644 --- a/sys-fs/eudev/eudev-9999.ebuild +++ b/sys-fs/eudev/eudev-9999.ebuild @@ -21,6 +21,7 @@ HOMEPAGE="https://github.com/gentoo/eudev" LICENSE="LGPL-2.1 MIT GPL-2" SLOT="0" IUSE="+hwdb +kmod introspection rule-generator selinux static-libs test" +RESTRICT="!test? ( test )" COMMON_DEPEND=">=sys-apps/util-linux-2.20 introspection? ( >=dev-libs/gobject-introspection-1.38 ) -- cgit v1.2.3-65-gdbad