RPM Community Forums

Mailing List Message of <rpm-devel>

UUID transform for strings (Was: Arbitrary tag names in rpm headers)

From: Thomas Lotterer <thomas+rpm5@lotterer.net>
Date: Tue 27 Nov 2007 - 18:00:04 CET
Message-Id: <474C5B23.49C7.007A.0@lotterer.net>
>>> On Tuesday, 27. November 2007 at 3:27 pm, Jeff Johnson wrote:
> Anyone have a pointer to a "standard" UUID transform for strings?
> 
You need a version 3 (named based) UUID

Example from OSSP uuid(3) man page
# generate DCE 1.1 v3 UUID (name based)
$ uuid -v3 ns:URL http://www.ossp.org/ 
02d9e6d5-9467-382e-8f9b-9300a64ac3cd

The OSSP uuid [1] library was written by Ralf S. Engelschall. It is
highly portable and offers a lot of bindings to various programming
languages. Ralf is a Co-Author of RFC4122 [2] "A Universally Unique
IDentifier (UUID) URN Namespace". You can consider OSSP uuid being the
de-facto reference implementation of a UUID generator, encoder and
decoder. Please note previous RFC drafts attempting to publish ISO/IEC
11578:1996 had bugs in their embedded reference implementation, which
was one of the reasons for creating OSSP uuid.

[1] http://www.ossp.org/pkg/lib/uuid/
[2] http://www.ietf.org/rfc/rfc4122.txt

-- 
http://thomas.lotterer.net
Received on Tue Nov 27 18:05:25 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.