mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
office/calcurse: Add DST patch.
This commit is contained in:
parent
bba6cf177c
commit
68eae774a8
2 changed files with 20 additions and 1 deletions
|
@ -28,7 +28,7 @@
|
|||
|
||||
PRGNAM=calcurse
|
||||
VERSION=${VERSION:-4.5.0}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -73,6 +73,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 {} \;
|
||||
|
||||
# Fix a problem with DST
|
||||
# https://lists.calcurse.org/bugs/msg00281.html
|
||||
patch -p1 <$CWD/dst_change.patch
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
|
|
15
office/calcurse/dst_change.patch
Normal file
15
office/calcurse/dst_change.patch
Normal file
|
@ -0,0 +1,15 @@
|
|||
diff -Naur a/src/utils.c b/src/utils.c
|
||||
--- a/src/utils.c 2019-06-16 20:04:39.000000000 +0100
|
||||
+++ b/src/utils.c 2019-08-01 16:12:00.864953675 +0100
|
||||
@@ -526,9 +526,11 @@
|
||||
t.tm_mon += delta_month;
|
||||
t.tm_mday += delta_day;
|
||||
|
||||
+ t.tm_isdst = -1;
|
||||
if (mktime(&t) == -1) {
|
||||
return 1;
|
||||
} else {
|
||||
+ t.tm_isdst = -1;
|
||||
*date = t;
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue