1
0
mirror of https://github.com/docker-library/postgres.git synced 2025-11-08 17:02:28 +03:00

Merge pull request #1366 from infosiftr/liburing

Add liburing support to 18+
This commit is contained in:
Tianon Gravi
2025-09-30 12:54:48 -07:00
committed by GitHub
13 changed files with 120 additions and 104 deletions

View File

@@ -114,8 +114,8 @@ RUN set -eux; \
# https://git.alpinelinux.org/aports/tree/community/postgresql15/APKBUILD?h=3.22-stable#n180 ("older clang versions don't have a 'clang' exe anymore.")
export CLANG=clang-19; \
\
# configure options taken from:
# https://anonscm.debian.org/cgit/pkg-postgresql/postgresql.git/tree/debian/rules?h=9.5
# configure options mostly copying Debian:
# https://salsa.debian.org/postgresql/postgresql-common/-/blob/6e26b5107295170cc8731a3acbf13228ea15941e/server/postgresql.mk#L32
./configure \
--enable-option-checking=fatal \
--build="$gnuArch" \
@@ -135,16 +135,16 @@ RUN set -eux; \
--with-includes=/usr/local/include \
--with-libraries=/usr/local/lib \
--with-gssapi \
--with-icu \
--with-ldap \
--with-tcl \
--with-perl \
--with-python \
# --with-pam \
--with-openssl \
--with-libxml \
--with-libxslt \
--with-icu \
--with-llvm \
--with-openssl \
# --with-pam \
--with-perl \
--with-python \
--with-tcl \
; \
make -j "$(nproc)" world-bin; \
make install-world-bin; \

View File

@@ -114,8 +114,8 @@ RUN set -eux; \
# https://git.alpinelinux.org/aports/tree/community/postgresql15/APKBUILD?h=3.22-stable#n180 ("older clang versions don't have a 'clang' exe anymore.")
export CLANG=clang-19; \
\
# configure options taken from:
# https://anonscm.debian.org/cgit/pkg-postgresql/postgresql.git/tree/debian/rules?h=9.5
# configure options mostly copying Debian:
# https://salsa.debian.org/postgresql/postgresql-common/-/blob/6e26b5107295170cc8731a3acbf13228ea15941e/server/postgresql.mk#L32
./configure \
--enable-option-checking=fatal \
--build="$gnuArch" \
@@ -135,16 +135,16 @@ RUN set -eux; \
--with-includes=/usr/local/include \
--with-libraries=/usr/local/lib \
--with-gssapi \
--with-icu \
--with-ldap \
--with-tcl \
--with-perl \
--with-python \
# --with-pam \
--with-openssl \
--with-libxml \
--with-libxslt \
--with-icu \
--with-llvm \
--with-openssl \
# --with-pam \
--with-perl \
--with-python \
--with-tcl \
; \
make -j "$(nproc)" world-bin; \
make install-world-bin; \

View File

@@ -116,8 +116,8 @@ RUN set -eux; \
# https://git.alpinelinux.org/aports/tree/community/postgresql15/APKBUILD?h=3.22-stable#n180 ("older clang versions don't have a 'clang' exe anymore.")
export CLANG=clang-19; \
\
# configure options taken from:
# https://anonscm.debian.org/cgit/pkg-postgresql/postgresql.git/tree/debian/rules?h=9.5
# configure options mostly copying Debian:
# https://salsa.debian.org/postgresql/postgresql-common/-/blob/6e26b5107295170cc8731a3acbf13228ea15941e/server/postgresql.mk#L32
./configure \
--enable-option-checking=fatal \
--build="$gnuArch" \
@@ -137,17 +137,17 @@ RUN set -eux; \
--with-includes=/usr/local/include \
--with-libraries=/usr/local/lib \
--with-gssapi \
--with-icu \
--with-ldap \
--with-tcl \
--with-perl \
--with-python \
# --with-pam \
--with-openssl \
--with-libxml \
--with-libxslt \
--with-icu \
--with-llvm \
--with-lz4 \
--with-openssl \
# --with-pam \
--with-perl \
--with-python \
--with-tcl \
; \
make -j "$(nproc)" world-bin; \
make install-world-bin; \

View File

