summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVirgil Dupras <vdupras@gentoo.org>2018-10-25 20:28:09 -0400
committerVirgil Dupras <vdupras@gentoo.org>2018-10-25 20:29:20 -0400
commit41f212cc11c2cbe97edccd200c21a345dc88c6be (patch)
tree120fbaf87ca37faef804c8d95443b1f7524ef9b1 /dev-libs
parentprofiles/package.mask: Mask dev-db/pgadmin3 (diff)
downloadgentoo-41f212cc11c2cbe97edccd200c21a345dc88c6be.tar.gz
gentoo-41f212cc11c2cbe97edccd200c21a345dc88c6be.tar.bz2
gentoo-41f212cc11c2cbe97edccd200c21a345dc88c6be.zip
dev-libs/libwapcaplet: fix compilation error with gcc 8
Closes: https://bugs.gentoo.org/664288 Signed-off-by: Virgil Dupras <vdupras@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/libwapcaplet/files/libwapcaplet-0.4.1-makefile.patch12
-rw-r--r--dev-libs/libwapcaplet/libwapcaplet-0.4.1.ebuild5
2 files changed, 17 insertions, 0 deletions
diff --git a/dev-libs/libwapcaplet/files/libwapcaplet-0.4.1-makefile.patch b/dev-libs/libwapcaplet/files/libwapcaplet-0.4.1-makefile.patch
new file mode 100644
index 000000000000..6d84e24de433
--- /dev/null
+++ b/dev-libs/libwapcaplet/files/libwapcaplet-0.4.1-makefile.patch
@@ -0,0 +1,12 @@
+diff --git a/Makefile b/Makefile
+index a220258..0e0799e 100644
+--- a/Makefile
++++ b/Makefile
+@@ -24,7 +24,6 @@ WARNFLAGS := -Wall -W -Wundef -Wpointer-arith -Wcast-align \
+ -Wmissing-declarations -Wnested-externs
+ # BeOS/Haiku standard library headers issue warnings
+ ifneq ($(BUILD),i586-pc-haiku)
+- WARNFLAGS := $(WARNFLAGS) -Werror
+ endif
+
+ CFLAGS := -D_BSD_SOURCE -D_DEFAULT_SOURCE \
diff --git a/dev-libs/libwapcaplet/libwapcaplet-0.4.1.ebuild b/dev-libs/libwapcaplet/libwapcaplet-0.4.1.ebuild
index a291732ab001..4e1c13da9b4d 100644
--- a/dev-libs/libwapcaplet/libwapcaplet-0.4.1.ebuild
+++ b/dev-libs/libwapcaplet/libwapcaplet-0.4.1.ebuild
@@ -16,6 +16,11 @@ IUSE="test"
DEPEND="test? ( >=dev-libs/check-0.9.11[${MULTILIB_USEDEP}] )"
+PATCHES=(
+ # bug 664288
+ "${FILESDIR}/${PN}-0.4.1-makefile.patch"
+)
+
src_prepare() {
# working around broken netsurf eclass
default