mirror of
https://git.freebsd.org/ports.git
synced 2025-04-30 10:36:38 -04:00
- The file %%SITE_PERL%%/XML/SAX/ParserDetails.ini is updated by ports that depending textproc/p5-XML-SAX. - For example, textproc/p5-XML-SAX-Expat, textproc/p5-XML-Simple and textproc/p5-XML-LibXML append something to the .ini file. - This causes checksum mismatch when executing `pkg check -s textproc/p5-XML-SAX` The fix provides a pkg-install program to handle the file in post-install. PR: 197011 Submitted by: Tatsuki Makino <tatsuki_makino@hotmail.com> Reviewed by: John Hein, mat, Walter Schwarzenfeld <w.schwarzenfeld@utanet.at>
28 lines
906 B
Perl
28 lines
906 B
Perl
--- Makefile.PL.orig 2018-02-15 09:44:15 UTC
|
|
+++ Makefile.PL
|
|
@@ -27,15 +27,7 @@ sub MY::install {
|
|
}
|
|
else {
|
|
my $dir = File::Basename::dirname($INC{'XML/SAX.pm'});
|
|
- if (-e File::Spec->catfile($dir, 'SAX', 'ParserDetails.ini')) {
|
|
- $write_ini_ok =
|
|
- ExtUtils::MakeMaker::prompt(
|
|
- "Do you want XML::SAX to alter ParserDetails.ini?", "Y"
|
|
- ) =~ /^y/i;
|
|
- }
|
|
- else {
|
|
- $write_ini_ok = 1;
|
|
- }
|
|
+ $write_ini_ok = 1;
|
|
}
|
|
|
|
if ($write_ini_ok) {
|
|
@@ -43,7 +35,7 @@ sub MY::install {
|
|
$script .= <<"INSTALL";
|
|
|
|
install_sax_pureperl : pure_install
|
|
-\t\@\$(PERL) -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()"
|
|
+#\t\@\$(PERL) -I\$(DESTDIR)\$(INSTALLSITELIB) -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()"
|
|
|
|
INSTALL
|
|
|