Skip to contentSkip to conversation

libroxml: fix avr32 build failure

PATCH New spdawson at gmail.com 2 participants 2 messages Nov 21, 2013 – Nov 22, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libroxml: fix avr32 build failure

From: Simon Dawson <[email protected]>

The -Wno-unused-result option is not understood by the version of gcc used by the avr32 toolchain. Remove the option from the compilation flags.

Fixes build failures such as the following.

http://autobuild.buildroot.net/results/e22/e22d94fca3eabb4e54d82af04319f17ad8e10c20/

The single existing patch for libroxml has been renamed to include a numerical component for application order sorting. The existing patch has also been updated to apply without fuzz.

---
 ...oxml-werror.patch => libroxml-0001-werror.patch} |  2 +-
 .../libroxml/libroxml-0002-wno-unused-result.patch  | 21 +++++++++++++++++++++
 2 files changed, 22 insertions(+), 1 deletion(-)
 rename package/libroxml/{libroxml-werror.patch => libroxml-0001-werror.patch} (97%)
 create mode 100644 package/libroxml/libroxml-0002-wno-unused-result.patch
package/libroxml/libroxml-0001-werror.patch renamed from package/libroxml/libroxml-werror.patch +1 -1
similarity index 97%
rename from package/libroxml/libroxml-werror.patch
rename to package/libroxml/libroxml-0001-werror.patch
index 6435b01..91f322c 100644
@@ -11,7 +11,7 @@ Index: a/Makefile
 ===================================================================
 --- a/Makefile
 +++ b/Makefile
-@@ -41,7 +41,7 @@
+@@ -46,7 +46,7 @@
  
  # options
  override CPPFLAGS += -Iinc/
package/libroxml/libroxml-0002-wno-unused-result.patch new file +21 -0
new file mode 100644
index 0000000..406bf3c
@@ -0,0 +1,21 @@
+The -Wno-unused-result option is not understood by the version of gcc used by the
+avr32 toolchain. Remove the option from the compilation flags.
+
+Fixes build failures such as the following.
+
+  http://autobuild.buildroot.net/results/e22/e22d94fca3eabb4e54d82af04319f17ad8e10c20/
+
+Signed-off-by: Simon Dawson <[email protected]>
+
+diff -Nurp a/Makefile b/Makefile
+--- a/Makefile	2013-11-21 17:13:17.679388374 +0000
++++ b/Makefile	2013-11-21 17:13:35.219299157 +0000
+@@ -46,7 +46,7 @@ DEFINES = -DIGNORE_EMPTY_TEXT_NODES
+ 
+ # options
+ override CPPFLAGS += -Iinc/
+-override CFLAGS += $(OPTIM) -fPIC -Wall -Wextra -Wno-unused-parameter -Wno-unused-result -Iinc/ $(DEFINES)
++override CFLAGS += $(OPTIM) -fPIC -Wall -Wextra -Wno-unused-parameter -Iinc/ $(DEFINES)
+ override LDFLAGS += 
+ 
+ ifeq ("$(OS)", "Darwin")
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH 1/1 libroxml: fix avr32 build failure

Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"spdawson" == spdawson <[email protected]> writes:

From: Simon Dawson <[email protected]>
The -Wno-unused-result option is not understood by the version of gcc used by the avr32 toolchain. Remove the option from the compilation flags.

Quoted 7 lines

Fixes build failures such as the following.

http://autobuild.buildroot.net/results/e22/e22d94fca3eabb4e54d82af04319f17ad8e10c20/

The single existing patch for libroxml has been renamed to include a numerical component for application order sorting. The existing patch has also been updated to apply without fuzz.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard