From 48c6cf1f1b4634f58a7286b91dda2212968cdd20 Mon Sep 17 00:00:00 2001 From: "Marvin A. Ruder" Date: Mon, 16 Feb 2026 22:45:09 +0100 Subject: [PATCH 1/4] Build `libpq` with `libcurl` to include `libpq-oauth` Signed-off-by: Marvin A. Ruder --- 18/alpine3.22/Dockerfile | 2 ++ 18/alpine3.23/Dockerfile | 2 ++ Dockerfile-alpine.template | 2 ++ 3 files changed, 6 insertions(+) diff --git a/18/alpine3.22/Dockerfile b/18/alpine3.22/Dockerfile index b39345cb25..d7ca452964 100644 --- a/18/alpine3.22/Dockerfile +++ b/18/alpine3.22/Dockerfile @@ -102,6 +102,7 @@ RUN set -eux; \ lz4-dev \ # https://www.postgresql.org/docs/15/release-15.html "--with-zstd to enable Zstandard builds" zstd-dev \ + libcurl \ # https://salsa.debian.org/postgresql/postgresql-common/-/commit/89c384273f4c4092483598c292b1b1b188816cce # https://www.postgresql.org/docs/18/install-make.html#CONFIGURE-OPTION-WITH-LIBURING liburing-dev \ @@ -141,6 +142,7 @@ RUN set -eux; \ --with-gssapi \ --with-icu \ --with-ldap \ + --with-libcurl \ --with-liburing \ --with-libxml \ --with-libxslt \ diff --git a/18/alpine3.23/Dockerfile b/18/alpine3.23/Dockerfile index faff97e3e5..b5b8afb22a 100644 --- a/18/alpine3.23/Dockerfile +++ b/18/alpine3.23/Dockerfile @@ -102,6 +102,7 @@ RUN set -eux; \ lz4-dev \ # https://www.postgresql.org/docs/15/release-15.html "--with-zstd to enable Zstandard builds" zstd-dev \ + libcurl \ # https://salsa.debian.org/postgresql/postgresql-common/-/commit/89c384273f4c4092483598c292b1b1b188816cce # https://www.postgresql.org/docs/18/install-make.html#CONFIGURE-OPTION-WITH-LIBURING liburing-dev \ @@ -141,6 +142,7 @@ RUN set -eux; \ --with-gssapi \ --with-icu \ --with-ldap \ + --with-libcurl \ --with-liburing \ --with-libxml \ --with-libxslt \ diff --git a/Dockerfile-alpine.template b/Dockerfile-alpine.template index 1f9ffd7592..73c2ff38c9 100644 --- a/Dockerfile-alpine.template +++ b/Dockerfile-alpine.template @@ -110,6 +110,7 @@ RUN set -eux; \ zstd-dev \ {{ ) else "" end -}} {{ if .major >= 18 then ( -}} + libcurl \ # https://salsa.debian.org/postgresql/postgresql-common/-/commit/89c384273f4c4092483598c292b1b1b188816cce # https://www.postgresql.org/docs/18/install-make.html#CONFIGURE-OPTION-WITH-LIBURING liburing-dev \ @@ -160,6 +161,7 @@ RUN set -eux; \ --with-icu \ --with-ldap \ {{ if .major >= 18 then ( -}} + --with-libcurl \ --with-liburing \ {{ ) else "" end -}} --with-libxml \ From 7a7eab3c907dc65e7b2062feafec76734286e26d Mon Sep 17 00:00:00 2001 From: "Marvin A. Ruder" Date: Tue, 17 Feb 2026 23:53:51 +0100 Subject: [PATCH 2/4] Add comment explaining `libcurl` dependency Signed-off-by: Marvin A. Ruder --- Dockerfile-alpine.template | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile-alpine.template b/Dockerfile-alpine.template index 73c2ff38c9..636f7f69c5 100644 --- a/Dockerfile-alpine.template +++ b/Dockerfile-alpine.template @@ -110,6 +110,8 @@ RUN set -eux; \ zstd-dev \ {{ ) else "" end -}} {{ if .major >= 18 then ( -}} +# https://salsa.debian.org/postgresql/postgresql-common/-/commit/a31ce5b893c11e0f17a016e38c1882fbe1820081 +# https://www.postgresql.org/docs/18/install-make.html#CONFIGURE-OPTION-WITH-LIBCURL libcurl \ # https://salsa.debian.org/postgresql/postgresql-common/-/commit/89c384273f4c4092483598c292b1b1b188816cce # https://www.postgresql.org/docs/18/install-make.html#CONFIGURE-OPTION-WITH-LIBURING From 29d8bf9107d74a338916bccb880587cf3b8411ce Mon Sep 17 00:00:00 2001 From: "Marvin A. Ruder" Date: Wed, 18 Feb 2026 09:12:14 +0100 Subject: [PATCH 3/4] Apply templates after last commit Signed-off-by: Marvin A. Ruder --- 18/alpine3.22/Dockerfile | 2 ++ 18/alpine3.23/Dockerfile | 2 ++ 2 files changed, 4 insertions(+) diff --git a/18/alpine3.22/Dockerfile b/18/alpine3.22/Dockerfile index d7ca452964..ed1682b5f8 100644 --- a/18/alpine3.22/Dockerfile +++ b/18/alpine3.22/Dockerfile @@ -102,6 +102,8 @@ 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/a31ce5b893c11e0f17a016e38c1882fbe1820081 +# https://www.postgresql.org/docs/18/install-make.html#CONFIGURE-OPTION-WITH-LIBCURL libcurl \ # https://salsa.debian.org/postgresql/postgresql-common/-/commit/89c384273f4c4092483598c292b1b1b188816cce # https://www.postgresql.org/docs/18/install-make.html#CONFIGURE-OPTION-WITH-LIBURING diff --git a/18/alpine3.23/Dockerfile b/18/alpine3.23/Dockerfile index b5b8afb22a..b812e48246 100644 --- a/18/alpine3.23/Dockerfile +++ b/18/alpine3.23/Dockerfile @@ -102,6 +102,8 @@ 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/a31ce5b893c11e0f17a016e38c1882fbe1820081 +# https://www.postgresql.org/docs/18/install-make.html#CONFIGURE-OPTION-WITH-LIBCURL libcurl \ # https://salsa.debian.org/postgresql/postgresql-common/-/commit/89c384273f4c4092483598c292b1b1b188816cce # https://www.postgresql.org/docs/18/install-make.html#CONFIGURE-OPTION-WITH-LIBURING From f148d846d024f4ed778a5187b5711084d79af1ca Mon Sep 17 00:00:00 2001 From: "Marvin A. Ruder" Date: Wed, 18 Feb 2026 09:30:07 +0100 Subject: [PATCH 4/4] Fix dependency Signed-off-by: Marvin A. Ruder --- 18/alpine3.22/Dockerfile | 2 +- 18/alpine3.23/Dockerfile | 2 +- Dockerfile-alpine.template | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/18/alpine3.22/Dockerfile b/18/alpine3.22/Dockerfile index ed1682b5f8..c118598402 100644 --- a/18/alpine3.22/Dockerfile +++ b/18/alpine3.22/Dockerfile @@ -104,7 +104,7 @@ RUN set -eux; \ zstd-dev \ # https://salsa.debian.org/postgresql/postgresql-common/-/commit/a31ce5b893c11e0f17a016e38c1882fbe1820081 # https://www.postgresql.org/docs/18/install-make.html#CONFIGURE-OPTION-WITH-LIBCURL - libcurl \ + curl-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 \ diff --git a/18/alpine3.23/Dockerfile b/18/alpine3.23/Dockerfile index b812e48246..bac0162d36 100644 --- a/18/alpine3.23/Dockerfile +++ b/18/alpine3.23/Dockerfile @@ -104,7 +104,7 @@ RUN set -eux; \ zstd-dev \ # https://salsa.debian.org/postgresql/postgresql-common/-/commit/a31ce5b893c11e0f17a016e38c1882fbe1820081 # https://www.postgresql.org/docs/18/install-make.html#CONFIGURE-OPTION-WITH-LIBCURL - libcurl \ + curl-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 \ diff --git a/Dockerfile-alpine.template b/Dockerfile-alpine.template index 636f7f69c5..6f23fa6c0f 100644 --- a/Dockerfile-alpine.template +++ b/Dockerfile-alpine.template @@ -112,7 +112,7 @@ RUN set -eux; \ {{ if .major >= 18 then ( -}} # https://salsa.debian.org/postgresql/postgresql-common/-/commit/a31ce5b893c11e0f17a016e38c1882fbe1820081 # https://www.postgresql.org/docs/18/install-make.html#CONFIGURE-OPTION-WITH-LIBCURL - libcurl \ + curl-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 \