[packages/liborc] Rel 2. Fix build on 32-bit.
arekm
arekm at pld-linux.org
Sun Nov 29 18:08:22 CET 2026
commit c2fff9d9c750a46f68e89045b34c15fe34b7cfb3
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Fri Nov 27 23:53:54 2026 +0100
Rel 2. Fix build on 32-bit.
liborc-32bit-min.patch | 11 +++++++++++
liborc.spec | 4 +++-
2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/liborc.spec b/liborc.spec
index c017392..d04df5f 100644
--- a/liborc.spec
+++ b/liborc.spec
@@ -13,7 +13,7 @@ Summary: Apache ORC - small, fast columnar storage for Hadoop workloads
Summary(pl.UTF-8): Apache ORC - małym, szybki kolumnowy format przechowywania danych dla zadań Hadoopa
Name: liborc
Version: 2.3.1
-Release: 1
+Release: 2
License: Apache v2.0
Group: Libraries
Source0: https://downloads.apache.org/orc/orc-%{version}/orc-%{version}.tar.gz
@@ -22,6 +22,7 @@ Source1: https://downloads.apache.org/orc/orc-format-%{orc_format_ver}/orc-forma
# Source1-md5: 4d851817fd5c67c517088a351dbe7b48
Patch0: %{name}-shared.patch
Patch1: %{name}-protobuf-config.patch
+Patch2: %{name}-32bit-min.patch
URL: https://orc.apache.org/
BuildRequires: cmake >= 3.25.0
BuildRequires: libstdc++-devel >= 6:7
@@ -89,6 +90,7 @@ Pliki nagłówkowe biblioteki Apache ORC.
%setup -q -n orc-%{version}
%patch -P0 -p1
%patch -P1 -p1
+%patch -P2 -p1
%build
install -d build
diff --git a/liborc-32bit-min.patch b/liborc-32bit-min.patch
new file mode 100644
index 0000000..de817da
--- /dev/null
+++ b/liborc-32bit-min.patch
@@ -0,0 +1,11 @@
+--- orc-2.3.1/c++/src/ColumnReader.cc.orig
++++ orc-2.3.1/c++/src/ColumnReader.cc
+@@ -466,7 +466,7 @@
+ uint64_t bufferNum = 0;
+ if constexpr (isLittleEndian && std::is_same_v<ValueType, ItemType>) {
+ bufferNum =
+- std::min(numValues, static_cast<size_t>(bufferEnd_ - bufferPointer_) / bytesPerValue_);
++ std::min<uint64_t>(numValues, static_cast<size_t>(bufferEnd_ - bufferPointer_) / bytesPerValue_);
+ uint64_t bufferBytes = bufferNum * bytesPerValue_;
+ if (bufferBytes > 0) {
+ memcpy(outArray, bufferPointer_, bufferBytes);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/liborc.git/commitdiff/c2fff9d9c750a46f68e89045b34c15fe34b7cfb3
More information about the pld-cvs-commit
mailing list