Skip to contentSkip to conversation

ntp: remove empty libexecdir to prevent potential QA issues

PATCH Superseded Mark Asselstine 3 participants 5 messages Feb 4, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ntp: remove empty libexecdir to prevent potential QA issues

Depending on the configuration used to build ntp it is possible to have an empty libexecdir. This can cause QA issues. Add a test at the end of install() to remove libexecdir if it is empty, thus avoiding the possibility of QA issues, regardless of configuration.

---
 meta-networking/recipes-support/ntp/ntp_4.2.8p4.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-networking/recipes-support/ntp/ntp_4.2.8p4.bb +3 -0
index f9f900e..cb09e77 100644
@@ -94,6 +94,9 @@ do_install_append() {
 
     install -d ${D}${systemd_unitdir}/ntp-units.d
     install -m 0644 ${WORKDIR}/ntpd.list ${D}${systemd_unitdir}/ntp-units.d/60-ntpd.list
+
+    # Remove an empty libexecdir.
+    [ ! "$(ls -A ${D}${libexecdir})" ] && rm -r ${D}${libexecdir}
 }
 
 PACKAGES += "ntpdate sntp ${PN}-tickadj ${PN}-utils"
Signature · 1 line
2.1.4
#1 lore raw
Quoted 15 lines · Mark Asselstine

Depending on the configuration used to build ntp it is possible to have an empty libexecdir. This can cause QA issues. Add a test at the end of install() to remove libexecdir if it is empty, thus avoiding the possibility of QA issues, regardless of configuration.

---
 meta-networking/recipes-support/ntp/ntp_4.2.8p4.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-networking/recipes-support/ntp/ntp_4.2.8p4.bb +0 -0
index f9f900e..cb09e77 100644

