diff --git a/0001-Patch-from-Roland-McGrath-roland-redhat.com-to-fix.patch b/0001-Patch-from-Roland-McGrath-roland-redhat.com-to-fix.patch new file mode 100644 index 0000000..00611aa --- /dev/null +++ b/0001-Patch-from-Roland-McGrath-roland-redhat.com-to-fix.patch @@ -0,0 +1,25 @@ +From 52dbb80070c4e2df83f6cfd835e5ceb43aa8382d Mon Sep 17 00:00:00 2001 +From: Michael E Brown +Date: Mon, 13 Aug 2007 01:51:04 -0500 +Subject: [PATCH] Patch from Roland McGrath to fix build for selinux shared library. + +--- + src/Makefile | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/src/Makefile b/src/Makefile +index c98de15..68085fb 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -21,7 +21,7 @@ endif + all: $(EXECUTABLE) $(LIBRARY) + + $(LIBRARY): selinux-mock.o +- $(LD) -shared -o $(LIBRARY) selinux-mock.o ++ $(CC) $(CFLAGS) -shared -o $(LIBRARY) selinux-mock.o + + selinux-mock.o: selinux-mock.c + $(CC) $(CFLAGS) -fPIC -c selinux-mock.c +-- +1.5.2.2 + diff --git a/mock.spec b/mock.spec index 90637fa..aaa861d 100644 --- a/mock.spec +++ b/mock.spec @@ -1,10 +1,11 @@ Summary: Builds packages inside chroots Name: mock Version: 0.7.5 -Release: 1%{?dist} +Release: 2%{?dist} License: GPL Group: Development/Tools Source: http://fedoraproject.org/projects/mock/releases/%{name}-%{version}.tar.gz +Patch: 0001-Patch-from-Roland-McGrath-roland-redhat.com-to-fix.patch URL: http://fedoraproject.org/wiki/Projects/Mock BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: python, yum >= 2.4 @@ -16,6 +17,7 @@ Mock takes a srpm and builds it in a chroot %prep %setup -q +%patch -p1 %build make CFLAGS="$RPM_OPT_FLAGS" @@ -68,6 +70,9 @@ fi %{_libdir}/libselinux-mock.so %changelog +* Mon Aug 13 2007 Clark Williams - 0.7.5-2 +- build fix from Roland McGrath to fix compile of selinux lib + * Wed Aug 8 2007 Clark Williams - 0.7.5-1 - orphanskill feature (BZ#221351)