Article View: news.software.nntp
Article #5212Solaris /bin/patch is a mutant (was Re: innd (dbzwritethrough compile error))
From: Dave Barr
Date: Fri, 23 Feb 1996 00:00
Date: Fri, 23 Feb 1996 00:00
36 lines
2276 bytes
2276 bytes
In article <slrn4iqt75.56v.hwr@pilhuhn.de>, Heiko W.Rupp <hwr@pilhuhn.de> wrote: >In <4gfgo7$rcg@hgssun2.hgsi.com>, Marco A. Hernandez wrote: >:|dbzwritethrough his.o > >:|The routine does not exist in dbz.c (either the inn or cnews versions) ... >:|Is there a patch ? Has anyone seen this before ... > >Yes there is a patch -- read Install.ms ... > >On Solaris2.5 the patch program can't make sense out of the supplied patch, >so you have to get another patch program first. It is in part2 of the FAQ. Someone (sorry I forget who) reported this to me but I forgot to post here. It seems that the Solaris /usr/bin/patch is a mutant. While every patch I have ever seen understands 'patch -p0', in Solaris you have to say 'patch -p 0'. Moreover unlike every other patch program, the file has to be writeable before you can patch it. (it gives an error otherwise.) Needless to say this makes any normal uses of 'patch' a royal friggin pain in the butt, since lots of software comes with '-r--r--r--' permission because the author uses RCS. Unfortunately you can't just change the makefile to say 'patch -p 0' because the normal patch program won't understand that. (Looks like Sun is taking lessons from IBM on gratuitous incompatibilities) I'm going to remove the directory stuff from the dbz.pch so '-p 0' or '-p0' is not necessary. (and also adding a chmod +w dbz.c for good measure) Please, if any of you Sun users out there has a few minutes of spare time, please send in an RFE to Sun to fix this. --Dave
Technical Details
Message-ID:
<4gksc2$r39@augusta.math.psu.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<4gfgo7$rcg@hgssun2.hgsi.com> <slrn4iqt75.56v.hwr@pilhuhn.de>Show Full Headers
Complete Article Headers
Message-ID: <4gksc2$r39@augusta.math.psu.edu> Subject: Solaris /bin/patch is a mutant (was Re: innd (dbzwritethrough compile error)) Date: Fri, 23 Feb 1996 00:00:00 +0000 From: barr@math.psu.edu (Dave Barr) References: <4gfgo7$rcg@hgssun2.hgsi.com> <slrn4iqt75.56v.hwr@pilhuhn.de> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 140709727 Distribution: inet Organization: Penn State University, Department of Mathematics Newsgroups: news.software.nntp,comp.unix.solaris