aboutsummaryrefslogtreecommitdiff
path: root/network/dwb
diff options
context:
space:
mode:
authorDavid Spencer <idlemoor@slackbuilds.org>2016-03-01 16:56:23 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-03-02 19:12:13 +0700
commit367c3c84afb0a917d95309a0dba9cc7424f0208b (patch)
treebd809edbc58893b85c4264e5623b78815708e9e5 /network/dwb
parenta2ba3d3cd2f2e601e647a7beed93d786c40e11aa (diff)
network/dwb: Fixed build with gcc-5.3.0/glibc-2.23.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'network/dwb')
-rw-r--r--network/dwb/dwb.SlackBuild6
1 files changed, 6 insertions, 0 deletions
diff --git a/network/dwb/dwb.SlackBuild b/network/dwb/dwb.SlackBuild
index fc108f8da98cb..4050f7e4e4d53 100644
--- a/network/dwb/dwb.SlackBuild
+++ b/network/dwb/dwb.SlackBuild
@@ -72,6 +72,12 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# Fixup for glibc-2.23 and/or gcc-5.3.0
+# https://bitbucket.org/portix/dwb/pull-requests/26/fix-building-on-newer-gcc-where-isnan-type/diff
+sed -i \
+ -e 's/int id = JSValueToNumber/double id = JSValueToNumber/' \
+ src/scripts/cl_gobject.c
+
# fix the location of man pages
sed -i '/^MANDIR/s/DATAROOTDIR/PREFIX/' config.mk