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

Add liburing support to 18+

This is a bit complicated to use in Docker (because `io_uring` has a long and storied security story), but it is a new feature of 18+ that we should probably explicitly support for users who want to jump through the hoops to use it despite the security risk.

Additionally, this re-alphabetizes our `--with-xxx` flags.
This commit is contained in:
Tianon Gravi
2025-09-30 11:37:33 -07:00
parent 304578a4b4
commit 2c751341b6
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.") # 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; \ export CLANG=clang-19; \
\ \
# configure options taken from: # configure options mostly copying Debian:
# https://anonscm.debian.org/cgit/pkg-postgresql/postgresql.git/tree/debian/rules?h=9.5 # https://salsa.debian.org/postgresql/postgresql-common/-/blob/6e26b5107295170cc8731a3acbf13228ea15941e/server/postgresql.mk#L32
./configure \ ./configure \
--enable-option-checking=fatal \ --enable-option-checking=fatal \
--build="$gnuArch" \ --build="$gnuArch" \
@@ -135,16 +135,16 @@ RUN set -eux; \
--with-includes=/usr/local/include \ --with-includes=/usr/local/include \
--with-libraries=/usr/local/lib \ --with-libraries=/usr/local/lib \
--with-gssapi \ --with-gssapi \
--with-icu \
--with-ldap \ --with-ldap \
--with-tcl \
--with-perl \
--with-python \
# --with-pam \
--with-openssl \
--with-libxml \ --with-libxml \
--with-libxslt \ --with-libxslt \
--with-icu \
--with-llvm \ --with-llvm \
--with-openssl \
# --with-pam \
--with-perl \
--with-python \
--with-tcl \
; \ ; \
make -j "$(nproc)" world-bin; \ make -j "$(nproc)" world-bin; \
make install-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.") # 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; \ export CLANG=clang-19; \
\ \
# configure options taken from: # configure options mostly copying Debian:
# https://anonscm.debian.org/cgit/pkg-postgresql/postgresql.git/tree/debian/rules?h=9.5 # https://salsa.debian.org/postgresql/postgresql-common/-/blob/6e26b5107295170cc8731a3acbf13228ea15941e/server/postgresql.mk#L32
./configure \ ./configure \
--enable-option-checking=fatal \ --enable-option-checking=fatal \
--build="$gnuArch" \ --build="$gnuArch" \
@@ -135,16 +135,16 @@ RUN set -eux; \
--with-includes=/usr/local/include \ --with-includes=/usr/local/include \
--with-libraries=/usr/local/lib \ --with-libraries=/usr/local/lib \
--with-gssapi \ --with-gssapi \
--with-icu \
--with-ldap \ --with-ldap \
--with-tcl \
--with-perl \
--with-python \
# --with-pam \
--with-openssl \
--with-libxml \ --with-libxml \
--with-libxslt \ --with-libxslt \
--with-icu \
--with-llvm \ --with-llvm \
--with-openssl \
# --with-pam \
--with-perl \
--with-python \
--with-tcl \
; \ ; \
make -j "$(nproc)" world-bin; \ make -j "$(nproc)" world-bin; \
make install-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.") # 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; \ export CLANG=clang-19; \
\ \
# configure options taken from: # configure options mostly copying Debian:
# https://anonscm.debian.org/cgit/pkg-postgresql/postgresql.git/tree/debian/rules?h=9.5 # https://salsa.debian.org/postgresql/postgresql-common/-/blob/6e26b5107295170cc8731a3acbf13228ea15941e/server/postgresql.mk#L32
./configure \ ./configure \
--enable-option-checking=fatal \ --enable-option-checking=fatal \
--build="$gnuArch" \ --build="$gnuArch" \
@@ -137,17 +137,17 @@ RUN set -eux; \
--with-includes=/usr/local/include \ --with-includes=/usr/local/include \
--with-libraries=/usr/local/lib \ --with-libraries=/usr/local/lib \
--with-gssapi \ --with-gssapi \
--with-icu \
--with-ldap \ --with-ldap \
--with-tcl \
--with-perl \
--with-python \
# --with-pam \
--with-openssl \
--with-libxml \ --with-libxml \
--with-libxslt \ --with-libxslt \
--with-icu \
--with-llvm \ --with-llvm \
--with-lz4 \ --with-lz4 \
--with-openssl \
# --with-pam \
--with-perl \
--with-python \
--with-tcl \
; \ ; \
make -j "$(nproc)" world-bin; \ make -j "$(nproc)" world-bin; \
make install-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.") # 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; \ export CLANG=clang-19; \
\ \
# configure options taken from: # configure options mostly copying Debian:
# https://anonscm.debian.org/cgit/pkg-postgresql/postgresql.git/tree/debian/rules?h=9.5 # https://salsa.debian.org/postgresql/postgresql-common/-/blob/6e26b5107295170cc8731a3acbf13228ea15941e/server/postgresql.mk#L32
./configure \ ./configure \
--enable-option-checking=fatal \ --enable-option-checking=fatal \
--build="$gnuArch" \ --build="$gnuArch" \
@@ -137,17 +137,17 @@ RUN set -eux; \
--with-includes=/usr/local/include \ --with-includes=/usr/local/include \
--with-libraries=/usr/local/lib \ --with-libraries=/usr/local/lib \
--with-gssapi \ --with-gssapi \
--with-icu \
--with-ldap \ --with-ldap \
--with-tcl \
--with-perl \
--with-python \
# --with-pam \
--with-openssl \
--with-libxml \ --with-libxml \
--with-libxslt \ --with-libxslt \
--with-icu \
--with-llvm \ --with-llvm \
--with-lz4 \ --with-lz4 \
--with-openssl \
# --with-pam \
--with-perl \
--with-python \
--with-tcl \
; \ ; \
make -j "$(nproc)" world-bin; \ make -j "$(nproc)" world-bin; \
make install-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.") # 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; \ export CLANG=clang-19; \
\ \
# configure options taken from: # configure options mostly copying Debian:
# https://anonscm.debian.org/cgit/pkg-postgresql/postgresql.git/tree/debian/rules?h=9.5 # https://salsa.debian.org/postgresql/postgresql-common/-/blob/6e26b5107295170cc8731a3acbf13228ea15941e/server/postgresql.mk#L32
./configure \ ./configure \
--enable-option-checking=fatal \ --enable-option-checking=fatal \
--build="$gnuArch" \ --build="$gnuArch" \
@@ -139,17 +139,17 @@ RUN set -eux; \
--with-includes=/usr/local/include \ --with-includes=/usr/local/include \
--with-libraries=/usr/local/lib \ --with-libraries=/usr/local/lib \
--with-gssapi \ --with-gssapi \
--with-icu \
--with-ldap \ --with-ldap \
--with-tcl \
--with-perl \
--with-python \
# --with-pam \
--with-openssl \
--with-libxml \ --with-libxml \
--with-libxslt \ --with-libxslt \
--with-icu \
--with-llvm \ --with-llvm \
--with-lz4 \ --with-lz4 \
--with-openssl \
# --with-pam \
--with-perl \
--with-python \
--with-tcl \
--with-zstd \ --with-zstd \
; \ ; \
make -j "$(nproc)" world-bin; \ 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.") # 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; \ export CLANG=clang-19; \
\ \
# configure options taken from: # configure options mostly copying Debian:
# https://anonscm.debian.org/cgit/pkg-postgresql/postgresql.git/tree/debian/rules?h=9.5 # https://salsa.debian.org/postgresql/postgresql-common/-/blob/6e26b5107295170cc8731a3acbf13228ea15941e/server/postgresql.mk#L32
./configure \ ./configure \
--enable-option-checking=fatal \ --enable-option-checking=fatal \
--build="$gnuArch" \ --build="$gnuArch" \
@@ -139,17 +139,17 @@ RUN set -eux; \
--with-includes=/usr/local/include \ --with-includes=/usr/local/include \
--with-libraries=/usr/local/lib \ --with-libraries=/usr/local/lib \
--with-gssapi \ --with-gssapi \
--with-icu \
--with-ldap \ --with-ldap \
--with-tcl \
--with-perl \
--with-python \
# --with-pam \
--with-openssl \
--with-libxml \ --with-libxml \
--with-libxslt \ --with-libxslt \
--with-icu \
--with-llvm \ --with-llvm \
--with-lz4 \ --with-lz4 \
--with-openssl \
# --with-pam \
--with-perl \
--with-python \
--with-tcl \
--with-zstd \ --with-zstd \
; \ ; \
make -j "$(nproc)" world-bin; \ 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.") # 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; \ export CLANG=clang-19; \
\ \
# configure options taken from: # configure options mostly copying Debian:
# https://anonscm.debian.org/cgit/pkg-postgresql/postgresql.git/tree/debian/rules?h=9.5 # https://salsa.debian.org/postgresql/postgresql-common/-/blob/6e26b5107295170cc8731a3acbf13228ea15941e/server/postgresql.mk#L32
./configure \ ./configure \
--enable-option-checking=fatal \ --enable-option-checking=fatal \
--build="$gnuArch" \ --build="$gnuArch" \
@@ -138,17 +138,17 @@ RUN set -eux; \
--with-includes=/usr/local/include \ --with-includes=/usr/local/include \
--with-libraries=/usr/local/lib \ --with-libraries=/usr/local/lib \
--with-gssapi \ --with-gssapi \
--with-icu \
--with-ldap \ --with-ldap \
--with-tcl \
--with-perl \
--with-python \
# --with-pam \
--with-openssl \
--with-libxml \ --with-libxml \
--with-libxslt \ --with-libxslt \
--with-icu \
--with-llvm \ --with-llvm \
--with-lz4 \ --with-lz4 \
--with-openssl \
# --with-pam \
--with-perl \
--with-python \
--with-tcl \
--with-zstd \ --with-zstd \
; \ ; \
make -j "$(nproc)" world-bin; \ 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.") # 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; \ export CLANG=clang-19; \
\ \
# configure options taken from: # configure options mostly copying Debian:
# https://anonscm.debian.org/cgit/pkg-postgresql/postgresql.git/tree/debian/rules?h=9.5 # https://salsa.debian.org/postgresql/postgresql-common/-/blob/6e26b5107295170cc8731a3acbf13228ea15941e/server/postgresql.mk#L32
./configure \ ./configure \
--enable-option-checking=fatal \ --enable-option-checking=fatal \
--build="$gnuArch" \ --build="$gnuArch" \
@@ -138,17 +138,17 @@ RUN set -eux; \
--with-includes=/usr/local/include \ --with-includes=/usr/local/include \
--with-libraries=/usr/local/lib \ --with-libraries=/usr/local/lib \
--with-gssapi \ --with-gssapi \
--with-icu \
--with-ldap \ --with-ldap \
--with-tcl \
--with-perl \
--with-python \
# --with-pam \
--with-openssl \
--with-libxml \ --with-libxml \
--with-libxslt \ --with-libxslt \
--with-icu \
--with-llvm \ --with-llvm \
--with-lz4 \ --with-lz4 \
--with-openssl \
# --with-pam \
--with-perl \
--with-python \
--with-tcl \
--with-zstd \ --with-zstd \
; \ ; \
make -j "$(nproc)" world-bin; \ 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.") # 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; \ export CLANG=clang-19; \
\ \
# configure options taken from: # configure options mostly copying Debian:
# https://anonscm.debian.org/cgit/pkg-postgresql/postgresql.git/tree/debian/rules?h=9.5 # https://salsa.debian.org/postgresql/postgresql-common/-/blob/6e26b5107295170cc8731a3acbf13228ea15941e/server/postgresql.mk#L32
./configure \ ./configure \
--enable-option-checking=fatal \ --enable-option-checking=fatal \
--build="$gnuArch" \ --build="$gnuArch" \
@@ -136,17 +136,17 @@ RUN set -eux; \
--with-includes=/usr/local/include \ --with-includes=/usr/local/include \
--with-libraries=/usr/local/lib \ --with-libraries=/usr/local/lib \
--with-gssapi \ --with-gssapi \
--with-icu \
--with-ldap \ --with-ldap \
--with-tcl \
--with-perl \
--with-python \
# --with-pam \
--with-openssl \
--with-libxml \ --with-libxml \
--with-libxslt \ --with-libxslt \
--with-icu \
--with-llvm \ --with-llvm \
--with-lz4 \ --with-lz4 \
--with-openssl \
# --with-pam \
--with-perl \
--with-python \
--with-tcl \
--with-zstd \ --with-zstd \
; \ ; \
make -j "$(nproc)" world-bin; \ 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.") # 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; \ export CLANG=clang-19; \
\ \
# configure options taken from: # configure options mostly copying Debian:
# https://anonscm.debian.org/cgit/pkg-postgresql/postgresql.git/tree/debian/rules?h=9.5 # https://salsa.debian.org/postgresql/postgresql-common/-/blob/6e26b5107295170cc8731a3acbf13228ea15941e/server/postgresql.mk#L32
./configure \ ./configure \
--enable-option-checking=fatal \ --enable-option-checking=fatal \
--build="$gnuArch" \ --build="$gnuArch" \
@@ -136,17 +136,17 @@ RUN set -eux; \
--with-includes=/usr/local/include \ --with-includes=/usr/local/include \
--with-libraries=/usr/local/lib \ --with-libraries=/usr/local/lib \
--with-gssapi \ --with-gssapi \
--with-icu \
--with-ldap \ --with-ldap \
--with-tcl \
--with-perl \
--with-python \
# --with-pam \
--with-openssl \
--with-libxml \ --with-libxml \
--with-libxslt \ --with-libxslt \
--with-icu \
--with-llvm \ --with-llvm \
--with-lz4 \ --with-lz4 \
--with-openssl \
# --with-pam \
--with-perl \
--with-python \
--with-tcl \
--with-zstd \ --with-zstd \
; \ ; \
make -j "$(nproc)" world-bin; \ make -j "$(nproc)" world-bin; \

