drbd-utils: fix dependency for perl under small-fs
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.
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
@@ -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
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 theGetopt::Longmodule) (@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-overviewline 393. BEGIN failed--compilation aborted at/usr/sbin/drbd-overviewline 393.the patch explicaitly specified dependency for perl;s lib needed.