Skip to contentSkip to conversation

qemu-native: fix build on hosts without libX11 installed

PATCH Applied Martin Jansa 2 participants 2 messages Sep 22, 2012 – Sep 27, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qemu-native: fix build on hosts without libX11 installed

---
 meta/recipes-devtools/qemu/qemu_1.2.0.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
meta/recipes-devtools/qemu/qemu_1.2.0.bb +5 -1
index 7091f6d..191ee48 100644
@@ -17,7 +17,7 @@ SRC_URI = "\
 SRC_URI[md5sum] = "78eb1e984f4532aa9f2bdd3c127b5b61"
 SRC_URI[sha256sum] = "c8b84420d9f4869397f84cad2dabd9a475b7723d619a924a873740353e9df936"
 
-PR = "r1"
+PR = "r2"
 
 SRC_URI_append_virtclass-nativesdk = "\
     file://relocatable_sdk.patch \
@@ -29,4 +29,8 @@ do_configure_prepend_virtclass-nativesdk() {
 		sed -i 's/-lX11//g' Makefile.target
 	fi
 }
+do_configure_prepend_virtclass-native() {
+	# Undo the -lX11 added by linker-flags.patch, don't assume that host has libX11 installed
+	sed -i 's/-lX11//g' Makefile.target
+}
 
Signature · 1 line
1.7.12
Applied
#1 lore raw
Quoted 20 lines · Martin Jansa
---
  meta/recipes-devtools/qemu/qemu_1.2.0.bb | 6 +++++-
  1 file changed, 5 insertions(+), 1 deletion(-)
meta/recipes-devtools/qemu/qemu_1.2.0.bb +1 -1
index 7091f6d..191ee48 100644
@@ -17,7 +17,7 @@ SRC_URI = "\
  SRC_URI[md5sum] = "78eb1e984f4532aa9f2bdd3c127b5b61"
  SRC_URI[sha256sum] = "c8b84420d9f4869397f84cad2dabd9a475b7723d619a924a873740353e9df936"
 
-PR = "r1"
+PR = "r2"
 
  SRC_URI_append_virtclass-nativesdk = "\
      file://relocatable_sdk.patch \

meta/recipes-devtools/qemu/qemu_1.2.0.bb do_configure_prepend_virtclass-nativesdk() { · line 36

Quoted 8 lines
meta/recipes-devtools/qemu/qemu_1.2.0.bb +4 -0
@@ -29,4 +29,8 @@ do_configure_prepend_virtclass-nativesdk() {
  		sed -i 's/-lX11//g' Makefile.target
  	fi
  }
+do_configure_prepend_virtclass-native() {
+	# Undo the -lX11 added by linker-flags.patch, don't assume that host has libX11 installed
+	sed -i 's/-lX11//g' Makefile.target
+}
 

Merged into OE-Core

Thanks
Sau!