From ce6f9da4df86bdd6edd9e9fbe017c46870231420 Mon Sep 17 00:00:00 2001 From: Brahmajit Das Date: Thu, 29 Jun 2023 17:56:35 +0000 Subject: net-mail/pfqueue: Fix incompatible pointer to integer conversion Closes: https://bugs.gentoo.org/885839 Signed-off-by: Brahmajit Das Closes: https://github.com/gentoo/gentoo/pull/31669 Signed-off-by: Joonas Niilola --- .../files/pfqueue-0.5.6-clang16-build-fix.patch | 26 ++++++++++++++ net-mail/pfqueue/pfqueue-0.5.6-r2.ebuild | 40 ++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 net-mail/pfqueue/files/pfqueue-0.5.6-clang16-build-fix.patch create mode 100644 net-mail/pfqueue/pfqueue-0.5.6-r2.ebuild (limited to 'net-mail') diff --git a/net-mail/pfqueue/files/pfqueue-0.5.6-clang16-build-fix.patch b/net-mail/pfqueue/files/pfqueue-0.5.6-clang16-build-fix.patch new file mode 100644 index 000000000000..f6d8e183634b --- /dev/null +++ b/net-mail/pfqueue/files/pfqueue-0.5.6-clang16-build-fix.patch @@ -0,0 +1,26 @@ +Bug: https://bugs.gentoo.org/885839 +--- a/backends/pfq_socket.c ++++ b/backends/pfq_socket.c +@@ -34,6 +34,11 @@ int sock; + + struct pfb_conf_t pfb_conf; + ++int pfb_retr_to( const char* ); ++int pfb_retr_from( const char* ); ++int pfb_retr_path( const char* ); ++int pfb_retr_subj( const char* ); ++ + void strip_nl(char* b, int l) { + int i; + for ( i=0; ih_addr, +- (struct hostent*)svr->h_length ); ++ svr->h_addr, ++ svr->h_length ); + svra.sin_port = htons( pfb_conf.port ); + + if ( connect(sock, (struct sockaddr*)&svra, sizeof(svra)) <0 ) diff --git a/net-mail/pfqueue/pfqueue-0.5.6-r2.ebuild b/net-mail/pfqueue/pfqueue-0.5.6-r2.ebuild new file mode 100644 index 000000000000..31f54d5c5608 --- /dev/null +++ b/net-mail/pfqueue/pfqueue-0.5.6-r2.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools + +DESCRIPTION="pfqueue is an ncurses console-based tool for managing Postfix queued messages" +HOMEPAGE="http://pfqueue.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +BDEPEND="sys-devel/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 +) + +src_prepare() { + default + + eautoreconf +} + +src_configure() { + econf --disable-static +} + +src_install() { + default + + find "${ED}" -name '*.la' -delete || die +} -- cgit v1.2.3-65-gdbad