Skip Menu |
 

This queue is for tickets about the Makefile-Parser CPAN distribution.

Report information
The Basics
Id: 69319
Status: resolved
Priority: 0/
Queue: Makefile-Parser

People
Owner: Nobody in particular
Requestors: marcelo.magallon [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Error parsing line continuations
Date: Wed, 6 Jul 2011 13:04:32 -0600
To: bug-Makefile-Parser [...] rt.cpan.org
From: Marcelo <marcelo.magallon [...] gmail.com>
Download (untitled) / with headers
text/plain 908b
Hi, $ cat test.mk FOO = 1 \ 2\ 3 all: @echo $(FOO) $ make -f test.mk 1 2 3 $ cat parse-makefile #!/usr/bin/perl use strict; use warnings; use Makefile::Parser; my $parser = Makefile::Parser->new; $parser->parse(shift) or die Makefile::Parser->error; foreach my $var ($parser->vars) { print $var, " = ", $parser->var($var), "\n"; } return 0; $ ./parse-makefile test.mk FOO = 1 2\ # edit test.mk to add space before \ in the second line. $ cat test.mk FOO = 1 \ 2 \ 3 all: @echo $(FOO) $ ./parse-makefile test.mk FOO = 1 2 3 $ make --version GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This program built for x86_64-redhat-linux-gnu Makefile::Parser is 0.211. Thanks! Marcelo
Subject: Re: [rt.cpan.org #69319] AutoReply: Error parsing line continuations
Date: Wed, 6 Jul 2011 14:06:26 -0600
To: bug-Makefile-Parser [...] rt.cpan.org
From: Marcelo <marcelo.magallon [...] gmail.com>
Download (untitled) / with headers
text/plain 282b
Hi, looking at the Makefile::Parser source code, I can see that it tries to handle the sequence "^\" in a special way. Testing with GNU Make 3.81 I don't see that that's the case: FOO = 1 \ 2 ^\ 3 all: @echo $(FOO) $ make -f test.mk 1 2 ^ 3 Thanks, Marcelo
Download (untitled) / with headers
text/plain 175b
This two issues (2\ and ^\) have already been fixed in the CPAN release 0.214. Feel free to reopen this ticket if you still have issues. Thanks a lot for the report! -agentzh


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.