We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
Tags:
create new tag
, view all tags

Question

I'm hitting the binary save problem described in BinaryFileProblem, BinaryFilesDifferMessage, SaveErrorWhenAttachingBinaryFile. However, I've installed GNU rcs and diffutils and made sure the GNU diff is linked into the ci, rcs, etc. Testenv is happy with the diff version.

The first case is that diffutils-2.8.1 returns error status 2 if binary files differ, which causes ci to die. The behavior of diff on binary files was changed between 2.7 and 2.8.1:

$ diffutils-2.7/diff /bin/ls /bin/cat ; echo $?
Binary files /bin/ls and /bin/cat differ
1
$ diffutils-2.8.1/src/diff /bin/ls /bin/cat ; echo $?
Binary files /bin/ls and /bin/cat differ
2

The second case is that with diffutils-2.7 and rcs-5.7, ci dies, but with a slightly different message:

ci: /export/home/n1doc/pub/Sandbox/WebHome/davis-ant.zip,v: bad diff output line: Binary files - and /tmp/T2ckaa.y differ

So, what versions of diffutils and rcs do people actually have working together to allow checking in multiple revisions of binary files? The combinations I tried both fail, but in different ways.

Environment

TWiki version: TWikiRelease01Feb2003
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Solaris 9
Web server: unknown
Perl version: 5.6.1
Client OS: Solaris / W2K?
Web Browser: Netscape 4.79, IE

-- KenShirriff - 08 Aug 2003

Answer

Ok, I figured out the problem. If you compile RCS (using the default Solaris diff), and then recompile to use the GNU diff, without running "configure" again, the compile options from configure are set based on Solaris diff, not GNU diff. In particular, the DIFFFLAGS are -n, not -an; the -a "treat all files as text" flag is required for RCS to work with binary files. (Maybe testenv could be enhanced to try doing ci on two different binary files to make sure the rcs/diff code works correctly?)

-- KenShirriff - 08 Aug 2003

Thanks for letting us know.

-- PeterThoeny - 09 Aug 2003

I've added a pointer to this from TWikiOnSolaris.

-- RichardDonkin - 10 Aug 2003

Topic revision: r4 - 10 Aug 2003 - 16:21:00 - RichardDonkin
Support.BinarySaveFailsRCSConfigError moved from Support.BinarySaveFailsIncompatibleGNUVersions on 10 Aug 2003 - 16:21 by RichardDonkin - put it back
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback