augeas: Fix missing files with separate build directory

${datadir} was empty when building ${B} != ${S}, this patch addresses that
problem and means the -lenses package is no longer empty.

(From OE-Core rev: ee3b0d8fbe42a3c813039850886b5bf97544eb15)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2013-04-17 11:39:58 +01:00
parent c1ac96dde1
commit d78dcf5698
2 changed files with 23 additions and 0 deletions

View File

@ -7,6 +7,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=bbb461211a33b134d42ed5ee802b37ff"
SRC_URI = "http://download.augeas.net/${BP}.tar.gz \
file://add-missing-argz-conditional.patch \
file://sepbuildfix.patch \
"
DEPENDS = "readline libxml2"

View File

@ -0,0 +1,22 @@
Ensure that builds in separate builddirs (${B} != ${S}) correctly install the
lenses files.
Upstream-Status: Pending
RP 2013/4/17
Index: augeas-1.0.0/Makefile.am
===================================================================
--- augeas-1.0.0.orig/Makefile.am 2012-11-02 15:20:11.000000000 +0000
+++ augeas-1.0.0/Makefile.am 2013-04-17 10:36:24.033400125 +0000
@@ -5,8 +5,8 @@
lensdir=$(datadir)/augeas/lenses/dist
lenstestdir=$(datadir)/augeas/lenses/dist/tests
-dist_lens_DATA=$(wildcard lenses/*.aug)
-dist_lenstest_DATA=$(wildcard lenses/tests/*.aug)
+dist_lens_DATA=$(wildcard $(top_srcdir)/lenses/*.aug)
+dist_lenstest_DATA=$(wildcard $(top_srcdir)lenses/tests/*.aug)
EXTRA_DIST=augeas.spec build/aux/move-if-change Makefile.am HACKING