summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrahmajit Das <brahmajit.xyz@gmail.com>2023-06-29 17:56:35 +0000
committerJoonas Niilola <juippis@gentoo.org>2023-07-21 10:58:29 +0300
commitce6f9da4df86bdd6edd9e9fbe017c46870231420 (patch)
tree4a6664b2625a6cfe379debe0bd7e79c1649238ef
parentx11-misc/albert: add missing libarchive dep (diff)
downloadgentoo-ce6f9da4df86bdd6edd9e9fbe017c46870231420.tar.gz
gentoo-ce6f9da4df86bdd6edd9e9fbe017c46870231420.tar.bz2
gentoo-ce6f9da4df86bdd6edd9e9fbe017c46870231420.zip
net-mail/pfqueue: Fix incompatible pointer to integer conversion
Closes: https://bugs.gentoo.org/885839 Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/31669 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
-rw-r--r--net-mail/pfqueue/files/pfqueue-0.5.6-clang16-build-fix.patch26
-rw-r--r--net-mail/pfqueue/pfqueue-0.5.6-r2.ebuild40
2 files changed, 66 insertions, 0 deletions
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; i<l; i++ ) {
+@@ -114,8 +119,8 @@ int pfb_setup( struct msg_t *qptr1, struct be_msg_t *qptr2 ) {
+ svra.sin_family = AF_INET;
+
+ memcpy ( (struct sockaddr*)&svra.sin_addr.s_addr,
+- (struct hostent*)svr->h_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
+}