How to recompile fedora packages - enabling tcl threads
After long struggle I finally found that the error _tkinter.TclError: out of stack space (infinite loop?)
in Python was due to tcl not having –enable-threads (solution was in python bugzilla).
What now? well on my Fedora 10 x86_64 I wanted to recompile tcl with –enable-threads.
After a few research I found it’s really easy to use rpmbuild.
enable source repositories, then I just used vim to change the spec file, which
had –disable-threads with a shiny –enable-threads (yes I must have broken some other packages now.. but I don’t care at the moment)
yumdownloader --source tcl
rpm -i tcl-8.5.3-1.fc10.src.rpm
vim rpmbuild/SPECS/tcl.spec
rpmbuild -bb rpmbuild/SPECS/tcl.spec
rpm -ivh --replacepkgs --replacefiles rpmbuild/RPMS/x86_64/*.rpm
and it’s done!
Happy hacking