From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/pam-pgsql/files/, sys-auth/pam-pgsql/
Date: Mon, 3 Oct 2022 00:38:22 +0000 (UTC) [thread overview]
Message-ID: <1664757489.5bfa0c9d170e14d5dfa9a174298561432c96ed20.sam@gentoo> (raw)
commit: 5bfa0c9d170e14d5dfa9a174298561432c96ed20
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 2 23:04:46 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Oct 3 00:38:09 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5bfa0c9d
sys-auth/pam-pgsql: fix build with Clang 16
Closes: https://bugs.gentoo.org/871492
Signed-off-by: Sam James <sam <AT> gentoo.org>
...7.3.2-Fix-crypt-implicit-function-declaration.patch | 18 ++++++++++++++++++
...l-0.7.3.2-r1.ebuild => pam-pgsql-0.7.3.2-r2.ebuild} | 6 +++++-
2 files changed, 23 insertions(+), 1 deletion(-)
diff --git a/sys-auth/pam-pgsql/files/pam-pgsql-0.7.3.2-Fix-crypt-implicit-function-declaration.patch b/sys-auth/pam-pgsql/files/pam-pgsql-0.7.3.2-Fix-crypt-implicit-function-declaration.patch
new file mode 100644
index 000000000000..bf3604fd5670
--- /dev/null
+++ b/sys-auth/pam-pgsql/files/pam-pgsql-0.7.3.2-Fix-crypt-implicit-function-declaration.patch
@@ -0,0 +1,18 @@
+From: Sam James <sam@gentoo.org>
+Date: Sun, 2 Oct 2022 23:55:21 +0100
+Subject: [PATCH] Fix crypt() implicit function declaration
+
+crypt() is POSIX and setting _XOPEN_SOURCE makes glibc inhibit
+defining it w/o _DEFAULT_SOURCE.
+
+Bug: https://bugs.gentoo.org/871492
+--- a/src/backend_pgsql.c
++++ b/src/backend_pgsql.c
+@@ -8,7 +8,6 @@
+ * William Grzybowski <william@agencialivre.com.br>
+ */
+
+-#define _XOPEN_SOURCE 500
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <stdarg.h>
diff --git a/sys-auth/pam-pgsql/pam-pgsql-0.7.3.2-r1.ebuild b/sys-auth/pam-pgsql/pam-pgsql-0.7.3.2-r2.ebuild
similarity index 90%
rename from sys-auth/pam-pgsql/pam-pgsql-0.7.3.2-r1.ebuild
rename to sys-auth/pam-pgsql/pam-pgsql-0.7.3.2-r2.ebuild
index 656ce64960a5..cf3ad756ccad 100644
--- a/sys-auth/pam-pgsql/pam-pgsql-0.7.3.2-r1.ebuild
+++ b/sys-auth/pam-pgsql/pam-pgsql-0.7.3.2-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -24,6 +24,10 @@ RDEPEND=">=dev-db/postgresql-8.0:=
virtual/libcrypt:="
DEPEND="${RDEPEND}"
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.7.3.2-Fix-crypt-implicit-function-declaration.patch
+)
+
src_configure() {
econf \
--sysconfdir=/etc/security \
reply other threads:[~2022-10-03 0:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1664757489.5bfa0c9d170e14d5dfa9a174298561432c96ed20.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox