1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00

textproc/p5-XML-SAX: fix checksum mismatch for ParserDetails.ini

- 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>
This commit is contained in:
Kurt Jaeger 2018-02-27 07:15:54 +00:00
parent c6726cc123
commit 6545e26154
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=463111
4 changed files with 24 additions and 2 deletions

View File

@ -20,5 +20,8 @@ RUN_DEPENDS:= ${BUILD_DEPENDS}
NO_ARCH= yes
USES= perl5
USE_PERL5= configure
SUB_FILES= pkg-install
SUB_LIST= PERL=${PERL}
PKGDEINSTALL= ${PKGINSTALL}
.include <bsd.port.mk>

View File

@ -22,7 +22,7 @@
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()"
+#\t\@\$(PERL) -I\$(DESTDIR)\$(INSTALLSITELIB) -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()"
INSTALL

View File

@ -0,0 +1,19 @@
#!/bin/sh
PERL="%%PERL%%"
case $2 in
POST-INSTALL)
$PERL -MXML::SAX -e 'XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers();'
;;
DEINSTALL)
$PERL -MFile::Basename=dirname -MFile::Spec -MXML::SAX << 'PERLSCRIPT'
XML::SAX->remove_parser(q(XML::SAX::PurePerl))->save_parsers();
unless (@{XML::SAX->parsers()} > 0) {
$dir = $INC{q(XML/SAX.pm)}; $dir = dirname($dir);
$file = File::Spec->catfile($dir, q(SAX), XML::SAX::PARSER_DETAILS);
unlink($file);
}
PERLSCRIPT
;;
esac

View File

@ -7,7 +7,7 @@
%%SITE_PERL%%/XML/SAX.pm
%%SITE_PERL%%/XML/SAX/DocumentLocator.pm
%%SITE_PERL%%/XML/SAX/Intro.pod
%%SITE_PERL%%/XML/SAX/ParserDetails.ini
@comment %%SITE_PERL%%/XML/SAX/ParserDetails.ini
%%SITE_PERL%%/XML/SAX/ParserFactory.pm
%%SITE_PERL%%/XML/SAX/PurePerl.pm
%%SITE_PERL%%/XML/SAX/PurePerl/DTDDecls.pm