View File

@@ -102,6 +102,9 @@ RUN set -eux; \
lz4-dev \ lz4-dev \
# https://www.postgresql.org/docs/15/release-15.html "--with-zstd to enable Zstandard builds" # https://www.postgresql.org/docs/15/release-15.html "--with-zstd to enable Zstandard builds"
zstd-dev \ 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; \ 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.") # 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; \ export CLANG=clang-19; \
\ \
# configure options taken from: # configure options mostly copying Debian:
# https://anonscm.debian.org/cgit/pkg-postgresql/postgresql.git/tree/debian/rules?h=9.5 # https://salsa.debian.org/postgresql/postgresql-common/-/blob/6e26b5107295170cc8731a3acbf13228ea15941e/server/postgresql.mk#L32
./configure \ ./configure \
--enable-option-checking=fatal \ --enable-option-checking=fatal \
--build="$gnuArch" \ --build="$gnuArch" \
@@ -136,17 +139,18 @@ RUN set -eux; \
--with-includes=/usr/local/include \ --with-includes=/usr/local/include \
--with-libraries=/usr/local/lib \ --with-libraries=/usr/local/lib \
--with-gssapi \ --with-gssapi \
--with-icu \
--with-ldap \ --with-ldap \
--with-tcl \ --with-liburing \
--with-perl \
--with-python \
# --with-pam \
--with-openssl \
--with-libxml \ --with-libxml \
--with-libxslt \ --with-libxslt \
--with-icu \
--with-llvm \ --with-llvm \
--with-lz4 \ --with-lz4 \
--with-openssl \
# --with-pam \
--with-perl \
--with-python \
--with-tcl \
--with-zstd \ --with-zstd \
; \ ; \
make -j "$(nproc)" world-bin; \ make -j "$(nproc)" world-bin; \

