Your message dated Mon, 08 Aug 2011 16:03:23 +0000
with message-id <[email protected]>
and subject line Bug#635607: fixed in ossp-uuid 1.6.2-1.1
has caused the Debian Bug report #635607,
regarding uuid_compat.pm from_string should support dash-less args
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
635607: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=635607
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libossp-uuid-perl
Version: 1.6.2-1+b1
Severity: normal
Tags: patch

Data::UUID supports passing UUID strings without hyphens to the from_string
function.

This is made use of in the test suite for Data::GUID:

{
  my $guid = Data::GUID->new;
  my $str  = $guid->as_string;
  $str =~ s/-//g;
  my $copy = Data::GUID->from_string($str);
  is($guid->as_string, $copy->as_string, "we can from_string a dash-less str");
}

(Data::GUID uses Data::UUID internally.)

Please find attached a patch to add support for this in libossp-uuid-perl.

Tim
diff --git a/perl/uuid_compat.pm b/perl/uuid_compat.pm
index fdc5712..78546cd 100644
--- a/perl/uuid_compat.pm
+++ b/perl/uuid_compat.pm
@@ -93,7 +93,9 @@ sub from_string {
     $uuid->import('str',
           $str =~ /^0x/
         ? join '-', unpack('x2 a8 a4 a4 a4 a12', $str)
-        : $str
+        : $str =~ /-/
+        ? $str
+        : join '-', unpack('A8 A4 A4 A4 A12', $str)
     );
     return $uuid->export('bin');
 }
diff --git a/perl/uuid_compat.ts b/perl/uuid_compat.ts
index 12507c6..74372f2 100644
--- a/perl/uuid_compat.ts
+++ b/perl/uuid_compat.ts
@@ -28,7 +28,7 @@
 ##  uuid_compat.ts: Data::UUID Backward Compatibility Perl API (Perl test 
suite part)
 ##
 
