I saw this error when building the tcltk RPM: Installing /usr/src/redhat/BUILD/tcltk-8.3.1/Tix4.1.0/library/pref/tixmkpref /bin/sh: [: tk8.0/pkgIndex.tcl: binary operator expected No pkgIndex.tcl found in the target directories. pkgIndex.tcl installation skipped. The problem is that since the spec file links the tk8.0 directory to tk8.2, the command "if [ -f */pkgIndex.tcl ]; then" in the Tix unix/Makefile.in is no longer valid because the wildcard matches to files. The spec file should probably rename the directory instead of linking it.
But it needs to rename the directory after applying the patches, or the patches will fail :-).
Created attachment 321 [details] Here's how I fixed this
Fixed (as described) in tcltk-3.2.1-40. Thanks for the patch.
This "patch" should not be needed with tix 8.1.3 or 8.1.4. Can you confirm for me that this is no longer in the tcltk package? I have a new minor release ready to go but not yet announced. Would you like to try it out and see if there are any problems before I announce it. It's a bugfix release with no major changes to the configure/make. http://tix.sourceforge.net/dist/tix-8.1.4.tar.gz
That is correct this patch is no longer in, and hasn't been for a good while. (In fact there is only one patch currently being applied which is for itcl-3.2.1.)