diff --git a/sessreg.changes b/sessreg.changes index b616877..f20159f 100644 --- a/sessreg.changes +++ b/sessreg.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Feb 23 10:52:56 UTC 2015 - sndirsch@suse.com + +- u_Pass-P-to-the-preprocessor-when-generating-filenames.patch + * Pass -P to the preprocessor when generating filenames for the + manpage. Fixes build with GCC 5. Patch by Richard Biener + + ------------------------------------------------------------------- Fri Jan 30 15:18:48 UTC 2015 - zaitor@opensuse.org diff --git a/sessreg.spec b/sessreg.spec index fbc6db8..86f5c0a 100644 --- a/sessreg.spec +++ b/sessreg.spec @@ -24,6 +24,9 @@ License: MIT Group: System/X11/Utilities Url: http://xorg.freedesktop.org/ Source0: http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2 +Patch0: u_Pass-P-to-the-preprocessor-when-generating-filenames.patch +BuildRequires: autoconf +BuildRequires: automake BuildRequires: pkg-config BuildRequires: pkgconfig(xorg-macros) >= 1.4 BuildRequires: pkgconfig(xproto) >= 7.0.25 @@ -38,8 +41,10 @@ other display managers such as gdm or kdm. %prep %setup -q +%patch0 -p1 %build +autoreconf -fi %configure make %{?_smp_mflags} diff --git a/u_Pass-P-to-the-preprocessor-when-generating-filenames.patch b/u_Pass-P-to-the-preprocessor-when-generating-filenames.patch new file mode 100644 index 0000000..8553dc2 --- /dev/null +++ b/u_Pass-P-to-the-preprocessor-when-generating-filenames.patch @@ -0,0 +1,27 @@ +From 86e163c72b65e634369dfc50e3951af3bd234d4d Mon Sep 17 00:00:00 2001 +From: Stefan Dirsch +Date: Mon, 23 Feb 2015 11:50:12 +0100 +Subject: [PATCH] Pass -P to the preprocessor when generating filenames for the + manpage. + +Fixes build with GCC 5. Patch by Richard Biener +--- + man/Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/man/Makefile.am b/man/Makefile.am +index 665ace5..2e5f146 100644 +--- a/man/Makefile.am ++++ b/man/Makefile.am +@@ -9,7 +9,7 @@ SUFFIXES = .$(APP_MAN_SUFFIX) .man + + AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) + filenames.sed: filenames.sed.c +- $(AM_V_GEN)$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ ++ $(AM_V_GEN)$(CPP) -P $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(srcdir)/filenames.sed.c | \ + $(SED) -n -e '/s|__/ p' -e '/^\/__/ p' > $@ + +-- +1.8.4.5 +