diff --git a/format-security.patch b/format-security.patch new file mode 100644 index 0000000..994bebf --- /dev/null +++ b/format-security.patch @@ -0,0 +1,13 @@ +diff -ruN rtkit-0.11.orig/Makefile.am rtkit-0.11/Makefile.am +--- rtkit-0.11.orig/Makefile.am 2017-05-12 12:56:52.245623657 -0400 ++++ rtkit-0.11/Makefile.am 2017-05-12 13:24:27.206304970 -0400 +@@ -18,6 +18,8 @@ + AM_CFLAGS = $(WARNINGFLAGS) $(PTHREAD_CFLAGS) + AM_LDFLAGS = $(GCLDFLAGS) + ++CFLAGS += -Wno-error=format-security ++ + ACLOCAL_AMFLAGS = -I m4 + + policykitdir = $(datadir)/polkit-1/actions/ +Binary files rtkit-0.11.orig/.Makefile.am.swp and rtkit-0.11/.Makefile.am.swp differ diff --git a/rtkit.spec b/rtkit.spec index f9495e2..1e41cc3 100644 --- a/rtkit.spec +++ b/rtkit.spec @@ -2,7 +2,7 @@ Name: rtkit Version: 0.11 -Release: 14%{?dist} +Release: 15%{?dist} Summary: Realtime Policy and Watchdog Daemon Group: System Environment/Base # The daemon itself is GPLv3+, the reference implementation for the client BSD @@ -22,6 +22,9 @@ Patch1: rtkit-mq_getattr.patch Patch2: 0001-SECURITY-Pass-uid-of-caller-to-polkit.patch Patch3: rtkit-controlgroup.patch +# Temporarily disable -Werror=format-security since it breaks the build +Patch4: format-security.patch + %description RealtimeKit is a D-Bus system service that changes the scheduling policy of user processes/threads to SCHED_RR (i.e. realtime @@ -34,11 +37,12 @@ processes. %patch1 -p1 %patch2 -p1 %patch3 -p1 +%patch4 -p1 %build autoreconf -fvi %configure --with-systemdsystemunitdir=/usr/lib/systemd/system -make %{?_smp_mflags} +make V=1 %{?_smp_mflags} ./rtkit-daemon --introspect > org.freedesktop.RealtimeKit1.xml %install @@ -82,6 +86,11 @@ dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesk %{_mandir}/man8/* %changelog +* Fri May 12 2017 Stephen Gallagher - 0.11-15 +- Temporarily disable -Werror=format-security to unbreak the build +- Build with verbose command-line visible in the logs +- Resolves: rhbz#1424270 + * Sat Feb 11 2017 Fedora Release Engineering - 0.11-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild