[gentoo-commits] repo/gentoo:master commit in: app-text/uudeview/files/, app-text/uudeview/

2023-04-28 Thread Hanno Böck
commit: d3755e075dd017ebb76976652a69e544e826a42d
Author: Hanno Böck  gentoo  org>
AuthorDate: Fri Apr 28 18:40:23 2023 +
Commit: Hanno Böck  gentoo  org>
CommitDate: Fri Apr 28 18:40:23 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3755e07

app-text/uudeview: Fix implicit function declaration

Avoids issues with clang 16.

Closes: https://bugs.gentoo.org/900535
Signed-off-by: Hanno Böck  gentoo.org>

 .../files/uudeview-0.5.20-fix-implicit.diff| 12 ++
 app-text/uudeview/uudeview-0.5.20-r4.ebuild| 44 ++
 2 files changed, 56 insertions(+)

diff --git a/app-text/uudeview/files/uudeview-0.5.20-fix-implicit.diff 
b/app-text/uudeview/files/uudeview-0.5.20-fix-implicit.diff
new file mode 100644
index ..30b900d4509b
--- /dev/null
+++ b/app-text/uudeview/files/uudeview-0.5.20-fix-implicit.diff
@@ -0,0 +1,12 @@
+diff --git a/configure.in b/configure.in
+index 4ea5965..49100ff 100644
+--- a/configure.in
 b/configure.in
