Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tzNKf-001Ez9-M1 for pgsql-hackers@arkaria.postgresql.org; Mon, 31 Mar 2025 22:10:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tzN5c-00D0WG-W9 for pgsql-hackers@arkaria.postgresql.org; Mon, 31 Mar 2025 21:54:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tzN5c-00D0W8-Mk for pgsql-hackers@lists.postgresql.org; Mon, 31 Mar 2025 21:54:40 +0000 Received: from mout-p-103.mailbox.org ([80.241.56.161]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tzN5a-002L25-0N for pgsql-hackers@lists.postgresql.org; Mon, 31 Mar 2025 21:54:40 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4ZRPzr5sl7z9v2q; Mon, 31 Mar 2025 23:54:32 +0200 (CEST) Date: Mon, 31 Mar 2025 23:54:30 +0200 From: Christoph Berg To: Daniel Gustafsson , Jacob Champion , Thomas Munro Cc: pgsql-hackers@lists.postgresql.org Subject: Re: pgsql: Add support for OAUTHBEARER SASL mechanism Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > Add support for OAUTHBEARER SASL mechanism Debian still has this experimental port with a GNU userland and a FreeBSD kernel called kfreebsd. I don't expect anyone to particularly care about it, but it found an actual bug: /build/reproducible-path/postgresql-18-18~~devel.20250331/build/../src/interfaces/libpq/fe-auth-oauth-curl.c: In function ‘register_socket’: /build/reproducible-path/postgresql-18-18~~devel.20250331/build/../src/interfaces/libpq/fe-auth-oauth-curl.c:1317:20: error: ‘actx’ undeclared (first use in this function); did you mean ‘ctx’? 1317 | actx_error(actx, "libpq does not support multiplexer sockets on this platform"); | ^~~~ This should not be a compile-time error; actx is not defined outside the #ifdef blocks there: /* * Adds and removes sockets from the multiplexer set, as directed by the * libcurl multi handle. */ static int register_socket(CURL *curl, curl_socket_t socket, int what, void *ctx, void *socketp) { #ifdef HAVE_SYS_EPOLL_H struct async_ctx *actx = ctx; ... #endif #ifdef HAVE_SYS_EVENT_H struct async_ctx *actx = ctx; ... #endif actx_error(actx, "libpq does not support multiplexer sockets on this platform"); return -1; } https://buildd.debian.org/status/fetch.php?pkg=postgresql-18&arch=hurd-amd64&ver=18%7E%7Edevel.20250331-1&stamp=1743455288&raw=0 Christoph