[oe] [meta-oe][PATCH]ntp: fix perl path
Szombathelyi György
gyurco at freemail.hu
Wed Jan 21 20:05:12 UTC 2015
...more precisely, without the patch ntp-utils will have a /bin/perl
dependency, so it becomes uninstallable (nothing provides /bin/perl).
Br,
György
On Sunday 18 January 2015 15:42:59 Szombathelyi György wrote:
> Hi,
>
> Any chance to get this into git? Now if one has a system /bin/perl, ntp
> build will fail.
>
> Br,
> György
>
> On Tuesday 13 January 2015 22:44:03 Szombathelyi György wrote:
> > Fix perl path in ntp-wait and calc_tickadj.
> >
> > Signed-off-by: Gyorgy Szombathelyi <gyurco at freemail.hu>
> >
> > diff --git a/meta-networking/recipes-support/ntp/ntp_4.2.8.bb
> > b/meta-networking/recipes-support/ntp/ntp_4.2.8.bb index 9f74f6b..e802ee7
> > 100644
> > --- a/meta-networking/recipes-support/ntp/ntp_4.2.8.bb
> > +++ b/meta-networking/recipes-support/ntp/ntp_4.2.8.bb
> > @@ -74,8 +74,10 @@ do_install_append() {
> >
> > sed -i
> >
> > 's!^PATH=.*!PATH=${base_sbindir}:${base_bindir}:${sbindir}:${bindir}!'
> > ${D}${bindir}/ntpdate-sync sed -i '1s,#!.*perl -w,#! ${bindir}/env perl,'
> > ${D}${sbindir}/ntptrace sed -i '/use/i use warnings;'
> > ${D}${sbindir}/ntptrace
> > - sed -i '1s,#!.*perl -w,#! ${bindir}/env perl,'
> > ${D}${sbindir}/ntp-wait
> > + sed -i '1s,#!.*perl,#! ${bindir}/env perl,' ${D}${sbindir}/ntp-wait
> >
> > sed -i '/use/i use warnings;' ${D}${sbindir}/ntp-wait
> >
> > + sed -i '1s,#!.*perl -w,#! ${bindir}/env perl,'
> > ${D}${sbindir}/calc_tickadj + sed -i '/use/i use warnings;'
> > ${D}${sbindir}/calc_tickadj
> >
> > install -d ${D}/${sysconfdir}/default
> > install -m 644 ${WORKDIR}/ntpdate.default
> >
> > ${D}${sysconfdir}/default/ntpdate
More information about the Openembedded-devel
mailing list