[Pkg-wmaker-commits] [wmhdplop] 27/40: debian/patches: (modernize_autotools.patch): Fix autotools warnings and errors.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Mon Aug 17 11:10:12 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmhdplop.
commit 4836fa10353e800b17c546837cc4f2f1d9a06102
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date: Sat Oct 11 20:05:18 2014 -0500
debian/patches: (modernize_autotools.patch): Fix autotools warnings and errors.
---
debian/patches/modernize_autotools.patch | 52 ++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 53 insertions(+)
diff --git a/debian/patches/modernize_autotools.patch b/debian/patches/modernize_autotools.patch
new file mode 100644
index 0000000..219ed3a
--- /dev/null
+++ b/debian/patches/modernize_autotools.patch
@@ -0,0 +1,52 @@
+Description: Modernize autotools.
+ In particular, fix the following errors and warnings:
+ .
+ configure.ac:2: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are
+ deprecated. For more info, see:
+ configure.ac:2: http://www.gnu.org/software/automake/manual/automake.html
+ #Modernize-AM_005fINIT_005fAUTOMAKE-invocation
+ .
+ Makefile.am:21: error: linker flags such as '-shared' belong in
+ 'gkhdplop_so_LDFLAGS'
+ .
+ ./configure: line 2910: syntax error near unexpected token `build_old_libs,'
+ ./configure: line 2910: ` _LT_DECL(build_old_libs, enable_static, 0,'
+ .
+ ./configure: line 2908: syntax error near unexpected token
+ `build_libtool_libs,'
+ ./configure: line 2908: ` _LT_DECL(build_libtool_libs, enable_shared, 0,'
+Author: Doug Torrance <dtorrance at monmouthcollege.edu>
+Last-Update: 2014-10-11
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -1,5 +1,6 @@
+-AC_INIT(wmhdplop.c)
+-AM_INIT_AUTOMAKE(wmhdplop, 0.9.9)
++AC_INIT(wmhdplop, 0.9.9)
++AC_CONFIG_SRCDIR(wmhdplop.c)
++AM_INIT_AUTOMAKE
+ AM_CONFIG_HEADER(config.h)
+
+ AC_SUBST(VERSION)
+@@ -9,9 +10,6 @@
+
+ AC_CANONICAL_HOST
+
+-AM_DISABLE_STATIC
+-AM_ENABLE_SHARED
+-
+ AC_PROG_INSTALL
+ AC_PROG_CC
+ AC_HEADER_STDC
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -18,6 +18,7 @@
+
+ gkhdplop_so_SOURCES=$(LIBTOOLSUX_GKHDPLOP_SRC)
+ gkhdplop_so_CFLAGS=-DGKRELLM -fPIC $(GTK2_CFLAGS) $(IMLIB2_CFLAGS)
+-gkhdplop_so_LDADD=-shared $(IMLIB2_LIBS) -lm
++gkhdplop_so_LDADD=$(IMLIB2_LIBS) -lm
++gkhdplop_so_LDFLAGS=-shared
+
+ all: @GKHDPLOP@
diff --git a/debian/patches/series b/debian/patches/series
index de73b95..148ad68 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ fix-ftbfs-gcc-4.7-667415.patch
ldflags-to-ldadd.patch
find-disk-device.patch
kfreebsd_port.patch
+modernize_autotools.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmhdplop.git
More information about the Pkg-wmaker-commits
mailing list