diff options
author | Bernard Normier <bernard@zeroc.com> | 2013-02-14 12:31:09 -0500 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2013-02-14 12:31:09 -0500 |
commit | 9b39e9e249707a12cf3fbf84dead203f3b042ece (patch) | |
tree | c077755f78eeffce8233589dc0b8d99a85287b55 /distribution/lib/DistUtils.py | |
parent | ICE-5235 IcePHP does not compile on Windows (diff) | |
download | ice-9b39e9e249707a12cf3fbf84dead203f3b042ece.tar.bz2 ice-9b39e9e249707a12cf3fbf84dead203f3b042ece.tar.xz ice-9b39e9e249707a12cf3fbf84dead203f3b042ece.zip |
Added DB back to Solaris bindist, plus small related fixes
Diffstat (limited to 'distribution/lib/DistUtils.py')
-rw-r--r-- | distribution/lib/DistUtils.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/distribution/lib/DistUtils.py b/distribution/lib/DistUtils.py index 5a9e9bceb86..9eab7160620 100644 --- a/distribution/lib/DistUtils.py +++ b/distribution/lib/DistUtils.py @@ -29,6 +29,7 @@ bzip2 = { \ berkeleydb = { \ 'Darwin' : '/opt/db', \ + 'SunOS' : '/opt/db', \ } berkeleydbjar = { \ @@ -547,7 +548,10 @@ class ThirdParty : # Get the location of the third party dependency. We first check if the environment # variable (e.g.: DB_HOME) is set, if not we use the platform specific location. # - self.location = os.environ.get(self.buildEnv, platform.getLocation(locations)) + + self.defaultLocation = platform.getLocation(locations) + self.location = os.environ.get(self.buildEnv, self.defaultLocation) + if self.location and os.path.islink(self.location): self.location = os.path.normpath(os.path.join(os.path.dirname(self.location), os.readlink(self.location))) @@ -605,7 +609,7 @@ class ThirdParty : def includeInDistribution(self): # Only copy third party files installed in /opt - return self.location and self.location.startswith("/opt") + return self.defaultLocation and self.defaultLocation.startswith("/opt") def copyToDistribution(self, platform, buildDir): if not self.location: @@ -900,13 +904,14 @@ class BerkeleyDB(ThirdParty): return os.path.join(self.location, "lib", "db.jar") def getFilesFromSubDirs(self, platform, bindir, libdir, x64): - files = [ os.path.join(bindir, "db_*") ] + files = [ os.path.join(bindir, "db*") ] if not x64: files += [ os.path.join(libdir, "db.jar") ] files += platform.getSharedLibraryFiles(self.location, os.path.join(libdir, "*")) files += platform.getSharedLibraryFiles(self.location, os.path.join(libdir, "*"), "jnilib") return files + class Bzip2(ThirdParty): def __init__(self, platform): global bzip2 |