View File

@@ -102,6 +102,9 @@ RUN set -eux; \
lz4-dev \ lz4-dev \
# https://www.postgresql.org/docs/15/release-15.html "--with-zstd to enable Zstandard builds" # https://www.postgresql.org/docs/15/release-15.html "--with-zstd to enable Zstandard builds"
zstd-dev \ 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; \ 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.") # 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; \ export CLANG=clang-19; \
\ \
# configure options taken from: # configure options mostly copying Debian:
# https://anonscm.debian.org/cgit/pkg-postgresql/postgresql.git/tree/debian/rules?h=9.5 # https://salsa.debian.org/postgresql/postgresql-common/-/blob/6e26b5107295170cc8731a3acbf13228ea15941e/server/postgresql.mk#L32
./configure \ ./configure \
--enable-option-checking=fatal \ --enable-option-checking=fatal \
--build="$gnuArch" \ --build="$gnuArch" \
@@ -136,17 +139,18 @@ RUN set -eux; \
--with-includes=/usr/local/include \ --with-includes=/usr/local/include \
--with-libraries=/usr/local/lib \ --with-libraries=/usr/local/lib \
--with-gssapi \ --with-gssapi \
--with-icu \
--with-ldap \ --with-ldap \
--with-tcl \ --with-liburing \
--with-perl \
--with-python \
# --with-pam \
--with-openssl \
--with-libxml \ --with-libxml \
--with-libxslt \ --with-libxslt \
--with-icu \
--with-llvm \ --with-llvm \
--with-lz4 \ --with-lz4 \
--with-openssl \
# --with-pam \
--with-perl \
--with-python \
--with-tcl \
--with-zstd \ --with-zstd \
; \ ; \
make -j "$(nproc)" world-bin; \ make -j "$(nproc)" world-bin; \

