Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

orc 2.0.1 #11

Merged
merged 151 commits into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from 150 commits
Commits
Show all changes
151 commits
Select commit Hold shift + click to select a range
666ea78
Rebuild for libprotobuf314
regro-cf-autotick-bot Dec 4, 2020
8c60f9a
MNT: Re-rendered with conda-build 3.20.5, conda-smithy 3.8.5, and con…
regro-cf-autotick-bot Dec 4, 2020
20de081
Merge pull request #26 from regro-cf-autotick-bot/rebuild-libprotobuf…
nehaljwani Dec 4, 2020
f1ddf6d
updated v1.6.6
regro-cf-autotick-bot Dec 11, 2020
35b37ae
Merge pull request #27 from regro-cf-autotick-bot/1.6.6_h81fa8e
xhochy Dec 11, 2020
a47a781
Rebuild for lz4-c193
regro-cf-autotick-bot Dec 31, 2020
f39da99
MNT: Re-rendered with conda-build 3.20.5, conda-smithy 3.8.6, and con…
regro-cf-autotick-bot Dec 31, 2020
778ec77
Merge pull request #28 from regro-cf-autotick-bot/rebuild-lz4-c193-0-…
xhochy Dec 31, 2020
4b9a6d6
updated v1.6.7
regro-cf-autotick-bot Jan 23, 2021
7ca43e4
MNT: Re-rendered with conda-build 3.21.4, conda-smithy 3.8.6, and con…
regro-cf-autotick-bot Jan 23, 2021
2fdf03e
Merge pull request #29 from regro-cf-autotick-bot/1.6.7_h8b69c7
nehaljwani Jan 23, 2021
4e23002
Rebuild for libprotobuf315
regro-cf-autotick-bot Feb 21, 2021
1dca7ea
MNT: Re-rendered with conda-build 3.21.4, conda-smithy 3.8.6, and con…
regro-cf-autotick-bot Feb 21, 2021
ddf0635
Merge pull request #30 from regro-cf-autotick-bot/rebuild-libprotobuf…
xhochy Feb 21, 2021
ae87f49
Cross-compile linux-ppc64le
xhochy Feb 21, 2021
3484e24
MNT: Re-rendered with conda-build 3.21.4, conda-smithy 3.8.6, and con…
xhochy Feb 21, 2021
2940831
Cross-compile linux-ppc64le
github-actions[bot] Feb 21, 2021
c021172
Rebuild for libprotobuf316
regro-cf-autotick-bot May 7, 2021
09dbeaa
MNT: Re-rendered with conda-build 3.21.4, conda-smithy 3.10.1, and co…
regro-cf-autotick-bot May 7, 2021
6776a9e
Merge pull request #32 from regro-cf-autotick-bot/rebuild-libprotobuf…
nehaljwani May 7, 2021
bb9bc86
Rebuild for zstd15
regro-cf-autotick-bot May 16, 2021
bdf38c6
MNT: Re-rendered with conda-build 3.21.4, conda-smithy 3.10.1, and co…
regro-cf-autotick-bot May 16, 2021
4e43f0a
Merge pull request #33 from regro-cf-autotick-bot/rebuild-zstd15-0-1_…
nehaljwani May 16, 2021
4af4e40
updated v1.6.8
regro-cf-autotick-bot May 23, 2021
ff04326
Merge pull request #34 from regro-cf-autotick-bot/1.6.8_h3ac01f
nehaljwani May 23, 2021
a63dab0
updated v1.6.9
regro-cf-autotick-bot Jul 3, 2021
094c833
MNT: Re-rendered with conda-build 3.21.4, conda-smithy 3.10.3, and co…
regro-cf-autotick-bot Jul 3, 2021
ec3ce58
Merge pull request #35 from regro-cf-autotick-bot/1.6.9_h82ba49
nehaljwani Jul 3, 2021
234eefb
updated v1.6.10
regro-cf-autotick-bot Aug 11, 2021
5d2f4a0
MNT: Re-rendered with conda-build 3.21.4, conda-smithy 3.11.0, and co…
regro-cf-autotick-bot Aug 11, 2021
823ec3e
Merge pull request #36 from regro-cf-autotick-bot/1.6.10_he857fd
nehaljwani Aug 11, 2021
55c4bc2
Rebuild for libprotobuf318
regro-cf-autotick-bot Sep 17, 2021
e41d3de
MNT: Re-rendered with conda-build 3.21.4, conda-smithy 3.12, and cond…
regro-cf-autotick-bot Sep 17, 2021
96acfa8
Merge pull request #38 from regro-cf-autotick-bot/rebuild-libprotobuf…
nehaljwani Sep 17, 2021
db177f5
Bump version to 1.6.11
nehaljwani Sep 18, 2021
9d441fd
Merge pull request #39 from nehaljwani/1.6.11
nehaljwani Sep 18, 2021
f24f704
Bump version to 1.7.0
nehaljwani Sep 18, 2021
a91cd95
Merge pull request #40 from nehaljwani/1.7.0
nehaljwani Sep 18, 2021
45d619b
updated v1.7.1
regro-cf-autotick-bot Nov 8, 2021
d0f185a
MNT: Re-rendered with conda-build 3.21.4, conda-smithy 3.14.3, and co…
regro-cf-autotick-bot Nov 8, 2021
c138688
Merge pull request #41 from regro-cf-autotick-bot/1.7.1_heb990f
nehaljwani Nov 8, 2021
e8a438b
Rebuild for libprotobuf319
regro-cf-autotick-bot Dec 9, 2021
d20afc9
MNT: Re-rendered with conda-build 3.21.7, conda-smithy 3.15.0, and co…
regro-cf-autotick-bot Dec 9, 2021
475125e
Rebuild for libprotobuf319
github-actions[bot] Dec 9, 2021
e7a188f
[ci skip] [skip ci] [cf admin skip] ***NO_CI*** admin migration Conda…
conda-forge-admin Dec 15, 2021
114b77a
[ci skip] [skip ci] [cf admin skip] ***NO_CI*** admin migration Conda…
conda-forge-admin Dec 17, 2021
ad7669d
updated v1.7.2
regro-cf-autotick-bot Dec 21, 2021
39700ef
MNT: Re-rendered with conda-build 3.21.7, conda-smithy 3.16.0, and co…
regro-cf-autotick-bot Dec 21, 2021
fe954e4
Merge pull request #43 from regro-cf-autotick-bot/1.7.2_h12270e
nehaljwani Dec 21, 2021
a77fa87
updated v1.7.3
regro-cf-autotick-bot Feb 10, 2022
d2b4efd
MNT: Re-rendered with conda-build 3.21.8, conda-smithy 3.16.2, and co…
regro-cf-autotick-bot Feb 10, 2022
df4591a
Merge pull request #44 from regro-cf-autotick-bot/1.7.3_hb66b8f
nehaljwani Feb 11, 2022
801168b
[ci skip] [skip ci] [cf admin skip] ***NO_CI*** turning off CI for ma…
conda-forge-admin Mar 13, 2022
4aabccc
[ci skip] [skip ci] [cf admin skip] ***NO_CI*** turning on CI for mas…
conda-forge-admin Mar 13, 2022
3d7512d
[ci skip] [skip ci] [cf admin skip] ***NO_CI*** admin migration Conda…
conda-forge-admin Mar 13, 2022
6071c6d
Rebuild for libprotobuf320
regro-cf-autotick-bot Apr 9, 2022
0ea0baf
MNT: Re-rendered with conda-build 3.21.8, conda-smithy 3.19.0, and co…
regro-cf-autotick-bot Apr 9, 2022
34f7e38
Merge pull request #45 from regro-cf-autotick-bot/rebuild-libprotobuf…
xhochy Apr 9, 2022
bf3a624
updated v1.7.4
regro-cf-autotick-bot Apr 16, 2022
eb9f94d
Merge pull request #46 from regro-cf-autotick-bot/1.7.4_h248d30
xhochy Apr 16, 2022
3ecfba2
Rebuild for lz4_c19
regro-cf-autotick-bot May 18, 2022
ea979c1
MNT: Re-rendered with conda-build 3.21.8, conda-smithy 3.19.0, and co…
regro-cf-autotick-bot May 18, 2022
ed9f412
Merge pull request #47 from regro-cf-autotick-bot/rebuild-lz4_c19-0-1…
xhochy May 18, 2022
624d6cc
updated v1.7.5
regro-cf-autotick-bot Jun 17, 2022
03ced48
MNT: Re-rendered with conda-build 3.21.9, conda-smithy 3.20.0, and co…
regro-cf-autotick-bot Jun 17, 2022
c50b8ee
Merge pull request #48 from regro-cf-autotick-bot/1.7.5_hbaafd0
nehaljwani Jun 17, 2022
2255448
updated v1.7.6
regro-cf-autotick-bot Aug 18, 2022
5046065
MNT: Re-rendered with conda-build 3.22.0, conda-smithy 3.21.1, and co…
regro-cf-autotick-bot Aug 18, 2022
96da2fd
Merge pull request #49 from regro-cf-autotick-bot/1.7.6_h8e2182
xhochy Aug 18, 2022
c4dbc08
Rebuild for libprotobuf321
regro-cf-autotick-bot Aug 27, 2022
fcea238
MNT: Re-rendered with conda-build 3.22.0, conda-smithy 3.21.1, and co…
regro-cf-autotick-bot Aug 27, 2022
8becc96
Merge pull request #50 from regro-cf-autotick-bot/rebuild-libprotobuf…
nehaljwani Aug 27, 2022
0d3bec1
updated v1.8.0
regro-cf-autotick-bot Sep 4, 2022
b9644c9
Merge pull request #51 from regro-cf-autotick-bot/1.8.0_h8e0b7c
nehaljwani Sep 4, 2022
464dbe6
[ci skip] [skip ci] [cf admin skip] ***NO_CI*** admin migration Conda…
conda-forge-curator[bot] Nov 2, 2022
eee73d5
[ci skip] [skip ci] [cf admin skip] ***NO_CI*** admin migration DotConda
conda-forge-curator[bot] Nov 17, 2022
69a4218
updated v1.8.1
regro-cf-autotick-bot Dec 3, 2022
75c4923
MNT: Re-rendered with conda-build 3.23.2, conda-smithy 3.22.0, and co…
regro-cf-autotick-bot Dec 3, 2022
c66772b
MNT: Re-rendered with conda-build 3.23.3, conda-smithy 3.22.1, and co…
Dec 7, 2022
3c86c65
Merge pull request #52 from regro-cf-autotick-bot/1.8.1_h091a3c
xhochy Dec 7, 2022
0ebc3c9
updated v1.8.2
regro-cf-autotick-bot Jan 14, 2023
e568a70
Merge pull request #53 from regro-cf-autotick-bot/1.8.2_h5625cf
nehaljwani Jan 14, 2023
9fc0226
Enable Windows Build
nehaljwani Jan 30, 2023
a3916ef
MNT: Re-rendered with conda-build 3.23.3, conda-smithy 3.22.1, and co…
nehaljwani Jan 30, 2023
8e795d6
Add support for Windows (#55)
github-actions[bot] Feb 4, 2023
3e58030
move patches to folder
h-vetinari Feb 5, 2023
5bd63e1
add CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS to ensure import library is created
h-vetinari Feb 5, 2023
e75b414
update tests for windows
h-vetinari Feb 5, 2023
5eb675d
bump build number
h-vetinari Feb 5, 2023
10b0b31
add dev_url
h-vetinari Feb 5, 2023
4f31f94
don't force lib destination
h-vetinari Feb 5, 2023
ecab0ab
Merge pull request #56 from h-vetinari/import
nehaljwani Feb 5, 2023
fb8e7bb
updated v1.8.3
regro-cf-autotick-bot Mar 16, 2023
a353588
MNT: Re-rendered with conda-build 3.23.3, conda-smithy 3.23.0, and co…
regro-cf-autotick-bot Mar 16, 2023
e701edc
Merge pull request #57 from regro-cf-autotick-bot/1.8.3_h8ac4fd
xhochy Mar 16, 2023
103718c
Rebuild for protobuf423
regro-cf-autotick-bot May 27, 2023
916616a
MNT: Re-rendered with conda-build 3.25.0, conda-smithy 3.23.1, and co…
regro-cf-autotick-bot May 27, 2023
119b83d
Backport https://github.com/apache/orc/commit/286992e1
nehaljwani May 29, 2023
1eab71f
Use -DPROTOBUF_USE_DLLS on macOS
nehaljwani Jun 4, 2023
abf274c
Check for protobuf config based module
nehaljwani Jun 4, 2023
ebb6c2d
Merge pull request #60 from nehaljwani/protobuf423
nehaljwani Jun 4, 2023
0d0cbe1
updated v1.8.4
regro-cf-autotick-bot Jun 14, 2023
7356c03
Merge pull request #61 from regro-cf-autotick-bot/1.8.4_hdae79d
nehaljwani Jun 14, 2023
6a4f756
updated v1.9.0
regro-cf-autotick-bot Jun 28, 2023
87a910c
Rebase patches for v1.9.0
nehaljwani Jun 29, 2023
82fc75a
orc v1.9.0 (#62)
github-actions[bot] Jun 29, 2023
7729c86
Rebuild for libprotobuf4233_libgrpc156
regro-cf-autotick-bot Jul 1, 2023
ba9dcd4
MNT: Re-rendered with conda-build 3.25.0, conda-smithy 3.23.1, and co…
regro-cf-autotick-bot Jul 1, 2023
0b88729
Merge pull request #63 from regro-cf-autotick-bot/rebuild-libprotobuf…
xhochy Jul 1, 2023
0d7fde2
Rebuild for libabseil20230802_libgrpc157_libprotobuf4234
regro-cf-autotick-bot Sep 10, 2023
e962c65
MNT: Re-rendered with conda-build 3.26.1, conda-smithy 3.25.1, and co…
regro-cf-autotick-bot Sep 10, 2023
5bd2672
Merge pull request #66 from regro-cf-autotick-bot/rebuild-libabseil20…
h-vetinari Sep 10, 2023
11a1f71
Rebuild for libgrpc158_libprotobuf4243
regro-cf-autotick-bot Oct 8, 2023
0db60be
MNT: Re-rendered with conda-build 3.27.0, conda-smithy 3.27.1, and co…
regro-cf-autotick-bot Oct 8, 2023
0105866
Merge pull request #67 from regro-cf-autotick-bot/rebuild-libgrpc158_…
h-vetinari Oct 8, 2023
414a0df
Rebuild for libgrpc159_libprotobuf4244
regro-cf-autotick-bot Nov 1, 2023
b49b83a
MNT: Re-rendered with conda-build 3.27.0, conda-smithy 3.27.1, and co…
regro-cf-autotick-bot Nov 1, 2023
15400ef
Merge pull request #68 from regro-cf-autotick-bot/rebuild-libgrpc159_…
h-vetinari Nov 2, 2023
8b5c0cd
updated v1.9.2
regro-cf-autotick-bot Nov 10, 2023
7b3dcd6
MNT: Re-rendered with conda-build 3.27.0, conda-smithy 3.28.0, and co…
regro-cf-autotick-bot Nov 10, 2023
c5875a1
Merge pull request #69 from regro-cf-autotick-bot/1.9.2_hbf4c92
nehaljwani Nov 19, 2023
0cdddf8
Rebuild for libprotobuf 4.25.1
regro-cf-autotick-bot Jan 22, 2024
3cb3fd8
MNT: Re-rendered with conda-build 3.28.4, conda-smithy 3.30.4, and co…
regro-cf-autotick-bot Jan 22, 2024
67e0f9a
Merge pull request #70 from regro-cf-autotick-bot/rebuild-libprotobuf…
xhochy Jan 22, 2024
db5b1a5
Rebuild for libabseil 20240116, libgrp 1.61, libprotobuf 4.25.2
regro-cf-autotick-bot Feb 22, 2024
60e9728
MNT: Re-rendered with conda-build 24.1.2, conda-smithy 3.30.4, and co…
regro-cf-autotick-bot Feb 22, 2024
9e4e5e2
Merge pull request #71 from regro-cf-autotick-bot/rebuild-libabseil20…
xhochy Feb 22, 2024
479c29b
Rebuild for libprotobuf 4.25.3
regro-cf-autotick-bot Mar 6, 2024
0adf82d
MNT: Re-rendered with conda-build 24.1.2, conda-smithy 3.31.1, and co…
regro-cf-autotick-bot Mar 6, 2024
71adb1b
Merge pull request #72 from regro-cf-autotick-bot/rebuild-libgrpc162_…
h-vetinari Mar 6, 2024
7182c34
updated v2.0.0
regro-cf-autotick-bot Mar 8, 2024
8a46186
rebase patches
xhochy Mar 11, 2024
ee5bfee
Set _LIBCPP_DISABLE_AVAILABILITY on osx
xhochy Mar 11, 2024
a5b4949
Merge pull request #73 from regro-cf-autotick-bot/2.0.0_h39af92
xhochy Mar 12, 2024
ae644b3
[ci skip] [skip ci] [cf admin skip] ***NO_CI*** admin migration Conda…
conda-forge-curator[bot] Mar 15, 2024
6f2a997
Rebuild for snappy120
regro-cf-autotick-bot Apr 8, 2024
db6ca98
MNT: Re-rendered with conda-build 24.3.0, conda-smithy 3.34.1, and co…
regro-cf-autotick-bot Apr 8, 2024
8586762
Merge pull request #74 from regro-cf-autotick-bot/rebuild-snappy120-0…
nehaljwani Apr 8, 2024
0cfab48
[ci skip] [skip ci] [cf admin skip] ***NO_CI*** admin migration Conda…
conda-forge-curator[bot] May 12, 2024
6913e03
updated v2.0.1
regro-cf-autotick-bot May 15, 2024
9d0d71c
MNT: Re-rendered with conda-build 24.5.0, conda-smithy 3.35.1, and co…
regro-cf-autotick-bot May 15, 2024
f6b9f11
Merge pull request #75 from regro-cf-autotick-bot/2.0.1_h68ffa5
h-vetinari May 15, 2024
abe8eeb
add runtime dependence on tzdata
h-vetinari May 27, 2024
60c5d03
Merge pull request #76 from h-vetinari/tzdb
xhochy May 27, 2024
5d215ac
update to 2.0.1
cbouss May 27, 2024
441ba22
s390x ld64 missing dso
cbouss May 27, 2024
0b3187d
vs2019 on windows
cbouss May 27, 2024
5df93ef
min osx 10.15
cbouss May 27, 2024
dcfc0c7
add libabseil for win, add run
cbouss May 27, 2024
17b21b6
cxx 17
cbouss May 28, 2024
bd0e747
address comments
cbouss May 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 0 additions & 44 deletions recipe/0004-find-libs-on-windows.patch

This file was deleted.

16 changes: 0 additions & 16 deletions recipe/0005-fix_cmake_zlib_linking.patch

This file was deleted.

9 changes: 5 additions & 4 deletions recipe/bld.bat
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,22 @@ set CXXFLAGS=-DPROTOBUF_USE_DLLS %CXXFLAGS%

cmake %CMAKE_ARGS% ^
-DCMAKE_BUILD_TYPE=Release ^
-DCMAKE_CXX_STANDARD=17 ^
-DCMAKE_POLICY_DEFAULT_CMP0074=NEW ^
-DCMAKE_PREFIX_PATH=%PREFIX% ^
-DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% ^
-DCMAKE_FIND_ROOT_PATH=%PREFIX% ^
-DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^
-DLZ4_HOME=%LIBRARY_PREFIX% ^
-DZLIB_HOME=%LIBRARY_PREFIX% ^
-DZSTD_HOME=%LIBRARY_PREFIX% ^
-DSNAPPY_HOME=%LIBRARY_PREFIX% ^
-DProtobuf_ROOT=%LIBRARY_PREFIX% ^
-DPROTOBUF_HOME=%LIBRARY_PREFIX% ^
-DPROTOBUF_EXECUTABLE=%BUILD_PREFIX%\Library\bin\protoc.exe ^
-DBUILD_SHARED_LIBS=ON ^
-DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=ON ^
-DBUILD_TOOLS=OFF ^
-DINSTALL_VENDORED_LIBS=OFF ^
-DORC_PREFER_STATIC_PROTOBUF=OFF ^
-DORC_PREFER_STATIC_SNAPPY=OFF ^
-DORC_PREFER_STATIC_LZ4=OFF ^
Expand All @@ -35,6 +39,3 @@ ninja -v
if errorlevel 1 exit /b 1
ninja install
if errorlevel 1 exit /b 1
md %LIBRARY_PREFIX%\bin
move %LIBRARY_PREFIX%\lib\orc.dll %LIBRARY_PREFIX%\bin
if errorlevel 1 exit /b 1
4 changes: 3 additions & 1 deletion recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ if [[ ${HOST} =~ .*darwin.* ]]; then
_CMAKE_EXTRA_CONFIG+=(-DCMAKE_AR=${AR})
_CMAKE_EXTRA_CONFIG+=(-DCMAKE_RANLIB=${RANLIB})
_CMAKE_EXTRA_CONFIG+=(-DCMAKE_LINKER=${LD})
CXXFLAGS="${CXXFLAGS} -DPROTOBUF_USE_DLLS -D_LIBCPP_DISABLE_AVAILABILITY"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-DPROTOBUF_USE_DLLS sounds like a windows flag, not a macos one

fi
if [[ ${HOST} =~ .*linux.* ]]; then
CXXFLAGS="${CXXFLAGS//-std=c++17/-std=c++11}"
# I hate you so much CMake.
LIBPTHREAD=$(find ${PREFIX} -name "libpthread.so")
_CMAKE_EXTRA_CONFIG+=(-DPTHREAD_LIBRARY=${LIBPTHREAD})

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

export LDFLAGS="${LDFLAGS} -Wl,-rpath,$PREFIX/lib" instead of CPPFLAGS? (the current implementation seems to be working however)

Expand All @@ -29,6 +29,7 @@ CPPFLAGS="${CPPFLAGS} -Wl,-rpath,$PREFIX/lib"
cmake ${CMAKE_ARGS} \
-DCMAKE_PREFIX_PATH=$PREFIX \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_STANDARD=17 \
-DBUILD_SHARED_LIBS=ON \
-DORC_PREFER_STATIC_PROTOBUF=OFF \
-DORC_PREFER_STATIC_SNAPPY=OFF \
Expand All @@ -47,6 +48,7 @@ cmake ${CMAKE_ARGS} \
-DSNAPPY_HOME=$PREFIX \
-DBUILD_LIBHDFSPP=NO \
-DBUILD_CPP_TESTS=OFF \
-DINSTALL_VENDORED_LIBS=OFF \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DCMAKE_C_COMPILER=$(type -p ${CC}) \
-DCMAKE_CXX_COMPILER=$(type -p ${CXX}) \
Expand Down
16 changes: 13 additions & 3 deletions recipe/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# This needs to be removed after the pinning of libprotobuf has been adjusted.
libprotobuf:
- 3.20
cxx_compiler: # [win]
- 'vs2019' # [win]
c_compiler: # [win]
- 'vs2019' # [win]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be removed as vs2019 is already a default compiler in a generic cbc.yaml on win64


# abseil (use through protobuf includes) now only support MacOS >=10.15, see
# https://github.com/abseil/abseil-cpp#support
MACOSX_SDK_VERSION: # [osx and x86_64]
- "10.15" # [osx and x86_64]
MACOSX_DEPLOYMENT_TARGET: # [osx and x86_64]
- "10.15" # [osx and x86_64]
CONDA_BUILD_SYSROOT: # [osx and x86_64]
- /opt/MacOSX10.15.sdk # [osx and x86_64]
60 changes: 40 additions & 20 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,51 +1,71 @@
{% set version = "1.7.4" %}
{% set version = "2.0.1" %}

package:
name: orc
version: {{ version }}

source:
url: https://archive.apache.org/dist/orc/orc-{{ version }}/orc-{{ version }}.tar.gz
sha256: 0a70c5e877b1ff268e768c94392574a084092f8aa7f97796c13de276103d8272
sha256: 1ffac0228aa83f04a1b1cf2788a3af5953e82587ae3a77c41900e99f2557132d
patches:
# ORC builds by default with -Werror but some dependencies omit warnings.
# This deactivates -Werror
- 0001-Deactivate-aggressive-failures-on-warnings.patch
- 0003-Don-t-force-orc-to-be-a-static-library-let-end-user-.patch
# The build system looks for lz4.lib and protobuf.lib, but our libs are
# called liblz4.lib and libprotobuf.lib.
- 0004-find-libs-on-windows.patch # [win]
- 0005-fix_cmake_zlib_linking.patch
- patches/0001-Deactivate-aggressive-failures-on-warnings.patch
- patches/0002-Don-t-force-orc-to-be-a-static-library-let-end-user-.patch
- patches/0003-CMake-Add-more-hints-for-libraries-on-Windows.patch
- patches/0004-don-t-force-lib-destination.patch
- patches/0005-Check-for-protobuf-config-based-module.patch

build:
number: 1
number: 0
run_exports:
- {{ pin_subpackage("orc", max_pin="x.x.x") }}
- {{ pin_subpackage("orc", max_pin="x.x.x") }}
missing_dso_whitelist: # [s390x]
- '$RPATH/ld64.so.1' # [s390x]

requirements:
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- m2-base # [win]
- m2-patch # [win]
- patch # [not win]
- ninja # [unix]
- ninja-base # [unix]
# `protoc` is also used for building
- libprotobuf
- libprotobuf 4.25.3
- cmake
host:
- zlib 1.2.13
- snappy 1.1.9
- libprotobuf
- zlib {{ zlib }}
- snappy 1.1.10
- libprotobuf 4.25.3
- libabseil 20240116.2 # [win] linked with orc.dll through libprotobuf dep.
- lz4-c 1.9.4
- zstd {{ zstd }}
run:
# through run exports
- zlib
- snappy
- libprotobuf
- libabseil # [win]
- lz4-c
- zstd
- __osx >={{ MACOSX_DEPLOYMENT_TARGET }} # [osx and x86_64]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this be done through macos_min_version?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All our feedstock use MACOSX_DEPLOYMENT_TARGET to set this constraint.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I see, it's a common pattern. out of interest, does macos_min_version do exactly the same thing do you know?

# orc >=2.0.1 will prefer $CONDA_PREFIX/share/zoneinfo for tzdb
- tzdata

test:
commands:
- test -f $PREFIX/lib/liborc${SHLIB_EXT} # [unix]
- test -f $PREFIX/include/orc/Common.hh # [unix]
- if not exist %PREFIX%\\Library\\bin\\orc.dll exit 1 # [win]
- if not exist %PREFIX%\\Library\\lib\\orc.lib exit 1 # [win]
# shared libraries
- test -f $PREFIX/lib/liborc${SHLIB_EXT} # [unix]
- if not exist %LIBRARY_BIN%\orc.dll exit 1 # [win]
# import library for the DLL
- if not exist %LIBRARY_LIB%\orc.lib exit 1 # [win]

# absence of static libraries
- test ! -f $PREFIX/lib/liborc.a # [not win]

# headers
- test -f $PREFIX/include/orc/Common.hh # [unix]
- if not exist %LIBRARY_INC%\orc\Common.hh exit 1 # [win]

about:
home: https://orc.apache.org/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
From 557f87232046e8e6135e553444a736ff341bef8e Mon Sep 17 00:00:00 2001
From 651672c8034c07c410aebf0e7667a6a77a31a8d7 Mon Sep 17 00:00:00 2001
From: "Korn, Uwe" <[email protected]>
Date: Tue, 19 Mar 2019 11:16:02 +0100
Subject: [PATCH] Deactivate aggressive failures on warnings
Subject: [PATCH 1/5] Deactivate aggressive failures on warnings

---
CMakeLists.txt | 2 ++
1 file changed, 2 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4484e373..e17405bb 100644
index 47a6d66..47832b5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -98,6 +98,8 @@ elseif (MSVC)
set (WARN_FLAGS "${WARN_FLAGS} -wd4146") # unary minus operator applied to unsigned type, result still unsigned
@@ -160,6 +160,8 @@ else ()
add_compile_definitions(ENABLE_METRICS=0)
endif ()

+set(WARN_FLAGS "")
+
enable_testing()

INCLUDE(CheckSourceCompiles)
--
2.20.1

Original file line number Diff line number Diff line change
@@ -1,26 +1,23 @@
From 92ff660fd3d1e82d1981ae4d02f73d74142f0f87 Mon Sep 17 00:00:00 2001
From 43d34904ff88211396be6a3572718c3d3bef6cb9 Mon Sep 17 00:00:00 2001
From: Nehal J Wani <[email protected]>
Date: Fri, 25 Sep 2020 14:49:59 -0400
Subject: [PATCH 3/3] Don't force orc to be a static library, let end user
Subject: [PATCH 2/5] Don't force orc to be a static library, let end user
control it

---
c++/src/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/c++/src/CMakeLists.txt b/c++/src/CMakeLists.txt
index 772f4c66..cdade462 100644
index 33ad584..f5a806a 100644
--- a/c++/src/CMakeLists.txt
+++ b/c++/src/CMakeLists.txt
@@ -228,7 +228,7 @@ if(BUILD_LIBHDFSPP)
add_definitions(-DBUILD_LIBHDFSPP)
endif(BUILD_LIBHDFSPP)
@@ -206,7 +206,7 @@ if(BUILD_ENABLE_AVX512)
BpackingAvx512.cc)
endif(BUILD_ENABLE_AVX512)

-add_library (orc STATIC ${SOURCE_FILES})
+add_library (orc ${SOURCE_FILES})

target_link_libraries (orc
orc::protobuf
--
2.26.2

Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
From d65b2bc5a72aa975acb84cafca4ecff9e859fdc4 Mon Sep 17 00:00:00 2001
From: Nehal J Wani <[email protected]>
Date: Sat, 4 Feb 2023 20:50:40 +0000
Subject: [PATCH 3/5] CMake: Add more hints for libraries on Windows

---
cmake_modules/FindLZ4.cmake | 2 +-
cmake_modules/FindProtobuf.cmake | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/cmake_modules/FindLZ4.cmake b/cmake_modules/FindLZ4.cmake
index b1557f4..8061dda 100644
--- a/cmake_modules/FindLZ4.cmake
+++ b/cmake_modules/FindLZ4.cmake
@@ -33,7 +33,7 @@ find_path (LZ4_INCLUDE_DIR lz4.h HINTS
NO_DEFAULT_PATH
PATH_SUFFIXES "include")

-find_library (LZ4_LIBRARY NAMES lz4 HINTS
+find_library (LZ4_LIBRARY NAMES lz4 liblz4 HINTS
${_lz4_path}
PATH_SUFFIXES "lib" "lib64")

diff --git a/cmake_modules/FindProtobuf.cmake b/cmake_modules/FindProtobuf.cmake
index cca7c8b..5a1a9d0 100644
--- a/cmake_modules/FindProtobuf.cmake
+++ b/cmake_modules/FindProtobuf.cmake
@@ -63,7 +63,7 @@ else()
NO_DEFAULT_PATH
PATH_SUFFIXES "include")

- find_library (PROTOBUF_LIBRARY NAMES protobuf HINTS
+ find_library (PROTOBUF_LIBRARY NAMES protobuf libprotobuf HINTS
${_protobuf_path}
PATH_SUFFIXES "lib")

@@ -71,7 +71,7 @@ else()
${_protobuf_path}
PATH_SUFFIXES "lib")

- find_library (PROTOC_LIBRARY NAMES protoc HINTS
+ find_library (PROTOC_LIBRARY NAMES protoc libprotoc HINTS
${_protobuf_path}
PATH_SUFFIXES "lib")

19 changes: 19 additions & 0 deletions recipe/patches/0004-don-t-force-lib-destination.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
From 699586d51ca326ce8d265dfd986439f70989bea3 Mon Sep 17 00:00:00 2001
From: "H. Vetinari" <[email protected]>
Date: Sun, 5 Feb 2023 15:32:08 +1100
Subject: [PATCH 4/5] don't force lib destination

---
c++/src/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/c++/src/CMakeLists.txt b/c++/src/CMakeLists.txt
index f5a806a..d6dcca0 100644
--- a/c++/src/CMakeLists.txt
+++ b/c++/src/CMakeLists.txt
@@ -219,4 +219,4 @@ target_link_libraries (orc

add_dependencies(orc orc-format_ep)

-install(TARGETS orc DESTINATION lib)
+install(TARGETS orc)
38 changes: 38 additions & 0 deletions recipe/patches/0005-Check-for-protobuf-config-based-module.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
From e6284a57dff236e8617f5df8bfc7d2ccba951551 Mon Sep 17 00:00:00 2001
From: Nehal J Wani <[email protected]>
Date: Sun, 4 Jun 2023 10:35:32 +0100
Subject: [PATCH 5/5] Check for protobuf config based module

---
cmake_modules/FindProtobuf.cmake | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)

diff --git a/cmake_modules/FindProtobuf.cmake b/cmake_modules/FindProtobuf.cmake
index 5a1a9d0..9fdc98c 100644
--- a/cmake_modules/FindProtobuf.cmake
+++ b/cmake_modules/FindProtobuf.cmake
@@ -26,6 +26,24 @@
# PROTOBUF_EXECUTABLE: location of protoc


+find_package(Protobuf CONFIG)
+if(Protobuf_FOUND)
+ set(PROTOBUF_LIBRARY protobuf::libprotobuf)
+ set(PROTOBUF_STATIC_LIB PROTOBUF_STATIC_LIB-NOTFOUND)
+ set(PROTOC_LIBRARY protobuf::libprotoc)
+ set(PROTOC_STATIC_LIB PROTOC_STATIC_LIB-NOTFOUND)
+ get_target_property(target_type protobuf::libprotobuf TYPE)
+ if(target_type STREQUAL "STATIC_LIBRARY")
+ set(PROTOBUF_STATIC_LIB protobuf::libprotobuf)
+ endif()
+ get_target_property(target_type protobuf::libprotoc TYPE)
+ if(target_type STREQUAL "STATIC_LIBRARY")
+ set(PROTOC_STATIC_LIB protobuf::libprotoc)
+ endif()
+ get_target_property(PROTOBUF_INCLUDE_DIR protobuf::libprotoc INTERFACE_INCLUDE_DIRECTORIES)
+ return()
+endif()
+
if( NOT "${PROTOBUF_HOME}" STREQUAL "")
file (TO_CMAKE_PATH "${PROTOBUF_HOME}" _protobuf_path)
endif()