Patchwork [meta-oe,41/46] emacs: remove infodir

login
register
mail settings
Submitter Martin Jansa
Date April 1, 2014, 5:13 p.m.
Message ID <1396372434-10710-41-git-send-email-Martin.Jansa@gmail.com>
Download mbox | patch
Permalink /patch/69945/
State Accepted, archived
Headers show

Comments

Martin Jansa - April 1, 2014, 5:13 p.m.
* doesn't use autotools.bbclass which removes infodir automatically
* fixes QA warning:
  emacs-23.4: The /usr/share/info/dir file is not meant to be shipped in a particular package.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta-oe/recipes-support/emacs/emacs.inc | 4 ++++
 1 file changed, 4 insertions(+)

Patch

diff --git a/meta-oe/recipes-support/emacs/emacs.inc b/meta-oe/recipes-support/emacs/emacs.inc
index d7d281f..a1a4965 100644
--- a/meta-oe/recipes-support/emacs/emacs.inc
+++ b/meta-oe/recipes-support/emacs/emacs.inc
@@ -140,6 +140,10 @@  do_install_append() {
     # freaks package.bbclass and whole bitbake call returns error code
     # ERROR: runstrip: ''arm-oe-linux-gnueabi-strip'  '/var/lib/jenkins/jobs/shr-core-branches/workspace/shr-core/tmp-eglibc/work/armv4t-oe-linux-gnueabi/emacs-23.4-r0/package/usr/share/emacs/23.4/etc/tutorials/TUTORIAL.ko'' strip command failed
     mv ${D}${datadir}/${BPN}/${PV}/etc/tutorials/TUTORIAL.ko ${D}${datadir}/${BPN}/${PV}/etc/tutorials/TUTORIAL.KO
+    # Info dir listing isn't interesting at this point so remove it if it exists.
+    if [ -e "${D}${infodir}/dir" ]; then
+        rm -f ${D}${infodir}/dir
+    fi
 }
 
 EXTRA_OEMAKE += 'QEMU="${QEMU}"'