patches/ossp-uuid-01-debian-0001.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 3443 a4ebbb4c00c7
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3443
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     1
From: Piotr Roszatycki <[email protected]>
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     2
Date: Wed, 27 Jan 2010 16:53:11 +0100
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     3
Subject: [PATCH] Change library name
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     4
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     5
The soname was changed to ossp-uuid to prevend the name clash with e2fsprogs's
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     6
uuid library.
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     7
---
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     8
 Makefile.in      |    6 +++---
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     9
 perl/Makefile.PL |   12 ++++++------
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    10
 php/config.m4    |    2 +-
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    11
 uuid-config.in   |    2 +-
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    12
 uuid.pc.in       |    4 ++--
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    13
 5 files changed, 13 insertions(+), 13 deletions(-)
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    14
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    15
diff --git a/Makefile.in b/Makefile.in
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    16
index d28f4be..c2ba99d 100644
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    17
--- a/Makefile.in
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    18
+++ b/Makefile.in
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    19
@@ -62,13 +62,13 @@ PERL        = @PERL@
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    20
 PHP         = @PHP@
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    21
 PG_CONFIG   = @PG_CONFIG@
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    22
 
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    23
-LIB_NAME    = libuuid.la
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    24
+LIB_NAME    = libossp-uuid.la
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    25
 LIB_OBJS    = uuid.lo uuid_md5.lo uuid_sha1.lo uuid_prng.lo uuid_mac.lo uuid_time.lo uuid_ui64.lo uuid_ui128.lo uuid_str.lo
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    26
 
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    27
-DCE_NAME    = libuuid_dce.la
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    28
+DCE_NAME    = libossp-uuid_dce.la
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    29
 DCE_OBJS    = uuid_dce.lo $(LIB_OBJS)
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    30
 
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    31
-CXX_NAME    = libuuid++.la
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    32
+CXX_NAME    = libossp-uuid++.la
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    33
 CXX_OBJS    = uuid++.lo $(LIB_OBJS)
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    34
 
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    35
 PRG_NAME    = uuid
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    36
diff --git a/perl/Makefile.PL b/perl/Makefile.PL
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    37
index 92f4494..9c6fee6 100644
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    38
--- a/perl/Makefile.PL
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    39
+++ b/perl/Makefile.PL
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    40
@@ -33,9 +33,9 @@ use Config;
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    41
 use ExtUtils::MakeMaker;
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    42
 
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    43
 #   determine source directory
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    44
-my ($srcdir) = map { my $d = $_; $d =~ s/\/libuuid\.la$//; $d }
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    45
-               grep { -f $_ } ("../libuuid.la", glob("../*/libuuid.la"))
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    46
-    or die "no source directory found (where libuuid.la is located)";
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    47
+my ($srcdir) = map { my $d = $_; $d =~ s/\/libossp-uuid\.la$//; $d }
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    48
+               grep { -f $_ } ("../libossp-uuid.la", glob("../*/libossp-uuid.la"))
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    49
+    or die "no source directory found (where libossp-uuid.la is located)";
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    50
 
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    51
 #   determine extra build options
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    52
 my $compat = 0;
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    53
@@ -47,15 +47,15 @@ WriteMakefile(
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    54
     VERSION_FROM      => 'uuid.pm',
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    55
     ABSTRACT_FROM     => 'uuid.pod',
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    56
     PREREQ_PM         => {},
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    57
-    LIBS              => [ "-L$srcdir/.libs -L$srcdir -luuid" ],
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    58
+    LIBS              => [ "-L$srcdir/.libs -L$srcdir -lossp-uuid" ],
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    59
     DEFINE            => '',
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    60
     INC               => "-I. -I$srcdir",
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    61
     PM                => { 'uuid.pm'   => '$(INST_LIBDIR)/uuid.pm',
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    62
                            'uuid.pod'  => '$(INST_LIBDIR)/uuid.pod',
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    63
                            ($compat ? ('uuid_compat.pm'  => '$(INST_LIBDIR)/../Data/UUID.pm')  : ()),
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    64
                            ($compat ? ('uuid_compat.pod' => '$(INST_LIBDIR)/../Data/UUID.pod') : ()), },
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    65
-    MAN3PODS          => { 'uuid.pod' => '$(INST_MAN3DIR)/OSSP::uuid.3',
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    66
-                           ($compat ? ('uuid_compat.pod' => '$(INST_MAN3DIR)/Data::UUID.3') : ()), },
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    67
+    MAN3PODS          => { 'uuid.pod' => '$(INST_MAN3DIR)/OSSP::uuid.3pm',
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    68
+                           ($compat ? ('uuid_compat.pod' => '$(INST_MAN3DIR)/Data::UUID.3pm') : ()), },
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    69
     TYPEMAPS          => [ 'uuid.tm' ],
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    70
     test              => { TESTS => 'uuid.ts' . ($compat ? ' uuid_compat.ts' : '') },
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    71
     NO_META           => 1,
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    72
diff --git a/php/config.m4 b/php/config.m4
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    73
index 5091b96..969b457 100644
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    74
--- a/php/config.m4
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    75
+++ b/php/config.m4
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    76
@@ -34,7 +34,7 @@ if test "$PHP_UUID" != "no"; then
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    77
     PHP_NEW_EXTENSION(uuid, uuid.c, $ext_shared)
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    78
     AC_DEFINE(HAVE_UUID, 1, [Have OSSP uuid library])
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    79
     PHP_ADD_LIBPATH([..], )
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    80
-    PHP_ADD_LIBRARY([uuid],, UUID_SHARED_LIBADD)
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    81
+    PHP_ADD_LIBRARY([ossp-uuid],, UUID_SHARED_LIBADD)
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    82
     PHP_ADD_INCLUDE([..])
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    83
     PHP_SUBST(UUID_SHARED_LIBADD)
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    84
 
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    85
diff --git a/uuid-config.in b/uuid-config.in
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    86
index 8d2a063..5b58812 100644
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    87
--- a/uuid-config.in
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    88
+++ b/uuid-config.in
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    89
@@ -121,7 +121,7 @@ do
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    90
             output_extra="$output_extra $uuid_ldflags"
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    91
             ;;
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    92
         --libs)
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    93
-            output="$output -luuid"
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    94
+            output="$output -lossp-uuid"
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    95
             output_extra="$output_extra $uuid_libs"
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    96
             ;;
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    97
         * )
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    98
diff --git a/uuid.pc.in b/uuid.pc.in
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    99
index c76ad1e..de00c2f 100644
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   100
--- a/uuid.pc.in
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   101
+++ b/uuid.pc.in
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   102
@@ -36,7 +36,7 @@ Name: OSSP uuid
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   103
 Description: Universally Unique Identifier (UUID) Library
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   104
 Version: @UUID_VERSION_RAW@
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   105
 URL: http://www.ossp.org/pkg/lib/uuid/
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   106
-Cflags: -I${includedir}
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   107
-Libs: -L${libdir} -luuid
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   108
+Cflags: -I${includedir}/ossp
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   109
+Libs: -L${libdir} -lossp-uuid
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   110
 Libs.private: @LIBS@
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   111
 
a4ebbb4c00c7 2011-05-12 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   112
--