Bug: Binary file of different version can not be saved on Solaris Twiki installation.
Different version of binary files can not be uploaded to Twiki installation on Solaris.
Test case
Different version of binary files can not be uploaded to Twiki installation on Solaris.
However the same operation get executed on Linux based Twiki.
While trying the operation, I get following error:
Topic save error
During save of file Dynamic.Archive an error was found by the version control system. Please notify your TWiki administrator.
/home/veeresh/HOME/local/bin/ci -q -l -m'none' -t-none -w'VeereshKhanorkar' /home/veeresh/HOME/Twiki/pub/Dynamic/Archive/Name.sxw 2>&1
Binary files /tmp/draaOl2 and /tmp/T2naaGl2 differ
ci: /home/veeresh/HOME/Twiki/pub/Dynamic/Archive/Name.sxw,v: diff failed
ci aborted
Go back in your browser and save your changes locally.
I debugged the whole code and found out that the problem lies with implementation of ci itself. The implementation of ci differs on linux and solaris.
Look at the below example:
Solaris Box:
bash-2.05b$ ci -l -m'none' -t-none -w'VeereshKhanorkar' /home/veeresh/HOME/Twiki/pub/Dynamic/Archive/Name.sxw
/home/veeresh/HOME/Twiki/pub/Dynamic/Archive/Name.sxw,v <-- /home/veeresh/HOME/Twiki/pub/Dynamic/Archive/Name.sxw
new revision: 1.2; previous revision: 1.1
Binary files /tmp/delaqp2 and /tmp/T27kaip2 differ
ci: /home/veeresh/HOME/Twiki/pub/Dynamic/Archive/Name.sxw,v: diff failed
ci aborted
Linux Box:
[system@margetcity system]$ ci -l -m'none' -t-none -w'VeereshKhanorkar' /home/system/HOME/Twiki/pub/HOME/HomeArchive/Name.sxw
/home/system/HOME/Twiki/pub/HOME/HomeArchive/Name.sxw,v <-- /home/system/HOME/Twiki/pub/HOME/HomeArchive/Name.sxw
new revision: 1.3; previous revision: 1.2
done
[system@margetcity system]$ ci -l -m'none' -t-none -w'VeereshKhanorkar' /home/system/HOME/Twiki/pub/HOME/HomeArchive/Name.sxw
While creating a version following command had been used on both the box:
Solaris Box:
rcs -i -t-none -kb /home/veeresh/HOME/Twiki/pub/Dynamic/Archive/Name.sxw
Linux Box:
rcs -i -t-none -kb /home/system/HOME/Twiki/pub/HOME/HomeArchive/Name.sxw
It seems that ci is going wrong here. Any suggestion? Can I try CVS in place of rcs?
Environment
--
VeereshKhanorkar - 27 Nov 2003
Follow up
This is a known issue with Solaris
diff - try building your own copy of
RCS and GNU diff, as detailed on
TWikiOnSolaris. Just curious - did you look at
TWikiOnSolaris? This might have been added to the installation docs after the Feb 2003 release went out...
--
RichardDonkin - 27 Nov 2003
Fix record
Solution
First of all thanks a lot Richard for such a prompt reply, I have wasted around 3 days to get thing done. I wish I had seen the mentioned site before.
Anyway here is the way I compiled diff, rcs for my solaris box:
bash-2.05b$ tar -zxvf diffutils-2.8.1.tar.gz
bash-2.05b$ ./configure --prefix=/home/veeresh/HOME/local
bash-2.05b$ make && make install
bash-2.05b$ cd ..
bash-2.05b$ tar -zxvf rcs-5.7.tar.gz
bash-2.05b$ cd rcs-5.7
bash-2.05b$ ./configure --prefix=/home/veeresh/HOME/local --with-diffutils
bash-2.05b$ make && make install
After this Twiki did maintain proper version of binary files while saving them.
Thanks a lot. Now I can work peacefully.
--
VeereshKhanorkar - 28 Nov 2003
Glad you have this working now. I'll update the
TWikiInstallationGuide to prompt people to look at the online version.
--
RichardDonkin - 28 Nov 2003
Can we test and warn about this in testenv.pl ?
--
SvenDowideit - 28 Nov 2003