Blame SOURCES/uuid-1.6.1-ossp.patch

a7754c
diff -up uuid-1.6.1/uuid-config.in.BAD uuid-1.6.1/uuid-config.in
a7754c
--- uuid-1.6.1/uuid-config.in.BAD	2008-03-06 11:56:13.000000000 -0500
a7754c
+++ uuid-1.6.1/uuid-config.in	2008-03-06 11:56:25.000000000 -0500
a7754c
@@ -121,7 +121,7 @@ do
a7754c
             output_extra="$output_extra $uuid_ldflags"
a7754c
             ;;
a7754c
         --libs)
a7754c
-            output="$output -luuid"
a7754c
+            output="$output -lossp-uuid"
a7754c
             output_extra="$output_extra $uuid_libs"
a7754c
             ;;
a7754c
         * )
a7754c
diff -up uuid-1.6.1/Makefile.in.BAD uuid-1.6.1/Makefile.in
a7754c
--- uuid-1.6.1/Makefile.in.BAD	2008-03-06 11:10:13.000000000 -0500
a7754c
+++ uuid-1.6.1/Makefile.in	2008-03-06 11:11:39.000000000 -0500
a7754c
@@ -62,13 +62,13 @@ PERL        = @PERL@
a7754c
 PHP         = @PHP@
a7754c
 PG_CONFIG   = @PG_CONFIG@
a7754c
 
a7754c
-LIB_NAME    = libuuid.la
a7754c
+LIB_NAME    = libossp-uuid.la
a7754c
 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
a7754c
 
a7754c
-DCE_NAME    = libuuid_dce.la
a7754c
+DCE_NAME    = libossp-uuid_dce.la
a7754c
 DCE_OBJS    = uuid_dce.lo $(LIB_OBJS)
a7754c
 
a7754c
-CXX_NAME    = libuuid++.la
a7754c
+CXX_NAME    = libossp-uuid++.la
a7754c
 CXX_OBJS    = uuid++.lo $(LIB_OBJS)
a7754c
 
a7754c
 PRG_NAME    = uuid
a7754c
@@ -79,10 +79,10 @@ MAN_NAME    = uuid.3 uuid++.3 uuid.1
a7754c
 PERL_NAME   = $(S)/perl/blib/lib/OSSP/uuid.pm
a7754c
 PERL_OBJS   = $(S)/perl/uuid.pm
a7754c
 
a7754c
-PHP_NAME    = $(S)/php/modules/uuid.so
a7754c
+PHP_NAME    = $(S)/php/modules/ossp-uuid.so
a7754c
 PHP_OBJS    = $(S)/php/uuid.c
a7754c
 
a7754c
-PGSQL_NAME  = $(S)/pgsql/libuuid.so
a7754c
+PGSQL_NAME  = $(S)/pgsql/libossp-uuid.so
a7754c
 PGSQL_OBJS  = $(S)/pgsql/uuid.c
a7754c
 
a7754c
 TARGETS     = $(LIB_NAME) @DCE_NAME@ @CXX_NAME@ $(PRG_NAME) @PERL_NAME@ @PHP_NAME@ @PGSQL_NAME@
