Return-Path: X-Original-To: apmail-perl-dev-archive@www.apache.org Delivered-To: apmail-perl-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6750198F7 for ; Fri, 20 Apr 2012 15:14:01 +0000 (UTC) Received: (qmail 53697 invoked by uid 500); 20 Apr 2012 15:14:01 -0000 Delivered-To: apmail-perl-dev-archive@perl.apache.org Received: (qmail 53579 invoked by uid 500); 20 Apr 2012 15:14:00 -0000 Mailing-List: contact dev-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@perl.apache.org Received: (qmail 53572 invoked by uid 99); 20 Apr 2012 15:14:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Apr 2012 15:14:00 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of adam.prime@utoronto.ca designates 128.100.132.159 as permitted sender) Received: from [128.100.132.159] (HELO bureau62.ns.utoronto.ca) (128.100.132.159) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Apr 2012 15:13:52 +0000 Received: from [10.1.4.160] (h216-235-10-210.host.egate.net [216.235.10.210]) (authenticated bits=0) by bureau62.ns.utoronto.ca (8.13.8/8.13.8) with ESMTP id q3KFDPTu005054 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 20 Apr 2012 11:13:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=utoronto.ca; s=beta; t=1334934811; bh=XhGbmTlB0v5UKFZBAnVFb/BqL99aGmLneGwgnfUs8Sk=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type; b=0ka1R2pUBHmDKpRphlmQVm0Nx4ku3sJ1r25Aw7M0X3Oo1lBwLB4beL5sbuOZE+MYR VeE7d6CwYdlVFThcPWoadUoaaYmXIJUwlWbI0H5ox13N/DoAxRYLwo5fsb18aERuVH VXUzrVyLQEHjVGk12n/dsPyiDmc9a61o2Wo+qaiM= Message-ID: <4F917D15.8030206@utoronto.ca> Date: Fri, 20 Apr 2012 11:13:25 -0400 From: Adam Prime User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.28) Gecko/20120313 Thunderbird/3.1.20 MIME-Version: 1.0 To: dev@perl.apache.org Subject: Re: [RELEASE CANDIDATE]: mod_perl-2.0.5 RC5 References: <4F909A5D.5050808@utoronto.ca> <2700913.Gb7F8YFrCz@opi.home> In-Reply-To: <2700913.Gb7F8YFrCz@opi.home> Content-Type: multipart/mixed; boundary="------------040009050406040802060206" --------------040009050406040802060206 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit > #if defined(__GNUC__)&& !defined(PERL_GCC_BRACE_GROUPS_FORBIDDEN) > # define MUTABLE_PTR(p) ({ void *_p = (p); _p; }) > #else > # define MUTABLE_PTR(p) ((void *) (p)) > #endif > > So the solution for the problem is simple: > > # ifdef MUTABLE_SV > SV *sv=MUTABLE_SV(...); > # else > SV *sv=(SV*)... > # endif > This fixed the problem i was having, and all the tests pass. the patch I used to the rc5 tree source is attached. it'll probably have to be poked with to apply to svn. Because the solution to this particular issue appears to be this simple, I think that it might be in our best interest to do rc6 with this change, and explicitly say we aren't going to support whatever we aren't going to support for the next release. I am more than willing to be overruled on this though ;) Adam On 12-04-20 06:27 AM, Torsten F�rtsch wrote: > On Thursday, 19 April 2012 18:45:59 Fred Moyer wrote: >>> Apparently MUTABLE_CV doesn't exist under 5.8.8 >> >> Verified. Thoughts? +1 to ship as is. 5.8.8 isn't being shipped with >> any new Linux or other OS distributions as far as I know. > > I think the central question is how many perl versions back we want to > support. This has been discussed a few times already. Perl itself has settled > on support for the current stable version plus one back. Current stable is > 5.14. So, they support 5.14 and 5.12. But support for 5.12 will end soon as > 5.16 is approaching. See L. > > As for modperl, I am not sure if we should bind our compatibility policy to a > fixed number of perl/httpd versions. But something like "for 2.0.7 we are > dropping support for perl versions older than 5.12, httpd versions older than > ... and APR versions older than ..." in the beginning of the dev cycle would > be good. Then we have to make sure that trunk is tested against the supported > versions on a regular basis. Or perhaps we should make it a white list like > 2.0.7 will support perl 5.12 .. 5.16, httpd 2.2.x, apr 1.4.x. Modperl 2.1 will > support perl ..., httpd 2.4.x, ... > > If we cannot assure testing trunk against those versions regularly we must > change that statement *before* RC1 is rolled. > > Producing release candidates is someone's work and time. Testing them is so, > too. I understand that there must be a RC(n+1) if RCn introduced a bug while > fixing another. But if RCn (with say n>2) has a compatibility issue that comes > up only because modperl was first tested in the environment at that stage I > think that does not qualify for another RC. > > If the interest in 5.8.8 compatibility is great enough to fix the issue (I > don't say it is a bug) and Fred wants to roll another RC I'll test it. But > IMHO RC5 is good enough to be 2.0.6. > --------------040009050406040802060206 Content-Type: text/x-patch; name="rc5.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="rc5.patch" diff -Naur mod_perl-2.0.6-rc5-orig/src/modules/perl/modperl_const.c mod_perl-2.0.6-rc5/src/modules/perl/modperl_const.c --- mod_perl-2.0.6-rc5-orig/src/modules/perl/modperl_const.c 2012-02-14 15:33:12.000000000 -0500 +++ mod_perl-2.0.6-rc5/src/modules/perl/modperl_const.c 2012-04-20 11:02:05.441995397 -0400 @@ -50,8 +50,11 @@ if (!isGV(alias)) { gv_init(alias, caller_stash, name, name_len, TRUE); } - +#ifdef MUTABLE_CV GvCV_set(alias, MUTABLE_CV(SvREFCNT_inc(GvCV(*gvp)))); +#else + GvCV_set(alias, (CV*)(SvREFCNT_inc(GvCV(*gvp)))); +#endif } } diff -Naur mod_perl-2.0.6-rc5-orig/src/modules/perl/modperl_perl.c mod_perl-2.0.6-rc5/src/modules/perl/modperl_perl.c --- mod_perl-2.0.6-rc5-orig/src/modules/perl/modperl_perl.c 2012-02-14 15:33:12.000000000 -0500 +++ mod_perl-2.0.6-rc5/src/modules/perl/modperl_perl.c 2012-04-20 11:02:52.041582992 -0400 @@ -55,8 +55,13 @@ while (cglobals->name) { GV *gv = gv_fetchpv(cglobals->core_name, TRUE, SVt_PVCV); +#ifdef MUTABLE_CV GvCV_set(gv, MUTABLE_CV(SvREFCNT_inc(get_cv(cglobals->sub_name, TRUE)))); +#else + GvCV_set(gv, + (CV*)(SvREFCNT_inc(get_cv(cglobals->sub_name, TRUE)))); +#endif GvIMPORTED_CV_on(gv); cglobals++; } --------------040009050406040802060206 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org For additional commands, e-mail: dev-help@perl.apache.org --------------040009050406040802060206--