Blame SOURCES/uuid-1.6.1-ossp.patch

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