Debian Codegraph @

debian/patches/002-libxml.patch

raw
1 Description: Fix FTBFS caused by xml2-config removal
2 Remove GIT_DEF
3 Suppress format-truncation warnings (tidy up build log)
4 Author: Peter Blackman <[email protected]>
5 Bug-Debian: https://bugs.debian.org/949143
6 Forwarded: not-needed
7
8 Index: b/configure.ac
9 ===================================================================
10 --- a/configure.ac
11 +++ b/configure.ac
12 @@ -70,13 +70,11 @@
13 if test "${enable_pthread}" = "yes" ; then
14 AC_CHECK_LIB([pthread],[pthread_create],,[AC_MSG_WARN([Pthread library not found - threads disabled.])])
15 fi
16 +
17 AC_CHECK_LIB([jpeg],[jpeg_start_compress],,[AC_MSG_ERROR([The jpeg library is required.])])
18 -AC_PATH_PROG(XML2_CONFIG,xml2-config, no, $PATH:/bin:/usr/bin:/usr/local/bin)
19
20 -if test "$XML2_CONFIG" != "no"
21 -then
22 - CPPFLAGS="`$XML2_CONFIG --cflags` $CPPFLAGS"
23 -fi
24 +PKG_CHECK_MODULES(XML, libxml-2.0)
25 +#CPPFLAGS+=" -I${includedir}/libxml2"
26
27 AC_OUTPUT([
28 Makefile
29 Index: b/Makefile.am
30 ===================================================================
31 --- a/Makefile.am
32 +++ b/Makefile.am
33 @@ -1,7 +1,6 @@
34 AUTOMAKE_OPTIONS = foreign no-dependencies
35
36 -GIT_DEF = -D'GIT_REV="$(shell git describe --tags --dirty)"'
37 -AM_CFLAGS = -g -O3 -std=gnu99 -ffast-math -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" $(GIT_DEF)
38 +AM_CFLAGS = -g -O3 -std=gnu99 -ffast-math -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" -Wno-format-truncation
39
40 ACLOCAL_AMFLAGS = -I m4
41
42 @@ -35,3 +34,7 @@
43
44 pkgconfigdir = $(libdir)/pkgconfig
45 pkgconfig_DATA = flam3.pc
46 +
47 +CPPFLAGS += $(XML_CFLAGS)
48 +LDFLAGS += $(XML_LIBS)
49 +