version-independence between Python & BerkDB in Solaris packages?

Skip Montanaro skip at
Fri Jan 2 19:02:33 CET 2004

This is kinda off-topic for this group, but since I'm packaging Python
perhaps not too far OT.

I built a Solaris package for Python 2.3.3 then copied it to another system
and installed it.  Nothing too earth-shaking there.  When I ran the
regression test it barfed in test_bsddb because it couldn't find the
Berkeley DB library.  I went back to the first system and am now in the
midst of updating from DB 4.0.14 to DB 4.2.52 and will then build a Solaris
package for it.

Unfortunately that means I'll have to rebuild and repackage Python as well,
since depends on a specific Berkeley DB package:

    % ldd 
   =>  /usr/local/BerkeleyDB.4.0/lib/
   =>     /usr/lib/
   =>    /usr/lib/

Is it possible to compile and package Python and the external libraries it
uses to minimize coupling between package versions like this?  I note that
other modules which link to specific external libraries don't have such

    % ldd
   =>       /usr/lib/
   =>     /usr/lib/
   =>    /usr/lib/

Maybe it's just unavoidable with Berkeley DB because there are so many
versions liable to be installed simultaneously.



More information about the Python-list mailing list