SHA256
1
0
forked from pool/sessreg

- 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
    <rguenther@suse.com>

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/sessreg?expand=0&rev=9
This commit is contained in:
Stefan Dirsch 2015-02-23 11:19:01 +00:00 committed by Git OBS Bridge
parent fbe95e0fae
commit 966222dd83
3 changed files with 40 additions and 0 deletions

View File

@ -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
<rguenther@suse.com>
-------------------------------------------------------------------
Fri Jan 30 15:18:48 UTC 2015 - zaitor@opensuse.org

View File

@ -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}

View File

@ -0,0 +1,27 @@
From 86e163c72b65e634369dfc50e3951af3bd234d4d Mon Sep 17 00:00:00 2001
From: Stefan Dirsch <sndirsch@suse.de>
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 <rguenther@suse.com>
---
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