desktop/wmudmount: Fix build on -current.

Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
B. Watson 2018-02-19 16:12:36 -05:00 committed by David Spencer
parent efa619c20c
commit f7e779001c
2 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,12 @@
diff -Naur wmudmount-2.2/make-chars.pl wmudmount-2.2.patched/make-chars.pl
--- wmudmount-2.2/make-chars.pl 2014-02-03 00:41:59.000000000 -0500
+++ wmudmount-2.2.patched/make-chars.pl 2018-02-19 16:09:56.660499062 -0500
@@ -52,7 +52,7 @@
while(<IN>){
$head.=$_;
- if(/^static char \* ([a-zA-Z0-9_]+_xpm)\[\] = {/){
+ if(/^static char \* ([a-zA-Z0-9_]+_xpm)\[\] = \{/){
$name=$1;
last;
}

View file

@ -28,6 +28,8 @@
# Now maintained by B. Watson <yalhcru@gmail.com>
# 20180219 bkw: fix build on -current (no harm done on 14.2)
# 20160818 bkw:
# - take over maintenance
# - i486 => i586
@ -85,6 +87,10 @@ 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 {} \;
# 20180219 bkw: perl 5.26 in -current requires curly braces to be escaped
# inside a regex, when they're being use to match a literal curly brace.
patch -p1 < $CWD/perlfix.diff
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \