commit:     f5db95df6aac7575bec87740dbdd9ecaee7fab5b
Author:     Alexey Sokolov <alexey+gentoo <AT> asokolov <DOT> org>
AuthorDate: Sun Dec 14 11:57:36 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Dec 18 08:35:12 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f5db95df

net-mail/pfqueue: update EAPI 7 -> 8, fix build with gcc15

Closes: https://bugs.gentoo.org/945067
Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org>
Part-of: https://github.com/gentoo/gentoo/pull/45023
Closes: https://github.com/gentoo/gentoo/pull/45023
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-mail/pfqueue/files/pfqueue-0.5.6-gcc15.patch | 35 ++++++++++++++++++++
 net-mail/pfqueue/pfqueue-0.5.6-r3.ebuild         | 41 ++++++++++++++++++++++++
 2 files changed, 76 insertions(+)

diff --git a/net-mail/pfqueue/files/pfqueue-0.5.6-gcc15.patch 
b/net-mail/pfqueue/files/pfqueue-0.5.6-gcc15.patch
new file mode 100644
index 000000000000..77e70a68009f
--- /dev/null
+++ b/net-mail/pfqueue/files/pfqueue-0.5.6-gcc15.patch
@@ -0,0 +1,35 @@
+Fix build with GCC 15
+https://bugs.gentoo.org/945067
+
+--- a/fe_ncurses.h
++++ b/fe_ncurses.h
+@@ -53,6 +53,6 @@ int          fe_init();
+ void          fe_close();
+ const char*   fe_current_id();
+ 
+-void          msg_show_body();
++void          msg_show_body(int force_own);
+ 
+ #endif
+--- a/libpfq/pfqlib.c
++++ b/libpfq/pfqlib.c
+@@ -713,7 +713,7 @@ int pfql_start(struct pfql_context_t *ctx) {
+ int pfql_context_destroy(struct pfql_context_t *ctx) {
+ 
+       pthread_mutex_destroy ( &ctx->qfill_mutex );
+-      queue_fill_stop(ctx);
++      queue_fill_stop();
+ 
+       if (ctx->beptr) {
+               ctx->pfqbe_close(ctx);
+--- a/pfqlib.h
++++ b/pfqlib.h
+@@ -69,7 +69,7 @@ struct pfql_context_t {
+       int (*pfqbe_apiversion)();
+       int (*pfqbe_init)();
+       int (*pfqbe_setup)(struct msg_t*,struct be_msg_t*);
+-      int (*pfqbe_close)();
++      int (*pfqbe_close)(struct pfql_context_t*);
+       int (*pfqbe_fill_queue)();
+       int (*pfqbe_retr_headers)(const char*);
+       int (*pfqbe_retr_status)(const char*);

diff --git a/net-mail/pfqueue/pfqueue-0.5.6-r3.ebuild 
b/net-mail/pfqueue/pfqueue-0.5.6-r3.ebuild
new file mode 100644
index 000000000000..0e04a412e6ee
--- /dev/null
+++ b/net-mail/pfqueue/pfqueue-0.5.6-r3.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="pfqueue is an ncurses console-based tool for managing Postfix 
queued messages"
+HOMEPAGE="https://pfqueue.sourceforge.net/";
+SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.gz";
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+BDEPEND="dev-build/libtool"
+RDEPEND="sys-libs/ncurses:="
+DEPEND="${RDEPEND}"
+
+DOCS=( README ChangeLog NEWS TODO AUTHORS )
+
+PATCHES=(
+       "${FILESDIR}"/${P}-tinfo.patch
+       "${FILESDIR}"/${PN}-0.5.6-clang16-build-fix.patch
+       "${FILESDIR}"/${P}-gcc15.patch
+)
+
+src_prepare() {
+       default
+
+       eautoreconf
+}
+
+src_configure() {
+       econf --disable-static
+}
+
+src_install() {
+       default
+
+       find "${ED}" -name '*.la' -delete || die
+}

Reply via email to