-use Test::More tests => 14;
+use Test::More tests => 16;
 
 BEGIN {
     use_ok('Data::UUID');
@@ -53,3 +53,5 @@ ok($uuid7 = NameSpace_URL);
 ok($uuid8 = $ug->from_string("6ba7b811-9dad-11d1-80b4-00c04fd430c8"));
 ok($ug->compare($uuid7, $uuid8) == 0);
 
+ok($uuid9 = $ug->from_string("6ba7b8119dad11d180b400c04fd430c8"));
+ok($ug->compare($uuid7, $uuid9) == 0);

--- End Message ---
--- Begin Message ---
Source: ossp-uuid
Source-Version: 1.6.2-1.1

We believe that the bug you reported is fixed in the latest version of
ossp-uuid, which is due to be installed in the Debian FTP archive:

libossp-uuid-dev_1.6.2-1.1_i386.deb
  to main/o/ossp-uuid/libossp-uuid-dev_1.6.2-1.1_i386.deb
libossp-uuid-perl_1.6.2-1.1_i386.deb
  to main/o/ossp-uuid/libossp-uuid-perl_1.6.2-1.1_i386.deb
libossp-uuid16_1.6.2-1.1_i386.deb
  to main/o/ossp-uuid/libossp-uuid16_1.6.2-1.1_i386.deb
ossp-uuid_1.6.2-1.1.debian.tar.gz
  to main/o/ossp-uuid/ossp-uuid_1.6.2-1.1.debian.tar.gz
ossp-uuid_1.6.2-1.1.dsc
  to main/o/ossp-uuid/ossp-uuid_1.6.2-1.1.dsc
php5-uuid_1.6.2-1.1_i386.deb
  to main/o/ossp-uuid/php5-uuid_1.6.2-1.1_i386.deb
uuid_1.6.2-1.1_i386.deb
  to main/o/ossp-uuid/uuid_1.6.2-1.1_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Tim Retout <[email protected]> (supplier of updated ossp-uuid package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Tue, 26 Jul 2011 12:09:04 +0100
Source: ossp-uuid
Binary: libossp-uuid16 libossp-uuid-dev uuid libossp-uuid-perl php5-uuid
Architecture: source i386
Version: 1.6.2-1.1
Distribution: unstable
Urgency: low
Maintainer: Marco Nenciarini <[email protected]>
Changed-By: Tim Retout <[email protected]>
Description: 
 libossp-uuid-dev - OSSP uuid ISO-C and C++ - headers and static libraries
 libossp-uuid-perl - perl OSSP::UUID - OSSP uuid Perl Binding
 libossp-uuid16 - OSSP uuid ISO-C and C++ - shared library
 php5-uuid  - OSSP uuid module for php5
 uuid       - the Universally Unique Identifier Command-Line Tool
Closes: 635607
Changes: 
 ossp-uuid (1.6.2-1.1) unstable; urgency=low
 .
   * Non-maintainer upload.
   * 0004-fix-data-uuid-from-string.patch: Support dash-less args to
     from_string in uuid_compat.pm. (Closes: #635607)
Checksums-Sha1: 
 ad5d11828fc1843015f2084032dc04b6dad54095 1299 ossp-uuid_1.6.2-1.1.dsc
 404fbf0001d1e09427a0932fb9de3f0f60cd7287 8298 ossp-uuid_1.6.2-1.1.debian.tar.gz
 6b69bf7781be0eb1a267e4a62790612331ddd086 59628 
libossp-uuid16_1.6.2-1.1_i386.deb
 4c085710b4c73b6ab3348ebc1f7161c0e2fd71a5 78222 
libossp-uuid-dev_1.6.2-1.1_i386.deb
 469cd94cd3760a28beb732b4dc13fe19e6248ef0 20702 uuid_1.6.2-1.1_i386.deb
 0c4d9a4d9e764d4e10a59c79fae67735a524e766 33346 
libossp-uuid-perl_1.6.2-1.1_i386.deb
 b0ef35f4f9547fd1a1c3b1afa4b10fee342e60ef 17948 php5-uuid_1.6.2-1.1_i386.deb
Checksums-Sha256: 
 914a5756df90f8ddb955af21936cd8d778a2b32813c25e64c6613eadb19f6a69 1299 
ossp-uuid_1.6.2-1.1.dsc
 a62fa58b53d1118a239f358d64ceaa79cfbdeee633bd213f45bb2563065409c4 8298 
ossp-uuid_1.6.2-1.1.debian.tar.gz
 8e64ddea29ef6c4c3a4157d79d9159f17d95cefe1e030870f9a180b1179a7686 59628 
libossp-uuid16_1.6.2-1.1_i386.deb
 310425920e243528f65434fab63cd0712b1babc4d3b7a99d6cff20fd61d2fe88 78222 
libossp-uuid-dev_1.6.2-1.1_i386.deb
 fd440c8d16ac87cf3ca5502d59fea4f6a1ef8b6924b75699871669d2e37a2236 20702 
uuid_1.6.2-1.1_i386.deb
 1d0df6dee48d9c0806b39bb9c4a78255be1481b80ca5a0be23e633b1cf2b75dc 33346 
libossp-uuid-perl_1.6.2-1.1_i386.deb
 b2bc1735467aa3111684b3aeac4ffe7100bbdbcae22de0ac6f584d6b2029204b 17948 
php5-uuid_1.6.2-1.1_i386.deb
Files: 
 9c399acd1334e7f931a17c7b9ff50f5f 1299 libs optional ossp-uuid_1.6.2-1.1.dsc
 e9c0e67e0fa23a71daf008ecce43319a 8298 libs optional 
ossp-uuid_1.6.2-1.1.debian.tar.gz
 213ef908ef53c09aa094d5077da363e8 59628 libs optional 
libossp-uuid16_1.6.2-1.1_i386.deb
 e70b8447b8af29b77dc3ab176e8152dd 78222 libdevel optional 
libossp-uuid-dev_1.6.2-1.1_i386.deb
 795dbf96d330685b371e9f140cf10eab 20702 utils optional uuid_1.6.2-1.1_i386.deb
 9d74f2795378d514a07d5b10e008ee98 33346 perl optional 
libossp-uuid-perl_1.6.2-1.1_i386.deb
 36817182bcd6e412735e6df82ee48926 17948 php optional 
php5-uuid_1.6.2-1.1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk4yzL0ACgkQOHNNd4eQFFJDpQCgo1pIDq1opkE0o3ZmhVETzPp9
QFMAoILOUeDVXDG2zpSfYjLMEmfA6lm1
=P3Oq
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to