[MacPorts] #43145: Perl PortGroup fails to reinplace non-ascii Makefiles
MacPorts
noreply at macports.org
Tue Apr 1 13:58:51 PDT 2014
#43145: Perl PortGroup fails to reinplace non-ascii Makefiles
-----------------------------------+--------------------------------
Reporter: mojca@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.2.1
Resolution: | Keywords:
Port: p5-test-base p5-yaml |
-----------------------------------+--------------------------------
Comment (by mojca@…):
Just to explain where the weird encoding comes from.
The original file `dist.ini` contains UTF-8 encoded
{{{
author = Ingy döt Net
}}}
Then this apparently gets translated into
{{{
"AUTHOR" => "Ingy d\x{f6}t Net",
}}}
in `Makefile.PL`. During the configure phase, the following command is
called (more or less):
{{{
perl5.18 Makefile.PL
}}}
which results in
{{{
# --- MakeMaker ppd section:
# Creates a PPD (Perl Package Description) for a binary distribution.
ppd :
$(NOECHO) $(ECHO) '<SOFTPKG NAME="$(DISTNAME)"
VERSION="$(VERSION)">' > $(DISTNAME).ppd
$(NOECHO) $(ECHO) ' <ABSTRACT>YAML Ain'\''t Markup Language
(tm)</ABSTRACT>' >> $(DISTNAME).ppd
$(NOECHO) $(ECHO) ' <AUTHOR>Ingy döt Net</AUTHOR>' >>
$(DISTNAME).ppd
$(NOECHO) $(ECHO) ' <IMPLEMENTATION>' >> $(DISTNAME).ppd
$(NOECHO) $(ECHO) ' <ARCHITECTURE NAME="darwin-thread-
multi-2level-5.18" />' >> $(DISTNAME).ppd
$(NOECHO) $(ECHO) ' <CODEBASE HREF="" />' >>
$(DISTNAME).ppd
$(NOECHO) $(ECHO) ' </IMPLEMENTATION>' >> $(DISTNAME).ppd
$(NOECHO) $(ECHO) '</SOFTPKG>' >> $(DISTNAME).ppd
}}}
in Latin 1 encoding.
--
Ticket URL: <https://trac.macports.org/ticket/43145#comment:7>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list