commit: f04d8a96685375fa27719a450cb803e6dbbb2667 Author: Brahmajit Das <brahmajit.xyz <AT> gmail <DOT> com> AuthorDate: Wed Aug 16 08:34:40 2023 +0000 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> CommitDate: Sat Aug 19 05:50:45 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f04d8a96
net-mail/checkpassword-pam: Fix call to undeclared library function Closes: https://bugs.gentoo.org/897930 Signed-off-by: Brahmajit Das <brahmajit.xyz <AT> gmail.com> Closes: https://github.com/gentoo/gentoo/pull/32336 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> .../checkpassword-pam-0.99-r2.ebuild | 24 ++++++++++++++++++++++ .../checkpassword-pam-0.99-clang16-build-fix.patch | 11 ++++++++++ 2 files changed, 35 insertions(+) diff --git a/net-mail/checkpassword-pam/checkpassword-pam-0.99-r2.ebuild b/net-mail/checkpassword-pam/checkpassword-pam-0.99-r2.ebuild new file mode 100644 index 000000000000..8b8df16d4e6a --- /dev/null +++ b/net-mail/checkpassword-pam/checkpassword-pam-0.99-r2.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="checkpassword-compatible authentication program w/pam support" +HOMEPAGE="http://checkpasswd-pam.sourceforge.net/" +SRC_URI="mirror://sourceforge/checkpasswd-pam/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ppc ~riscv ~x86" + +DEPEND=">=sys-libs/pam-0.75" + +DOCS=( + AUTHORS + NEWS + README +) + +PATCHES=( + "${FILESDIR}"/${PN}-0.99-clang16-build-fix.patch +) diff --git a/net-mail/checkpassword-pam/files/checkpassword-pam-0.99-clang16-build-fix.patch b/net-mail/checkpassword-pam/files/checkpassword-pam-0.99-clang16-build-fix.patch new file mode 100644 index 000000000000..28e0eeda8101 --- /dev/null +++ b/net-mail/checkpassword-pam/files/checkpassword-pam-0.99-clang16-build-fix.patch @@ -0,0 +1,11 @@ +Bug: https://bugs.gentoo.org/897930 +--- a/getopt.c ++++ b/getopt.c +@@ -38,6 +38,7 @@ + #endif + + #include <stdio.h> ++#include <string.h> + + /* Comment out all this code if we are using the GNU C Library, and are not + actually compiling the library itself. This code is part of the GNU C