office/calcurse: Add DST patch.

This commit is contained in:
Dave Woodfall 2019-08-01 20:28:50 +01:00 committed by Willy Sudiarto Raharjo
parent bba6cf177c
commit 68eae774a8
No known key found for this signature in database
GPG key ID: 887B8374D7333381
2 changed files with 20 additions and 1 deletions

View file

@ -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 \

View 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;
}