[CentOS-devel] Need info regarding python recompilation

Thu Sep 15 16:55:34 UTC 2011
Ljubomir Ljubojevic <office at plnet.rs>

HI.

I am trying to introduce curses.menu patch into python package for 
CentOS 6. My intention is to compile with that patch to see what files 
are different (only few I guess) so I can try to create a separate 
python-curesemenu package.

Is it possible to compile python-2.6.5-3.el6_0.2.x86_64 package on fresh 
install of CentOS 6.0?

When I try with unchanged src.rpm, I get following error:

gcc -pthread -fPIC -fno-strict-aliasing -O2 -g -pipe -Wall 
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector 
--param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC 
-fwrapv    -I. -IInclude -I./Include -I/usr/lib64/libffi-3.0.5/include 
   -c ./Modules/xxsubtype.c -o Modules/xxsubtype.o
gcc -pthread -shared  Modules/xxsubtype.o   -o Modules/xxsubtype.so
'import site' failed; use -v for traceback
Traceback (most recent call last):
   File "./setup.py", line 15, in <module>
     from distutils.command.build_ext import build_ext
   File 
"/autofsmounts/kancelarija/extra5/build-system/BUILD/Python-2.6.5/Lib/distutils/command/build_ext.py", 
line 13, in <module>
     from site import USER_BASE, USER_SITE
   File 
"/autofsmounts/kancelarija/extra5/build-system/BUILD/Python-2.6.5/Lib/site.py", 
line 517, in <module>
     main()
   File 
"/autofsmounts/kancelarija/extra5/build-system/BUILD/Python-2.6.5/Lib/site.py", 
line 500, in main
     known_paths = addsitepackages(known_paths)
   File 
"/autofsmounts/kancelarija/extra5/build-system/BUILD/Python-2.6.5/Lib/site.py", 
line 292, in addsitepackages
     addsitedir(sitedir, known_paths)
   File 
"/autofsmounts/kancelarija/extra5/build-system/BUILD/Python-2.6.5/Lib/site.py", 
line 185, in addsitedir
     addpackage(sitedir, name, known_paths)
   File 
"/autofsmounts/kancelarija/extra5/build-system/BUILD/Python-2.6.5/Lib/site.py", 
line 155, in addpackage
     exec line
   File "<string>", line 1, in <module>
   File "/usr/lib/python2.6/site-packages/abrt_exception_handler.py", 
line 27, in <module>
     import syslog
ImportError: No module named syslog
make: *** [sharedmods] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.EqLA3n (%build)


RPM build errors:
     Bad exit status from /var/tmp/rpm-tmp.EqLA3n (%build)


-- 

Ljubomir Ljubojevic
(Love is in the Air)
PL Computers
Serbia, Europe

Google is the Mother, Google is the Father, and traceroute is your
trusty Spiderman...
StarOS, Mikrotik and CentOS/RHEL/Linux consultant