Skip to contentSkip to conversation

ntp: add missing runtime dependencies

PATCH New Yi Zhao 1 participant 1 message Sep 6, 2023

lore
Share & tools
lore

Yi Zhao

author
#0 lore raw

PATCH 1/1 ntp: add missing runtime dependencies

Some perl modules are required by ntptrace:

$ ntptrace
Can't locate lib.pm in @INC (you may need to install the lib module)
(@INC contains: /usr/lib/perl5/site_perl/5.36.0/x86_64-linux
 /usr/lib/perl5/site_perl/5.36.0
 /usr/lib/perl5/vendor_perl/5.36.0/x86_64-linux
 /usr/lib/perl5/vendor_perl/5.36.0 /usr/lib/perl5/5.36.0/x86_64-linux
 /usr/lib/perl5/5.36.0) at /usr/sbin/ntptrace line 10.
BEGIN failed--compilation aborted at /usr/sbin/ntptrace line 10.
---
 meta-networking/recipes-support/ntp/ntp_4.2.8p17.bb | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
meta-networking/recipes-support/ntp/ntp_4.2.8p17.bb +8 -1
index e80ea4c14..4ed58cd6a 100644
@@ -136,7 +136,14 @@ RPROVIDES:${PN}-utils = "${PN}-bin"
 RREPLACES:${PN}-utils = "${PN}-bin"
 RCONFLICTS:${PN}-utils = "${PN}-bin"
 # ntpdc and ntpq were split out of ntp-utils
-RDEPENDS:${PN}-utils = "ntpdc ntpq"
+RDEPENDS:${PN}-utils = "ntpdc ntpq \
+                        perl-module-lib \
+                        perl-module-exporter \
+                        perl-module-carp \
+                        perl-module-version \
+                        perl-module-socket \
+                        perl-module-getopt-long \
+                       "
 
 SYSTEMD_PACKAGES = "${PN} sntp"
 SYSTEMD_SERVICE:${PN} = "ntpd.service"
Signature · 1 line
2.25.1