pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/time/libical
Module Name: pkgsrc
Committed By: nia
Date: Sat Nov 7 10:30:20 UTC 2020
Modified Files:
pkgsrc/time/libical: distinfo
pkgsrc/time/libical/patches: patch-src_libical_icalrecur.c
Added Files:
pkgsrc/time/libical/patches: patch-ConfigureChecks.cmake
patch-config.h.cmake
Log Message:
libical: use upstream patches to fix icu fallout.
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 pkgsrc/time/libical/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/time/libical/patches/patch-ConfigureChecks.cmake \
pkgsrc/time/libical/patches/patch-config.h.cmake
cvs rdiff -u -r1.1 -r1.2 \
pkgsrc/time/libical/patches/patch-src_libical_icalrecur.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/time/libical/distinfo
diff -u pkgsrc/time/libical/distinfo:1.14 pkgsrc/time/libical/distinfo:1.15
--- pkgsrc/time/libical/distinfo:1.14 Sat Nov 7 09:06:32 2020
+++ pkgsrc/time/libical/distinfo Sat Nov 7 10:30:20 2020
@@ -1,8 +1,10 @@
-$NetBSD: distinfo,v 1.14 2020/11/07 09:06:32 mef Exp $
+$NetBSD: distinfo,v 1.15 2020/11/07 10:30:20 nia Exp $
SHA1 (libical-3.0.8.tar.gz) = d2a9cecb9b8d825d5b6989e44b424235a27173a7
RMD160 (libical-3.0.8.tar.gz) = 1b5fa93675e74e6721107214202ab922fd5a164c
SHA512 (libical-3.0.8.tar.gz) = ce015e6d4c1c7cb4af7b45748ce8251c663f80f6a4357ddff6a97796642619abe882f4cadeca10cabeb1b25577869f436da15bca882e032eb3ff0475f6010d8b
Size (libical-3.0.8.tar.gz) = 881462 bytes
-SHA1 (patch-src_libical_icalrecur.c) = 1ae42a3cad1a662f37001b3de056bbeb30b9a9fa
+SHA1 (patch-ConfigureChecks.cmake) = fe6d75c6217a303aefb6aaaef1d6f1eca883bc75
+SHA1 (patch-config.h.cmake) = ae5ae3dd64a0fddf4929d925627412b04852975e
+SHA1 (patch-src_libical_icalrecur.c) = bca2a5ce3868522aacbe7f59a43283063b0c91b0
SHA1 (patch-src_libical_icaltz-util.c) = eb3b6d1d63faf138897968d4e2c4ee8da4ada15a
Index: pkgsrc/time/libical/patches/patch-src_libical_icalrecur.c
diff -u pkgsrc/time/libical/patches/patch-src_libical_icalrecur.c:1.1 pkgsrc/time/libical/patches/patch-src_libical_icalrecur.c:1.2
--- pkgsrc/time/libical/patches/patch-src_libical_icalrecur.c:1.1 Sat Nov 7 09:06:32 2020
+++ pkgsrc/time/libical/patches/patch-src_libical_icalrecur.c Sat Nov 7 10:30:20 2020
@@ -1,22 +1,39 @@
-$NetBSD: patch-src_libical_icalrecur.c,v 1.1 2020/11/07 09:06:32 mef Exp $
+$NetBSD: patch-src_libical_icalrecur.c,v 1.2 2020/11/07 10:30:20 nia Exp $
-Adhoc fix: FALSE is not defined
+[PATCH] Fix build with icu-68.1
-/tmp/time/libical/work/libical-3.0.8/src/libical/icalrecur.c:1021:59: error: 'FALSE' undeclared (first use in this function); did you mean 'FILE'?
- en = ucal_getKeywordValuesForLocale("calendar", NULL, FALSE, &status);
- ^~~~~
- FILE
-/tmp/time/libical/work/libical-3.0.8/src/libical/icalrecur.c:1021:59: note: each undeclared identifier is reported only once for each function it appears in
+https://github.com/libical/libical/commit/a3308a23912bba2db654a8c456165c31888cc897.patch
--- src/libical/icalrecur.c.orig 2020-03-07 14:42:42.000000000 +0000
+++ src/libical/icalrecur.c
-@@ -127,6 +127,9 @@
- end_of_data to 1x. This signals next_month to increment the month.
-
- ======================================================================*/
-+#ifndef FALSE
-+#define FALSE (0)
+@@ -145,6 +145,12 @@
+ #if defined(HAVE_LIBICU)
+ #include <unicode/ucal.h>
+ #include <unicode/ustring.h>
++#if defined(HAVE_STDBOOL_H)
++#include <stdbool.h>
++#else
++#define false 0
++#define true 1
+#endif
+ #define RSCALE_IS_SUPPORTED 1
+ #else
+ #define RSCALE_IS_SUPPORTED 0
+@@ -1018,7 +1024,7 @@ icalarray *icalrecurrencetype_rscale_sup
+
+ calendars = icalarray_new(sizeof(const char **), 20);
+
+- en = ucal_getKeywordValuesForLocale("calendar", NULL, FALSE, &status);
++ en = ucal_getKeywordValuesForLocale("calendar", NULL, false, &status);
+ while ((cal = uenum_next(en, NULL, &status))) {
+ cal = icalmemory_tmp_copy(cal);
+ icalarray_append(calendars, &cal);
+@@ -1411,7 +1417,7 @@ static int initialize_rscale(icalrecur_i
+ }
- #ifdef HAVE_CONFIG_H
- #include <config.h>
+ /* Check if specified calendar is supported */
+- en = ucal_getKeywordValuesForLocale("calendar", NULL, FALSE, &status);
++ en = ucal_getKeywordValuesForLocale("calendar", NULL, false, &status);
+ while ((cal = uenum_next(en, NULL, &status))) {
+ if (!strcmp(cal, rule.rscale)) {
+ is_hebrew = !strcmp(rule.rscale, "hebrew");
Added files:
Index: pkgsrc/time/libical/patches/patch-ConfigureChecks.cmake
diff -u /dev/null pkgsrc/time/libical/patches/patch-ConfigureChecks.cmake:1.1
--- /dev/null Sat Nov 7 10:30:20 2020
+++ pkgsrc/time/libical/patches/patch-ConfigureChecks.cmake Sat Nov 7 10:30:20 2020
@@ -0,0 +1,16 @@
+$NetBSD: patch-ConfigureChecks.cmake,v 1.1 2020/11/07 10:30:20 nia Exp $
+
+[PATCH] Fix build with icu-68.1
+
+https://github.com/libical/libical/commit/a3308a23912bba2db654a8c456165c31888cc897.patch
+
+--- ConfigureChecks.cmake.orig 2020-03-07 14:42:42.000000000 +0000
++++ ConfigureChecks.cmake
+@@ -10,6 +10,7 @@ check_include_files(sys/utsname.h HAVE_S
+ check_include_files(fcntl.h HAVE_FCNTL_H)
+ check_include_files(unistd.h HAVE_UNISTD_H)
+ check_include_files(wctype.h HAVE_WCTYPE_H)
++check_include_files(stdbool.h HAVE_STDBOOL_H)
+
+ include(CheckFunctionExists)
+ if(WIN32 AND MSVC)
Index: pkgsrc/time/libical/patches/patch-config.h.cmake
diff -u /dev/null pkgsrc/time/libical/patches/patch-config.h.cmake:1.1
--- /dev/null Sat Nov 7 10:30:20 2020
+++ pkgsrc/time/libical/patches/patch-config.h.cmake Sat Nov 7 10:30:20 2020
@@ -0,0 +1,18 @@
+$NetBSD: patch-config.h.cmake,v 1.1 2020/11/07 10:30:20 nia Exp $
+
+[PATCH] Fix build with icu-68.1
+
+https://github.com/libical/libical/commit/a3308a23912bba2db654a8c456165c31888cc897.patch
+
+--- config.h.cmake.orig 2020-03-07 14:42:42.000000000 +0000
++++ config.h.cmake
+@@ -39,6 +39,9 @@
+ /* Define to 1 if you have the <dirent.h> header file. */
+ #cmakedefine HAVE_DIRENT_H 1
+
++/* Define to 1 if you have the <stdbool.h> header file. */
++#cmakedefine HAVE_STDBOOL_H 1
++
+ /* Define if we have pthread. */
+ #cmakedefine HAVE_PTHREAD_ATTR_GET_NP 1
+ #cmakedefine HAVE_PTHREAD_GETATTR_NP 1
Home |
Main Index |
Thread Index |
Old Index