commit:     b06c8cb0ab916ed51493741f76e6a5645b1ee5ad
Author:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 14 09:19:51 2020 +0000
Commit:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
CommitDate: Sat Nov 14 09:32:49 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b06c8cb0

app-admin/rex: -9999 strip authortests w/ false-postive missing deps

These files make `dzil listdeps` report additional dependencies that
aren't actually useful or needed anywhere in the build.

Stripping them makes the number of complained about missing deps in
einfo logs smaller

Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Kent Fredric <kentnl <AT> gentoo.org>

 app-admin/rex/rex-9999.ebuild | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/app-admin/rex/rex-9999.ebuild b/app-admin/rex/rex-9999.ebuild
index 6a9496d529c..f3a8a74be86 100644
--- a/app-admin/rex/rex-9999.ebuild
+++ b/app-admin/rex/rex-9999.ebuild
@@ -130,6 +130,12 @@ dzil_src_prep() {
                -e '/^\[OptionalFeature/,/^$/d' \
                -e '/^\[Test::MinimumVersion\]/{N;d}' \
                -i dist.ini || die "Can't patch dist.ini"
+
+       # Removals/additons have to be tracked by git or dzil build fails
+       # Spurious warning during src_prepare
+       git rm -f xt/author/critic-progressive.t || die "Can't rm 
author/critic-progressive.t"
+       # Spurious warning during src_prepare
+       git rm -f xt/author/perltidy.t || die "Can't rm author/perltidy.t"
 }
 dzil_env_setup() {
        # NextRelease noise :(
@@ -146,7 +152,7 @@ dzil_to_distdir() {
 
        cd "${dzil_root}" || die "Can't enter git workdir '${dzil_root}'";
 
-       dzil_src_prep
+       S="${dzil_root}" dzil_src_prep
        dzil_env_setup
 
        dzil_version="$(dzil version)" || die "Error invoking 'dzil version'"

Reply via email to