From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Jan 16 07:50:07 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD0D316A420 for ; Mon, 16 Jan 2006 07:50:06 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A315943D4C for ; Mon, 16 Jan 2006 07:50:05 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k0G7o5Og070715 for ; Mon, 16 Jan 2006 07:50:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k0G7o5B1070714; Mon, 16 Jan 2006 07:50:05 GMT (envelope-from gnats) Resent-Date: Mon, 16 Jan 2006 07:50:05 GMT Resent-Message-Id: <200601160750.k0G7o5B1070714@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, Yen-Ming Lee Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EF7A616A41F; Mon, 16 Jan 2006 07:46:02 +0000 (GMT) (envelope-from leeym@utopia.leeym.com) Received: from msr43.hinet.net (msr43.hinet.net [168.95.4.143]) by mx1.FreeBSD.org (Postfix) with ESMTP id E839443D5A; Mon, 16 Jan 2006 07:46:01 +0000 (GMT) (envelope-from leeym@utopia.leeym.com) Received: from utopia.leeym.com (utopia.leeym.com [211.21.137.52]) by msr43.hinet.net (8.9.3/8.9.3) with ESMTP id PAA07743; Mon, 16 Jan 2006 15:45:55 +0800 (CST) Received: from localhost (localhost [127.0.0.1]) by utopia.leeym.com (Postfix) with ESMTP id C4B73B29DE2; Mon, 16 Jan 2006 15:45:54 +0800 (CST) Received: from utopia.leeym.com ([127.0.0.1]) by localhost (utopia.leeym.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04670-10; Mon, 16 Jan 2006 15:45:50 +0800 (CST) Received: by utopia.leeym.com (Postfix, from userid 1000) id 4F8A0B29D0D; Mon, 16 Jan 2006 15:45:50 +0800 (CST) Message-Id: <20060116074550.4F8A0B29D0D@utopia.leeym.com> Date: Mon, 16 Jan 2006 15:45:50 +0800 (CST) From: Yen-Ming Lee To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: mat@FreeBSD.org Subject: ports/91862: [PATCH] textproc/p5-XML-LibXML-XPathContext: unbreak on old perl 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: Mon, 16 Jan 2006 07:50:07 -0000 >Number: 91862 >Category: ports >Synopsis: [PATCH] textproc/p5-XML-LibXML-XPathContext: unbreak on old perl >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: Mon Jan 16 07:50:05 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Yen-Ming Lee >Release: FreeBSD 6.0-STABLE i386 >Organization: FreeBSD Taiwan >Environment: System: FreeBSD utopia.leeym.com 6.0-STABLE FreeBSD 6.0-STABLE #1: Sat Jan 14 20:28:49 CST 2006 >Description: - unbreak on old perl Added file(s): - files/extrapatch-XPathContext.xs Port maintainer (mat@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.63 >How-To-Repeat: >Fix: --- p5-XML-LibXML-XPathContext-0.07.patch begins here --- Index: Makefile =================================================================== RCS file: /home/pcvs/ports/textproc/p5-XML-LibXML-XPathContext/Makefile,v retrieving revision 1.5 diff -u -u -r1.5 Makefile --- Makefile 22 Nov 2005 11:26:19 -0000 1.5 +++ Makefile 16 Jan 2006 07:45:28 -0000 @@ -24,8 +24,8 @@ .include -.if ${PERL_LEVEL} < 500601 -IGNORE="Need at least perl 5.6.1 to build" +.if ${PERL_LEVEL} < 500600 +EXTRA_PATCHES= ${FILESDIR}/extrapatch-XPathContext.xs .endif .include Index: files/extrapatch-XPathContext.xs =================================================================== RCS file: files/extrapatch-XPathContext.xs diff -N files/extrapatch-XPathContext.xs --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/extrapatch-XPathContext.xs 16 Jan 2006 07:45:28 -0000 @@ -0,0 +1,18 @@ +--- XPathContext.xs.orig Mon Jan 16 11:27:29 2006 ++++ XPathContext.xs Mon Jan 16 11:28:54 2006 +@@ -11,6 +11,15 @@ + #include "XSUB.h" + #include "ppport.h" + ++/* try to be compatible with older perls */ ++/* SvPV_nolen() macro first defined in 5.005_55 */ ++/* this is slow, not threadsafe, but works */ ++#include "patchlevel.h" ++#if (PATCHLEVEL == 4) || ((PATCHLEVEL == 5) && (SUBVERSION < 55)) ++static STRLEN nolen_na; ++# define SvPV_nolen(sv) SvPV ((sv), nolen_na) ++#endif ++ + /* libxml2 stuff */ + #include + #include --- p5-XML-LibXML-XPathContext-0.07.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: