Limiting to more recent version of glib and fix travis
authorKlaus Ethgen <Klaus@Ethgen.de>
Sun, 28 Jul 2019 22:14:39 +0000 (23:14 +0100)
committerKlaus Ethgen <Klaus@Ethgen.de>
Sun, 28 Jul 2019 22:14:39 +0000 (23:14 +0100)
g_utf8_make_valid was implemented with glib 2.52. That also causes
builds on ubuntu trusty fail.

.travis.yml
configure.ac

index 6229169..23693a8 100644 (file)
@@ -1,32 +1,10 @@
 language: c
 os: linux
-dist: trusty
+dist: bionic
 sudo: required
 compiler:
   - gcc
   - clang
-addons:
-  apt:
-    sources:
-      - trusty
-    packages:
-      - autoconf
-      - automake
-      - autotools-dev
-      - build-essential
-      - debhelper
-      - dh-autoreconf
-      - dpkg-dev
-      - gnome-doc-utils
-      - gnome-doc-utils
-      - imagemagick
-      - intltool
-      - libexiv2-dev
-      - libgtk2.0-dev
-      - libjpeg-dev
-      - liblcms2-dev
-      - liblircclient-dev
-      - liblua5.1-0-dev
-      - libtiff-dev
-      - libtool
-script: (CFLAGS= ./autogen.sh) && make
+before_install:
+  - sudo apt-get install -y autoconf automake autotools-dev build-essential debhelper dh-autoreconf dpkg-dev gnome-doc-utils gnome-doc-utils imagemagick intltool libexiv2-dev libgtk2.0-dev libjpeg-dev liblcms2-dev liblircclient-dev liblua5.1-0-dev libtiff-dev libtool
+script: (CFLAGS="-fPIC" ./autogen.sh) && make
index 3cbc03a..3fe4988 100644 (file)
@@ -197,7 +197,7 @@ else
   prefix=$prefix
 fi
 
-AM_PATH_GLIB_2_0(2.24.0,,AC_MSG_ERROR(GLIB >= 2.24.0 not installed.))
+AM_PATH_GLIB_2_0(2.52.0,,AC_MSG_ERROR(GLIB >= 2.52.0 not installed.))
 AC_ARG_ENABLE([gtk3], AC_HELP_STRING([--enable-gtk3], [use gtk3 instead of gtk2]),[gtk3="${enableval}"], [gtk3=m4_ifdef([AM_PATH_GTK_3_0], m4_ifdef([AM_PATH_GTK_2_0], [no], [auto]), [no])])
 
 if test x$gtk3 = xyes; then