ports/157207: [PATCH] textproc/p5-XML-LibXML: package scripts should be in sh

Baptiste Daroussin bapt at FreeBSD.org
Fri May 20 12:00:25 UTC 2011


>Number:         157207
>Category:       ports
>Synopsis:       [PATCH] textproc/p5-XML-LibXML: package scripts should be in sh
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 20 12:00:21 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Baptiste Daroussin
>Release:        FreeBSD 8.2-STABLE amd64
>Organization:
>Environment:
System: FreeBSD azathoth.lan 8.2-STABLE FreeBSD 8.2-STABLE #0 r219454M: Thu Mar 10 20:09:22 CET
>Description:
Here is a proposition of patch to have the post-install and deinstall scripts working in sh

This should also apply to textproc/p5-XML-SAX-Expat and textproc/p5-XML-SAX-ExpatXS

Port maintainer (skv at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- p5-XML-LibXML-1.70,1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/textproc/p5-XML-LibXML/Makefile,v
retrieving revision 1.35
diff -u -u -r1.35 Makefile
--- Makefile	30 Oct 2009 16:13:57 -0000	1.35
+++ Makefile	20 May 2011 11:46:50 -0000
@@ -47,6 +47,6 @@
 		XML::LibXML::Common.3 XML::LibXML::RegExp.3
 
 post-install:
-	@PKG_PREFIX=${PREFIX} ${PERL} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+	@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /home/pcvs/ports/textproc/p5-XML-LibXML/distinfo,v
retrieving revision 1.24
diff -u -u -r1.24 distinfo
--- distinfo	30 Oct 2009 16:13:57 -0000	1.24
+++ distinfo	20 May 2011 11:46:50 -0000
@@ -1,3 +1,2 @@
-MD5 (XML-LibXML-1.70.tar.gz) = 33d4294f708e20c298cfe534d1166844
 SHA256 (XML-LibXML-1.70.tar.gz) = 53e6cf06772ba9d85055dc6e4488dbd876d2376e48ef3578fa73246ee98b3ba0
 SIZE (XML-LibXML-1.70.tar.gz) = 339682
Index: pkg-install
===================================================================
RCS file: /home/pcvs/ports/textproc/p5-XML-LibXML/pkg-install,v
retrieving revision 1.1
diff -u -u -r1.1 pkg-install
--- pkg-install	9 Nov 2004 14:08:54 -0000	1.1
+++ pkg-install	20 May 2011 11:46:50 -0000
@@ -1,5 +1,7 @@
-#!/usr/bin/perl
-exit unless $ARGV[1]=~ /^(DE|POST\-)INSTALL$/;
-$action=(($1 eq 'DE')?'remove':'add').'_parser';
-eval "use XML::SAX;"; exit(-1) if $@;
-XML::SAX->$action('XML::LibXML::SAX'.$_)->save_parsers() for('::Parser', '');
+#!/bin/sh
+
+if [ "$2" = "XPOST-INSTALL" ]; then
+	perl -MXML::SAX -e "XML::SAX->add_parser('XML::LibXML::SAX'.\$_)->save_parsers()"
+elif [ "X$2" = "XDEINSTALL" ]; then
+	perl -MXML::SAX -e "XML::SAX->remove_parser('XML::LibXML::SAX'.\$_)->save_parsers()"
+fi
--- p5-XML-LibXML-1.70,1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list