Skip to content

Commit 47608ac

Browse files
committed
bump orioledb to the latest version
1 parent 8da47a2 commit 47608ac

File tree

3 files changed

+74
-8
lines changed

3 files changed

+74
-8
lines changed

bin/oriole.sh

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
#!/bin/bash
2+
3+
# Script to replace PostgreSQL with OrioleDB in specific lines only
4+
# Usage: ./replace_postgresql.sh [postgres_src_directory]
5+
6+
PROG_NAME="$(basename $0)"
7+
BIN_DIR="$(cd $(dirname $0) && pwd)"
8+
SRC_DIR="$(cd ${BIN_DIR}/../src && pwd)"
9+
POSTGRES_DIR="${SRC_DIR}/postgres"
10+
PACKAGE_NAME="oriolepg-17.11"
11+
12+
echo "locate $SRC_DIR"
13+
14+
15+
echo "extract $SRC_DIR/postgres.tar.gz"
16+
cd ${SRC_DIR}
17+
rm -rf postgres
18+
tar -xf postgres.tar.gz
19+
cd postgres
20+
git checkout patches17_11
21+
22+
23+
echo "Replacing PostgreSQL with OrioleDB in specific lines in $POSTGRES_DIR"
24+
25+
# Replace in configure - only in PG_VERSION_STR line
26+
if [ -f "$POSTGRES_DIR/configure" ]; then
27+
sed -i '' '/PG_VERSION_STR/s/PostgreSQL/OrioleDB/g' "$POSTGRES_DIR/configure"
28+
echo "Updated configure (PG_VERSION_STR line)"
29+
else
30+
echo "Warning: configure not found"
31+
fi
32+
33+
# Replace in configure.ac - only in line containing "PostgreSQL $PG_VERSION on"
34+
if [ -f "$POSTGRES_DIR/configure.ac" ]; then
35+
sed -i '' '/PostgreSQL \$PG_VERSION on/s/PostgreSQL/OrioleDB/g' "$POSTGRES_DIR/configure.ac"
36+
echo "Updated configure.ac (PostgreSQL \$PG_VERSION on line)"
37+
else
38+
echo "Warning: configure.ac not found"
39+
fi
40+
41+
# Replace in meson.build - only in lines containing "PostgreSQL @0@"
42+
if [ -f "$POSTGRES_DIR/meson.build" ]; then
43+
sed -i '' '/PostgreSQL @0@ on/s/PostgreSQL/OrioleDB/g' "$POSTGRES_DIR/meson.build"
44+
echo "Updated meson.build (PostgreSQL @0@ lines)"
45+
else
46+
echo "Warning: meson.build not found"
47+
fi
48+
49+
echo "Replacement complete!"
50+
51+
52+
echo "Check OrioleDB String!"
53+
grep OrioleDB ${POSTGRES_DIR}/configure
54+
grep OrioleDB ${POSTGRES_DIR}/configure.ac
55+
grep OrioleDB ${POSTGRES_DIR}/meson.build
56+
57+
58+
echo package ${PACKAGE_NAME}
59+
rm -rf ${POSTGRES_DIR}/.git
60+
mv ${POSTGRES_DIR} ${SRC_DIR}/${PACKAGE_NAME}
61+
62+
cd ${SRC_DIR}
63+
gtar -czf ${PACKAGE_NAME}.tar.gz ${PACKAGE_NAME}
64+
rm -rf ${PACKAGE_NAME}

rpmbuild/SPECS/orioledb_17.spec

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@
44
%global pginstdir /usr/oriole-%{pgmajorversion}
55

66
Name: %{sname}_%{pgmajorversion}
7-
Version: 1.4
8-
Release: 0.beta11PIGSTY%{?dist}
7+
Version: 1.5
8+
Release: 0.beta12PIGSTY%{?dist}
99
Summary: Modern cloud-native storage engine for PostgreSQL
1010
License: PostgreSQL
1111
URL: https://github.com/orioledb/orioledb
1212
Source0: %{sname}-beta10.tar.gz
1313

14-
BuildRequires: oriolepg_%{pgmajorversion} >= 17.9 libcurl-devel
15-
Requires: oriolepg_%{pgmajorversion} >= 17.9
14+
BuildRequires: oriolepg_%{pgmajorversion} >= 17.11 libcurl-devel
15+
Requires: oriolepg_%{pgmajorversion} >= 17.11
1616

1717
%description
1818
OrioleDB – building a modern cloud-native storage engine, and solving some PostgreSQL wicked problems
1919
This is the extension package for OrioleDB modified postgres 17
2020

2121
%prep
22-
%setup -q -n %{sname}-beta10
22+
%setup -q -n %{sname}-beta12
2323

2424
%build
2525
PATH=%{pginstdir}/bin:$PATH USE_PGXS=1 %{__make} %{?_smp_mflags}
@@ -38,6 +38,7 @@ PATH=%{pginstdir}/bin:$PATH USE_PGXS=1 %{__make} %{?_smp_mflags} install DESTDIR
3838
%exclude /usr/lib/.build-id/*
3939

4040
%changelog
41+
* Thu Jul 24 2025 Ruohang Feng (Vonng) <[email protected]> - 1.5-0.beta12PIGSTY
4142
* Tue May 27 2025 Ruohang Feng (Vonng) <[email protected]> - 1.4-0.beta11PIGSTY
4243
* Sat Apr 05 2025 Ruohang Feng (Vonng) <[email protected]> - 1.4-0.beta10PIGSTY
4344
- Initial RPM release, beta10 version, used by Pigsty <https://pigsty.io>

rpmbuild/SPECS/oriolepg_17.spec

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
%global pgbaseinstdir /usr/oriole-%{pgmajorversion}
44

55
Name: %{sname}_%{pgmajorversion}
6-
Version: 17.9
6+
Version: 17.11
77
Release: 1PIGSTY%{?dist}
88
Summary: Modern cloud-native storage engine for PostgreSQL
99
License: PostgreSQL
1010
URL: https://github.com/orioledb/orioledb
11-
Source0: %{sname}-17.9.tar.gz
11+
Source0: %{sname}-17.11.tar.gz
1212

1313
BuildRequires: glibc-devel, bison >= 2.3, flex >= 2.5.35, gettext >= 0.10.35
1414
BuildRequires: gcc-c++, readline-devel, zlib-devel >= 1.0.4, clang, llvm, clang-devel, llvm-devel
@@ -24,7 +24,7 @@ OrioleDB consists of an extension, building on the innovative table access metho
2424
By extending and enhancing the current table access methods, OrioleDB opens the door to a future of more powerful storage models that are optimized for cloud and modern hardware architectures.
2525

2626
%prep
27-
%setup -q -n %{sname}-17.9
27+
%setup -q -n %{sname}-17.11
2828

2929
%build
3030
CFLAGS="${CFLAGS:-%optflags}"
@@ -91,6 +91,7 @@ useradd -M -g postgres -o -r -d /var/lib/pgsql -s /bin/bash \
9191
/sbin/ldconfig
9292

9393
%changelog
94+
* Thu Jul 24 2025 Ruohang Feng (Vonng) <[email protected]> - 17.11-1PIGSTY
9495
* Tue May 27 2025 Ruohang Feng (Vonng) <[email protected]> - 17.9-1PIGSTY
9596
* Sat Apr 05 2025 Ruohang Feng (Vonng) <[email protected]> - 17.0-6PIGSTY
9697
- Initial RPM release, used by Pigsty <https://pigsty.io>

0 commit comments

Comments
 (0)