From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Aug 31 13:30:03 2010 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 0F2DC10656B3 for ; Tue, 31 Aug 2010 13:30:03 +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 BE47A8FC1F for ; Tue, 31 Aug 2010 13:30:02 +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 o7VDU2d1025862 for ; Tue, 31 Aug 2010 13:30:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o7VDU2jO025861; Tue, 31 Aug 2010 13:30:02 GMT (envelope-from gnats) Resent-Date: Tue, 31 Aug 2010 13:30:02 GMT Resent-Message-Id: <201008311330.o7VDU2jO025861@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, Bill Brinzer Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E6B251065696 for ; Tue, 31 Aug 2010 13:28:14 +0000 (UTC) (envelope-from brinzer@mfrac.com) Received: from email.mfrac.com (email.mfrac.com [74.1.169.10]) by mx1.freebsd.org (Postfix) with ESMTP id 488378FC14 for ; Tue, 31 Aug 2010 13:28:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by email.mfrac.com (Postfix) with ESMTP id A0CDF1CCBE for ; Tue, 31 Aug 2010 09:28:13 -0400 (EDT) Received: from email.mfrac.com ([127.0.0.1]) by localhost (email.mfrac.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 5EWeMRkCEC+O for ; Tue, 31 Aug 2010 09:28:08 -0400 (EDT) Received: from water.mfrac.vpn (water.mfrac.vpn [192.168.0.18]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by email.mfrac.com (Postfix) with ESMTPS id 6C1581CC74 for ; Tue, 31 Aug 2010 09:28:08 -0400 (EDT) Received: by water.mfrac.vpn (Postfix, from userid 1002) id 3B06C5C31; Tue, 31 Aug 2010 09:28:08 -0400 (EDT) Message-Id: <20100831132808.3B06C5C31@water.mfrac.vpn> Date: Tue, 31 Aug 2010 09:28:08 -0400 (EDT) From: Bill Brinzer To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/150149: [update] Fix p5-Data-Alias to compile on Perl 5.12 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Bill Brinzer List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Aug 2010 13:30:03 -0000 >Number: 150149 >Category: ports >Synopsis: [update] Fix p5-Data-Alias to compile on Perl 5.12 >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: Tue Aug 31 13:30:02 UTC 2010 >Closed-Date: >Last-Modified: >Originator: >Release: FreeBSD 7.3-RELEASE-p2 i386 >Organization: Meyer & Associates, Inc. >Environment: System: FreeBSD water.mfrac.vpn 7.3-RELEASE-p2 FreeBSD 7.3-RELEASE-p2 #7: Tue Jul 13 13:58:34 EDT 2010 root@water.mfrac.vpn:/export/FreeBSD/7.x/obj/usr/src/sys/SMITHWICKS i386 >Description: Perl port devel/p5-Data-Alias fails to build on Perl 5.12: ===> Building for p5-Data-Alias-1.07 cp lib/Data/Alias.pm blib/lib/Data/Alias.pm /usr/local/bin/perl5.12.1 "-Iinc" /usr/local/lib/perl5/site_perl/5.12.1/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.12.1/ExtUtils/typemap Alias.xs > Alias.xsc && mv Alias.xsc Alias.c cc -c -O -pipe -O -pipe -DVERSION=\"1.07\" -DXS_VERSION=\"1.07\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.12.1/mach/CORE" Alias.c Alias.xs: In function 'da_localize_gvar': Alias.xs:369: error: 'Nullsv' undeclared (first use in this function) Alias.xs:369: error: (Each undeclared identifier is reported only once Alias.xs:369: error: for each function it appears in.) Alias.xs: In function 'da_refgen': Alias.xs:376: error: 'SVt_RV' undeclared (first use in this function) Alias.xs: In function 'DataAlias_pp_rv2sv': Alias.xs:690: warning: 'PL_no_symref' is deprecated (declared at /usr/local/lib/perl5/5.12.1/mach/CORE/perl.h:4241) Alias.xs: In function 'DataAlias_pp_rv2gv': Alias.xs:747: warning: 'PL_no_symref' is deprecated (declared at /usr/local/lib/perl5/5.12.1/mach/CORE/perl.h:4241) Alias.xs: In function 'DataAlias_pp_return': Alias.xs:1251: error: 'Nullsv' undeclared (first use in this function) Alias.xs: In function 'da_transform': Alias.xs:1436: error: 'Nullop' undeclared (first use in this function) Alias.xs:1450: error: 'OP_SETSTATE' undeclared (first use in this function) Alias.xs: In function 'da_peep2': Alias.xs:1589: error: 'OP_SETSTATE' undeclared (first use in this function) Alias.xs: In function 'da_ck_entersub': Alias.xs:1767: error: 'Nullop' undeclared (first use in this function) *** Error code 1 Stop in /usr/ports/devel/p5-Data-Alias/work/Data-Alias-1.07. *** Error code 1 Stop in /usr/ports/devel/p5-Data-Alias. >How-To-Repeat: Attempt to build devel/p5-Data-Alias with Perl 5.12 installed. Upstream has been broken since May with no fix in sight: >Fix: This patch is based on the one in Debian bug #578547: This patch just gets the port compiling. As noted in the Debian bug, only Data::Alias::deref() works with the patch. This is all that's needed for devel/p5-Data-Visitor, which in turn is used by p5-Catalyst-Devel and some other major Catalyst ports. --- p5-Data-Alias-1.07_1.patch begins here --- diff -urN p5-Data-Alias.orig/Makefile p5-Data-Alias/Makefile --- p5-Data-Alias.orig/Makefile 2007-10-05 02:41:05.000000000 -0400 +++ p5-Data-Alias/Makefile 2010-08-25 09:38:59.000000000 -0400 @@ -7,6 +7,7 @@ PORTNAME= Data-Alias PORTVERSION= 1.07 +PORTREVISION= 1 CATEGORIES= devel perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- diff -urN p5-Data-Alias.orig/files/patch-Alias.xs p5-Data-Alias/files/patch-Alias.xs --- p5-Data-Alias.orig/files/patch-Alias.xs 1969-12-31 19:00:00.000000000 -0500 +++ p5-Data-Alias/files/patch-Alias.xs 2010-08-25 09:36:02.000000000 -0400 @@ -0,0 +1,69 @@ +--- Alias.xs ++++ Alias.xs +@@ -75,6 +75,10 @@ + #define SvPVX_const SvPVX + #endif + ++#if (PERL_COMBI_VERSION >= 5011000) ++#define SVt_RV SVt_IV ++#endif ++ + #ifndef SvREFCNT_inc_NN + #define SvREFCNT_inc_NN SvREFCNT_inc + #endif +@@ -366,7 +370,7 @@ STATIC void da_localize_gvar(pTHX_ GP *gp, SV **sptr) { + SSPUSHPTR(gp); + SSPUSHINT(SAVEt_DESTRUCTOR_X); + ++gp->gp_refcnt; +- *sptr = Nullsv; ++ *sptr = NULL; + } + + STATIC SV *da_refgen(pTHX_ SV *sv) { +@@ -1248,7 +1252,7 @@ OP *DataAlias_pp_return(pTHX) { + cxstack_ix--; + POPSUB(cx, sv); + } else { +- sv = Nullsv; ++ sv = NULL; + } + PL_curpm = newpm; + LEAVESUB(sv); +@@ -1433,7 +1437,7 @@ STATIC int da_transform(pTHX_ OP *op, int sib) { + int hits = 0; + + while (op) { +- OP *kid = Nullop, *tmp; ++ OP *kid = NULL, *tmp; + int ksib = TRUE; + OPCODE optype; + +@@ -1447,7 +1451,9 @@ STATIC int da_transform(pTHX_ OP *op, int sib) { + default: + --hits; + switch (optype) { ++#if PERL_COMBI_VERSION < 5006000 + case OP_SETSTATE: ++#endif + case OP_NEXTSTATE: + case OP_DBSTATE: + PL_curcop = (COP *) op; +@@ -1586,7 +1592,9 @@ STATIC int da_peep2(pTHX_ OP *o) { + if (da_peep2(aTHX_ k)) + return 1; + } else switch (o->op_type ? o->op_type : o->op_targ) { ++#if PERL_COMBI_VERSION < 5006000 + case OP_SETSTATE: ++#endif + case OP_NEXTSTATE: + case OP_DBSTATE: + PL_curcop = (COP *) o; +@@ -1764,7 +1772,7 @@ STATIC OP *da_ck_entersub(pTHX_ OP *o) { + kUNOP->op_first = last; + while (kid->op_sibling != last) + kid = kid->op_sibling; +- kid->op_sibling = Nullop; ++ kid->op_sibling = NULL; + cLISTOPx(cUNOPo->op_first)->op_last = kid; + if (kid->op_type == OP_NULL && inside) + kid->op_flags &= ~OPf_SPECIAL; --- p5-Data-Alias-1.07_1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: