It seems that when built on Solaris, the python package is missing the contents of "/cw/lib/python2.2/lib-dynload/". There are several important libraries in there, including socket libraries and some platform-dependent modules (nis, mmap).
I've determined that it's the definition of the CC, CXX, CFLAGS, and CXXFLAGS that cause the build to omit these loadable libraries, for whatever reason. The attached patch to python.spec omits those environment variables when the package is built on Solaris. -- Matt Hoosier CIS Accounts Manager Kansas State University
--- python.spec.orig 2003-04-17 17:40:56.047096000 -0500 +++ python.spec 2003-04-17 21:53:54.802643000 -0500 @@ -62,10 +62,19 @@ %{l_shtool} subst -e 's;/usr/local;%{l_prefix};g' setup.py %build - CC="%{l_cc}" \ - CXX="%{l_cxx}" \ - CFLAGS="%{l_cflags -O}" \ - CXXFLAGS="%{l_cxxflags -O}" \ + case "%{l_target}" in + *-solaris* ) + : + ;; + * ) + CC="%{l_cc}" + CXX="%{l_cxx}" + CFLAGS="%{l_cflags -O}" + CXXFLAGS="%{l_cxxflags -O}" + export CC CXX CFLAGS CXXFLAGS + ;; + esac + ./configure \ --prefix=%{l_prefix} %{l_make} %{l_mflags -O}
signature.asc
Description: This is a digitally signed message part