Skip to contentSkip to conversation

scancpan: skip Dist::Zilla

PATCH New Christopher McCrory 2 participants 3 messages Aug 10, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 4/4 scancpan: skip Dist::Zilla

skip Dist::Zilla when finding dependancies

---

Dist::Zilla will pull in lots of unneeded dependancies ./utils/scancpan Class-Load will bring in ~250 perl-foo packages

---
 utils/scancpan | 1 +
 1 file changed, 1 insertion(+)
utils/scancpan +1 -0
index da8e7b91ac..1dbda7261f 100755
@@ -590,6 +590,7 @@ sub fetch {
             next if $modname eq q{perl};
             next if $modname =~ m|^Alien|;
             next if $modname =~ m|^Win32|;
+	    next if $modname =~ m|^Dist::Zilla|;
             next if !($test && $top) && $modname =~ m|^Test|;
             next if Module::CoreList::is_core( $modname, undef, $] );
             # we could use the host Module::CoreList data, because host perl and
Signature · 1 line
2.14.4
#1 lore raw

PATCH 4/4 scancpan: skip Dist::Zilla

2018-08-10 17:13 GMT+02:00 Christopher McCrory <[email protected]>:

Quoted 8 lines

skip Dist::Zilla when finding dependancies

---

Dist::Zilla will pull in lots of unneeded dependancies ./utils/scancpan Class-Load will bring in ~250 perl-foo packages

A better job will be done by :

utils/scancpan +0 -0
@@ -595,6 +595,7 @@ sub fetch {
             # we could use the host Module::CoreList data, because host

perl and

             # target perl have the same major version
             next if ${$dep}{phase} eq q{develop};
+            next if ${$dep}{phase} eq q{x_Dist_Zilla};
             next if !($test && $top) && ${$dep}{phase} eq q{test};
             my $distname = $mcpan->module( $modname )->{distribution};
             if (${$dep}{phase} eq q{runtime}) {
Signature · 1 line
Fran?ois
Quoted 17 lines
---
 utils/scancpan | 1 +
 1 file changed, 1 insertion(+)
utils/scancpan +1 -0
index da8e7b91ac..1dbda7261f 100755
@@ -590,6 +590,7 @@ sub fetch {
             next if $modname eq q{perl};
             next if $modname =~ m|^Alien|;
             next if $modname =~ m|^Win32|;
+           next if $modname =~ m|^Dist::Zilla|;
             next if !($test && $top) && $modname =~ m|^Test|;
             next if Module::CoreList::is_core( $modname, undef, $] );
             # we could use the host Module::CoreList data, because host
Quoted 5 lines

perl and
--
2.14.4

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180810/bd026bf7/attachment-0001.html>

#2 lore raw

PATCH 4/4 scancpan: skip Dist::Zilla

Quoted 19 lines · Fran?ois Perrad

2018-08-10 17:13 GMT+02:00 Christopher McCrory <[email protected]>:

Quoted 8 lines

skip Dist::Zilla when finding dependancies

---

Dist::Zilla will pull in lots of unneeded dependancies ./utils/scancpan Class-Load will bring in ~250 perl-foo packages

A better job will be done by :

utils/scancpan +0 -0
@@ -595,6 +595,7 @@ sub fetch {
             # we could use the host Module::CoreList data, because host

perl and

Quoted 8 lines
             # target perl have the same major version
             next if ${$dep}{phase} eq q{develop};
+            next if ${$dep}{phase} eq q{x_Dist_Zilla};
             next if !($test && $top) && ${$dep}{phase} eq q{test};
             my $distname = $mcpan->module( $modname )->{distribution};
             if (${$dep}{phase} eq q{runtime}) {
--

I'm far from a perl expert, I'll redo it this way. Thanks

Fran?ois

Quoted 25 lines
Quoted 24 lines
---
 utils/scancpan | 1 +
 1 file changed, 1 insertion(+)
utils/scancpan +1 -0
index da8e7b91ac..1dbda7261f 100755
@@ -590,6 +590,7 @@ sub fetch {
             next if $modname eq q{perl};
             next if $modname =~ m|^Alien|;
             next if $modname =~ m|^Win32|;
+           next if $modname =~ m|^Dist::Zilla|;
             next if !($test && $top) && $modname =~ m|^Test|;
             next if Module::CoreList::is_core( $modname, undef, $] );
             # we could use the host Module::CoreList data, because host

perl and
--
2.14.4

Signature · 7 lines
Christopher McCrory
To the optimist, the glass is half full.
To the pessimist, the glass is half empty.
To the engineer, the glass is twice as big as it needs to be.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180810/2fc0c4fc/attachment.html>