debian/0000755000000000000000000000000012252671672007200 5ustar debian/patches/0000755000000000000000000000000012252667546010634 5ustar debian/patches/series0000644000000000000000000000004312252666751012043 0ustar mention-bigint-under-caveats.patch debian/patches/mention-bigint-under-caveats.patch0000644000000000000000000000436112252667506017337 0ustar Description: Mention "use bigint;" in POD under CAVEATS Bug: https://rt.cpan.org/Public/Bug/Display.html?id=78653 Bug-Debian: http://bugs.debian.org/723021 Author: Axel Beckert Index: libstring-koremutake-perl/lib/String/Koremutake.pm =================================================================== --- libstring-koremutake-perl.orig/lib/String/Koremutake.pm 2013-08-29 16:55:22.000000000 +0200 +++ libstring-koremutake-perl/lib/String/Koremutake.pm 2013-12-13 21:31:55.000000000 +0100 @@ -138,6 +138,48 @@ my $i = $k->koremutake_to_integer('koremutake'); # 10610353957 +=head1 CAVEATS + +You need to "use bigint;" if you want String::Koremutake to work with +integers larger than what fits into a normal Perl integer before it +gets converted to a floating point number on your platform. + +=head2 Example + +Without "use bigint;" big integers get converted to fixed precision +floating point numbers: + + $ perl -MString::Koremutake -le ' + my $a = 65536**4; + my $k = String::Koremutake->new; + foreach my $b ($a, $a+1, $a+2, $a+3) { + print "$b: ".$k->integer_to_koremutake($b); + }' + 1.84467440737096e+19: bibababababababababa + 1.84467440737096e+19: bibababababababababa + 1.84467440737096e+19: bibababababababababa + 1.84467440737096e+19: bibababababababababa + +If you use that large integers, you should add "use bigint;" to your +program which solves that issue: + + $ perl -Mbigint -MString::Koremutake -le ' + my $a = 65536**4; + my $k = String::Koremutake->new; + foreach my $b ($a, $a+1, $a+2, $a+3) { + print "$b: ".$k->integer_to_koremutake($b); + }' + 18446744073709551616: bibababababababababa + 18446744073709551617: bibababababababababe + 18446744073709551618: bibababababababababi + 18446744073709551619: bibababababababababo + +It will likely save you from other issues with big integers, too. + +Note that "foreach my $b ($a .. $a+3)" doesn't work either as the ".." +operator can't be overloaded. See CAVEATS in "perldoc bigint" for +details. + =head1 BUGS AND LIMITATIONS No bugs have been reported. debian/compat0000644000000000000000000000000212252663552010374 0ustar 9 debian/watch0000644000000000000000000000017512207660332010223 0ustar version=3 https://metacpan.org/release/String-Koremutake/ .*/String-Koremutake-v?(\d[\d.]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ debian/changelog0000644000000000000000000000554012252670256011053 0ustar libstring-koremutake-perl (0.30-4) 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. * debian/watch: use dist-based URL. * Refresh debian/rules, no functional changes; except: don't create .packlist file any more. * debian/watch: use extended regexp for matching upstream releases. * Add libtest-pod-perl, libtest-pod-coverage-perl to Build-Depends-Indep, move some packages from Build-Depends to Build-Depends-Indep. * Set Standards-Version to 3.8.0 (no changes). * debian/control: change my email address. * debian/control: Changed: Switched Vcs-Browser field to ViewSVN (source stanza). [ Nathan Handler ] * debian/watch: Update to ignore development releases. [ Ansgar Burchardt ] * debian/control: Convert Vcs-* fields to Git. [ gregor herrmann ] * debian/control: update {versioned,alternative} (build) dependencies. [ Salvatore Bonaccorso ] * Change Vcs-Git to canonical URI (git://anonscm.debian.org) * Change search.cpan.org based URIs to metacpan.org based URIs [ Axel Beckert ] * Add myself to Uploaders * Patch POD to mention "use bigint;" under CAVEATS (Closes: #723021) * Switch to source format "3.0 (quilt)" * Update debian/copyright to mention the correct Perl license terms * Bump debhelper compatibility to 9 + Update versioned debhelper build-dependency accordingly + Fixes lintian warning package-uses-deprecated-debhelper-compat-version * Fix the following lintian warnings: + package-has-a-duplicate-build-relation + copyright-refers-to-symlink-license * Revamp debian/rules: + Fix lintian warning debian-rules-missing-recommended-target + Replace "dh_clean -k" with "dh_prep" + Use dh_auto_{configure,build,test,install,clean} + Drop now obsolete stamp file parameters from dh_clean + Move dh_installdocs parameter to debian/docs + Drop now obsolete dh_installchangelogs parameter + Remove no more nededed variables + Finally switch to minimal dh-style debian/rules file * Bump Standards-Version to 3.9.5 (no further changes) -- Axel Beckert Fri, 13 Dec 2013 21:40:13 +0100 libstring-koremutake-perl (0.30-3) unstable; urgency=low * New maintainer (closes: #357082). * Bumped Standards-Version and Debhelper Compatibility Level. * Changed watch file. -- gregor herrmann Fri, 17 Mar 2006 20:29:20 +0100 libstring-koremutake-perl (0.30-2) unstable; urgency=low * Build-Depend on libtest-exception-perl, but don't Depend on it. -- Chip Salzenberg Fri, 8 Apr 2005 17:14:15 -0400 libstring-koremutake-perl (0.30-1) unstable; urgency=low * Initial Release. -- Chip Salzenberg Thu, 7 Apr 2005 22:34:27 -0400 debian/copyright0000644000000000000000000000147712252664570011143 0ustar This is the debian package for the String-Koremutake module. It was created by Chip Salzenberg using dh-make-perl. The upstream author is: Leon Brocard acme@astray.com. Copyright (c) 2005, Leon Brocard "acme@astray.com". All rights reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. Perl is distributed under the terms of either: a) the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or b) the "Artistic License" which comes with Perl. On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-1' and the Artistic Licence in `/usr/share/common-licenses/Artistic'. debian/docs0000644000000000000000000000000712252665750010050 0ustar README debian/control0000644000000000000000000000316012252670137010576 0ustar Source: libstring-koremutake-perl Maintainer: Debian Perl Group Uploaders: gregor herrmann , Axel Beckert Section: perl Priority: optional Build-Depends: debhelper (>= 9~), perl Build-Depends-Indep: liberror-perl, libtest-exception-perl, libtest-pod-perl, libtest-pod-coverage-perl Standards-Version: 3.9.5 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libstring-koremutake-perl.git Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libstring-koremutake-perl.git Homepage: https://metacpan.org/release/String-Koremutake/ Package: libstring-koremutake-perl Architecture: all Depends: ${perl:Depends}, ${misc:Depends}, liberror-perl Description: Convert to/from Koremutake Memorable Random Strings The String::Koremutake module converts to and from Koremutake Memorable Random Strings. . The term "Memorable Random String" was thought up by Sean B. Palmer as a name for those strings like dopynl, glargen, glonknic, spoopwiddle, and kebble etc. that don't have any conventional sense, but can be used as random identifiers, especially in URIs to keep them persistent. See http://infomesh.net/2001/07/MeRS/ . Koremutake is a MeRS algorithm which is used by Shorl (http://shorl.com/koremutake.php). As they explain: "It is, in plain language, a way to express any large number as a sequence of syllables. The general idea is that word-sounding pieces of information are a lot easier to remember than a sequence of digits." debian/source/0000755000000000000000000000000012252663455010500 5ustar debian/source/format0000644000000000000000000000001412252663455011706 0ustar 3.0 (quilt) debian/rules0000755000000000000000000000013612252671672010260 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@