Skip to contentSkip to conversation

qt: do not allow webkit with SuperH Sourcery toolchain

PATCH New Thomas Petazzoni 2 participants 4 messages May 17, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 qt: do not allow webkit with SuperH Sourcery toolchain

Building webkit with the SuperH Sourcery toolchain fails with an assertion in binutils, so let's not allow to select webkit with this toolchain. We do not need to worry about reverse dependencies, since we use the existing BR2_PACKAGE_QT_ARCH_SUPPORTS_WEBKIT symbol to add this new dependency.

Fixes:

http://autobuild.buildroot.net/results/508cdeb67f272b61209f331ab7b990cb56f30817/

---
 package/qt/Config.in | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
package/qt/Config.in +5 -2
index 43f5a0f..ceab91b 100644
@@ -412,8 +412,11 @@ config BR2_PACKAGE_QT_ARCH_SUPPORTS_WEBKIT
 	default y if BR2_arm || BR2_armeb || BR2_i386 || BR2_microblazeel || \
 		BR2_microblazebe || BR2_mips || BR2_mipsel || \
 		(BR2_mips64 || BR2_mips64el) && !BR2_MIPS_NABI32 || BR2_powerpc || \
-		BR2_powerpc64 || BR2_powerpc64le || BR2_sh4 || BR2_sh4eb || \
-		BR2_sh4a || BR2_sh4aeb || BR2_sparc || BR2_x86_64
+		BR2_powerpc64 || BR2_powerpc64le || BR2_sparc || BR2_x86_64
+	# The CodeSourcery SuperH toolchain fails to build Webkit,
+	# with an assertion failure in binutils.
+	default y if (BR2_sh4 || BR2_sh4eb || BR2_sh4a || BR2_sh4aeb) && \
+		!BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_SH201209
 
 config BR2_PACKAGE_QT_WEBKIT
 	bool "WebKit Module"
Signature · 1 line
2.1.0
#1 lore raw

PATCH 2/3 duma: not available for static only builds

Fixes:

http://autobuild.buildroot.net/results/ccfc79586516a6ebb05badfad258aad0b6b9d2a2/

---
 package/duma/Config.in | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
package/duma/Config.in +6 -2
index 7679e64..b1f55fa 100644
@@ -6,6 +6,9 @@ config BR2_PACKAGE_DUMA
 	# allocations. Non-MMU platforms cannot perform such
 	# things.
 	depends on BR2_USE_MMU
+	# duma works using LD_PRELOAD, so it always needs to build a
+	# shared library
+	depends on !BR2_STATIC_LIBS
 	help
 	  D.U.M.A. - Detect Unintended Memory Access. A fork of the
 	  Electric Fence library. Detects buffer overflow and
@@ -20,6 +23,7 @@ config BR2_PACKAGE_DUMA_NO_LEAKDETECTION
 
 endif # BR2_PACKAGE_DUMA
 
-comment "duma needs a toolchain w/ C++, threads"
+comment "duma needs a toolchain w/ C++, threads, dynamic library"
 	depends on BR2_USE_MMU
-	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
+	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
+		BR2_STATIC_LIBS
Signature · 1 line
2.1.0
#2 lore raw

PATCH 3/3 lirc-tools: fix static library build caused by 'loglevel' redefinition

In reply to Thomas Petazzoni

This commit adds a patch to lirc-tools to fix static library builds caused by the redefinition of the loglevel variable.

Fixes:

http://autobuild.buildroot.org/results/2ac/2ac6a4f946d48cacff85d44d662e1c103f7443f8/

---
 ...vel-redefinition-in-static-library-builds.patch | 49 ++++++++++++++++++++++
 1 file changed, 49 insertions(+)
 create mode 100644 package/lirc-tools/0003-Fix-loglevel-redefinition-in-static-library-builds.patch
package/lirc-tools/0003-Fix-loglevel-redefinition-in-static-library-builds.patch new file +49 -0
new file mode 100644
index 0000000..1e8717c
@@ -0,0 +1,49 @@
+From 2a789161ef17ac1cedd9a4eb11423f6c1020d8d9 Mon Sep 17 00:00:00 2001
+From: Thomas Petazzoni <[email protected]>
+Date: Sun, 17 May 2015 16:08:15 +0200
+Subject: [PATCH] Fix loglevel redefinition in static library builds
+
+Signed-off-by: Thomas Petazzoni <[email protected]>
+---
+ daemons/lircmd.c | 1 -
+ tools/irrecord.c | 5 ++---
+ 2 files changed, 2 insertions(+), 4 deletions(-)
+
+diff --git a/daemons/lircmd.c b/daemons/lircmd.c
+index 023777c..e69078c 100644
+--- a/daemons/lircmd.c
++++ b/daemons/lircmd.c
+@@ -67,7 +67,6 @@ typedef uint64_t __u64;
+ 
+ static int uinputfd = -1;
+ static int useuinput = 0;
+-loglevel_t loglevel = 0;
+ 
+ 
+ static const struct option lircmd_options[] = {
+diff --git a/tools/irrecord.c b/tools/irrecord.c
+index f52328c..772b090 100644
+--- a/tools/irrecord.c
++++ b/tools/irrecord.c
+@@ -113,9 +113,6 @@ lirc_t aeps = 100;
+ 
+ #define SAMPLES 80
+ 
+-// Actual loglevel as per -D option, see lirc_log.h.
+-loglevel_t loglevel = LIRC_WARNING;
+-
+ int daemonized = 0;
+ 
+ struct ir_remote *emulation_data;
+@@ -407,6 +404,8 @@ int main(int argc, char **argv)
+ 	char commandline[128];
+ 	char path[128];
+ 	int get_pre = 0, get_post = 0, test = 0, invert = 0, trail = 0;
++	// Actual loglevel as per -D option, see lirc_log.h.
++	loglevel_t loglevel = LIRC_WARNING;
+ 
+ 	get_commandline(argc, argv, commandline, sizeof(commandline));
+ 	force = 0;
+-- 
+2.1.0
+
Signature · 1 line
2.1.0
#3 lore raw

PATCH 1/3 qt: do not allow webkit with SuperH Sourcery toolchain

In reply to Thomas Petazzoni
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

Building webkit with the SuperH Sourcery toolchain fails with an assertion in binutils, so let's not allow to select webkit with this toolchain. We do not need to worry about reverse dependencies, since we use the existing BR2_PACKAGE_QT_ARCH_SUPPORTS_WEBKIT symbol to add this new dependency.

Quoted 5 lines

Fixes:

http://autobuild.buildroot.net/results/508cdeb67f272b61209f331ab7b990cb56f30817/

Committed all 3, thanks.

Signature · 1 line
Bye, Peter Korsgaard