Skip to contentSkip to conversation

autofs: fix do_install failure and remove unused /var/run directory

PATCH Applied [email protected] 2 participants 2 messages Oct 24, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 autofs: fix do_install failure and remove unused /var/run directory

From: Chen Qi <[email protected]>

If ${D}/run doesn't exist, the following statement will have non-zero exit code, which leads to do_install failure.

     test -d ${D}/run && rmdir ${D}/run

Modify it to use the if statement to make the do_install task succeed no matter ${D}/run exists or not.

Also, this patch removes the unused /var/run directory. Leaving that directory there will result in /run directory created before splitting package, which in turn lead to 'installed-vs-shipped' QA error or QA warning.

---
 .../recipes-daemons/autofs/autofs_5.0.7.bb         |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
meta-networking/recipes-daemons/autofs/autofs_5.0.7.bb +6 -1
index f8df0ef..c4eea31 100644
@@ -96,7 +96,12 @@ do_configure_prepend () {
 }
 
 do_install_append () {
-    test -d ${D}/run && rmdir ${D}/run
+    if [ -d ${D}/run ]; then
+	rmdir ${D}/run
+    fi
+    if [ -d ${D}${localstatedir}/run ]; then
+	rmdir ${D}${localstatedir}/run
+    fi
 }
 
 INSANE_SKIP_${PN} = "dev-so"
Signature · 1 line
1.7.9.5
#1 lore raw

Merged, thanks.
-J.

Quoted 37 lines · [[oe][meta-networking][PATCH] autofs: fix do_install failure and remove unused…

From: Chen Qi <[email protected]>

If ${D}/run doesn't exist, the following statement will have non-zero exit code, which leads to do_install failure.

     test -d ${D}/run && rmdir ${D}/run

Modify it to use the if statement to make the do_install task succeed no matter ${D}/run exists or not.

Also, this patch removes the unused /var/run directory. Leaving that directory there will result in /run directory created before splitting package, which in turn lead to 'installed-vs-shipped' QA error or QA warning.

---
 .../recipes-daemons/autofs/autofs_5.0.7.bb         |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
meta-networking/recipes-daemons/autofs/autofs_5.0.7.bb +6 -1
index f8df0ef..c4eea31 100644
@@ -96,7 +96,12 @@ do_configure_prepend () {
 }
 
 do_install_append () {
-    test -d ${D}/run && rmdir ${D}/run
+    if [ -d ${D}/run ]; then
+	rmdir ${D}/run
+    fi
+    if [ -d ${D}${localstatedir}/run ]; then
+	rmdir ${D}${localstatedir}/run
+    fi
 }
 
 INSANE_SKIP_${PN} = "dev-so"
Signature · 2 lines
-Joe MacDonald.
:wq