+@@ -518,6 +518,7 @@ AC_CHECK_FUNC([mkstemp],,[AC_MSG_ERROR([needs mkstemp])])
+ #
+ AC_MSG_CHECKING([for strerror])
+ AC_TRY_LINK([
++#include 
+ char *blubb() { return (char *) strerror (42); }
+ ],[
+ (void) blubb();

diff --git a/app-text/uudeview/uudeview-0.5.20-r4.ebuild 
b/app-text/uudeview/uudeview-0.5.20-r4.ebuild
new file mode 100644
index ..7ec9c8a0f37f
--- /dev/null
+++ b/app-text/uudeview/uudeview-0.5.20-r4.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools toolchain-funcs
+
+DESCRIPTION="uu, xx, base64, binhex decoder"
+HOMEPAGE="http://www.fpx.de/fp/Software/UUDeview/;
+SRC_URI="http://www.fpx.de/fp/Software/UUDeview/download/${P}.tar.gz;
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+
+PATCHES=(
+   "${FILESDIR}"/${P}-bugfixes.patch
+   "${FILESDIR}"/${P}-CVE-2004-2265.patch
+   "${FILESDIR}"/${P}-CVE-2008-2266.patch
+   "${FILESDIR}"/${P}-man.patch
+   "${FILESDIR}"/${P}-rename.patch
+   "${FILESDIR}"/${P}-makefile.patch
+   "${FILESDIR}"/${P}-fix-append_signature.patch
+   "${FILESDIR}"/${P}-string_format_issue.patch
+   "${FILESDIR}"/${P}-format-string-warning-inews.patch
+   "${FILESDIR}"/${P}-fix-function-definitions-clang16.patch
+   "${FILESDIR}"/${P}-fix-implicit.diff
+)
+
+DOCS=( HISTORY INSTALL README )
+
+src_prepare() {
+   sed -i "s:^\tar r:\t$(tc-getAR) r:" uulib/Makefile.in || die
+
+   default
+   mv configure.{in,ac} || die
+   eautoreconf
+}
+
+src_configure() {
+   econf \
+   --disable-tcl \
+   --disable-tk
+}



[gentoo-commits] repo/gentoo:master commit in: app-text/uudeview/files/, app-text/uudeview/

2022-11-26 Thread Hanno Böck
commit: d15eae1e2a778ba92e986121ae3437e48b4b5e2b
Author: Hanno Böck  gentoo  org>
AuthorDate: Sat Nov 26 17:48:25 2022 +
Commit: Hanno Böck  gentoo  org>
CommitDate: Sat Nov 26 17:48:25 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d15eae1e

app-text/uudeview: Fix format string and function definition issues.

This fixes two compiler warnings about possible format string risks
and missing function definitions that will cause errors in clang 16.

Closes: https://bugs.gentoo.org/521266
Closes: https://bugs.gentoo.org/874960
Closes: https://github.com/gentoo/gentoo/pull/28420
Signed-off-by: Hanno Böck  gentoo.org>

 ...w-0.5.20-fix-function-definitions-clang16.patch | 134 +
 ...deview-0.5.20-format-string-warning-inews.patch |  11 ++
 .../uudeview-0.5.20-string_format_issue.patch  |  24 
 app-text/uudeview/uudeview-0.5.20-r3.ebuild|  43 +++
 4 files changed, 212 insertions(+)

diff --git 
a/app-text/uudeview/files/uudeview-0.5.20-fix-function-definitions-clang16.patch
 
b/app-text/uudeview/files/uudeview-0.5.20-fix-function-definitions-clang16.patch
new file mode 100644
index ..2ed3dd572be0
--- /dev/null
+++ 
b/app-text/uudeview/files/uudeview-0.5.20-fix-function-definitions-clang16.patch
@@ -0,0 +1,134 @@
+Clang16 will not allow implicit function declaration, implicit int etc. by 
default.
+This patch overhauls the source code to build with clan16 defaults.
+
+Bug: https://bugs.gentoo.org/874960
+
+Original patch by Pascal Jäger ,
+minor adjustments by Hanno Böck.
+
+diff -Naurp a/inews/clientlib.c b/inews/clientlib.c
+--- a/inews/clientlib.c1996-06-06 21:41:07.0 +0200
 b/inews/clientlib.c2022-11-26 18:32:09.383423565 +0100
+@@ -14,6 +14,7 @@ static char  *sccsid = "@(#)clientlib.c  1
+ #include "../config.h"
+ #endif
+ 
++#include 
+ #include 
+ #ifndef FOR_NN
+ #include 
+@@ -52,6 +53,7 @@ static char  *sccsid = "@(#)clientlib.c  1
+ #endif
+ 
+ #include "nntp.h"
++#include "clientlib.h"
+ 
+ FILE  *ser_rd_fp = NULL;
+ FILE  *ser_wr_fp = NULL;
+@@ -133,7 +135,7 @@ char   *file;
+  *for reading and writing to server.
+  */
+ 
+-server_init(machine)
++int server_init(machine)
+ char  *machine;
+ {
+   int sockt_rd, sockt_wr;
+@@ -194,7 +196,7 @@ char   *machine;
+  *Errors: Printed via perror.
+  */
+ 
+-get_tcp_socket(machine)
++int get_tcp_socket(machine)
+ char  *machine;
+ {
+   int s;
+@@ -218,7 +220,6 @@ char   *machine;
+ * fails.
+ */
+if( (hp = gethostbyname( machine ) ) == NULL ) {
+-   unsigned long inet_addr();
+static struct hostent def;
+static struct in_addr defaddr;
+static char *alist[1];
+@@ -344,7 +345,7 @@ char   *machine;
+  *Errors: Printed via nerror.
+  */
+ 
+-get_dnet_socket(machine)
++int get_dnet_socket(machine)
+ char  *machine;
+ {
+   int s, area, node;
+@@ -427,7 +428,7 @@ char   *machine;
+  *Side effects:   None.
+  */
+ 
+-handle_server_response(response, server)
++int handle_server_response(response, server)
+ int   response;
+ char  *server;
+ {
+@@ -502,7 +503,7 @@ char *string;
+  *Side effects:   Talks to server, changes contents of "string".
+  */
+ 
+-get_server(string, size)
++int get_server(string, size)
+ char  *string;
+ int   size;
+ {
+diff -Naurp a/inews/clientlib.h b/inews/clientlib.h
+--- a/inews/clientlib.h1996-06-06 21:41:07.0 +0200
 b/inews/clientlib.h2022-11-26 18:27:59.711248861 +0100
+@@ -9,3 +9,7 @@ extern int server_init();
+ externvoidput_server();
+ externint get_server();
+ externvoidclose_server();
++
++externint get_tcp_socket(char *machine);
++externint get_server(char *string, int size);
++externint handle_server_response(int response, char *server);
+diff -Naurp a/inews/inews.c b/inews/inews.c
+--- a/inews/inews.c2004-01-29 03:14:19.0 +0100
 b/inews/inews.c2022-11-26 18:32:26.200435328 +0100
+@@ -39,15 +39,20 @@ static char *sccsid = "@(#)inews.c 1.16
+ 
+ #include "conf.h"
+ #include "nntp.h"
++#include "clientlib.h"
+ 
+ 
+ #define   MAX_SIGNATURE   6
+ 
++int strneql(char *a, char *b, int n);
++void gen_frompath(void);
++int valid_header(register char *h);
++
+ externFILE*ser_wr_fp;
+ 
+ char  host_name[256];
+ 
+-main(argc, argv)
++int main(argc, argv)
+ int   argc;
+ char  *argv[];
+ {
+@@ -254,7 +259,7 @@ append_signature()
+  * a From: line in it.
+  */
+ 
+-gen_frompath()
++void gen_frompath()
+ {
+   char*full_name;
+   char*cp;
+@@ -330,7 +335,7 @@ gen_frompath()
+  *Side effects:   None.
+  */
+ 
+-strneql(a, b, n)
++int strneql(a, b, n)
+ register char *a, *b;
+ int   n;
+ {

diff --git 
a/app-text/uudeview/files/uudeview-0.5.20-format-string-warning-inews.patch 

[gentoo-commits] repo/gentoo:master commit in: app-text/uudeview/files/, app-text/uudeview/

2020-01-21 Thread David Seifert
commit: 8ebfeefa5b3c66d6f95eb78b0f449696d8b5864e
Author: David Seifert  gentoo  org>
AuthorDate: Tue Jan 21 21:50:40 2020 +
Commit: David Seifert  gentoo  org>
CommitDate: Tue Jan 21 21:50:40 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ebfeefa

app-text/uudeview: Port to EAPI 7

Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: David Seifert  gentoo.org>

 .../uudeview/files/uudeview-0.5.20-makefile.patch  |  4 +--
 app-text/uudeview/uudeview-0.5.20-r2.ebuild| 33 +-
 2 files changed, 15 insertions(+), 22 deletions(-)

diff --git a/app-text/uudeview/files/uudeview-0.5.20-makefile.patch 
b/app-text/uudeview/files/uudeview-0.5.20-makefile.patch
index ed3cdf66374..a2366851f46 100644
--- a/app-text/uudeview/files/uudeview-0.5.20-makefile.patch
+++ b/app-text/uudeview/files/uudeview-0.5.20-makefile.patch
@@ -1,5 +1,5 @@
 Makefile.in.orig   2015-11-18 13:52:44.173432349 +0300
-+++ Makefile.in2015-11-18 13:53:39.244429093 +0300
+--- a/Makefile.in
 b/Makefile.in
 @@ -183,22 +183,22 @@
  
  install:  $(DOINST)

diff --git a/app-text/uudeview/uudeview-0.5.20-r2.ebuild 
b/app-text/uudeview/uudeview-0.5.20-r2.ebuild
index 6331df769ce..d8c47f13408 100644
--- a/app-text/uudeview/uudeview-0.5.20-r2.ebuild
+++ b/app-text/uudeview/uudeview-0.5.20-r2.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="5"
+EAPI=7
 
-inherit eutils autotools
+inherit autotools
 
 DESCRIPTION="uu, xx, base64, binhex decoder"
 HOMEPAGE="http://www.fpx.de/fp/Software/UUDeview/;
@@ -12,28 +12,21 @@ 
SRC_URI="http://www.fpx.de/fp/Software/UUDeview/download/${P}.tar.gz;
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="alpha amd64 ppc sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
-IUSE=""
-
-RDEPEND=""
-DEPEND=""
-
-DOCS=( HISTORY INSTALL README )
 
 PATCHES=(
-   "${FILESDIR}/${P}-bugfixes.patch"
-   "${FILESDIR}/${P}-CVE-2004-2265.patch"
-   "${FILESDIR}/${P}-CVE-2008-2266.patch"
-   "${FILESDIR}/${P}-man.patch"
-   "${FILESDIR}/${P}-rename.patch"
-   "${FILESDIR}/${P}-makefile.patch"
+   "${FILESDIR}"/${P}-bugfixes.patch
+   "${FILESDIR}"/${P}-CVE-2004-2265.patch
+   "${FILESDIR}"/${P}-CVE-2008-2266.patch
+   "${FILESDIR}"/${P}-man.patch
+   "${FILESDIR}"/${P}-rename.patch
+   "${FILESDIR}"/${P}-makefile.patch
 )
 
-src_prepare() {
-   epatch "${PATCHES[@]}"
-
-   mv configure.in configure.ac || die
+DOCS=( HISTORY INSTALL README )
 
-   epatch_user
+src_prepare() {
+   default
+   mv configure.{in,ac} || die
eautoreconf
 }
 



[gentoo-commits] repo/gentoo:master commit in: app-text/uudeview/files/, app-text/uudeview/

2015-11-18 Thread Sergey Popov
commit: ef57bc87b6e20084ee342b327c28d50626368407
Author: Sergey Popov  gentoo  org>
AuthorDate: Wed Nov 18 11:06:08 2015 +
Commit: Sergey Popov  gentoo  org>
CommitDate: Wed Nov 18 11:13:03 2015 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef57bc87

app-text/uudeview: revision bump

EAPI 5, add support for user patches,
do not use deprecated einstall in src_install

Package-Manager: portage-2.2.23

 .../uudeview/files/uudeview-0.5.20-makefile.patch  | 29 ++
 app-text/uudeview/uudeview-0.5.20-r2.ebuild| 45 ++
 2 files changed, 74 insertions(+)

diff --git a/app-text/uudeview/files/uudeview-0.5.20-makefile.patch 
b/app-text/uudeview/files/uudeview-0.5.20-makefile.patch
new file mode 100644
index 000..ed3cdf6
--- /dev/null
+++ b/app-text/uudeview/files/uudeview-0.5.20-makefile.patch
@@ -0,0 +1,29 @@
+--- Makefile.in.orig   2015-11-18 13:52:44.173432349 +0300
 Makefile.in2015-11-18 13:53:39.244429093 +0300
+@@ -183,22 +183,22 @@
+ 
+ install:  $(DOINST)
+   -for d in $(MPAGES) ; do \
+-  $(INSTALL_DATA) $(srcdir)/man/$$d $(MANDIR)/man1/$$d ; \
++  $(INSTALL_DATA) $(srcdir)/man/$$d $(DESTDIR)$(MANDIR)/man1/$$d 
; \
+   done
+ 
+ install-uudeview: uudeview
+   for d in uudeview uuenview ; do \
+-  $(INSTALL_PROGRAM) unix/$$d $(BINDIR)/$$d ; \
++  $(INSTALL_PROGRAM) unix/$$d $(DESTDIR)$(BINDIR)/$$d ; \
+   done
+ 
+ install-tcl:  xdeview
+   for d in xdeview uuwish ; do \
+-  $(INSTALL_PROGRAM) tcl/$$d $(BINDIR)/$$d ; \
++  $(INSTALL_PROGRAM) tcl/$$d $(DESTDIR)$(BINDIR)/$$d ; \
+   done
+ 
+ install-minews:   minews
+   for d in minews ; do \
+-  $(INSTALL_PROGRAM) inews/$$d $(BINDIR)/$$d ; \
++  $(INSTALL_PROGRAM) inews/$$d $(DESTDIR)$(BINDIR)/$$d ; \
+   done
+ 
+ links:tcl/config.h unix/config.h uulib/config.h

diff --git a/app-text/uudeview/uudeview-0.5.20-r2.ebuild 
b/app-text/uudeview/uudeview-0.5.20-r2.ebuild
new file mode 100644
index 000..5964696
--- /dev/null
+++ b/app-text/uudeview/uudeview-0.5.20-r2.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit eutils autotools
+
+DESCRIPTION="uu, xx, base64, binhex decoder"
+HOMEPAGE="http://www.fpx.de/fp/Software/UUDeview/;
+SRC_URI="http://www.fpx.de/fp/Software/UUDeview/download/${P}.tar.gz;
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="tk"
+
+RDEPEND="tk? ( dev-lang/tk:0 )"
+DEPEND="${RDEPEND}"
+
+DOCS=( HISTORY INSTALL README )
+
+PATCHES=(
+   "${FILESDIR}/${P}-bugfixes.patch"
+   "${FILESDIR}/${P}-CVE-2004-2265.patch"
+   "${FILESDIR}/${P}-CVE-2008-2266.patch"
+   "${FILESDIR}/${P}-man.patch"
+   "${FILESDIR}/${P}-rename.patch"
+   "${FILESDIR}/${P}-makefile.patch"
+)
+
+src_prepare() {
+   epatch ${PATCHES[@]}
+
+   mv configure.in configure.ac || die
+
+   epatch_user
+   eautoreconf
+}
+
+src_configure() {
+   econf \
+   $(use_enable tk tcl) \
+   $(use_enable tk)
+}