# rpmbuild -ta /usr/src/redhat/SOURCES/tk8.6a2-src.tar.gz
error: Failed build dependencies:
XFree86-devel is needed by tk-8.6a2-2.i386
The above error is discussed at the following document.
https://www.redhat.com/archives/fedora-devel-list/2005-November/msg00277.html
A way to deal with it is discussed at the following document.
http://fedoraproject.org/wiki/DistTag
Attached is a patch to fix the spec, and the fixed spec that worked for me on Fedora 9.
patch to fix problem
spec that worked for me
Logged In: YES
user_id=778667
Originator: YES
File Added: tk.spec
rmax, are these changes workable
for you as well?
It doesn't matter to me, as I have always been using my own .spec file for building Tk and I am not aware of anybody who tries to build Tk on SUSE with the included .spec file.
But looking at the patch, I think the else block should use xorg-x11-devel instead of XFree86-devel, because AFAIK all relevant Linux distributions have been using X.Org instead of XFree86 for several years now.
Jeff, is there a good reason we
should remain in the business of
maintaining the *.spec files in the
Tcl and Tk source distributions? Do
we know of anyone successfully using
them? Do we have anyone who can
more adequately maintain them?
If the else block should use xorg-x11-devel then the Fedora version comparison should be inverted. It would save some work to remove the spec file.