[apophenia] 01/01: Import m4/ld-version-script.m4 via Debian patch
Jerome Benoit
calculus-guest at moszumanska.debian.org
Mon Sep 8 18:00:39 UTC 2014
This is an automated email from the git hooks/post-receive script.
calculus-guest pushed a commit to branch master
in repository apophenia.
commit 32c5fcb8e707037555eb5a10228cc4e05e7efc5b
Author: Jerome Benoit <calculus at rezozer.net>
Date: Mon Sep 8 19:58:05 2014 +0200
Import m4/ld-version-script.m4 via Debian patch
---
debian/patches/series | 2 +-
debian/patches/upstream-autotools-m4.patch | 63 ++++++++++++++++++++++++++++++
2 files changed, 64 insertions(+), 1 deletion(-)
diff --git a/debian/patches/series b/debian/patches/series
index 66fe416..515a7e8 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,4 +1,4 @@
-upstreamt-autotools-m4.patch
+upstream-autotools-m4.patch
debianization.patch
debianization-help2man.patch
debianization-documentation.patch
diff --git a/debian/patches/upstream-autotools-m4.patch b/debian/patches/upstream-autotools-m4.patch
new file mode 100644
index 0000000..abbeee4
--- /dev/null
+++ b/debian/patches/upstream-autotools-m4.patch
@@ -0,0 +1,63 @@
+Description: autotools machinery
+ Bring the missing m4/ld-version-script.m4 M4 material from GNULib;
+ meant to be submitted to the upstream maintainer.
+Origin: debian
+Author: Jerome Benoit <calculus at rezozer.net>
+Last-Update: 2014-08-08
+
+--- /dev/null
++++ b/m4/ld-version-script.m4
+@@ -0,0 +1,53 @@
++# ld-version-script.m4 serial 3
++dnl Copyright (C) 2008-2014 Free Software Foundation, Inc.
++dnl This file is free software; the Free Software Foundation
++dnl gives unlimited permission to copy and/or distribute it,
++dnl with or without modifications, as long as this notice is preserved.
++
++dnl From Simon Josefsson
++
++# FIXME: The test below returns a false positive for mingw
++# cross-compiles, 'local:' statements does not reduce number of
++# exported symbols in a DLL. Use --disable-ld-version-script to work
++# around the problem.
++
++# gl_LD_VERSION_SCRIPT
++# --------------------
++# Check if LD supports linker scripts, and define automake conditional
++# HAVE_LD_VERSION_SCRIPT if so.
++AC_DEFUN([gl_LD_VERSION_SCRIPT],
++[
++ AC_ARG_ENABLE([ld-version-script],
++ AS_HELP_STRING([--enable-ld-version-script],
++ [enable linker version script (default is enabled when possible)]),
++ [have_ld_version_script=$enableval], [])
++ if test -z "$have_ld_version_script"; then
++ AC_MSG_CHECKING([if LD -Wl,--version-script works])
++ save_LDFLAGS="$LDFLAGS"
++ LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
++ cat > conftest.map <<EOF
++foo
++EOF
++ AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])],
++ [accepts_syntax_errors=yes], [accepts_syntax_errors=no])
++ if test "$accepts_syntax_errors" = no; then
++ cat > conftest.map <<EOF
++VERS_1 {
++ global: sym;
++};
++
++VERS_2 {
++ global: sym;
++} VERS_1;
++EOF
++ AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])],
++ [have_ld_version_script=yes], [have_ld_version_script=no])
++ else
++ have_ld_version_script=no
++ fi
++ rm -f conftest.map
++ LDFLAGS="$save_LDFLAGS"
++ AC_MSG_RESULT($have_ld_version_script)
++ fi
++ AM_CONDITIONAL(HAVE_LD_VERSION_SCRIPT, test "$have_ld_version_script" = "yes")
++])
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/apophenia.git
More information about the debian-science-commits
mailing list