View File

@@ -110,6 +110,11 @@ RUN set -eux; \
{{ if .major >= 15 then ( -}} {{ if .major >= 15 then ( -}}
# https://www.postgresql.org/docs/15/release-15.html "--with-zstd to enable Zstandard builds" # https://www.postgresql.org/docs/15/release-15.html "--with-zstd to enable Zstandard builds"
zstd-dev \ 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 -}} {{ ) 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.") # 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 }}; \ export CLANG=clang-{{ llvmver }}; \
\ \
# configure options taken from: # configure options mostly copying Debian:
# https://anonscm.debian.org/cgit/pkg-postgresql/postgresql.git/tree/debian/rules?h=9.5 # https://salsa.debian.org/postgresql/postgresql-common/-/blob/6e26b5107295170cc8731a3acbf13228ea15941e/server/postgresql.mk#L32
./configure \ ./configure \
--enable-option-checking=fatal \ --enable-option-checking=fatal \
--build="$gnuArch" \ --build="$gnuArch" \
@@ -154,19 +159,22 @@ RUN set -eux; \
--with-includes=/usr/local/include \ --with-includes=/usr/local/include \
--with-libraries=/usr/local/lib \ --with-libraries=/usr/local/lib \
--with-gssapi \ --with-gssapi \
--with-icu \
--with-ldap \ --with-ldap \
--with-tcl \ {{ if .major >= 18 then ( -}}
--with-perl \ --with-liburing \
--with-python \ {{ ) else "" end -}}
# --with-pam \
--with-openssl \
--with-libxml \ --with-libxml \
--with-libxslt \ --with-libxslt \
--with-icu \
--with-llvm \ --with-llvm \
{{ if .major >= 14 then ( -}} {{ if .major >= 14 then ( -}}
--with-lz4 \ --with-lz4 \
{{ ) else "" end -}} {{ ) else "" end -}}
--with-openssl \
# --with-pam \
--with-perl \
--with-python \
--with-tcl \
{{ if .major >= 15 then ( -}} {{ if .major >= 15 then ( -}}
--with-zstd \ --with-zstd \
{{ ) else "" end -}} {{ ) else "" end -}}