This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: question about perl -i bug

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:// /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:

set -e
set -x
rm -rf ./buildperl
mkdir -p -m 777 ./buildperl
cp -p ./ ./buildperl/

# 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 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                  

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]