summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-10-02 09:34:55 -0400
committerMike Frysinger <vapier@gentoo.org>2015-10-02 09:34:55 -0400
commit3574435ae3de31bb9409c406154aa03fbbb884f7 (patch)
tree99fb2c6ae904c28830d5ec21aa796129b0c1d783 /x11-apps
parentapp-shells/zsh: fix build w/gcc-5 #547950 (diff)
downloadgentoo-3574435ae3de31bb9409c406154aa03fbbb884f7.tar.gz
gentoo-3574435ae3de31bb9409c406154aa03fbbb884f7.tar.bz2
gentoo-3574435ae3de31bb9409c406154aa03fbbb884f7.zip
x11-apps/sessreg: fix build w/gcc-5 #546742
Diffstat (limited to 'x11-apps')
-rw-r--r--x11-apps/sessreg/files/sessreg-1.1.0-gcc-5.patch16
-rw-r--r--x11-apps/sessreg/sessreg-1.1.0.ebuild4
2 files changed, 20 insertions, 0 deletions
diff --git a/x11-apps/sessreg/files/sessreg-1.1.0-gcc-5.patch b/x11-apps/sessreg/files/sessreg-1.1.0-gcc-5.patch
new file mode 100644
index 000000000000..7ed7511d0965
--- /dev/null
+++ b/x11-apps/sessreg/files/sessreg-1.1.0-gcc-5.patch
@@ -0,0 +1,16 @@
+https://bugs.gentoo.org/546742
+https://bugs.freedesktop.org/show_bug.cgi?id=90615
+
+fix building w/gcc-5
+
+--- man/Makefile.in
++++ man/Makefile.in
+@@ -9,7 +9,7 @@
+
+ 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' > $@
+
diff --git a/x11-apps/sessreg/sessreg-1.1.0.ebuild b/x11-apps/sessreg/sessreg-1.1.0.ebuild
index ae366d07209c..8504af90d4d8 100644
--- a/x11-apps/sessreg/sessreg-1.1.0.ebuild
+++ b/x11-apps/sessreg/sessreg-1.1.0.ebuild
@@ -13,3 +13,7 @@ IUSE=""
RDEPEND=""
DEPEND="${RDEPEND}
x11-proto/xproto"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.1.0-gcc-5.patch #546742
+)