On Sat, Sep 11, 2010 at 11:35:31AM -0400, Zefram via RT wrote:
Show quoted text> Sat Sep 11 11:35:29 2010: Request 61271 was acted upon.
> Transaction: Ticket created by zefram@fysh.org
> Queue: Math-Pari
> Subject: PERL_POLLUTE breakage of Math::Pari on 5.13.4
> Broken in: (no value)
> Severity: (no value)
> Owner: Nobody
> Requestors: zefram@fysh.org
> Status: new
> Ticket <URL:
http://rt.cpan.org/Ticket/Display.html?id=61271 >
>
>
> The effect of the PERL_POLLUTE macro, which Pari.xs defines, has been
> removed from Perl 5.13.4.
And now, when p5p in its infinite wisdom removed these (automatically
generated) defines, every extension would need to add them back by
hand. Well, would one expect anything else?
Show quoted text> As a result, Math::Pari no longer compiles.
The following patch makes things work without PERL_POLLUTE...
Thanks,
Ilya
--- Pari.xs-pre Wed Mar 3 13:53:32 2010
+++ Pari.xs Sat Sep 11 14:21:38 2010
@@ -34,6 +34,12 @@ extern "C" {
#ifdef __cplusplus
}
#endif
+
+#if !defined(na) && defined(PERL_VERSION) && (PERL_VERSION > 7) /* Added in 6 (???), Removed in 13 */
+# define na PL_na
+# define sv_no PL_sv_no
+# define sv_yes PL_sv_yes
+#endif
#if PARI_VERSION_EXP < 2002012
void init_defaults(int force); /* Probably, will never be fixed in 2.1.* */