emacs: remove infodir
authorMartin Jansa <Martin.Jansa@gmail.com>
Mon, 31 Mar 2014 11:39:17 +0000 (13:39 +0200)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:36:49 +0000 (08:36 -0800)
* 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.

(From meta-openembedded rev: 10b899a23e121561ad569a520a7213e3d1d187b7)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-openembedded/meta-oe/recipes-support/emacs/emacs.inc

index d7d281f..a1a4965 100644 (file)
@@ -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}"'