Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com List-Subscribe: List-Archive: List-Post: List-Help: , Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com Date: Thu, 29 Nov 2001 22:33:15 +0100 From: "Gerrit P. Haase" X-Mailer: The Bat! (v1.53t) Business Reply-To: "Gerrit P. Haase" Organization: Esse keine toten Tiere X-Priority: 3 (Normal) Message-ID: <54435077047.20011129223315@familiehaase.de> To: cygwin-apps AT cygwin DOT com Subject: Re: question about perl -i bug In-Reply-To: <009701c178d7$6b5e52d0$651c440a@BRAMSCHE> References: <009701c178d7$6b5e52d0$651c440a AT BRAMSCHE> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Sender: 320081107336-0001 AT t-dialin DOT net Hallo Ralf, Am 2001-11-29 um 14:11 schriebst du: > this patch fixes the "permission denied error for cygwin when inplace editing". > $ diff -ubBp perl.c.org perl.c > --- perl.c.org Wed Nov 28 09:34:24 2001 > +++ perl.c Thu Nov 29 12:35:36 2001 > @@ -2135,6 +2135,12 @@ Perl_moreswitches(pTHX_ char *s) > case 'i': > if (PL_inplace) > Safefree(PL_inplace); > +#if defined(__CYGWIN__) > + if (*(s+1) == '\0') { > + PL_inplace = savepv(".bak"); > + return s+1; > + } > +#endif > PL_inplace = savepv(s+1); > /*SUPPRESS 530*/ > for (s = PL_inplace; *s && !isSPACE(*s); s++) ; Looks correct. >> I use this kind of script to build bleadperl: > > Hmmh, I have done the foolowing like described in the INSTALL file and it works for 99% > rm -f config.sh Policy.sh > sh Configure -de > make > make test > make install > The "make install" fails with an "install is up to date" error I don't know why > so I have choosed "make install-silent" or "install-verbose" and it goes. Hmm, there is a patch in the cygwin sources (AFAIR) to handle this, but it seems... Additional it may be neccessary to use 'CYGWIN=check_case:strict' to avoid this, so INSTALL will not be found if you call 'make install', the 'normal' workaround is to use the direct targets: 'make install.perl' then also the manpages will not be installed. > One question: Can anyone verify this patch ? I will need some days, I'll try to test at the weekend. > Second question: When this fix is okay, can someone tell me when an updated perl > package will be available on cygwin ? > I'm asking because we like to open the kde2 cvs archive in the next time and for > that we need an updated perl. Hmmm, lets see what is going on with perl-5.8. Gerrit Ciao, Gerrit P. Haase mailto:gp AT familiehaase DOT de -- =^..^=