From owner-freebsd-ports-bugs@FreeBSD.ORG Fri May 20 12:00:25 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6985E10656D1 for ; Fri, 20 May 2011 12:00:25 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 19CA58FC12 for ; Fri, 20 May 2011 12:00:22 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p4KC0LpP029097 for ; Fri, 20 May 2011 12:00:21 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4KC0LVS029096; Fri, 20 May 2011 12:00:21 GMT (envelope-from gnats) Resent-Date: Fri, 20 May 2011 12:00:21 GMT Resent-Message-Id: <201105201200.p4KC0LVS029096@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Baptiste Daroussin Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BFE00106566C for ; Fri, 20 May 2011 11:51:58 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 21E888FC15 for ; Fri, 20 May 2011 11:51:57 +0000 (UTC) Received: by wyf23 with SMTP id 23so3665025wyf.13 for ; Fri, 20 May 2011 04:51:57 -0700 (PDT) Received: by 10.216.65.18 with SMTP id e18mr535391wed.23.1305892317149; Fri, 20 May 2011 04:51:57 -0700 (PDT) Received: from localhost (mlr78-1-82-232-208-178.fbx.proxad.net [82.232.208.178]) by mx.google.com with ESMTPS id o1sm1799752wej.8.2011.05.20.04.51.56 (version=SSLv3 cipher=OTHER); Fri, 20 May 2011 04:51:56 -0700 (PDT) Message-Id: <4dd655dc.0191d80a.19ae.ffffc4ac@mx.google.com> Date: Fri, 20 May 2011 04:51:56 -0700 (PDT) From: Baptiste Daroussin Sender: Baptiste Daroussin To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: skv@FreeBSD.org Subject: ports/157207: [PATCH] textproc/p5-XML-LibXML: package scripts should be in sh X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 May 2011 12:00:25 -0000 >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@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 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: