ntp: fix perl path
PATCH 1/1 ntp: fix perl path
Fix perl path in ntp-wait and calc_tickadj.
meta-networking/recipes-support/ntp/ntp_4.2.8.bb +3 -1
@@ -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
Hi,
Any chance to get this into git? Now if one has a system /bin/perl, ntp build will fail.
Br,
György
Quoted 25 lines · 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 <[email protected]>(quoted diff) +0
-0b/meta-networking/recipes-support/ntp/ntp_4.2.8.bb index 9f74f6b..e802ee7 100644
meta-networking/recipes-support/ntp/ntp_4.2.8.bb +0
-0@@ -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
meta-networking/recipes-support/ntp/ntp_4.2.8.bb +2
-1- 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_tickadjinstall -d ${D}/${sysconfdir}/default install -m 644 ${WORKDIR}/ntpdate.default${D}${sysconfdir}/default/ntpdate
...more precisely, without the patch ntp-utils will have a /bin/perl dependency, so it becomes uninstallable (nothing provides /bin/perl).
Br,
György
Quoted 40 lines · 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örgyQuoted 31 lines · 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 <[email protected]>(quoted diff) +0
-0b/meta-networking/recipes-support/ntp/ntp_4.2.8.bb index 9f74f6b..e802ee7 100644
meta-networking/recipes-support/ntp/ntp_4.2.8.bb +0
-0@@ -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-waitmeta-networking/recipes-support/ntp/ntp_4.2.8.bb +2
-0+ 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_tickadjinstall -d ${D}/${sysconfdir}/default install -m 644 ${WORKDIR}/ntpdate.default${D}${sysconfdir}/default/ntpdate
Quoted 2 lines · On Wednesday 21 January 2015 21:05:12 Szombathelyi György wrote:
...more precisely, without the patch ntp-utils will have a
/bin/perldependency, so it becomes uninstallable (nothing provides/bin/perl).
We do definitely want to fix this, yes - and the breakage may have been my fault, sorry about that.
I think one reason your patch hasn't been picked up yet may be that it should have been marked as [meta-networking] rather than [meta-oe] since meta- networking is the layer in which the ntp recipe resides.
Joe, can you please apply this?
Thanks,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
Quoted 4 lines · [Re: [oe] [meta-oe][PATCH]ntp: fix perl path] On 15.01.23 (Fri 11:22) Paul…
Quoted 2 lines · On Wednesday 21 January 2015 21:05:12 Szombathelyi György wrote:
...more precisely, without the patch ntp-utils will have a
/bin/perldependency, so it becomes uninstallable (nothing provides/bin/perl).
Quoted 8 lines
We do definitely want to fix this, yes - and the breakage may have been my fault, sorry about that.
I think one reason your patch hasn't been picked up yet may be that it should have been marked as [meta-networking] rather than [meta-oe] since meta- networking is the layer in which the ntp recipe resides.
Joe, can you please apply this?
Yep, no problem. I'll grab it right now. I did notice it last night, finally, but never thought to check the status as I thought it was typically the sort of thing Martin would grab.
Signature · 2 lines
-Joe MacDonald. :wq