Skip to contentSkip to conversation

drbd-utils: fix dependency for perl under small-fs

PATCH New Yadi Hu 1 participant 3 messages May 3, 2017 – May 4, 2017

lore
Share & tools
lore

Yadi Hu

author
#0 lore raw

when run drbd-overview under samll fs, the perl script fails to run due to lack of perl's lib. warning shows as below:

drbd-overview
random: nonblocking pool is initialized
Can't locate Getopt/Long.pm in @INC (you may need to install the Getopt::Long module) (@INC contains: /etc/perl /usr/lib64/perl/site_perl/5.22.0/ /usr/lib64/perl/site_perl/5.22.0 /usr/lib64/perl/vendor_perl/5.22.0/ /usr/lib64/perl/vendor_perl/5.22.0 /usr/lib64/perl/5.22.0/ /usr/lib64/perl/5.22.0 /usr/local/lib/site_perl /usr/lib64/perl/5.22.0 .) at /usr/sbin/drbd-overview line 393. BEGIN failed--compilation aborted at /usr/sbin/drbd-overview line 393.

the patch explicaitly specified dependency for perl;s lib needed.

author
#1 lore raw

PATCH 1/1 drbd-utils: fix dependency for perl under small-fs

From: "Yadi.hu" <[email protected]>

Perl script drbd-overview fails to run due to some of perl's lib noexists under small rootfs,fixing it through adding explicit definitions

---
 meta-networking/recipes-support/drbd/drbd-utils_8.9.6.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-support/drbd/drbd-utils_8.9.6.bb +1 -1
index 3d6f5b262..67ed8e5c0 100644
@@ -30,7 +30,7 @@ EXTRA_OECONF = " \
                 --without-manual\
                "
 
-RDEPENDS_${PN} += "bash perl"
+RDEPENDS_${PN} += "bash perl-module-getopt-long perl-module-exporter perl-module-constant perl-module-overloading perl-module-exporter-heavy"
 
 # The drbd items are explicitly put under /lib when installed.
 #
Signature · 1 line
2.11.0
author
#2 lore raw
In reply to Yadi Hu

Any comments would be appreciated.

Yadi

Quoted 10 lines · Yadi Hu

when run drbd-overview under samll fs, the perl script fails to run due to lack of perl's lib. warning shows as below:

drbd-overview
random: nonblocking pool is initialized
Can't locate Getopt/Long.pm in @INC (you may need to install the Getopt::Long module) (@INC contains: /etc/perl /usr/lib64/perl/site_perl/5.22.0/ /usr/lib64/perl/site_perl/5.22.0 /usr/lib64/perl/vendor_perl/5.22.0/ /usr/lib64/perl/vendor_perl/5.22.0 /usr/lib64/perl/5.22.0/ /usr/lib64/perl/5.22.0 /usr/local/lib/site_perl /usr/lib64/perl/5.22.0 .) at /usr/sbin/drbd-overview line 393. BEGIN failed--compilation aborted at /usr/sbin/drbd-overview line 393.

the patch explicaitly specified dependency for perl;s lib needed.