[Pkg-ofed-commits] [infiniband-diags] 13/17: Add patch to update AM_INIT_AUTOMAKE

Ana Beatriz Guerrero López ana at moszumanska.debian.org
Sun Sep 4 20:44:22 UTC 2016


This is an automated email from the git hooks/post-receive script.

ana pushed a commit to branch master
in repository infiniband-diags.

commit 79f011fea42e27a28d5371fe33ce1dc24601c26a
Author: Ana Beatriz Guerrero Lopez <ana at debian.org>
Date:   Sun Sep 4 19:44:28 2016 +0200

    Add patch to update AM_INIT_AUTOMAKE
---
 debian/patches/series                  |  1 +
 debian/patches/update_am_init_automake | 32 ++++++++++++++++++++++++++++++++
 2 files changed, 33 insertions(+)

diff --git a/debian/patches/series b/debian/patches/series
index 0523278..114af3c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
+update_am_init_automake
 update_shebang
 comment_test_out
 fix-spelling-errors
diff --git a/debian/patches/update_am_init_automake b/debian/patches/update_am_init_automake
new file mode 100644
index 0000000..7bce409
--- /dev/null
+++ b/debian/patches/update_am_init_automake
@@ -0,0 +1,32 @@
+Description: Update AM_INIT_AUTOMAKE to use subdir-objects
+With this option, the objects are placed into the subdirectory of
+the build directory corresponding to the subdirectory of the source file.
+Fixes this warning:
+
+Makefile.am:103: warning: source file 'src/ibdiag_common.c' is in a subdirectory,
+Makefile.am:103: but option 'subdir-objects' is disabled
+automake: warning: possible forward-incompatibility.
+automake: At least a source file is in a subdirectory, but the 'subdir-objects'
+automake: automake option hasn't been enabled.  For now, the corresponding output
+automake: object file(s) will be placed in the top-level directory.  However,
+automake: this behaviour will change in future Automake versions: they will
+automake: unconditionally cause object files to be placed in the same subdirectory
+automake: of the corresponding sources.
+automake: You are advised to start using 'subdir-objects' option throughout your
+automake: project, to avoid future incompatibilities.
+
+Author: Ana Guerrero Lopez <ana at debian.org>
+Last-Update: 2016-09-04
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -5,7 +5,8 @@
+ AC_CONFIG_AUX_DIR(config)
+ AC_CONFIG_MACRO_DIR(config)
+ AM_CONFIG_HEADER(config.h)
+-AM_INIT_AUTOMAKE([foreign])
++#AM_INIT_AUTOMAKE([foreign])
++AM_INIT_AUTOMAKE([subdir-objects])
+ 
+ AC_SUBST(RELEASE, ${RELEASE:-unknown})
+ AC_SUBST(TARBALL, ${TARBALL:-${PACKAGE}-${VERSION}.tar.gz})

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ofed/infiniband-diags.git



More information about the Pkg-ofed-commits mailing list