From 477ffaedb9df9d863403e5efb359c21b6d07dc93 Mon Sep 17 00:00:00 2001 From: Chris Feist Date: Tue, 2 Aug 2011 12:53:03 -0500 Subject: [PATCH] Added uuid patch to fix build issue. --- sanlock.spec | 2 ++ uuid.patch | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 uuid.patch diff --git a/sanlock.spec b/sanlock.spec index 37bd4fd..8b035ef 100644 --- a/sanlock.spec +++ b/sanlock.spec @@ -7,6 +7,7 @@ Group: System Environment/Base License: GPLv2+ URL: https://fedorahosted.org/sanlock/ Source0: https://fedorahosted.org/releases/s/a/sanlock/%{name}-%{version}.tar.gz +Patch0: uuid.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) ExclusiveArch: i686 x86_64 BuildRequires: libblkid-devel libaio-devel python python-devel @@ -20,6 +21,7 @@ access to the shared disks. %prep %setup -q +%patch0 -p1 -b .uuid %build # upstream does not require configure diff --git a/uuid.patch b/uuid.patch new file mode 100644 index 0000000..0e4a6e8 --- /dev/null +++ b/uuid.patch @@ -0,0 +1,11 @@ +--- sanlock-1.6/src/Makefile.uuid 2011-08-02 12:51:51.559842071 -0500 ++++ sanlock-1.6/src/Makefile 2011-08-02 12:51:55.782943836 -0500 +@@ -61,7 +61,7 @@ CFLAGS += -D_GNU_SOURCE -g \ + -fasynchronous-unwind-tables \ + -fdiagnostics-show-option + +-CMD_LDFLAGS = -lpthread -lrt -laio -lblkid -lsanlock -L../wdmd -lwdmd ++CMD_LDFLAGS = -lpthread -lrt -laio -lblkid -lsanlock -L../wdmd -lwdmd -luuid + LIB_LDFLAGS = -lpthread -lrt -laio -lblkid -L../wdmd -lwdmd + +