debian/0000755000000000000000000000000012231436305007165 5ustar debian/watch0000644000000000000000000000016511762664630010234 0ustar version=3 http://search.cpan.org/dist/Date-Calc-XS/ .*/Date-Calc-XS-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ debian/rules0000755000000000000000000000003611762664630010260 0ustar #!/usr/bin/make -f %: dh $@ debian/libdate-calc-xs-perl.docs0000644000000000000000000000001411762664630013742 0ustar CREDITS.txt debian/copyright0000644000000000000000000000315211762664630011135 0ustar http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Contact: Steffen Beyer Source: http://search.cpan.org/dist/Date-Calc-XS/ Upstream-Name: Date-Calc-XS Files: * Copyright: 1995-2012, Steffen Beyer License: Artistic or GPL-1+ Files: DateCalc.c DateCalc.h Toolbox.h Copyright: 1995-2012, Steffen Beyer License: Artistic or GPL-1+ or LGPL-2+ Files: debian/* Copyright: 2009, Jonathan Yu 2011-2012, Florian Schlichting 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'. License: LGPL-2+ This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . On Debian systems, the complete text of the GNU Library General Public License can be found in `/usr/share/common-licenses/LGPL-2'. debian/source/0000755000000000000000000000000011762664630010501 5ustar debian/source/format0000644000000000000000000000001411762664630011707 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000011762664630010630 5ustar debian/patches/SvPV.patch0000644000000000000000000000424211762664630012511 0ustar From: Ansgar Burchardt Date: Thu, 26 Aug 2010 17:08:56 +0900 Origin: vendor Bug-Debian: http://bugs.debian.org/558272 Bug: https://rt.cpan.org/Ticket/Display.html?id=60233 Subject: Use SvPV to strigify the SV in case it is not already a string --- libdate-calc-perl.orig/XS.xs +++ libdate-calc-perl/XS.xs @@ -51,9 +51,7 @@ #define DATECALC_STRING(ref,var,len) \ - ( ref && !(SvROK(ref)) && SvPOK(ref) && \ - (var = (charptr)SvPV(ref,PL_na)) && \ - ((len = (N_int)SvCUR(ref)) | 1) ) + ( ref && (var = (charptr)SvPV(ref,len)) ) #define DATECALC_SCALAR(ref,typ,var) \ ( ref && !(SvROK(ref)) && ((var = (typ)SvIV(ref)) | 1) ) @@ -1268,7 +1266,7 @@ PPCODE: { charptr string; - N_int length; + STRLEN length; Z_int lang; if ((items == 1) or (items == 2)) @@ -1295,7 +1293,7 @@ PPCODE: { charptr string; - N_int length; + STRLEN length; Z_int lang; if ((items == 1) or (items == 2)) @@ -1333,7 +1331,7 @@ PPCODE: { charptr string; - N_int length; + STRLEN length; Z_int lang; Z_int year; Z_int month; @@ -1369,7 +1367,7 @@ PPCODE: { charptr string; - N_int length; + STRLEN length; Z_int lang; Z_int year; Z_int month; @@ -1780,8 +1778,8 @@ { charptr string; charptr buffer; - N_int length; - N_int index; + STRLEN length; + STRLEN index; if ( DATECALC_STRING(scalar,string,length) ) { @@ -1808,8 +1806,8 @@ { charptr string; charptr buffer; - N_int length; - N_int index; + STRLEN length; + STRLEN index; if ( DATECALC_STRING(scalar,string,length) ) { --- /dev/null +++ libdate-calc-perl/t/debian-558272.t @@ -0,0 +1,23 @@ +#! /usr/bin/perl + +use strict; +use warnings; + +use Test::More 0.88; +use Test::Exception; + +use_ok("Date::Calc"); + +my $string = "Oct"; +$string =~ /(.*)/; +lives_and { is Date::Calc::Decode_Month($1), 10 } 'Decode_Month($1) works'; + +{ + package + Foo; + use overload '""' => sub { "Nov" }; +} +my $foo = bless {}, 'Foo'; +lives_and { is Date::Calc::Decode_Month($foo), 11 } 'Decode_Month() works with overload'; + +done_testing(); debian/patches/series0000644000000000000000000000001311762664630012037 0ustar SvPV.patch debian/compat0000644000000000000000000000000211762664630010377 0ustar 9 debian/control0000644000000000000000000000231611762664630010606 0ustar Source: libdate-calc-xs-perl Section: perl Priority: optional Build-Depends: perl, debhelper (>= 9.20120312), libbit-vector-perl (>= 7.1), libcarp-clan-perl, libdate-calc-perl (>= 6.3), libtest-exception-perl Maintainer: Debian Perl Group Uploaders: Jonathan Yu , Florian Schlichting Standards-Version: 3.9.3 Homepage: http://search.cpan.org/dist/Date-Calc-XS/ Vcs-Git: git://git.debian.org/pkg-perl/packages/libdate-calc-xs-perl.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libdate-calc-xs-perl.git Package: libdate-calc-xs-perl Architecture: any Depends: ${perl:Depends}, ${shlibs:Depends}, ${misc:Depends}, libbit-vector-perl (>= 7.1), libcarp-clan-perl, libdate-calc-perl (>= 6.3) Breaks: libdate-calc-perl (<< 6.2-1) Replaces: libdate-calc-perl (<< 6.2-1) Description: Perl library for accessing dates Date::Calc::XS is a C/XS-based implementation of the Date::Calc Perl module. It interfaces with a C library to provide a wide variety of calculations based on the Gregorian calendar. This package is never used directly. See Date::Calc's documentation (libdate-calc-perl) for usage details. debian/changelog0000644000000000000000000000160412231436305011040 0ustar libdate-calc-xs-perl (6.3-1build1) trusty; urgency=low * Rebuild for Perl 5.18. -- Colin Watson Tue, 22 Oct 2013 09:52:21 +0100 libdate-calc-xs-perl (6.3-1) unstable; urgency=low [ Florian Schlichting ] * Imported Upstream version 6.3. * Bumped years of upstream and Debian copyright. * Bumped Standards-Version to 3.9.3 (use copyright-format 1.0). * Switched dh compatibility to level 9 to enable passing of hardening flags. [ gregor herrmann ] * Bump versioned (build) dependency on libdate-calc-perl to >= 6.3. -- Florian Schlichting Sun, 03 Jun 2012 13:01:43 +0200 libdate-calc-xs-perl (6.2-1) unstable; urgency=low [ Jonathan Yu, gregor herrmann, Ansgar Burchardt, Florian Schlichting ] * Initial Release (Closes: #551495) -- Florian Schlichting Thu, 15 Sep 2011 14:58:04 +0000