[med-svn] [hmmer2] 05/06: No duplicated definitions

Andreas Tille tille at debian.org
Thu Apr 13 07:15:05 UTC 2017


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

tille pushed a commit to branch master
in repository hmmer2.

commit e65b7d056ad66dc95cbb1bb76b9720f4e082462e
Author: Andreas Tille <tille at debian.org>
Date:   Thu Apr 13 08:56:37 2017 +0200

    No duplicated definitions
---
 debian/rules | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 6d4cce2..fc47c65 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,7 +12,17 @@ sampledir:=$(CURDIR)/debian/$(pkgdata)/usr/share/doc/$(pkgdata)/examples
 override_dh_auto_configure:
 	dh_auto_configure -- --enable-threads --enable-lfs --enable-pvm
 	# avoid duplicated definition of PACKAGE_NAME (basically conflicting with biosquid when used together)
-	sed -i -e '/^#define PACKAGE_NAME /i #ifndef PACKAGE_NAME' -e '/^#define PACKAGE_NAME /a #endif' src/config.h
+	sed -i -e '/^#define PACKAGE_NAME /i #ifndef PACKAGE_NAME' \
+	       -e '/^#define PACKAGE_NAME /a #endif' \
+	       -e '/^#define PACKAGE_VERSION /i #ifndef PACKAGE_VERSION' \
+	       -e '/^#define PACKAGE_VERSION /a #endif' \
+	       -e '/^#define _LARGEFILE_SOURCE /i #ifndef _LARGEFILE_SOURCE' \
+	       -e '/^#define _LARGEFILE_SOURCE /a #endif' \
+	       -e '/^#define _LARGEFILE64_SOURCE /i #ifndef _LARGEFILE64_SOURCE' \
+	       -e '/^#define _LARGEFILE64_SOURCE /a #endif' \
+	       -e '/^#define VERSION /i #ifndef VERSION' \
+	       -e '/^#define VERSION /a #endif' \
+	       src/config.h
 
 override_dh_auto_install:
 	dh_auto_install -- prefix=$(CURDIR)/debian/tmp

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/hmmer2.git



More information about the debian-med-commit mailing list