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 08:59:07 +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: <185386229538.20011129085907@familiehaase.de> To: "Ralf Habacker" CC: "Gerrit P. Haase" Subject: Re: question about perl -i bug In-Reply-To: <008e01c178a4$c65bd000$651c440a@BRAMSCHE> References: <008e01c178a4$c65bd000$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 08:09 schriebst du: >>>> In the current version it is the same as before, no inplace editing without >>>> backup is possible. > I have found, that the error is "permission denied" . > One question: Does cygwin use a different concept for file opening/creation as > for example linux ? Not that I know about, the problem is that the file is opened and the system (Win) doesn't allow deleting or overwriting of files that are in use (opened). Opening and writing are the same as in Linux, but deleting/overwriting differs. >>> But you say, that there is somebody, who can compile and make a distribution >>> of perl. >> ? > I want to say, that I need perhaps somebody who can assist me. :-) I can build a new perl version if needed and I can help if you build it yourself. >> That would be great, please checkout bleadperl to do the patch! >> rsync -auvz rsync://ftp.linux.activestate.com/perl-current/ /target/directory > Can't I use the perl 5.6.1-2 src from cygwin ? Well, there may be changes in the relevant parts, but basically it should be the same. >> If you have questions about how to compile, feel free to ask. > Thats want I want to here with the question, you answered with ? In the cygwin sources there is the build script included, try to build without the modules at first. Also try to use the Configure flag -Dmksymlinks, so you don't need to build in the source directory. I use this kind of script to build bleadperl: #!/bin/sh set -e set -x rm -rf ./buildperl mkdir -p -m 777 ./buildperl cp -p ./Policy.sh ./buildperl/Policy.sh # configure perl cd ./buildperl sh /ftproot/pub/mirror/bleadperl/Configure -de \ -Dmksymlinks \ -Dusemultiplicity \ 2>&1 | tee log.configure make 2>&1 | tee log.make cp -p /bin/cygwin1.dll ./t/ chmod 777 ./t/cygwin1.dll # make test make test 2>&1 | tee log.make-test # make harness (cd t;./perl harness) 2>&1 | tee ./log.harness rm -v ./t/cygwin1.dll # install later (does 'make install' works now?) # make install.perl install.man 2>&1 | tee log.install # If your patch works ok, the .bak below isn't needed;) perl -i.bak -p -e 's#for trythis in .*#for trythis in /usr/bin/perl /bin/perl#;' \ -e 's#[^ ]*perlld#/usr/bin/perlld#' /usr/bin/ld2 echo 'check /bin/ld2' ########################## READY ### Ciao, Gerrit P. Haase mailto:gp AT familiehaase DOT de -- =^..^=