Hey,
So I've been trying to setup a Planet for OpenSolaris, and one of the
requirements is having a working bsddb module for Python. That's relatively easy
to provide with the following patches -
Index: Solaris/SUNWPython.spec
===================================================================
--- Solaris/SUNWPython.spec (revision 9661)
+++ Solaris/SUNWPython.spec (working copy)
@@ -233,7 +233,6 @@
# delete stuff that doesn't build on Solaris:
rm $RPM_BUILD_ROOT%{_libdir}/python?.?/config/lib*.a
rm -r $RPM_BUILD_ROOT%{p23_libdir}/python2.3/curses
-rm -r $RPM_BUILD_ROOT%{_libdir}/python?.?/bsddb
rm -r $RPM_BUILD_ROOT%{p23_libdir}/python2.3/bsddb
rm -f $RPM_BUILD_ROOT%{p23_libdir}/python2.3/lib-dynload/_curses*failed.so
@@ -260,6 +259,7 @@
%{_libdir}/python?.?/LICENSE.txt
%{_libdir}/python?.?/*.py*
%{_libdir}/python?.?/*.doc
+%{_libdir}/python?.?/bsddb
%{_libdir}/python?.?/compiler
%{_libdir}/python?.?/email
%{_libdir}/python?.?/encodings
Index: Solaris/SUNWevolution-bdb-devel.spec
===================================================================
--- Solaris/SUNWevolution-bdb-devel.spec (revision 9661)
+++ Solaris/SUNWevolution-bdb-devel.spec (working copy)
@@ -24,6 +24,8 @@
install -d $RPM_BUILD_ROOT%{_libdir}
cd $RPM_BUILD_ROOT%{_libdir}
ln -s libdb.so.1 libdb.so
+ln -s libdb.so.1 libdb-4.so
+ln -s libdb.so.1 libdb-4.2.so
%clean
rm -rf $RPM_BUILD_ROOT
Now obviously I haven't commit this because of the legal issues over Sun's
distribution of the bdb headers/libraries. I'm not even 100% sure the patch is
correct. Anyone been dealing with legal enough to know whether it's possible to
build python to include the bsddb stuff by default? Note that it probably only
makes sense to enable for 2.4 rather than 2.3.
Glynn