Skip to contentSkip to conversation

docbook-utils-native: Unbreak the build after source and build dir split

PATCH New Khem Raj 1 participant 1 message Mar 25, 2013

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 docbook-utils-native: Unbreak the build after source and build dir split

docbook-utils-native started to install frontends and backends in wrong locations after this change. The absolute build and source directories were being created in install locations and the recipes using docbook-utils-native were complaining like dbus-java is saying

| jw: There is no frontend called "/b/kraj/jlinux-next/poky/build/tmp-eglibc/sysroots/x86_64-linux/usr/share/sgml/docbook/utils-0.6.14/frontends/docbook". | make: *** [CreateInterface.1] Error 2
| ERROR: oe_runmake failed

Rightly so because now they are installed under /b/kraj/jlinux-next/poky/build/tmp-eglibc/sysroots/x86_64-linux/usr/share/sgml/docbook/utils-0.6.14/b/kraj/jlinux-next/poky/build/tmp-eglibc/work/x86_64-linux/docbook-utils-native/0.6.14-r3/

This patch fixes the install to be like it was but consider the build and sourcedir split.

---
 .../docbook-utils/docbook-utils-native_0.6.14.bb   |   17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)
meta/recipes-devtools/docbook-utils/docbook-utils-native_0.6.14.bb +11 -6
index 78034dd..c3a5f3b 100644
@@ -45,14 +45,19 @@ do_install() {
 	done
 
 	install -m 0755 ${B}/bin/jw ${D}${bindir}/
-	for i in ${S}/backends/dvi ${S}/backends/html ${B}/backends/man \
-		${S}/backends/pdf ${S}/backends/ps ${S}/backends/rtf ${S}/backends/tex \
-		${B}/backends/texi ${S}/backends/txt ${B}/frontends/docbook \
-		${S}/helpers/docbook2man-spec.pl ${S}/helpers/docbook2texi-spec.pl \
-		${S}/docbook-utils.dsl
+	for i in backends/dvi backends/html \
+		backends/pdf backends/ps backends/rtf backends/tex \
+		backends/txt \
+		helpers/docbook2man-spec.pl helpers/docbook2texi-spec.pl \
+		docbook-utils.dsl
 	do
 		install -d ${D}${datadir}/sgml/docbook/utils-${PV}/`dirname $i`
-		install $i ${D}${datadir}/sgml/docbook/utils-${PV}/$i
+		install ${S}/$i ${D}${datadir}/sgml/docbook/utils-${PV}/$i
+	done
+	for i in backends/man backends/texi frontends/docbook
+	do
+		install -d ${D}${datadir}/sgml/docbook/utils-${PV}/`dirname $i`
+		install ${B}/$i ${D}${datadir}/sgml/docbook/utils-${PV}/$i
 	done
 
 }
Signature · 1 line
1.7.9.5