From 718384f3e0b01aad676a458483ab93523d6a7fa2 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 22 Aug 2013 16:51:05 -0400 Subject: [PATCH] Add patch to make this build again --- 0001-build-Link-against-lrt.patch | 26 ++++++++++++++++++++++++++ rtkit.spec | 9 ++++++++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 0001-build-Link-against-lrt.patch diff --git a/0001-build-Link-against-lrt.patch b/0001-build-Link-against-lrt.patch new file mode 100644 index 0000000..37a5204 --- /dev/null +++ b/0001-build-Link-against-lrt.patch @@ -0,0 +1,26 @@ +From 467f534c8dd3cc0b7ff29fec7f7741ab5e9302cd Mon Sep 17 00:00:00 2001 +From: Colin Walters +Date: Thu, 22 Aug 2013 16:44:39 -0400 +Subject: [PATCH] build: Link against -lrt + +dbus.pc used to force this, but no longer does. Since we use +mq_getattr(), use it explicitly. +--- + Makefile.am | 1 + + 1 files changed, 1 insertions(+), 0 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index febc355..07346d3 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -59,6 +59,7 @@ rtkit_daemon_SOURCES = \ + rtkit-daemon.c rtkit.h \ + sd-daemon.c sd-daemon.h + rtkit_daemon_LDADD = \ ++ -lrt \ + $(DBUS_LIBS) + rtkit_daemon_CFLAGS = \ + $(AM_CFLAGS) \ +-- +1.7.1 + diff --git a/rtkit.spec b/rtkit.spec index 0575e1a..a1be6db 100644 --- a/rtkit.spec +++ b/rtkit.spec @@ -1,6 +1,6 @@ Name: rtkit Version: 0.11 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Realtime Policy and Watchdog Daemon Group: System Environment/Base # The daemon itself is GPLv3+, the reference implementation for the client BSD @@ -14,7 +14,9 @@ Requires(postun): systemd BuildRequires: dbus-devel >= 1.2 BuildRequires: libcap-devel BuildRequires: polkit-devel +BuildRequires: autoconf automake libtool Source0: http://0pointer.de/public/%{name}-%{version}.tar.xz +Patch1: 0001-build-Link-against-lrt.patch %description RealtimeKit is a D-Bus system service that changes the @@ -25,8 +27,10 @@ processes. %prep %setup -q +%patch1 -p1 %build +autoreconf -fvi %configure --with-systemdsystemunitdir=/usr/lib/systemd/system make %{?_smp_mflags} ./rtkit-daemon --introspect > org.freedesktop.RealtimeKit1.xml @@ -73,6 +77,9 @@ dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesk %{_mandir}/man8/* %changelog +* Thu Aug 22 2013 Colin Walters - 0.11-6 +- Add patch to make this build again + * Sun Aug 04 2013 Fedora Release Engineering - 0.11-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild