1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
Description: Let Debian override --pedantic-errors
Upstream Superkb will always compile using --pedantic-errors. This
patch allows debian/rules to export an OVERRIDE_PEDANTIC_ERRORS
variable so this can be disabled.
.
The motivation for this patch is that GCC 6 is detecting an ISO C
violation by GObject, even though it is valid in GNU C. This patch
worksaround the fixed --pedantic-errors parameter so it lets
compilation of Superkb succeed.
.
This patch is used together with OVERRIDE_PEDANTIC_ERRORS in
debian/rules.
Author: Octavio Alvarez <alvarezp@alvarezp.com>
Bug: 811685
Bug-Debian: https://bugs.debian.org/811685
Forwarded: not-needed
Last-Update: 2016-01-27
--- superkb-0.23.orig/Makefile
+++ superkb-0.23/Makefile
@@ -54,6 +54,10 @@ ifeq ($(shell pkg-config --modversion pa
PEDANTIC_ERRORS :=
endif
+ifneq ($(OVERRIDE_PEDANTIC_ERRORS),)
+ PEDANTIC_ERRORS := $(OVERRIDE_PEDANTIC_ERRORS)
+endif
+
#Directory variables
ifndef PREFIX
PREFIX=usr/local/
|