aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2013-05-26 18:28:01 -0500
committerMisty De Meo2013-05-26 18:28:24 -0500
commitc5fa9d1f435c06f83cb2a8cb56ae650f04a46e75 (patch)
tree908305e9f124e669e94b671dd80999111391bcaf /Library
parent95119c2deb51b645db409f9dbd8fe5abcf42864a (diff)
downloadhomebrew-c5fa9d1f435c06f83cb2a8cb56ae650f04a46e75.tar.bz2
berkeley-db: --enable-compat185 by default
Our berkeley db shadows the OS's berkeley db 1.x, making it impossible to build software that only builds on 1.x (e.g. opensmtpd). The --enable-compat185 switch enables a 1.x compatibility mode, which shouldn't have any downsides and is the standard in other package managers. (One wonders why it isn't on by default if so.)
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/berkeley-db.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Formula/berkeley-db.rb b/Library/Formula/berkeley-db.rb
index 537f593a6..5bdc008b4 100644
--- a/Library/Formula/berkeley-db.rb
+++ b/Library/Formula/berkeley-db.rb
@@ -16,11 +16,14 @@ class BerkeleyDb < Formula
def install
# BerkeleyDB dislikes parallel builds
ENV.deparallelize
+ # --enable-compat185 is necessary because our build shadows
+ # the system berkeley db 1.x
args = %W[
--disable-debug
--prefix=#{prefix}
--mandir=#{man}
--enable-cxx
+ --enable-compat185
]
args << "--enable-java" if build.include? "with-java"
args << "--enable-sql" if build.include? "enable-sql"