@@ -116,8 +116,8 @@ RUN set -eux; \
# https://git.alpinelinux.org/aports/tree/community/postgresql15/APKBUILD?h=3.22-stable#n180 ("older clang versions don't have a 'clang' exe anymore.")
export CLANG=clang-19; \
\
# configure options taken from:
# https://anonscm.debian.org/cgit/pkg-postgresql/postgresql.git/tree/debian/rules?h=9.5
# configure options mostly copying Debian:
# https://salsa.debian.org/postgresql/postgresql-common/-/blob/6e26b5107295170cc8731a3acbf13228ea15941e/server/postgresql.mk#L32
./configure \
--enable-option-checking=fatal \
--build="$gnuArch" \
@@ -137,17 +137,17 @@ RUN set -eux; \
--with-includes=/usr/local/include \
--with-libraries=/usr/local/lib \
--with-gssapi \
--with-icu \
--with-ldap \
--with-tcl \
--with-perl \
--with-python \
# --with-pam \
--with-openssl \
--with-libxml \
--with-libxslt \
--with-icu \
--with-llvm \
--with-lz4 \
--with-openssl \
# --with-pam \
--with-perl \
--with-python \
--with-tcl \
; \
make -j "$(nproc)" world-bin; \
make install-world-bin; \

View File

@@ -118,8 +118,8 @@ RUN set -eux; \
# https://git.alpinelinux.org/aports/tree/community/postgresql15/APKBUILD?h=3.22-stable#n180 ("older clang versions don't have a 'clang' exe anymore.")
export CLANG=clang-19; \
\
# configure options taken from:
# https://anonscm.debian.org/cgit/pkg-postgresql/postgresql.git/tree/debian/rules?h=9.5
# configure options mostly copying Debian:
# https://salsa.debian.org/postgresql/postgresql-common/-/blob/6e26b5107295170cc8731a3acbf13228ea15941e/server/postgresql.mk#L32
./configure \
--enable-option-checking=fatal \
--build="$gnuArch" \
@@ -139,17 +139,17 @@ RUN set -eux; \
--with-includes=/usr/local/include \
--with-libraries=/usr/local/lib \
--with-gssapi \
--with-icu \
--with-ldap \
--with-tcl \
--with-perl \
--with-python \
# --with-pam \
--with-openssl \
--with-libxml \
--with-libxslt \
--with-icu \
--with-llvm \
--with-lz4 \
--with-openssl \
# --with-pam \
--with-perl \
--with-python \
--with-tcl \
--with-zstd \
; \
make -j "$(nproc)" world-bin; \

View File

@@ -118,8 +118,8 @@ RUN set -eux; \
# https://git.alpinelinux.org/aports/tree/community/postgresql15/APKBUILD?h=3.22-stable#n180 ("older clang versions don't have a 'clang' exe anymore.")
export CLANG=clang-19; \
\
# configure options taken from:
# https://anonscm.debian.org/cgit/pkg-postgresql/postgresql.git/tree/debian/rules?h=9.5
# configure options mostly copying Debian:
# https://salsa.debian.org/postgresql/postgresql-common/-/blob/6e26b5107295170cc8731a3acbf13228ea15941e/server/postgresql.mk#L32
./configure \
--enable-option-checking=fatal \
--build="$gnuArch" \
@@ -139,17 +139,17 @@ RUN set -eux; \
--with-includes=/usr/local/include \
--with-libraries=/usr/local/lib \
--with-gssapi \
--with-icu \
--with-ldap \
--with-tcl \
--with-perl \
--with-python \
# --with-pam \
--with-openssl \
--with-libxml \
--with-libxslt \
--with-icu \
--with-llvm \
--with-lz4 \
--with-openssl \
# --with-pam \
--with-perl \
--with-python \
--with-tcl \
--with-zstd \
; \
make -j "$(nproc)" world-bin; \

View File

@@ -118,8 +118,8 @@ RUN set -eux; \
# https://git.alpinelinux.org/aports/tree/community/postgresql15/APKBUILD?h=3.22-stable#n180 ("older clang versions don't have a 'clang' exe anymore.")
export CLANG=clang-19; \
\
# configure options taken from:
# https://anonscm.debian.org/cgit/pkg-postgresql/postgresql.git/tree/debian/rules?h=9.5
# configure options mostly copying Debian:
# https://salsa.debian.org/postgresql/postgresql-common/-/blob/6e26b5107295170cc8731a3acbf13228ea15941e/server/postgresql.mk#L32
./configure \
--enable-option-checking=fatal \
--build="$gnuArch" \
@@ -138,17 +138,17 @@ RUN set -eux; \
--with-includes=/usr/local/include \
--with-libraries=/usr/local/lib \
--with-gssapi \
--with-icu \
--with-ldap \
--with-tcl \
--with-perl \
--with-python \
# --with-pam \
--with-openssl \
--with-libxml \
--with-libxslt \
--with-icu \
--with-llvm \
--with-lz4 \
--with-openssl \
# --with-pam \
--with-perl \
--with-python \
--with-tcl \
--with-zstd \
; \
make -j "$(nproc)" world-bin; \

View File

