Skip to content

Commit 972087a

Browse files
committedMar 21, 2025
libical: 3.0.18 -> 3.0.19 (#391868)
2 parents 4423aff + 4dae7a9 commit 972087a

File tree

2 files changed

+38
-12
lines changed

2 files changed

+38
-12
lines changed
 
+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
diff --git a/src/test/libical-glib/CMakeLists.txt b/src/test/libical-glib/CMakeLists.txt
2+
index 01a0894a1..d7d2af5bb 100644
3+
--- a/src/test/libical-glib/CMakeLists.txt
4+
+++ b/src/test/libical-glib/CMakeLists.txt
5+
@@ -36,19 +36,19 @@ list(
6+
7+
if(PYTHON3)
8+
set(GI_TYPELIB_PATH_STR "${PROJECT_BINARY_DIR}/src/libical-glib")
9+
- if(DEFINED GI_TYPELIB_PATH)
10+
- if($ENV{GI_TYPELIB_PATH})
11+
+ if(DEFINED ENV{GI_TYPELIB_PATH})
12+
+ if(NOT ENV{GI_TYPELIB_PATH} STREQUAL "")
13+
set(GI_TYPELIB_PATH_STR "${GI_TYPELIB_PATH_STR}:$ENV{GI_TYPELIB_PATH}")
14+
endif()
15+
endif()
16+
set(LIBRARY_PATH_STR "${LIBRARY_OUTPUT_PATH}")
17+
- if(DEFINED LD_LIBRARY_PATH)
18+
- if($ENV{LD_LIBRARY_PATH})
19+
+ if(DEFINED ENV{LD_LIBRARY_PATH})
20+
+ if(NOT ENV{LD_LIBRARY_PATH} STREQUAL "")
21+
set(LIBRARY_PATH_STR "${LIBRARY_PATH_STR}:$ENV{LD_LIBRARY_PATH}")
22+
endif()
23+
endif()
24+
- if(DEFINED DYLD_LIBRARY_PATH)
25+
- if($ENV{DYLD_LIBRARY_PATH})
26+
+ if(DEFINED ENV{DYLD_LIBRARY_PATH})
27+
+ if(NOT ENV{DYLD_LIBRARY_PATH} STREQUAL "")
28+
set(LIBRARY_PATH_STR "${LIBRARY_PATH_STR}:$ENV{DYLD_LIBRARY_PATH}")
29+
endif()
30+
endif()

‎pkgs/by-name/li/libical/package.nix

+8-12
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
stdenv.mkDerivation rec {
2424
pname = "libical";
25-
version = "3.0.18";
25+
version = "3.0.19";
2626

2727
outputs = [
2828
"out"
@@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
3333
owner = "libical";
3434
repo = "libical";
3535
rev = "v${version}";
36-
sha256 = "sha256-32FNnCybXO67Vtg1LM6miJUaK+r0mlfjxgLQg1LD8Es=";
36+
sha256 = "sha256-ZJXxi1LOZyEpgdcmoK0pe5IA3+l9WY0zLu6Ttzy1QSc=";
3737
};
3838

3939
strictDeps = true;
@@ -91,18 +91,14 @@ stdenv.mkDerivation rec {
9191
# Will appear in 3.1.0
9292
# https://github.com/libical/libical/issues/350
9393
./respect-env-tzdir.patch
94-
];
9594

96-
postPatch = ''
97-
# Fix typo in test env setup
98-
# https://github.com/libical/libical/commit/03c02ced21494413920744a400c638b0cb5d493f
99-
substituteInPlace src/test/libical-glib/CMakeLists.txt \
100-
--replace-fail "''${CMAKE_BINARY_DIR}/src/libical-glib;\$ENV{GI_TYPELIB_PATH}" "''${CMAKE_BINARY_DIR}/src/libical-glib:\$ENV{GI_TYPELIB_PATH}" \
101-
--replace-fail "''${LIBRARY_OUTPUT_PATH};\$ENV{LD_LIBRARY_PATH}" "''${LIBRARY_OUTPUT_PATH}:\$ENV{LD_LIBRARY_PATH}"
102-
'';
95+
# CMake setup fix for tests
96+
# Submitted upstream: https://github.com/libical/libical/pull/885
97+
# FIXME: remove when merged
98+
./fix-cmake.patch
99+
];
103100

104-
# Using install check so we do not have to manually set
105-
# LD_LIBRARY_PATH and GI_TYPELIB_PATH variables
101+
# Using install check so we do not have to manually set GI_TYPELIB_PATH
106102
# Musl does not support TZDIR.
107103
doInstallCheck = !stdenv.hostPlatform.isMusl;
108104
enableParallelChecking = false;

0 commit comments

Comments
 (0)
Failed to load comments.