[Pkg-ime-devel] Bug#822699: Fix for the libucimf FTBFS

Adrian Bunk bunk at stusta.de
Fri Nov 4 20:12:19 UTC 2016

Control: tags -1 patch

What broke the build is that gcc 6 changed the default C++ standard
from C++98 to C++14.

Not all valid C++98 code is also valid C++11 and C++14 code.

Note that this just changed the default, when told to process C++98 code 
gcc 6 does not differ in any significant way from gcc 5.

Making the code compatible with C++14 would be the best possible 
solution, but as a workaround it is possible to fix the build with
this change to tell gcc that this is C++98 code.

--- debian/rules.old	2016-11-04 20:08:33.000000000 +0000
+++ debian/rules	2016-11-04 20:09:12.000000000 +0000
@@ -1,6 +1,7 @@
 #!/usr/bin/make -f
 export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
+export DEB_CXXFLAGS_MAINT_APPEND = -std=gnu++98
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs -Wl,--as-needed -Wl,--no-undefined
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)



       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

More information about the Pkg-ime-devel mailing list