summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Fredric <kentnl@gentoo.org>2020-08-08 05:47:06 +1200
committerKent Fredric <kentnl@gentoo.org>2020-08-08 05:53:14 +1200
commitc8e6567dafa3ed40b7f9faf3d309fa897accb511 (patch)
tree0738e7ce6180ba43cdecb0bd843760c32366c9c1 /dev-perl/Dist-Zilla/files
parentdev-libs/libffi: Stabilize 3.3-r2 arm64, #736178 (diff)
downloadgentoo-c8e6567dafa3ed40b7f9faf3d309fa897accb511.tar.gz
gentoo-c8e6567dafa3ed40b7f9faf3d309fa897accb511.tar.bz2
gentoo-c8e6567dafa3ed40b7f9faf3d309fa897accb511.zip
dev-perl/Dist-Zilla: add workaround for broken `authordeps --missing`
Stumbled into this working with app-admin/rex's 9999 version. `dzil authordeps --missing` was reporting missing deps, and bailing, even though they were provably installed. This fixes build issues with app-admin/rex-9999 with =dev-perl/Dist-Zilla-6.15.0 Bug: https://github.com/rjbs/Dist-Zilla/issues/660 Package-Manager: Portage-2.3.103, Repoman-2.3.22 Signed-off-by: Kent Fredric <kentnl@gentoo.org>
Diffstat (limited to 'dev-perl/Dist-Zilla/files')
-rw-r--r--dev-perl/Dist-Zilla/files/Dist-Zilla-6.015-authordeps-missing.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/dev-perl/Dist-Zilla/files/Dist-Zilla-6.015-authordeps-missing.patch b/dev-perl/Dist-Zilla/files/Dist-Zilla-6.015-authordeps-missing.patch
new file mode 100644
index 000000000000..c9e25ebff619
--- /dev/null
+++ b/dev-perl/Dist-Zilla/files/Dist-Zilla-6.015-authordeps-missing.patch
@@ -0,0 +1,36 @@
+From 21a92b08d30cd4758fefe1706eb96af30082cb7b Mon Sep 17 00:00:00 2001
+From: Kent Fredric <kentnl@gentoo.org>
+Date: Sat, 8 Aug 2020 05:25:21 +1200
+Subject: Fix INC traversal breakage with non-string objects in INC
+
+As `$root` is a Path object, and because there are defined mechanisms
+for handling objects in `@INC` traversal, this object being added to
+`@INC` can cause panics when the perl interpreter tries to call a method
+that doesn't exist, violating the API.
+
+And this in turn makes various authordeps appear missing when they're
+present, due to suppression of the error occurring from the above.
+
+Forcing stringification of the path object mitigates this issue.
+
+Bug: https://github.com/rjbs/Dist-Zilla/issues/660
+---
+ lib/Dist/Zilla/Util/AuthorDeps.pm | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/Dist/Zilla/Util/AuthorDeps.pm b/lib/Dist/Zilla/Util/AuthorDeps.pm
+index cbca1c7..603d67b 100644
+--- a/lib/Dist/Zilla/Util/AuthorDeps.pm
++++ b/lib/Dist/Zilla/Util/AuthorDeps.pm
+@@ -113,7 +113,7 @@ sub extract_author_deps {
+ : do {
+ my $m = $_;
+ ! eval {
+- local @INC = @INC; push @INC, $root;
++ local @INC = @INC; push @INC, "$root";
+ # This will die if module is missing
+ Module::Runtime::require_module($m);
+ my $v = $vermap->{$m};
+--
+2.28.0
+