meta-networking/recipes-support/ntp/ntp_4.2.8p4.bb do_install_append() { · line 99

Quoted 6 lines
meta-networking/recipes-support/ntp/ntp_4.2.8p4.bb +3 -0
@@ -94,6 +94,9 @@ do_install_append() {
 
     install -d ${D}${systemd_unitdir}/ntp-units.d
     install -m 0644 ${WORKDIR}/ntpd.list ${D}${systemd_unitdir}/ntp-units.d/60-ntpd.list
+
+    # Remove an empty libexecdir.
+    [ ! "$(ls -A ${D}${libexecdir})" ] && rm -r ${D}${libexecdir}

Isn't this the same as:

rmdir --ignore-fail-on-non-empty ${D}${libexecdir}

?

Quoted 11 lines
meta-networking/recipes-support/ntp/ntp_4.2.8p4.bb +0 -0
 }
 
 PACKAGES += "ntpdate sntp ${PN}-tickadj ${PN}-utils"
Signature · 7 lines
2.1.4

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#2 lore raw
Quoted 25 lines · Martin Jansa
Quoted 15 lines · Mark Asselstine

Depending on the configuration used to build ntp it is possible to have an empty libexecdir. This can cause QA issues. Add a test at the end of install() to remove libexecdir if it is empty, thus avoiding the possibility of QA issues, regardless of configuration.

---
 meta-networking/recipes-support/ntp/ntp_4.2.8p4.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-networking/recipes-support/ntp/ntp_4.2.8p4.bb +0 -0
index f9f900e..cb09e77 100644

meta-networking/recipes-support/ntp/ntp_4.2.8p4.bb do_install_append() { · line 99

Quoted 6 lines
meta-networking/recipes-support/ntp/ntp_4.2.8p4.bb +3 -0
@@ -94,6 +94,9 @@ do_install_append() {
 
     install -d ${D}${systemd_unitdir}/ntp-units.d
     install -m 0644 ${WORKDIR}/ntpd.list ${D}${systemd_unitdir}/ntp-units.d/60-ntpd.list
+
+    # Remove an empty libexecdir.
+    [ ! "$(ls -A ${D}${libexecdir})" ] && rm -r ${D}${libexecdir}

Isn't this the same as:

Quoted 3 lines

rmdir --ignore-fail-on-non-empty ${D}${libexecdir}

?

It appears to be. rmdir is not a command I use often so I didn't look to see if it was suitable for the job. Want me to resend with rmdir or you care to make the swap prior to merging?

Mark

Quoted 22 lines
Quoted 7 lines
meta-networking/recipes-support/ntp/ntp_4.2.8p4.bb +0 -1
 }
 
 PACKAGES += "ntpdate sntp ${PN}-tickadj ${PN}-utils"
--

2.1.4

Quoted 5 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
Martin 'JaMa' Jansa jabber: [email protected]

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#3 lore raw
Quoted 26 lines · Mark Asselstine
Quoted 25 lines · Martin Jansa
Quoted 15 lines · Mark Asselstine

Depending on the configuration used to build ntp it is possible to have an empty libexecdir. This can cause QA issues. Add a test at the end of install() to remove libexecdir if it is empty, thus avoiding the possibility of QA issues, regardless of configuration.

---
 meta-networking/recipes-support/ntp/ntp_4.2.8p4.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-networking/recipes-support/ntp/ntp_4.2.8p4.bb +0 -0
index f9f900e..cb09e77 100644

meta-networking/recipes-support/ntp/ntp_4.2.8p4.bb do_install_append() { · line 99

Quoted 6 lines
meta-networking/recipes-support/ntp/ntp_4.2.8p4.bb +3 -0
@@ -94,6 +94,9 @@ do_install_append() {
 
     install -d ${D}${systemd_unitdir}/ntp-units.d
     install -m 0644 ${WORKDIR}/ntpd.list ${D}${systemd_unitdir}/ntp-units.d/60-ntpd.list
+
+    # Remove an empty libexecdir.
+    [ ! "$(ls -A ${D}${libexecdir})" ] && rm -r ${D}${libexecdir}

Isn't this the same as:

Quoted 7 lines
Quoted 3 lines

rmdir --ignore-fail-on-non-empty ${D}${libexecdir}

?

It appears to be. rmdir is not a command I use often so I didn't look to see if it was suitable for the job. Want me to resend with rmdir or you care to make the swap prior to merging?

Joe is maintainer of meta-networking, but I would prefer you to send v2.

Quoted 30 lines

Mark

Quoted 22 lines
Quoted 7 lines
meta-networking/recipes-support/ntp/ntp_4.2.8p4.bb +0 -1
 }
 
 PACKAGES += "ntpdate sntp ${PN}-tickadj ${PN}-utils"
--

2.1.4

Quoted 5 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
Martin 'JaMa' Jansa jabber: [email protected]

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Signature · 4 lines
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#4 lore raw
Quoted 29 lines · [Re: [oe] [meta-networking][PATCH] ntp: remove empty libexecdir to prevent…
Quoted 28 lines · Mark Asselstine
Quoted 27 lines · Martin Jansa
Quoted 15 lines · Mark Asselstine

Depending on the configuration used to build ntp it is possible to have an empty libexecdir. This can cause QA issues. Add a test at the end of install() to remove libexecdir if it is empty, thus avoiding the possibility of QA issues, regardless of configuration.

---
 meta-networking/recipes-support/ntp/ntp_4.2.8p4.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-networking/recipes-support/ntp/ntp_4.2.8p4.bb +0 -0
index f9f900e..cb09e77 100644

meta-networking/recipes-support/ntp/ntp_4.2.8p4.bb do_install_append() { · line 99

Quoted 6 lines
meta-networking/recipes-support/ntp/ntp_4.2.8p4.bb +3 -0
@@ -94,6 +94,9 @@ do_install_append() {
 
     install -d ${D}${systemd_unitdir}/ntp-units.d
     install -m 0644 ${WORKDIR}/ntpd.list ${D}${systemd_unitdir}/ntp-units.d/60-ntpd.list
+
+    # Remove an empty libexecdir.
+    [ ! "$(ls -A ${D}${libexecdir})" ] && rm -r ${D}${libexecdir}

Isn't this the same as:

rmdir --ignore-fail-on-non-empty ${D}${libexecdir}

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

?

It appears to be. rmdir is not a command I use often so I didn't look to see if it was suitable for the job. Want me to resend with rmdir or you care to make the swap prior to merging?

Joe is maintainer of meta-networking, but I would prefer you to send v2.

Yeah, please do.

-J.

Quoted 34 lines
Quoted 31 lines

Mark

Quoted 22 lines
Quoted 7 lines
meta-networking/recipes-support/ntp/ntp_4.2.8p4.bb +0 -1
 }
 
 PACKAGES += "ntpdate sntp ${PN}-tickadj ${PN}-utils"
--

2.1.4

Quoted 5 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
Martin 'JaMa' Jansa jabber: [email protected]

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Signature · 4 lines
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
Signature · 2 lines
-Joe MacDonald.
:wq