Skip to contentSkip to conversation

perl: fix missing dependency for perl-misc

PATCH In review Catalin Enache 2 participants 2 messages Mar 11, 2016 – Mar 16, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perl: fix missing dependency for perl-misc

"perl-misc" package is adding tens of perl utilities which have depencies on perl-modules.

For example, in order for "prove" to work correctly following modules are needed:

RDEPENDS_perl-misc += "perl perl-module-app-prove perl-module-overloading perl-module-tap-base perl-module-file-glob perl-module-tap-formatter-console perl-module-tap-formatter-base perl-module-tap-formatter-file perl-module-tap-formatter-session perl-module-tap-parser perl-module-tap-parser-aggregator perl-module-tap-parser-scheduler"

If we compile a list of modules needed by the utilities added by "perl-misc" we may end up having to add hundreds of modules to RDEPENDS_perl-misc.

Rather than adding hundreds of dependencies only perl-modules was added.

---
 meta/recipes-devtools/perl/perl-rdepends_5.22.1.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/perl/perl-rdepends_5.22.1.inc +1 -1
index 033d4e3..830ecce 100644
@@ -13,7 +13,7 @@
 #| sed 's/^/RDEPENDS_/;s/perl-module-/${PN}-module-/g;s/module-\(module-\)/\1/g;s/\(module-load\)-conditional/\1/g;s/encode-configlocal/&-pm/;' 
 #| egrep -wv '=>|module-a|module-apache.?|module-apr|module-authen-sasl|module-b-asmdata|module-convert-ebcdic|module-devel-size|module-digest-perl-md5|module-dumpvalue|module-extutils-constant-aaargh56hash|module-extutils-xssymset|module-file-bsdglob|module-for|module-it|module-io-string|module-ipc-system-simple|module-lexical|module-local-lib|metadata|module-modperl-util|module-pluggable-object|module-test-builder-io-scalar|module-text-unidecode|module-win32|objects\sload|syscall.ph|systeminfo.ph|%s' > /tmp/perl-rdepends
 
-RDEPENDS_perl-misc += "perl"
+RDEPENDS_perl-misc += "perl perl-modules"
 RDEPENDS_${PN}-pod += "perl"
 
 # Some additional dependencies that the above doesn't manage to figure out
Signature · 1 line
1.9.1
#1 lore raw
Quoted 16 lines

Am 11.03.2016 um 10:41 schrieb Catalin Enache <[email protected]>:

"perl-misc" package is adding tens of perl utilities which have depencies on perl-modules.

For example, in order for "prove" to work correctly following modules are needed:

RDEPENDS_perl-misc += "perl perl-module-app-prove perl-module-overloading perl-module-tap-base perl-module-file-glob perl-module-tap-formatter-console perl-module-tap-formatter-base perl-module-tap-formatter-file perl-module-tap-formatter-session perl-module-tap-parser perl-module-tap-parser-aggregator perl-module-tap-parser-scheduler"

Quoted 5 lines

If we compile a list of modules needed by the utilities added by "perl-misc" we may end up having to add hundreds of modules to RDEPENDS_perl-misc.

Rather than adding hundreds of dependencies only perl-modules was added.

Beside of that - perl5.x.x bundles several modules with reason:

Programms written in Perl need them and very often rely on what's bundled. Modern author kits like Dist::Zilla prove Perl-Version (when author specifies
MIN_PERL: 5.10) which module is bundled and don't explicitly add dependencies on that.

Nowadays it's not reasonable to distribute perl without core. What might be sane is:

RDEPENDS_perl += "libperl perl-interpreter perl-modules"

This would allow maximum reduce for those who need and default dependency as meant by Perl5 Porters (those who care since 5.10).

Just a side-note - catch me in IRC if wanted for a plan how to "fix" perl after 2.1 release (maybe with 5.24 update).

Quoted 21 lines

---
meta/recipes-devtools/perl/perl-rdepends_5.22.1.inc | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/perl/perl-rdepends_5.22.1.inc +1 -1
index 033d4e3..830ecce 100644
@@ -13,7 +13,7 @@
 #| sed 's/^/RDEPENDS_/;s/perl-module-/${PN}-module-/g;s/module-\(module-\)/\1/g;s/\(module-load\)-conditional/\1/g;s/encode-configlocal/&-pm/;'
 #| egrep -wv '=>|module-a|module-apache.?|module-apr|module-authen-sasl|module-b-asmdata|module-convert-ebcdic|module-devel-size|module-digest-perl-md5|module-dumpvalue|module-extutils-constant-aaargh56hash|module-extutils-xssymset|module-file-bsdglob|module-for|module-it|module-io-string|module-ipc-system-simple|module-lexical|module-local-lib|metadata|module-modperl-util|module-pluggable-object|module-test-builder-io-scalar|module-text-unidecode|module-win32|objects\sload|syscall.ph|systeminfo.ph|%s' > /tmp/perl-rdepends
 
-RDEPENDS_perl-misc += "perl"
+RDEPENDS_perl-misc += "perl perl-modules"

RDEPENDS_${PN}-pod += "perl"

# Some additional dependencies that the above doesn't manage to figure out --
1.9.1

Quoted 5 lines

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

--
Jens Rehsack - [email protected]