~ubuntu-branches/ubuntu/saucy/apr-util/saucy-proposed

« back to all changes in this revision

Viewing changes to debian/patches/016_avoid_db_by-default.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Fritsch
  • Date: 2011-05-22 01:27:59 UTC
  • mfrom: (1.3.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110522012759-i80zd90uo6q1z4gr
Tags: 1.3.12+dfsg-1
* New upstream version
* Make apu-config not output dbm libs by default. Closes: #622081
* Set DEB_GCC_NO_O3=1 for the benefit of ppc64 on Ubuntu.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh /usr/share/dpatch/dpatch-run
 
2
## 016_avoid_db_by-default.dpatch by Stefan Fritsch <sf@debian.org>
 
3
##
 
4
## All lines beginning with `## DP:' are a description of the patch.
 
5
## DP: #622081
 
6
 
 
7
@DPATCH@
 
8
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' trunk~/apu-config.in trunk/apu-config.in
 
9
--- trunk~/apu-config.in        2011-05-21 21:41:11.239997616 +0200
 
10
+++ trunk/apu-config.in 2011-05-21 21:41:39.687997599 +0200
 
11
@@ -32,7 +32,8 @@
 
12
 LDFLAGS="@APRUTIL_LDFLAGS@"
 
13
 ORIG_LDAP_LIBS="@LDADD_ldap@"
 
14
 LDAP_LIBS=""
 
15
-DBM_LIBS="@LDADD_dbm_db@ @LDADD_dbm_gdbm@ @LDADD_dbm_ndbm@"
 
16
+ORIG_DBM_LIBS="@LDADD_dbm_db@ @LDADD_dbm_gdbm@ @LDADD_dbm_ndbm@"
 
17
+DBM_LIBS=""
 
18
 
 
19
 APRUTIL_LIBNAME="@APRUTIL_LIBNAME@"
 
20
 
 
21
@@ -58,7 +59,7 @@
 
22
   --libs            print library information
 
23
   --avoid-ldap      do not include ldap library information with --libs (default on Debian)
 
24
   --ldap-libs       print additional library information to link with ldap
 
25
-  --avoid-dbm       do not include DBM library information with --libs
 
26
+  --avoid-dbm       do not include DBM library information with --libs (default on Debian)
 
27
   --dbm-libs        print additional library information to link with DBM
 
28
   --srcdir          print APR-util source directory
 
29
   --link-ld         print link switch(es) for linking to APR-util
 
30
@@ -129,7 +130,7 @@
 
31
     flags="$flags $ORIG_LDAP_LIBS"
 
32
     ;;
 
33
     --dbm-libs)
 
34
-    flags="$flags $DBM_LIBS"
 
35
+    flags="$flags $ORIG_DBM_LIBS"
 
36
     ;;
 
37
     --includedir)
 
38
     if test "$location" = "installed"; then