@@ -118,8 +118,8 @@ RUN set -eux; \
# https://git.alpinelinux.org/aports/tree/community/postgresql15/APKBUILD?h=3.22-stable#n180 ("older clang versions don't have a 'clang' exe anymore.")
export CLANG=clang-19; \
\
# configure options taken from:
# https://anonscm.debian.org/cgit/pkg-postgresql/postgresql.git/tree/debian/rules?h=9.5
# configure options mostly copying Debian:
# https://salsa.debian.org/postgresql/postgresql-common/-/blob/6e26b5107295170cc8731a3acbf13228ea15941e/server/postgresql.mk#L32
./configure \
--enable-option-checking=fatal \
--build="$gnuArch" \
@@ -138,17 +138,17 @@ RUN set -eux; \
--with-includes=/usr/local/include \
--with-libraries=/usr/local/lib \
--with-gssapi \
--with-icu \
--with-ldap \
--with-tcl \
--with-perl \
--with-python \
# --with-pam \
--with-openssl \
--with-libxml \
--with-libxslt \
--with-icu \
--with-llvm \
--with-lz4 \
--with-openssl \
# --with-pam \
--with-perl \
--with-python \
--with-tcl \
--with-zstd \
; \
make -j "$(nproc)" world-bin; \

View File

@@ -117,8 +117,8 @@ RUN set -eux; \
# https://git.alpinelinux.org/aports/tree/community/postgresql15/APKBUILD?h=3.22-stable#n180 ("older clang versions don't have a 'clang' exe anymore.")
export CLANG=clang-19; \
\
# configure options taken from:
# https://anonscm.debian.org/cgit/pkg-postgresql/postgresql.git/tree/debian/rules?h=9.5
# configure options mostly copying Debian:
# https://salsa.debian.org/postgresql/postgresql-common/-/blob/6e26b5107295170cc8731a3acbf13228ea15941e/server/postgresql.mk#L32
./configure \
--enable-option-checking=fatal \
--build="$gnuArch" \
@@ -136,17 +136,17 @@ RUN set -eux; \
--with-includes=/usr/local/include \
--with-libraries=/usr/local/lib \
--with-gssapi \
--with-icu \
--with-ldap \
--with-tcl \
--with-perl \
--with-python \
# --with-pam \
--with-openssl \
--with-libxml \
--with-libxslt \
--with-icu \
--with-llvm \
--with-lz4 \
--with-openssl \
# --with-pam \
--with-perl \
--with-python \
--with-tcl \
--with-zstd \
; \
make -j "$(nproc)" world-bin; \

View File

@@ -117,8 +117,8 @@ RUN set -eux; \
# https://git.alpinelinux.org/aports/tree/community/postgresql15/APKBUILD?h=3.22-stable#n180 ("older clang versions don't have a 'clang' exe anymore.")
export CLANG=clang-19; \
\
# configure options taken from:
# https://anonscm.debian.org/cgit/pkg-postgresql/postgresql.git/tree/debian/rules?h=9.5
# configure options mostly copying Debian:
# https://salsa.debian.org/postgresql/postgresql-common/-/blob/6e26b5107295170cc8731a3acbf13228ea15941e/server/postgresql.mk#L32
./configure \
--enable-option-checking=fatal \
--build="$gnuArch" \
@@ -136,17 +136,17 @@ RUN set -eux; \
--with-includes=/usr/local/include \
--with-libraries=/usr/local/lib \
--with-gssapi \
--with-icu \
--with-ldap \
--with-tcl \
--with-perl \
--with-python \
# --with-pam \
--with-openssl \
--with-libxml \
--with-libxslt \
--with-icu \
--with-llvm \
--with-lz4 \
--with-openssl \
# --with-pam \
--with-perl \
--with-python \
--with-tcl \
--with-zstd \
; \
make -j "$(nproc)" world-bin; \

View File

@@ -102,6 +102,9 @@ RUN set -eux; \
lz4-dev \
# https://www.postgresql.org/docs/15/release-15.html "--with-zstd to enable Zstandard builds"
zstd-dev \
# https://salsa.debian.org/postgresql/postgresql-common/-/commit/89c384273f4c4092483598c292b1b1b188816cce
# https://www.postgresql.org/docs/18/install-make.html#CONFIGURE-OPTION-WITH-LIBURING
liburing-dev \
; \
\
cd /usr/src/postgresql; \
@@ -117,8 +120,8 @@ RUN set -eux; \
# https://git.alpinelinux.org/aports/tree/community/postgresql15/APKBUILD?h=3.22-stable#n180 ("older clang versions don't have a 'clang' exe anymore.")
export CLANG=clang-19; \
\
# configure options taken from:
# https://anonscm.debian.org/cgit/pkg-postgresql/postgresql.git/tree/debian/rules?h=9.5
# configure options mostly copying Debian:
# https://salsa.debian.org/postgresql/postgresql-common/-/blob/6e26b5107295170cc8731a3acbf13228ea15941e/server/postgresql.mk#L32
./configure \
--enable-option-checking=fatal \
--build="$gnuArch" \
@@ -136,17 +139,18 @@ RUN set -eux; \
--with-includes=/usr/local/include \
--with-libraries=/usr/local/lib \
--with-gssapi \
--with-icu \
--with-ldap \
--with-tcl \
--with-perl \
--with-python \
# --with-pam \
--with-openssl \
--with-liburing \
--with-libxml \
--with-libxslt \
--with-icu \
--with-llvm \
--with-lz4 \
--with-openssl \
# --with-pam \
--with-perl \
--with-python \
--with-tcl \
--with-zstd \
; \
make -j "$(nproc)" world-bin; \