a7754c
@@ -231,7 +231,7 @@ install:
a7754c
 	$(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(mandir)/man1
a7754c
 	$(SHTOOL) install -c -m 755 uuid-config $(DESTDIR)$(bindir)/
a7754c
 	$(SHTOOL) install -c -m 644 $(S)/uuid-config.1 $(DESTDIR)$(mandir)/man1/
a7754c
-	$(SHTOOL) install -c -m 644 $(S)/uuid.pc $(DESTDIR)$(libdir)/pkgconfig/
a7754c
+	$(SHTOOL) install -c -m 644 $(S)/uuid.pc $(DESTDIR)$(libdir)/pkgconfig/ossp-uuid.pc
a7754c
 	$(SHTOOL) install -c -m 644 uuid.h $(DESTDIR)$(includedir)/
a7754c
 	-@if [ ".$(WITH_DCE)" = .yes ]; then \
a7754c
 	    echo "$(SHTOOL) install -c -m 644 $(S)/uuid_dce.h $(DESTDIR)$(includedir)/"; \
a7754c
@@ -241,7 +241,7 @@ install:
a7754c
 	    echo "$(SHTOOL) install -c -m 644 $(S)/uuid++.hh $(DESTDIR)$(includedir)/"; \
a7754c
 	    $(SHTOOL) install -c -m 644 $(S)/uuid++.hh $(DESTDIR)$(includedir)/; \
a7754c
 	fi
a7754c
-	$(SHTOOL) install -c -m 644 $(S)/uuid.3 $(DESTDIR)$(mandir)/man3/
a7754c
+	$(SHTOOL) install -c -m 644 $(S)/uuid.3 $(DESTDIR)$(mandir)/man3/ossp-uuid.3
a7754c
 	-@if [ ".$(WITH_CXX)" = .yes ]; then \
a7754c
 	    echo "$(SHTOOL) install -c -m 644 $(S)/uuid++.3 $(DESTDIR)$(mandir)/man3/"; \
a7754c
 	    $(SHTOOL) install -c -m 644 $(S)/uuid++.3 $(DESTDIR)$(mandir)/man3/; \
a7754c
@@ -276,7 +276,7 @@ uninstall:
a7754c
 	-@if [ ".$(WITH_CXX)" = .yes ]; then \
a7754c
 	    $(LIBTOOL) --mode=uninstall $(RM) $(DESTDIR)$(libdir)/$(CXX_NAME); \
a7754c
 	fi
a7754c
-	-$(RM) $(DESTDIR)$(mandir)/man3/uuid.3
a7754c
+	-$(RM) $(DESTDIR)$(mandir)/man3/ossp-uuid.3
a7754c
 	-@if [ ".$(WITH_CXX)" = .yes ]; then \
a7754c
 	    echo "$(RM) $(DESTDIR)$(mandir)/man3/uuid++.3"; \
a7754c
 	    $(RM) $(DESTDIR)$(mandir)/man3/uuid++.3; \
a7754c
@@ -290,7 +290,7 @@ uninstall:
a7754c
 	    echo "$(RM) $(DESTDIR)$(includedir)/uuid++.hh"; \
a7754c
 	    $(RM) $(DESTDIR)$(includedir)/uuid++.hh; \
a7754c
 	fi
a7754c
-	-$(RM) $(DESTDIR)$(libdir)/pkgconfig/uuid.pc
a7754c
+	-$(RM) $(DESTDIR)$(libdir)/pkgconfig/ossp-uuid.pc
a7754c
 	-$(RM) $(DESTDIR)$(mandir)/man1/uuid-config.1
a7754c
 	-$(RM) $(DESTDIR)$(bindir)/uuid-config
a7754c
 	-$(RMDIR) $(DESTDIR)$(mandir)/man1 >/dev/null 2>&1 || $(TRUE)
a7754c
diff -up uuid-1.6.1/pgsql/Makefile.BAD uuid-1.6.1/pgsql/Makefile
a7754c
--- uuid-1.6.1/pgsql/Makefile.BAD	2008-03-06 11:53:26.000000000 -0500
a7754c
+++ uuid-1.6.1/pgsql/Makefile	2008-03-06 11:54:14.000000000 -0500
a7754c
@@ -18,13 +18,13 @@ POSTGRES          := $(shell $(PG_CONFIG
a7754c
 top_builddir      := $(dir $(PGXS))../..
a7754c
 include           $(top_builddir)/src/Makefile.global
a7754c
     
a7754c
-NAME              = uuid
a7754c
+NAME              = ossp-uuid
a7754c
 OBJS              = uuid.o
a7754c
 SO_MAJOR_VERSION  = 1
a7754c
 SO_MINOR_VERSION  = 0
a7754c
 
a7754c
 override CPPFLAGS := -I.. $(CPPFLAGS)
a7754c
-SHLIB_LINK        := -L../.libs -luuid
a7754c
+SHLIB_LINK        := -L../.libs -lossp-uuid
a7754c
 SHLIB_LINK        += $(shell test $(shell uname -s) = FreeBSD && echo "-Wl,-Bsymbolic")
a7754c
 SHLIB_LINK        += $(shell test $(shell uname -s) = Darwin && echo "-bundle_loader $(POSTGRES)")
a7754c
 rpath             :=
a7754c
@@ -35,16 +35,16 @@ enable_shared     = yes
a7754c
 include           $(top_builddir)/src/Makefile.shlib
a7754c
 
a7754c
 uuid.sql: uuid.sql.in
a7754c
-	sed -e 's;MODULE_PATHNAME;$(DESTDIR)$(pkglibdir)/uuid$(DLSUFFIX);g' <uuid.sql.in >uuid.sql
a7754c
+	sed -e 's;MODULE_PATHNAME;$(DESTDIR)$(pkglibdir)/ossp-uuid$(DLSUFFIX);g' <uuid.sql.in >uuid.sql
a7754c
 
a7754c
 install: all
a7754c
 	$(mkinstalldirs) $(DESTDIR)$(pkglibdir)
a7754c
 	$(mkinstalldirs) $(DESTDIR)$(datadir)
a7754c
-	$(INSTALL_SHLIB) $(shlib) $(DESTDIR)$(pkglibdir)/uuid$(DLSUFFIX)
a7754c
+	$(INSTALL_SHLIB) $(shlib) $(DESTDIR)$(pkglibdir)/ossp-uuid$(DLSUFFIX)
a7754c
 	$(INSTALL_DATA) uuid.sql $(DESTDIR)$(datadir)/uuid.sql
a7754c
 
a7754c
 uninstall:
a7754c
-	-rm -f $(DESTDIR)$(pkglibdir)/uuid$(DLSUFFIX)
a7754c
+	-rm -f $(DESTDIR)$(pkglibdir)/ossp-uuid$(DLSUFFIX)
a7754c
 	-rm -f $(DESTDIR)$(datadir)/uuid.sql
a7754c
 
a7754c
 clean distclean: clean-lib
a7754c
diff -up uuid-1.6.1/uuid.pc.in.BAD uuid-1.6.1/uuid.pc.in
a7754c
--- uuid-1.6.1/uuid.pc.in.BAD	2008-03-06 11:57:29.000000000 -0500
a7754c
+++ uuid-1.6.1/uuid.pc.in	2008-03-06 11:57:36.000000000 -0500
a7754c
@@ -37,6 +37,6 @@ Description: Universally Unique Identifi
a7754c
 Version: @UUID_VERSION_RAW@
a7754c
 URL: http://www.ossp.org/pkg/lib/uuid/
a7754c
 Cflags: -I${includedir}
a7754c
-Libs: -L${libdir} -luuid
a7754c
+Libs: -L${libdir} -lossp-uuid
a7754c
 Libs.private: @LIBS@
a7754c
 
a7754c
diff -up uuid-1.6.1/perl/Makefile.PL.BAD uuid-1.6.1/perl/Makefile.PL
a7754c
--- uuid-1.6.1/perl/Makefile.PL.BAD	2008-03-06 11:12:05.000000000 -0500
a7754c
+++ uuid-1.6.1/perl/Makefile.PL	2008-03-06 11:49:25.000000000 -0500
a7754c
@@ -33,9 +33,9 @@ use Config;
a7754c
 use ExtUtils::MakeMaker;
a7754c
 
a7754c
 #   determine source directory
a7754c
-my ($srcdir) = map { my $d = $_; $d =~ s/\/libuuid\.la$//; $d }
a7754c
-               grep { -f $_ } ("../libuuid.la", glob("../*/libuuid.la"))
a7754c
-    or die "no source directory found (where libuuid.la is located)";
a7754c
+my ($srcdir) = map { my $d = $_; $d =~ s/\/libossp-uuid\.la$//; $d }
a7754c
+               grep { -f $_ } ("../libossp-uuid.la", glob("../*/libossp-uuid.la"))
a7754c
+    or die "no source directory found (where libossp-uuid.la is located)";
a7754c
 
a7754c
 #   determine extra build options
a7754c
 my $compat = 0;
a7754c
@@ -47,7 +47,7 @@ WriteMakefile(
a7754c
     VERSION_FROM      => 'uuid.pm',
a7754c
     ABSTRACT_FROM     => 'uuid.pod',
a7754c
     PREREQ_PM         => {},
a7754c
-    LIBS              => [ "-L$srcdir/.libs -L$srcdir -luuid" ],
a7754c
+    LIBS              => [ "-L$srcdir/.libs -L$srcdir -lossp-uuid" ],
a7754c
     DEFINE            => '',
a7754c
     INC               => "-I. -I$srcdir",
a7754c
     PM                => { 'uuid.pm'   => '$(INST_LIBDIR)/uuid.pm',
a7754c
diff -up uuid-1.6.1/Makefile.PL.BAD uuid-1.6.1/Makefile.PL
a7754c
--- uuid-1.6.1/Makefile.PL.BAD	2008-03-06 11:09:49.000000000 -0500
a7754c
+++ uuid-1.6.1/Makefile.PL	2008-03-06 11:10:01.000000000 -0500
a7754c
@@ -44,7 +44,7 @@ ARGS     = $ARGS
a7754c
 all pure_all:
a7754c
 	\@if [ ! -d build ]; then mkdir build; fi
a7754c
 	\@if [ ! -f build/Makefile ]; then (cd build && ../configure --disable-shared); fi
a7754c
-	\@if [ ! -f build/libuuid.la ]; then (cd build && \$(MAKE) \$(MFLAGS) libuuid.la); fi
a7754c
+	\@if [ ! -f build/libossp-uuid.la ]; then (cd build && \$(MAKE) \$(MFLAGS) libossp-uuid.la); fi
a7754c
 	\@if [ ! -f perl/Makefile ]; then (cd perl && \$(PERL) Makefile.PL \$(ARGS)); fi
a7754c
 	\@cd perl && \$(MAKE) \$(MFLAGS) \$\@
a7754c
 
a7754c
diff -up uuid-1.6.1/php/config.m4.BAD uuid-1.6.1/php/config.m4
a7754c
--- uuid-1.6.1/php/config.m4.BAD	2008-03-06 11:54:55.000000000 -0500
a7754c
+++ uuid-1.6.1/php/config.m4	2008-03-06 11:55:07.000000000 -0500
a7754c
@@ -34,7 +34,7 @@ if test "$PHP_UUID" != "no"; then
a7754c
     PHP_NEW_EXTENSION(uuid, uuid.c, $ext_shared)
a7754c
     AC_DEFINE(HAVE_UUID, 1, [Have OSSP uuid library])
a7754c
     PHP_ADD_LIBPATH([..], )
a7754c
-    PHP_ADD_LIBRARY([uuid],, UUID_SHARED_LIBADD)
a7754c
+    PHP_ADD_LIBRARY([ossp-uuid],, UUID_SHARED_LIBADD)
a7754c
     PHP_ADD_INCLUDE([..])
a7754c
     PHP_SUBST(UUID_SHARED_LIBADD)
a7754c
 
a7754c
diff -up uuid-1.6.1/php/Makefile.local.BAD uuid-1.6.1/php/Makefile.local
a7754c
--- uuid-1.6.1/php/Makefile.local.BAD	2008-03-06 11:54:39.000000000 -0500
a7754c
+++ uuid-1.6.1/php/Makefile.local	2008-03-06 11:54:49.000000000 -0500
a7754c
@@ -48,7 +48,7 @@ install: build
a7754c
 	@version=`$(PHP)-config --version | sed -e 's;^\([0-9]\).*$$;\1;'`; extdir="$(EXTDIR)"; \
a7754c
 	echo "installing PHP$$version API into $$extdir"; \
a7754c
 	./build/shtool mkdir -f -p -m 755 $(DESTDIR)$$extdir; \
a7754c
-	./build/shtool install -c -m 755 modules/uuid.so $(DESTDIR)$$extdir/uuid.so; \
a7754c
+	./build/shtool install -c -m 755 modules/uuid.so $(DESTDIR)$$extdir/ossp-uuid.so; \
a7754c
 	./build/shtool install -c -m 644 uuid.php$$version $(DESTDIR)$$extdir/uuid.php
a7754c
 
a7754c
 clean:
a7754c
diff -up uuid-1.6.1/php/uuid.ts.BAD uuid-1.6.1/php/uuid.ts
a7754c
--- uuid-1.6.1/php/uuid.ts.BAD	2008-03-06 11:55:38.000000000 -0500
a7754c
+++ uuid-1.6.1/php/uuid.ts	2008-03-06 11:56:03.000000000 -0500
a7754c
@@ -34,9 +34,9 @@
a7754c
 
a7754c
 $php_version = $argv[1];
a7754c
 
a7754c
-print "++ loading DSO uuid.so (low-level API)\n";
a7754c
+print "++ loading DSO ossp-uuid.so (low-level API)\n";
a7754c
 if (!extension_loaded('uuid')) {
a7754c
-    dl('modules/uuid.so');
a7754c
+    dl('modules/ossp-uuid.so');
a7754c
 }
a7754c
 
a7754c
 print "++ loading PHP uuid.php${php_version} (high-level API)\n";