debian/0000755000000000000000000000000012231050110007147 5ustar debian/watch0000644000000000000000000000014611212456213010215 0ustar version=3 http://search.cpan.org/dist/Alias/ .*/Alias-v?(\d[\d.]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip) debian/rules0000755000000000000000000000003611606373752010257 0ustar #!/usr/bin/make -f %: dh $@ debian/copyright0000644000000000000000000000236511606374226011136 0ustar Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135 Maintainer: Gurusamy Sarathy Source: http://search.cpan.org/dist/Alias/ Name: Alias Files: * Copyright: 1995-1999, Gurusamy Sarathy License: Artistic or GPL-1+ Files: debian/* Copyright: 1996, 1997, 1999, 2001, 2003, Michael Alan Dorman 1996, Michael Alan Dorman 2002, Colin Watson 2004, 2008, Joachim Breitner 2011, gregor herrmann License: Artistic or GPL-1+ License: Artistic This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License, which comes with Perl. . On Debian systems, the complete text of the Artistic License can be found in `/usr/share/common-licenses/Artistic'. License: GPL-1+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. . On Debian systems, the complete text of version 1 of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-1'. debian/source/0000755000000000000000000000000011606400611010461 5ustar debian/source/format0000644000000000000000000000001411606373351011701 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000011606400611010610 5ustar debian/patches/series0000644000000000000000000000010011606373223012024 0ustar 0001-Don-t-use-GvCV-as-an-lvalue-that-broke-with-Perl-5.1.patch debian/patches/0001-Don-t-use-GvCV-as-an-lvalue-that-broke-with-Perl-5.1.patch0000644000000000000000000000371011606373556023302 0ustar Bug-Debian: http://bugs.debian.org/627805 Bug: https://rt.cpan.org/Public/Bug/Display.html?id=64987 Forwarded: https://rt.cpan.org/Public/Bug/Display.html?id=64987 From dce94627191e7bde462f7dbb221dec63d4b13520 Mon Sep 17 00:00:00 2001 From: Niko Tyni Date: Sun, 10 Jul 2011 13:50:58 +0300 Subject: [PATCH] Don't use GvCV() as an lvalue, that broke with Perl 5.13.10 As seen in [rt.cpan.org #64987], GvCV() can't be assigned to anymore so use the new GvCV_set() macro when available or implement it the old way if it isn't. Also, set up a SAVEDESTRUCTOR function to restore the old CV value because we can't store it in the GV anymore. This part was adapted from Scope-Upper-0.14 by Vincent Pit. --- Alias.xs | 33 +++++++++++++++++++++++++++++++-- 1 files changed, 31 insertions(+), 2 deletions(-) diff --git a/Alias.xs b/Alias.xs index 9272b47..a7dcf20 100644 --- a/Alias.xs +++ b/Alias.xs @@ -15,6 +15,35 @@ extern "C" { #define PERL_SUBVERSION SUBVERSION #endif +#ifndef GvCV_set +#define GvCV_set(gv,cv) GvCV((gv)) = (cv) +#endif + +/* Since perl 5.13.10, GvCV() is only a rvalue so we no longer can store a + * pointer to the gvcv member of the gv. + * + * Adapted from a similar fix in Scope-Upper-0.14 by Vincent Pit. + */ + +typedef struct { + GV *gv; + CV *old_cv; +} saved_cv; + +static void restore_gvcv(saved_cv *s) { + GvCV_set(s->gv, s->old_cv); + Safefree(s); +} + +static void save_gvcv(GV *gv) { + saved_cv *s; + Newx(s, 1, saved_cv); + s->gv = gv; + s->old_cv = GvCV(gv); + + SAVEDESTRUCTOR(restore_gvcv, s); +} + #if PERL_REVISION == 5 && (PERL_VERSION < 4 || (PERL_VERSION == 4 && PERL_SUBVERSION <= 75 )) #define PL_stack_sp stack_sp @@ -205,8 +234,8 @@ alias_attr(hashref) save_gp(gv,TRUE); /* hide previous entry in symtab */ break; case SVt_PVCV: - SAVESPTR(GvCV(gv)); - GvCV(gv) = Null(CV*); + save_gvcv(gv); + GvCV_set(gv,Null(CV*)); break; default: save_scalar(gv); -- 1.7.5.4 debian/compat0000644000000000000000000000000211606373767010404 0ustar 8 debian/control0000644000000000000000000000210411606374660010577 0ustar Source: libalias-perl Maintainer: Debian Perl Group Uploaders: Krzysztof Krzyzaniak (eloy) , gregor herrmann Priority: optional Section: perl Build-Depends: debhelper (>= 8), perl Standards-Version: 3.9.2 Homepage: http://search.cpan.org/dist/Alias/ Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libalias-perl/ Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libalias-perl/ Package: libalias-perl Architecture: any Depends: ${misc:Depends}, ${perl:Depends}, ${shlibs:Depends} Description: module for accessing perl variables through aliases You may find the Alias module useful if you: . * are tired of dereferencing hash-based object attributes . * wish perl could make-do with fewer $, -> and {} things . * are a little scared of using typeglobs . * want the freedom to put what you want, when you want in the symbol table without having to deal with weird syntax . * need to use scalar constants in your program since you don't trust yourself from changing $PI debian/changelog0000644000000000000000000001142012231050110011017 0ustar libalias-perl (2.32-9build2) devel; urgency=low * Rebuild for Perl 5.18. -- Colin Watson Sun, 20 Oct 2013 22:51:04 +0100 libalias-perl (2.32-9build1) precise; urgency=low * Rebuild for Perl 5.14. -- Colin Watson Tue, 15 Nov 2011 17:07:33 +0000 libalias-perl (2.32-9) unstable; urgency=low [ gregor herrmann ] * debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser field (source stanza); Homepage field (source stanza). Removed: XS- Vcs-Svn fields. [ Joachim Breitner ] * Removed myself from uploaders. [ gregor herrmann ] * debian/watch: use dist-based URL. * debian/control: Added: ${misc:Depends} to Depends: field. [ Nathan Handler ] * debian/watch: Update to ignore development releases. [ Salvatore Bonaccorso ] * debian/control: Changed: Replace versioned (build-)dependency on perl (>= 5.6.0-{12,16}) with an unversioned dependency on perl (as permitted by Debian Policy 3.8.3). [ gregor herrmann ] * Change my email address. * Remove Conflicts:/Provides: alias. * Switch to source format 3.0 (quilt). * Add patch by Niko Tyni to work with perl 5.14 (closes: #627805). * Set Standards-Version to 3.9.2 (no further changes). * Bump debhelper compatibility level to 8. * Use tiny debian/rules. * debian/control: improve short and long description. * debian/copyright: convert to DEP5 format. * debian/control: remove Section and Priority from binary package stanza, thanks lintian. -- gregor herrmann Sun, 10 Jul 2011 21:13:33 +0200 libalias-perl (2.32-8) unstable; urgency=low * debian/control: Standards-Version bumped to 3.6.2 without changes * Add a watch file to the package -- Joachim Breitner Fri, 8 Oct 2004 12:05:55 +0200 libalias-perl (2.32-7) unstable; urgency=low * Adopted by Debian Perl Group (Closes: 274123) -- Joachim Breitner Fri, 8 Oct 2004 11:48:57 +0200 libalias-perl (2.32-6) unstable; urgency=low * Add Section and Priority to the control file. * Update standards version. -- Michael Alan Dorman Fri, 19 Dec 2003 15:09:00 -0500 libalias-perl (2.32-5) unstable; urgency=low * Fix copyright file to reference copies of the pertinent licenses (closes: Bug#157539) * Acknowledge NMU (closes: Bug#158559) * Retain the ability to build on woody * Move to debhelper 4 * Fix section -- Michael Alan Dorman Tue, 16 Dec 2003 08:22:49 -0500 libalias-perl (2.32-4.1) unstable; urgency=low * NMU for perl 5.8. * Build for perlapi-5.8.0 and update perl build-dependency to >= 5.8.0-7. -- Colin Watson Wed, 28 Aug 2002 00:30:23 +0100 libalias-perl (2.32-4) unstable; urgency=low * Built to comply with latest perl policy and standards. -- Michael Alan Dorman Sun, 15 Apr 2001 14:53:02 -0400 libalias-perl (2.32-3) unstable; urgency=low * Too stupid to get the binary-arch stuff in the right place. (closes: bug#40969) -- Michael Alan Dorman Sun, 11 Jul 1999 12:51:53 -0400 libalias-perl (2.32-2) unstable; urgency=low * Modified for new perl packages. * Modified to use debhelper. -- Michael Alan Dorman Mon, 5 Jul 1999 17:01:32 +0000 libalias-perl (2.32-1) unstable; urgency=low * New upstream version. * Changed package name to libalias-perl to be consistent with other perl packages. -- Michael Alan Dorman Sat, 12 Jun 1999 17:28:45 -0400 alias (2.31-2) unstable; urgency=low * Remember to build with library dependencies -- Michael Alan Dorman Fri, 05 Feb 1999 16:07:20 -0500 alias (2.31-1) unstable; urgency=low closes=18871 16748 30062 * New upstream release * Updated copyright file * Updated build procedure (closes: bug#30062) * Corrected spelling in description (closes: bug#18871) * Corrected standards version (closes: bug#16748) -- Michael Alan Dorman Sun, 31 Jan 1999 16:07:20 -0500 alias (2.3-1) unstable; urgency=low * New upstream release * Make dependency on perl correct -- Michael Alan Dorman Sat, 8 Mar 1997 13:52:47 -0500 alias (2.1-3) unstable; urgency=low * Corrected rules arch-indep/dep distribution (Bug#4629) * Make sure shared library is stripped (Bug#5122) -- Michael Alan Dorman Wed, 13 Nov 1996 13:26:56 -0500 alias (2.1-2) unstable; urgency=low * Corrected source directory name so dpkg-source doesn't barf * Corrected maintainer name -- Michael Alan Dorman Wed, 13 Nov 1996 13:19:23 -0500 alias (2.1-1) unstable; urgency=low * Initial packaging. -- Michael Alan Dorman Fri, 13 Sep 1996 10:26:20 -0400