[oe-commits] Roman I Khimov : groff: fix groff-native build

git version control git at git.openembedded.org
Fri Sep 24 19:07:09 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: b495b6f66af84f5c2d7d6d4b97c522110c93cec2
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=b495b6f66af84f5c2d7d6d4b97c522110c93cec2

Author: Roman I Khimov <khimov at altell.ru>
Date:   Thu Sep 23 15:29:25 2010 +0400

groff: fix groff-native build

Fails at install stage in doc/ with missing images otherwise.

Signed-off-by: Roman I Khimov <khimov at altell.ru>

---

 recipes/groff/groff_1.20.1.bb |   20 +++++++++++---------
 1 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/recipes/groff/groff_1.20.1.bb b/recipes/groff/groff_1.20.1.bb
index bb613e8..de450d2 100644
--- a/recipes/groff/groff_1.20.1.bb
+++ b/recipes/groff/groff_1.20.1.bb
@@ -1,7 +1,7 @@
 DESCRIPTION = "GNU roff"
 SECTION = "base"
 LICENSE = "GPL"
-PR = "r0"
+PR = "r1"
 
 SRC_URI = "http://ftp.gnu.org/gnu/groff/groff-${PV}.tar.gz \
           "
@@ -11,14 +11,16 @@ SRC_URI[sha256sum] = "b645878135cb620c6c417c5601bfe96172245af12045540d7344938b4c
 inherit autotools
 
 do_configure_prepend(){
- sed -i \
-	-e '/^GROFFBIN=/s:=.*:=echo:' \
-	-e '/^TROFFBIN=/s:=.*:=echo:' \
-	-e '/^GROFF_BIN_PATH=/s:=.*:=:' \
-	-e '/^GROFF_BIN_DIR=/s:=.*:=:' \
-	${S}/contrib/*/Makefile.sub \
-	${S}/doc/Makefile.in \
-	${S}/doc/Makefile.sub
+	if [ "${BUILD_SYS}" != "${HOST_SYS}" ]; then
+		sed -i \
+		    -e '/^GROFFBIN=/s:=.*:=echo:' \
+		    -e '/^TROFFBIN=/s:=.*:=echo:' \
+		    -e '/^GROFF_BIN_PATH=/s:=.*:=:' \
+		    -e '/^GROFF_BIN_DIR=/s:=.*:=:' \
+		    ${S}/contrib/*/Makefile.sub \
+		    ${S}/doc/Makefile.in \
+		    ${S}/doc/Makefile.sub
+	fi
 }
 
 BBCLASSEXTEND = "native"





More information about the Openembedded-commits mailing list