Skip to content

Commit 8510361

Browse files
authored
[orc] update to 1.7.6 (#26603)
* [orc] update to 1.7.6 * update version * Fix-linux error * update version
1 parent e126661 commit 8510361

7 files changed

+122
-96
lines changed

Diff for: ports/orc/0003-dependencies-from-vcpkg.patch

+89-59
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
diff --git a/c++/src/CMakeLists.txt b/c++/src/CMakeLists.txt
2-
index 3d4a162..6926bc3 100644
2+
index d4cd035..0701a7d 100644
33
--- a/c++/src/CMakeLists.txt
44
+++ b/c++/src/CMakeLists.txt
5-
@@ -230,12 +230,13 @@ endif(BUILD_LIBHDFSPP)
5+
@@ -239,12 +239,13 @@ endif(BUILD_LIBHDFSPP)
66
add_library (orc STATIC ${SOURCE_FILES})
77

88
target_link_libraries (orc
9-
- protobuf
10-
- zlib
11-
- snappy
12-
- lz4
13-
- zstd
9+
- orc::protobuf
10+
- orc::zlib
11+
- orc::snappy
12+
- orc::lz4
13+
- orc::zstd
1414
- ${LIBHDFSPP_LIBRARIES}
1515
+ PRIVATE
1616
+ protobuf::libprotobuf
@@ -23,10 +23,10 @@ index 3d4a162..6926bc3 100644
2323

2424
install(TARGETS orc DESTINATION lib)
2525
diff --git a/cmake_modules/ThirdpartyToolchain.cmake b/cmake_modules/ThirdpartyToolchain.cmake
26-
index 3a35325..56ffd74 100644
26+
index 6919847..ad52cf2 100644
2727
--- a/cmake_modules/ThirdpartyToolchain.cmake
2828
+++ b/cmake_modules/ThirdpartyToolchain.cmake
29-
@@ -59,8 +59,8 @@ endif ()
29+
@@ -66,8 +66,8 @@ endif ()
3030
# ----------------------------------------------------------------------
3131
# Snappy
3232

@@ -37,18 +37,23 @@ index 3a35325..56ffd74 100644
3737
set(SNAPPY_VENDORED FALSE)
3838
else ()
3939
set(SNAPPY_HOME "${THIRDPARTY_DIR}/snappy_ep-install")
40-
@@ -78,10 +78,6 @@ else ()
40+
@@ -90,15 +90,6 @@ else ()
4141
set(SNAPPY_VENDORED TRUE)
4242
endif ()
4343

44-
-include_directories (SYSTEM ${SNAPPY_INCLUDE_DIR})
45-
-add_library (snappy STATIC IMPORTED)
46-
-set_target_properties (snappy PROPERTIES IMPORTED_LOCATION ${SNAPPY_STATIC_LIB})
44+
-add_library (orc_snappy INTERFACE)
45+
-add_library (orc::snappy ALIAS orc_snappy)
46+
-if (ORC_PREFER_STATIC_SNAPPY AND ${SNAPPY_STATIC_LIB})
47+
- target_link_libraries(orc_snappy INTERFACE ${SNAPPY_STATIC_LIB})
48+
-else ()
49+
- target_link_libraries(orc_snappy INTERFACE ${SNAPPY_LIBRARY})
50+
-endif ()
51+
-target_include_directories (orc_snappy SYSTEM INTERFACE ${SNAPPY_INCLUDE_DIR})
4752
-
4853
if (SNAPPY_VENDORED)
49-
add_dependencies (snappy snappy_ep)
54+
add_dependencies (orc_snappy snappy_ep)
5055
if (INSTALL_VENDORED_LIBS)
51-
@@ -93,7 +89,7 @@ endif ()
56+
@@ -110,7 +101,7 @@ endif ()
5257
# ----------------------------------------------------------------------
5358
# ZLIB
5459

@@ -57,62 +62,86 @@ index 3a35325..56ffd74 100644
5762
find_package (ZLIB REQUIRED)
5863
set(ZLIB_VENDORED FALSE)
5964
else ()
60-
@@ -120,10 +116,6 @@ else ()
65+
@@ -142,15 +133,6 @@ else ()
6166
set(ZLIB_VENDORED TRUE)
6267
endif ()
6368

64-
-include_directories (SYSTEM ${ZLIB_INCLUDE_DIR})
65-
-add_library (zlib STATIC IMPORTED)
66-
-set_target_properties (zlib PROPERTIES IMPORTED_LOCATION ${ZLIB_STATIC_LIB})
69+
-add_library (orc_zlib INTERFACE)
70+
-add_library (orc::zlib ALIAS orc_zlib)
71+
-if (ORC_PREFER_STATIC_ZLIB AND ${ZLIB_STATIC_LIB})
72+
- target_link_libraries (orc_zlib INTERFACE ${ZLIB_STATIC_LIB})
73+
-else ()
74+
- target_link_libraries (orc_zlib INTERFACE ${ZLIB_LIBRARY})
75+
-endif ()
76+
-target_include_directories (orc_zlib SYSTEM INTERFACE ${ZLIB_INCLUDE_DIR})
6777
-
6878
if (ZLIB_VENDORED)
69-
add_dependencies (zlib zlib_ep)
79+
add_dependencies (orc_zlib zlib_ep)
7080
if (INSTALL_VENDORED_LIBS)
71-
@@ -135,8 +127,8 @@ endif ()
81+
@@ -162,8 +144,8 @@ endif ()
7282
# ----------------------------------------------------------------------
7383
# Zstd
7484

7585
-if (NOT "${ZSTD_HOME}" STREQUAL "")
7686
- find_package (ZSTD REQUIRED)
7787
+if (1)
78-
+ find_package (zstd CONFIG REQUIRED)
88+
+ find_package (ZSTD CONFIG REQUIRED)
7989
set(ZSTD_VENDORED FALSE)
8090
else ()
8191
set(ZSTD_HOME "${THIRDPARTY_DIR}/zstd_ep-install")
82-
@@ -169,10 +161,6 @@ else ()
92+
@@ -201,15 +183,6 @@ else ()
8393
set(ZSTD_VENDORED TRUE)
8494
endif ()
8595

86-
-include_directories (SYSTEM ${ZSTD_INCLUDE_DIR})
87-
-add_library (zstd STATIC IMPORTED)
88-
-set_target_properties (zstd PROPERTIES IMPORTED_LOCATION ${ZSTD_STATIC_LIB})
96+
-add_library (orc_zstd INTERFACE)
97+
-add_library (orc::zstd ALIAS orc_zstd)
98+
-if (ORC_PREFER_STATIC_ZSTD AND ${ZSTD_STATIC_LIB})
99+
- target_link_libraries (orc_zstd INTERFACE ${ZSTD_STATIC_LIB})
100+
-else ()
101+
- target_link_libraries (orc_zstd INTERFACE ${ZSTD_LIBRARY})
102+
-endif ()
103+
-target_include_directories (orc_zstd SYSTEM INTERFACE ${ZSTD_INCLUDE_DIR})
89104
-
90105
if (ZSTD_VENDORED)
91-
add_dependencies (zstd zstd_ep)
106+
add_dependencies (orc_zstd zstd_ep)
92107
if (INSTALL_VENDORED_LIBS)
93-
@@ -184,8 +172,8 @@ endif ()
108+
@@ -221,8 +194,8 @@ endif ()
94109
# ----------------------------------------------------------------------
95110
# LZ4
96111

97112
-if (NOT "${LZ4_HOME}" STREQUAL "")
98113
- find_package (LZ4 REQUIRED)
99114
+if (1)
100-
+ find_package (lz4 CONFIG REQUIRED)
115+
+ find_package (LZ4 CONFIG REQUIRED)
101116
set(LZ4_VENDORED FALSE)
102117
else ()
103118
set(LZ4_PREFIX "${THIRDPARTY_DIR}/lz4_ep-install")
104-
@@ -211,10 +199,6 @@ else ()
119+
@@ -253,15 +226,6 @@ else ()
105120
set(LZ4_VENDORED TRUE)
106121
endif ()
107122

108-
-include_directories (SYSTEM ${LZ4_INCLUDE_DIR})
109-
-add_library (lz4 STATIC IMPORTED)
110-
-set_target_properties (lz4 PROPERTIES IMPORTED_LOCATION ${LZ4_STATIC_LIB})
123+
-add_library (orc_lz4 INTERFACE)
124+
-add_library (orc::lz4 ALIAS orc_lz4)
125+
-if (ORC_PREFER_STATIC_LZ4 AND ${LZ4_STATIC_LIB})
126+
- target_link_libraries (orc_lz4 INTERFACE ${LZ4_STATIC_LIB})
127+
-else ()
128+
- target_link_libraries (orc_lz4 INTERFACE ${LZ4_LIBRARY})
129+
-endif ()
130+
-target_include_directories (orc_lz4 SYSTEM INTERFACE ${LZ4_INCLUDE_DIR})
111131
-
112132
if (LZ4_VENDORED)
113-
add_dependencies (lz4 lz4_ep)
133+
add_dependencies (orc_lz4 lz4_ep)
114134
if (INSTALL_VENDORED_LIBS)
115-
@@ -288,8 +272,8 @@ endif ()
135+
@@ -273,7 +237,7 @@ endif ()
136+
# ----------------------------------------------------------------------
137+
# IANA - Time Zone Database
138+
139+
-if (WIN32)
140+
+if (WIN32 AND TEST_VALGRIND_MEMCHECK)
141+
SET(CURRENT_TZDATA_FILE "")
142+
SET(CURRENT_TZDATA_SHA512 "")
143+
File(DOWNLOAD "https://ftp.osuosl.org/pub/cygwin/noarch/release/tzdata/sha512.sum" ${CMAKE_CURRENT_BINARY_DIR}/sha512.sum)
144+
@@ -372,8 +336,8 @@ endif ()
116145
# ----------------------------------------------------------------------
117146
# Protobuf
118147

@@ -123,40 +152,41 @@ index 3a35325..56ffd74 100644
123152
set(PROTOBUF_VENDORED FALSE)
124153
else ()
125154
set(PROTOBUF_PREFIX "${THIRDPARTY_DIR}/protobuf_ep-install")
126-
@@ -327,12 +311,6 @@ endif ()
127-
128-
include_directories (SYSTEM ${PROTOBUF_INCLUDE_DIR})
129-
130-
-add_library (protobuf STATIC IMPORTED)
131-
-set_target_properties (protobuf PROPERTIES IMPORTED_LOCATION ${PROTOBUF_STATIC_LIB})
132-
-
133-
-add_library (protoc STATIC IMPORTED)
134-
-set_target_properties (protoc PROPERTIES IMPORTED_LOCATION ${PROTOC_STATIC_LIB})
155+
@@ -421,19 +385,7 @@ add_library (orc::protobuf ALIAS orc_protobuf)
156+
add_library (orc_protoc INTERFACE)
157+
add_library (orc::protoc ALIAS orc_protoc)
158+
159+
-if (ORC_PREFER_STATIC_PROTOBUF AND ${PROTOBUF_STATIC_LIB})
160+
- target_link_libraries (orc_protobuf INTERFACE ${PROTOBUF_STATIC_LIB})
161+
-else ()
162+
- target_link_libraries (orc_protobuf INTERFACE ${PROTOBUF_LIBRARY})
163+
-endif()
164+
-target_include_directories (orc_protobuf SYSTEM INTERFACE ${PROTOBUF_INCLUDE_DIR})
135165
-
166+
-if (ORC_PREFER_STATIC_PROTOBUF AND ${PROTOC_STATIC_LIB})
167+
- target_link_libraries (orc_protoc INTERFACE ${PROTOC_STATIC_LIB})
168+
-else ()
169+
- target_link_libraries (orc_protoc INTERFACE ${PROTOC_LIBRARY})
170+
-endif()
171+
-target_include_directories (orc_protoc SYSTEM INTERFACE ${PROTOBUF_INCLUDE_DIR})
172+
+include_directories (SYSTEM ${PROTOBUF_INCLUDE_DIR})
173+
136174
if (PROTOBUF_VENDORED)
137-
add_dependencies (protoc protobuf_ep)
138-
add_dependencies (protobuf protobuf_ep)
175+
add_dependencies (orc_protoc protobuf_ep)
139176
diff --git a/tools/src/CMakeLists.txt b/tools/src/CMakeLists.txt
140-
index f5a53ca..ec22e7a 100644
177+
index d55581b..701fd7c 100644
141178
--- a/tools/src/CMakeLists.txt
142179
+++ b/tools/src/CMakeLists.txt
143-
@@ -51,7 +51,6 @@ add_executable (orc-metadata
144-
145-
target_link_libraries (orc-metadata
146-
orc
147-
- protobuf
148-
${CMAKE_THREAD_LIBS_INIT}
149-
)
150-
151-
@@ -92,7 +91,7 @@ target_link_libraries (csv-import
180+
@@ -95,11 +95,7 @@ target_link_libraries (csv-import
152181
)
153182

154183
install(TARGETS
155184
- orc-contents
156185
- orc-metadata
157186
- orc-statistics
187+
orc-scan
188+
orc-memory
189+
- timezone-dump
190+
csv-import
158191
- DESTINATION bin)
159-
+ orc-scan
160-
+ orc-memory
161-
+ csv-import
162192
+ DESTINATION tools/orc)

Diff for: ports/orc/0005-disable-tzdata.patch

-30
This file was deleted.

Diff for: ports/orc/fix-linux-error.patch

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
diff --git a/cmake_modules/ThirdpartyToolchain.cmake b/cmake_modules/ThirdpartyToolchain.cmake
2+
index ad52cf2..ed7ff28 100644
3+
--- a/cmake_modules/ThirdpartyToolchain.cmake
4+
+++ b/cmake_modules/ThirdpartyToolchain.cmake
5+
@@ -145,7 +145,7 @@ endif ()
6+
# Zstd
7+
8+
if (1)
9+
- find_package (ZSTD CONFIG REQUIRED)
10+
+ find_package (zstd CONFIG REQUIRED)
11+
set(ZSTD_VENDORED FALSE)
12+
else ()
13+
set(ZSTD_HOME "${THIRDPARTY_DIR}/zstd_ep-install")
14+
@@ -338,6 +338,7 @@ endif ()
15+
16+
if (1)
17+
find_package (Protobuf CONFIG REQUIRED)
18+
+ include_directories(${Protobuf_INCLUDE_DIRS})
19+
set(PROTOBUF_VENDORED FALSE)
20+
else ()
21+
set(PROTOBUF_PREFIX "${THIRDPARTY_DIR}/protobuf_ep-install")

Diff for: ports/orc/portfile.cmake

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
vcpkg_from_github(
22
OUT_SOURCE_PATH SOURCE_PATH
33
REPO apache/orc
4-
REF 23ecc03e87548f6d6783c2d8af2b46672c52214c # rel/release-1.6.4
5-
SHA512 907984c7e036ddaa90e7cbfabb9af4f6fd3520820b9a8732b304f2213030f7d67cef89ad87d50e028a51bff06f68ff359345ad6894850e299b2fca343d7c0c3e
4+
REF 7ff749a4234c3db58d272a8fc1c7cc1860245692 # rel/release-1.7.6
5+
SHA512 1e7f0366530b691d7ea7ce671aa1e1a655cde2feb0fb0c3639da36ef565aceaf6f05e49a39c3c0ab7417dc324dc2cbb6e8babbf21f899ccb4cf5f0e63217afbf
66
HEAD_REF master
77
PATCHES
88
0003-dependencies-from-vcpkg.patch
9-
0005-disable-tzdata.patch
9+
fix-linux-error.patch
1010
)
1111

1212
file(REMOVE "${SOURCE_PATH}/cmake_modules/FindGTest.cmake")

Diff for: ports/orc/vcpkg.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "orc",
3-
"version": "1.6.4",
4-
"port-version": 4,
3+
"version": "1.7.6",
54
"description": "The smallest, fastest columnar storage for Hadoop workloads.",
65
"homepage": "https://orc.apache.org/",
6+
"license": "Apache-2.0",
77
"dependencies": [
88
"gtest",
99
"lz4",

Diff for: versions/baseline.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -5397,8 +5397,8 @@
53975397
"port-version": 1
53985398
},
53995399
"orc": {
5400-
"baseline": "1.6.4",
5401-
"port-version": 4
5400+
"baseline": "1.7.6",
5401+
"port-version": 0
54025402
},
54035403
"orocos-kdl": {
54045404
"baseline": "1.4",

Diff for: versions/o-/orc.json

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"versions": [
3+
{
4+
"git-tree": "8db2855196eeddb1ac131df74e028367480613d5",
5+
"version": "1.7.6",
6+
"port-version": 0
7+
},
38
{
49
"git-tree": "8c8bc9de897f95a0499e5dc4a49545cda6e496b2",
510
"version": "1.6.4",

0 commit comments

Comments
 (0)