View File

@@ -102,6 +102,9 @@ RUN set -eux; \
lz4-dev \
# https://www.postgresql.org/docs/15/release-15.html "--with-zstd to enable Zstandard builds"
zstd-dev \
# https://salsa.debian.org/postgresql/postgresql-common/-/commit/89c384273f4c4092483598c292b1b1b188816cce
# https://www.postgresql.org/docs/18/install-make.html#CONFIGURE-OPTION-WITH-LIBURING
liburing-dev \
; \
\
cd /usr/src/postgresql; \
@@ -117,8 +120,8 @@ RUN set -eux; \
# https://git.alpinelinux.org/aports/tree/community/postgresql15/APKBUILD?h=3.22-stable#n180 ("older clang versions don't have a 'clang' exe anymore.")
export CLANG=clang-19; \
\
# configure options taken from:
# https://anonscm.debian.org/cgit/pkg-postgresql/postgresql.git/tree/debian/rules?h=9.5
# configure options mostly copying Debian:
# https://salsa.debian.org/postgresql/postgresql-common/-/blob/6e26b5107295170cc8731a3acbf13228ea15941e/server/postgresql.mk#L32
./configure \
--enable-option-checking=fatal \
--build="$gnuArch" \
@@ -136,17 +139,18 @@ RUN set -eux; \
--with-includes=/usr/local/include \
--with-libraries=/usr/local/lib \
--with-gssapi \
--with-icu \
--with-ldap \
--with-tcl \
--with-perl \
--with-python \
# --with-pam \
--with-openssl \
--with-liburing \
--with-libxml \
--with-libxslt \
--with-icu \
--with-llvm \
--with-lz4 \
--with-openssl \
# --with-pam \
--with-perl \
--with-python \
--with-tcl \
--with-zstd \
; \
make -j "$(nproc)" world-bin; \

View File

@@ -110,6 +110,11 @@ RUN set -eux; \
{{ if .major >= 15 then ( -}}
# https://www.postgresql.org/docs/15/release-15.html "--with-zstd to enable Zstandard builds"
zstd-dev \
{{ ) else "" end -}}
{{ if .major >= 18 then ( -}}
# https://salsa.debian.org/postgresql/postgresql-common/-/commit/89c384273f4c4092483598c292b1b1b188816cce
# https://www.postgresql.org/docs/18/install-make.html#CONFIGURE-OPTION-WITH-LIBURING
liburing-dev \
{{ ) else "" end -}}
; \
\
@@ -126,8 +131,8 @@ RUN set -eux; \
# https://git.alpinelinux.org/aports/tree/community/postgresql15/APKBUILD?h=3.22-stable#n180 ("older clang versions don't have a 'clang' exe anymore.")
export CLANG=clang-{{ llvmver }}; \
\
# configure options taken from:
# https://anonscm.debian.org/cgit/pkg-postgresql/postgresql.git/tree/debian/rules?h=9.5
# configure options mostly copying Debian:
# https://salsa.debian.org/postgresql/postgresql-common/-/blob/6e26b5107295170cc8731a3acbf13228ea15941e/server/postgresql.mk#L32
./configure \
--enable-option-checking=fatal \
--build="$gnuArch" \
@@ -154,19 +159,22 @@ RUN set -eux; \
--with-includes=/usr/local/include \
--with-libraries=/usr/local/lib \
--with-gssapi \
--with-icu \
--with-ldap \
--with-tcl \
--with-perl \
--with-python \
# --with-pam \
--with-openssl \
{{ if .major >= 18 then ( -}}
--with-liburing \
{{ ) else "" end -}}
--with-libxml \
--with-libxslt \
--with-icu \
--with-llvm \
{{ if .major >= 14 then ( -}}
--with-lz4 \
{{ ) else "" end -}}
--with-openssl \
# --with-pam \
--with-perl \
--with-python \
--with-tcl \
{{ if .major >= 15 then ( -}}
--with-zstd \
{{ ) else "" end -}}