commit:     7899add8486143372e96388b99ca3e9fdd820638
Author:     Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr>
AuthorDate: Tue Sep  2 05:17:05 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Sep  2 10:50:26 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7899add8

app-crypt/ckpass: fix c23 and sentinel value

add missing dep ncurses too

Closes: https://bugs.gentoo.org/880435
Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/43643
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-crypt/ckpass/ckpass-0.2-r3.ebuild              | 31 ++++++++++++++++++++++
 .../files/ckpass-0.2-fix_c23_and_sentinel.patch    | 24 +++++++++++++++++
 2 files changed, 55 insertions(+)

diff --git a/app-crypt/ckpass/ckpass-0.2-r3.ebuild 
b/app-crypt/ckpass/ckpass-0.2-r3.ebuild
new file mode 100644
index 000000000000..aedc574d6c3e
--- /dev/null
+++ b/app-crypt/ckpass/ckpass-0.2-r3.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="ncurses based password database client compatible with KeePass 
1.x databases"
+HOMEPAGE="https://sourceforge.net/projects/ckpass/";
+SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.gz";
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="
+       >=dev-libs/libkpass-6
+       sys-libs/ncurses:=
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+       "${FILESDIR}"/${P}-tinfo.patch
+       "${FILESDIR}"/${P}-implicit-function-declaration.patch
+       "${FILESDIR}"/${P}-fix_c23_and_sentinel.patch
+)
+
+src_prepare() {
+       default
+       eautoreconf
+}

diff --git a/app-crypt/ckpass/files/ckpass-0.2-fix_c23_and_sentinel.patch 
b/app-crypt/ckpass/files/ckpass-0.2-fix_c23_and_sentinel.patch
new file mode 100644
index 000000000000..52027d340541
--- /dev/null
+++ b/app-crypt/ckpass/files/ckpass-0.2-fix_c23_and_sentinel.patch
@@ -0,0 +1,24 @@
+fix unprototyped function #880435 and missing sentinel
+https://sourceforge.net/p/ckpass/bugs/2/
+--- a/ckpass.h
++++ b/ckpass.h
+@@ -56,7 +56,7 @@ void error_dialog(char *s);
+ int open_db(kpass_db *db, const char *filename);
+ int read_db(kpass_db *db, const char *filename);
+ int decrypt_db(kpass_db *db, const char *password);
+-void init_windows();
++void init_windows(const kpass_db *db);
+ void draw_groups(const kpass_db *, int, int, bool);
+ void draw_entries(const kpass_db *, int, int, int, bool, bool);
+ void draw_top_bar(const char *);
+--- a/ckpass.c
++++ b/ckpass.c
+@@ -677,7 +677,7 @@ int pipeout(const char *command, const char *s)
+               close(pipefd[1]); /* Close write end. */
+               dup2(pipefd[0], 0); /* Dup read end to stdin. */
+ 
+-              execl(command, command, 0);
++              execl(command, command, NULL);
+ 
+               /* I don't really think these are necessary, but just in case. 
*/
+               close(pipefd[0]);

Reply via email to