RPM Community Forums

Mailing List Message of <rpm-devel>

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

From: Jeff Johnson <n3npq@mac.com>
Date: Tue 27 Nov 2007 - 18:28:32 CET
Message-Id: <34999447-66B5-4857-B12A-BBD809DDFD72@mac.com>

On Nov 27, 2007, at 12:00 PM, Thomas Lotterer wrote:

>>>> 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
>

Perfect, thanks! Nice.

rpm will need to undertake conversion between UUID and (existing)
uint32_t for, say, RPMTAG_INSTALLTID, using v2 or v4 time (muble, not
looked real hard yet) UUID's before an implementation can be attempted
in rpm.

73 de Jeff
Received on Tue Nov 27 18:29:16 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.