[Pkg-openldap-devel] [openldap] 14/17: * debian/lintian-overrides: Add. Contains lintian warnings/errors to override for all packages (plus comments). + debian/move_files: Automatically install applying overrides into each package.

Timo Aaltonen tjaalton-guest at alioth.debian.org
Thu Oct 10 05:36:00 UTC 2013


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

tjaalton-guest pushed a commit to annotated tag 2.2.23-5
in repository openldap.

commit e54657a99ca47db0c798591a032a4078a1774f28
Author: Torsten Landschoff <torsten at debian.org>
Date:   Sun Apr 24 13:46:17 2005 +0000

      * debian/lintian-overrides: Add. Contains lintian warnings/errors to
        override for all packages (plus comments).
        + debian/move_files: Automatically install applying overrides into
          each package.
---
 debian/changelog         |    7 +++++++
 debian/lintian-overrides |    9 +++++++++
 debian/move_files        |   36 ++++++++++++++++++++++++++++--------
 3 files changed, 44 insertions(+), 8 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 9e264d3..847ffb8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,12 @@
 openldap2.2 (2.2.23-5) unstable; urgency=low
 
+  Torsten Landschoff <torsten at debian.org>:
+  * debian/lintian-overrides: Add. Contains lintian warnings/errors to
+    override for each package (plus comments).
+    + debian/move_files: Automatically install applying overrides into
+      each package.
+
+  Steve Langasek <vorlon at debian.org>:
   * configure.in: reinstate the remainder of the fix for 195990 from
     2.1.22-2: give preference to -lpthread over -pthread in configure.in,
     because some archs (mipsel, at least) don't like -pthread.
diff --git a/debian/lintian-overrides b/debian/lintian-overrides
new file mode 100644
index 0000000..32f7a54
--- /dev/null
+++ b/debian/lintian-overrides
@@ -0,0 +1,9 @@
+# db_input is used for telling the user when something goes wrong during
+# configuration. That's a perfectly valid reason to use debconf in postinst.
+# -- Torsten
+slapd: postinst-uses-db-input
+
+# dh_shlibdeps is not smart enough to wipe additional relations. Since this
+# is not easy to fix we don't even try to do it at this time.  -- Torsten
+slapd: package-has-a-duplicate-relation depends: @LIBPKG@, @LIBPKG@ (= @LIBVER@)
+ldap-utils: package-has-a-duplicate-relation depends: @LIBPKG@, @LIBPKG@ (= @LIBVER@)
diff --git a/debian/move_files b/debian/move_files
index 893f0cb..d89c489 100644
--- a/debian/move_files
+++ b/debian/move_files
@@ -19,6 +19,29 @@ install_stuff() {
   done
 }
 
+set_target() {
+  target="$1"
+  echo -n " $target"
+  
+  create_lintian_overrides
+}
+
+create_lintian_overrides() {
+  local destdir tmpfile
+  destdir=debian/$target/usr/share/lintian/overrides
+  tmpfile=`mktemp`
+
+  if grep "^$target:" debian/lintian-overrides >$tmpfile; then
+    local libpkg libver
+    libpkg=`awk '/^Package:.*libldap/ { print $2 }' < debian/control`
+    libver=`dpkg-parsechangelog|awk '/^Version:/ { print $2 }'`
+    mkdir -p -m 755 $destdir
+    sed -e "s/@LIBPKG@/$libpkg/g" -e "s/@LIBVER@/$libver/g" \
+    	$tmpfile > $destdir/$target
+  fi
+  rm $tmpfile
+}
+
 check_completeness() {
   missing=`find debian/tmp -not -type d|wc -w`
   if [ "$missing" -gt 0 ]; then
@@ -40,8 +63,8 @@ echo -n "Removing static backend archives... "
 rm debian/tmp/usr/lib/ldap/back_*.a
 echo done
 
-echo -n "Installing: slapd"
-target=slapd
+echo -n Installing:
+set_target slapd
 install_stuff usr/sbin
 install_stuff usr/lib/ldap
 install_stuff usr/share/ldap
@@ -55,14 +78,12 @@ install -m644 debian/DB_CONFIG debian/slapd/usr/share/slapd/DB_CONFIG
 install -m755 debian/fix_ldif debian/slapd/usr/share/slapd/fix_ldif
 install -m755 debian/ldiftopasswd debian/slapd/usr/share/slapd/ldiftopasswd
 
-target=ldap-utils
-echo -n " $target"
+set_target ldap-utils
 install_stuff usr/bin
 install_stuff usr/share/man/man1
 install_stuff usr/share/man/man5/ldif*
 
-target=libldap-2.2-7
-echo -n " $target"
+set_target libldap-2.2-7
 # Drop the config files for now since they clash with libldap2
 # TODO: Should get moved to libldap2.2 later on...
 # install_stuff etc/ldap/ldap*.conf
@@ -70,8 +91,7 @@ rm debian/tmp/etc/ldap/ldap*.conf
 rm debian/tmp/usr/share/man/man5/ldap.conf*
 install_stuff usr/lib/*.so.*
 
-target=libldap2.2-dev
-echo -n " $target"
+set_target libldap2.2-dev
 install_stuff usr/include
 install_stuff usr/lib/*.so usr/lib/*.a
 install_stuff usr/share/man/man3

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



More information about the Pkg-openldap-devel mailing list