From: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
---|---|
To: | Zeugswetter Andreas OSB SD <Andreas(dot)Zeugswetter(at)s-itsolutions(dot)at> |
Cc: | pgsql-patches(at)postgresql(dot)org, Magnus Hagander <magnus(at)hagander(dot)net>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: [HACKERS] MSVC build broken with perl 5.10 |
Date: | 2008-04-15 16:29:51 |
Message-ID: | 4804D7FF.7050601@dunslane.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Zeugswetter Andreas OSB SD wrote:
> Magnus Hagander wrote:
>
>> I just tried the MSVC build on a system with ActiveState Perl 5.10,
>>
> and
>
>> it doesn't work. Some quick debugging before I downgraded to 5.8
>>
> showed
>
>> that this regexp in Project.pm line 262:
>> my $replace_re = qr{^([^:\n\$]+\.c)\s*:\s*(?:%\s*:
>>
> )?\$(\([^\)]+\))\/(.*)\/[^\/]+$};
>
>> matches things properly using Perl 5.8 in for example
>> src/bin/initdb/Makefile (matches a total of around 10 Makefiles), but
>> in 5.10 it simply does not match anything...
>>
>> Any perl guru out there who can comment on why? ;-)
>>
>
> The answer is actually simple, the \n needs the multiline modifier,
> and thus the m needs to be part of the quote-like operator.
>
> The perl doc states:
> "This operator quotes (and possibly compiles) its STRING"
> (it seems 5.8 did not compile, but 5.10 does)
>
> I feel that it is rather not a perl bug, and that the modifiers need to
> be put
> on the qr{}. I do not quite see why this re needs to be multiline in the
> first place,
> but I have not touched that in the attached patch, that is ready to
> apply.
> (modification works in perl 5.6, 5.8, 5.10)
>
>
Thanks, that makes sense. I wonder how it ever worked before. Anyway,
patch applied back as far as 8.2.
cheers
andrew
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2008-04-15 16:48:09 | Re: Commit fest queue |
Previous Message | Richard Huxton | 2008-04-15 16:24:59 | Re: Problem with site doc search |
From | Date | Subject | |
---|---|---|---|
Next Message | Teodor Sigaev | 2008-04-15 16:53:00 | Re: Partial match in GIN (next vesrion) |
Previous Message | Alvaro Herrera | 2008-04-15 15:06:23 | Re: [PATCHES] Avahi support for Postgresql |