I have modified the pymol-py patch to work around the
current breakage when building pymol-py25 on fink unstable.
The problem manifests itself when the Makefile in the
contrib/modules is created. For some unknown reason, we
are suddenly now creating a broken Makefile with
BLDSHARED being used instead of LDSHARED for the link
command line for ExtensionClass.so.
I have hacked around this by adding...
BLDSHARED= @LDSHARED@
to Makefile.pre.in.src. It appears that BLDSHARED is
added to the Makefile in the final calls to python
out of the following sequence of commands...
cd contrib;make -f Makefile.delsci
cd modules;echo installdir=/sw/lib/pymol/modules > Makefile.pre.in
cd modules;echo PYTHON=/sw/bin/python2.5 >> Makefile.pre.in
cd modules;echo PYTHONFRAMEWORK=Python >> Makefile.pre.in
cd modules;cat Makefile.pre.in.src >> Makefile.pre.in
cd modules;make -f Makefile.pre.in boot
rm -f *.o *~
rm -f *.a tags TAGS config.c Makefile.pre python2.5 sedscript
rm -f *.so *.sl so_locations
VERSION=`python2.5 -c "import sys; print sys.version[:3]"`; \
installdir=`python2.5 -c "import sys; print sys.prefix"`; \
exec_installdir=`python2.5 -c "import sys; print
sys.exec_prefix"`; \
make -f ./Makefile.pre.in VPATH=. srcdir=. \
VERSION=$VERSION \
installdir=$installdir \
exec_installdir=$exec_installdir \
Makefile
sed -n \
-e '1s/.*/1i\\/p' \
-e '2s%.*%# Generated automatically from Makefile.pre.in by
sedscript.%p' \
-e '/^VERSION=/s/^VERSION=[ ]*\(.*\)/[EMAIL PROTECTED]@]%\1%/p' \
-e '/^CC=/s/^CC=[ ]*\(.*\)/[EMAIL PROTECTED]@]%\1%/p' \
-e '/^CCC=/s/^CCC=[ ]*\(.*\)/[EMAIL PROTECTED]@]%CCC=\1%/p' \
-e '/^LINKCC=/s/^LINKCC=[ ]*\(.*\)/[EMAIL PROTECTED]@]%\1%/p' \
-e '/^OPT=/s/^OPT=[ ]*\(.*\)/[EMAIL PROTECTED]@]%\1%/p' \
-e '/^LDFLAGS=/s/^LDFLAGS=[ ]*\(.*\)/[EMAIL PROTECTED]@]%\1%/p' \
-e '/^LDLAST=/s/^LDLAST=[ ]*\(.*\)/[EMAIL PROTECTED]@]%\1%/p' \
-e '/^DEFS=/s/^DEFS=[ ]*\(.*\)/[EMAIL PROTECTED]@]%\1%/p' \
-e '/^LIBS=/s/^LIBS=[ ]*\(.*\)/[EMAIL PROTECTED]@]%\1%/p' \
-e '/^LIBM=/s/^LIBM=[ ]*\(.*\)/[EMAIL PROTECTED]@]%\1%/p' \
-e '/^LIBC=/s/^LIBC=[ ]*\(.*\)/[EMAIL PROTECTED]@]%\1%/p' \
-e '/^RANLIB=/s/^RANLIB=[ ]*\(.*\)/[EMAIL PROTECTED]@]%\1%/p' \
-e '/^MACHDEP=/s/^MACHDEP=[ ]*\(.*\)/[EMAIL PROTECTED]@]%\1%/p' \
-e '/^SO=/s/^SO=[ ]*\(.*\)/[EMAIL PROTECTED]@]%\1%/p' \
-e '/^LDSHARED=/s/^LDSHARED=[ ]*\(.*\)/[EMAIL PROTECTED]@]%\1%/p' \
-e '/^CCSHARED=/s/^CCSHARED=[ ]*\(.*\)/[EMAIL PROTECTED]@]%\1%/p' \
-e '/^SGI_ABI=/s/^SGI_ABI=[ ]*\(.*\)/[EMAIL PROTECTED]@]%\1%/p' \
-e '/^LINKFORSHARED=/s/^LINKFORSHARED=[ ]*\(.*\)/[EMAIL
PROTECTED]@]%\1%/p' \
-e '/^prefix=/s/^prefix=\(.*\)/s%^prefix=.*%prefix=\1%/p' \
-e
'/^exec_prefix=/s/^exec_prefix=\(.*\)/s%^exec_prefix=.*%exec_prefix=\1%/p' \
/sw/lib/python2.5/config/Makefile >sedscript
echo "/[EMAIL PROTECTED]@/d" >>sedscript
echo "/^installdir=/s%=.*%= /sw%" >>sedscript
echo "/^exec_installdir=/s%=.*%=/sw%" >>sedscript
echo "/^srcdir=/s%=.*%= .%" >>sedscript
echo "/^VPATH=/s%=.*%= .%" >>sedscript
echo "/^LINKPATH=/s%=.*%= %" >>sedscript
echo "/^BASELIB=/s%=.*%= %" >>sedscript
echo "/^BASESETUP=/s%=.*%= %" >>sedscript
sed -f sedscript ./Makefile.pre.in >Makefile.pre
cp ./Setup.in Setup
/sw/lib/python2.5/config/makesetup \
-m Makefile.pre -c /sw/lib/python2.5/config/config.c.in Setup
-n /sw/lib/python2.5/config/Setup.config /sw/lib/python2.5/config/Setup.local
/sw/lib/python2.5/config/Setup
make -f Makefile do-it-again
/sw/lib/python2.5/config/makesetup \
-m Makefile.pre -c /sw/lib/python2.5/config/config.c.in Setup
-n /sw/lib/python2.5/config/Setup.config /sw/lib/python2.5/config/Setup.local
/sw/lib/python2.5/config/Setup
I suspect in the past these commands were properly causing LDSHARED to be used
in
the Makefile but now are producing an instance of BLDSHARED instead. What sort
of changes have been made to the python25 package recently? I think that is the
main culprit at this point for the breakage.
Jack
ps I did some builds of pymol-py25 against python25 after it was updated
to the 2.5.2 release and those worked so the breakage has to be recent.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Fink-devel mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.devel