2 files changed +38
-12
lines changed Original file line number Diff line number Diff line change
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()
Original file line number Diff line number Diff line change 22
22
23
23
stdenv . mkDerivation rec {
24
24
pname = "libical" ;
25
- version = "3.0.18 " ;
25
+ version = "3.0.19 " ;
26
26
27
27
outputs = [
28
28
"out"
@@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
33
33
owner = "libical" ;
34
34
repo = "libical" ;
35
35
rev = "v${ version } " ;
36
- sha256 = "sha256-32FNnCybXO67Vtg1LM6miJUaK+r0mlfjxgLQg1LD8Es =" ;
36
+ sha256 = "sha256-ZJXxi1LOZyEpgdcmoK0pe5IA3+l9WY0zLu6Ttzy1QSc =" ;
37
37
} ;
38
38
39
39
strictDeps = true ;
@@ -91,18 +91,14 @@ stdenv.mkDerivation rec {
91
91
# Will appear in 3.1.0
92
92
# https://github.com/libical/libical/issues/350
93
93
./respect-env-tzdir.patch
94
- ] ;
95
94
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
+ ] ;
103
100
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
106
102
# Musl does not support TZDIR.
107
103
doInstallCheck = ! stdenv . hostPlatform . isMusl ;
108
104
enableParallelChecking = false ;
0 commit comments