This is the mail archive of the
mailing list for the Cygwin project.
Re: question about perl -i bug
- From: "Gerrit P. Haase" <gp at familiehaase dot de>
- To: "Ralf Habacker" <Ralf dot Habacker at freenet dot de>
- Cc: "Gerrit P. Haase" <cygwin-apps at cygwin dot com>
- Date: Thu, 29 Nov 2001 08:59:07 +0100
- Subject: Re: question about perl -i bug
- Organization: Esse keine toten Tiere
- References: <008e01c178a4$c65bd000$651c440a@BRAMSCHE>
- Reply-to: "Gerrit P. Haase" <cygwin-apps at cygwin dot com>
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:
rm -rf ./buildperl
mkdir -p -m 777 ./buildperl
cp -p ./Policy.sh ./buildperl/Policy.sh
# configure perl
sh /ftproot/pub/mirror/bleadperl/Configure -de \
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 ###
Gerrit P. Haase mailto:firstname.lastname@example.org