* [gentoo-commits] repo/gentoo:master commit in: app-text/uudeview/files/, app-text/uudeview/
@ 2015-11-18 11:13 Sergey Popov
0 siblings, 0 replies; 4+ messages in thread
From: Sergey Popov @ 2015-11-18 11:13 UTC (permalink / raw
To: gentoo-commits
commit: ef57bc87b6e20084ee342b327c28d50626368407
Author: Sergey Popov <pinkbyte <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 18 11:06:08 2015 +0000
Commit: Sergey Popov <pinkbyte <AT> gentoo <DOT> org>
CommitDate: Wed Nov 18 11:13:03 2015 +0000
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 0000000..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.in 2015-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 0000000..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)
+}
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-text/uudeview/files/, app-text/uudeview/
@ 2020-01-21 21:51 David Seifert
0 siblings, 0 replies; 4+ messages in thread
From: David Seifert @ 2020-01-21 21:51 UTC (permalink / raw
To: gentoo-commits
commit: 8ebfeefa5b3c66d6f95eb78b0f449696d8b5864e
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 21 21:50:40 2020 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Tue Jan 21 21:50:40 2020 +0000
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 <soap <AT> 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.in 2015-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
}
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-text/uudeview/files/, app-text/uudeview/
@ 2022-11-26 17:50 Hanno Böck
0 siblings, 0 replies; 4+ messages in thread
From: Hanno Böck @ 2022-11-26 17:50 UTC (permalink / raw
To: gentoo-commits
commit: d15eae1e2a778ba92e986121ae3437e48b4b5e2b
Author: Hanno Böck <hanno <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 26 17:48:25 2022 +0000
Commit: Hanno Böck <hanno <AT> gentoo <DOT> org>
CommitDate: Sat Nov 26 17:48:25 2022 +0000
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 <hanno <AT> 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 000000000000..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 <pascal.jaeger@leimstift.de>,
+minor adjustments by Hanno Böck.
+
+diff -Naurp a/inews/clientlib.c b/inews/clientlib.c
+--- a/inews/clientlib.c 1996-06-06 21:41:07.000000000 +0200
++++ b/inews/clientlib.c 2022-11-26 18:32:09.383423565 +0100
+@@ -14,6 +14,7 @@ static char *sccsid = "@(#)clientlib.c 1
+ #include "../config.h"
+ #endif
+
++#include <arpa/inet.h>
+ #include <stdio.h>
+ #ifndef FOR_NN
+ #include <sys/types.h>
+@@ -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.h 1996-06-06 21:41:07.000000000 +0200
++++ b/inews/clientlib.h 2022-11-26 18:27:59.711248861 +0100
+@@ -9,3 +9,7 @@ extern int server_init();
+ extern void put_server();
+ extern int get_server();
+ extern void close_server();
++
++extern int get_tcp_socket(char *machine);
++extern int get_server(char *string, int size);
++extern int handle_server_response(int response, char *server);
+diff -Naurp a/inews/inews.c b/inews/inews.c
+--- a/inews/inews.c 2004-01-29 03:14:19.000000000 +0100
++++ b/inews/inews.c 2022-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);
++
+ extern FILE *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 b/app-text/uudeview/files/uudeview-0.5.20-format-string-warning-inews.patch
new file mode 100644
index 000000000000..de53717a3cbe
--- /dev/null
+++ b/app-text/uudeview/files/uudeview-0.5.20-format-string-warning-inews.patch
@@ -0,0 +1,11 @@
+--- a/inews/inews.c 2022-11-26 18:44:03.788039229 +0100
++++ b/inews/inews.c 2022-11-26 18:44:47.376080190 +0100
+@@ -303,7 +303,7 @@
+ putc(*cp, ser_wr_fp);
+ else { /* Stupid & hack. God damn it. */
+ putc(toupper(passwd->pw_name[0]), ser_wr_fp);
+- fprintf(ser_wr_fp, passwd->pw_name+1);
++ fprintf(ser_wr_fp, "%s", passwd->pw_name+1);
+ }
+
+ fprintf(ser_wr_fp, ")\r\n");
diff --git a/app-text/uudeview/files/uudeview-0.5.20-string_format_issue.patch b/app-text/uudeview/files/uudeview-0.5.20-string_format_issue.patch
new file mode 100644
index 000000000000..7cbc584f5b47
--- /dev/null
+++ b/app-text/uudeview/files/uudeview-0.5.20-string_format_issue.patch
@@ -0,0 +1,24 @@
+Description: Fix potential security issue (arbitrary string being passed
+ as a format string to fprintf).
+Author: Andrew Shadura <andrewsh@debian.org>
+
+--- a/unix/uuenview.c
++++ b/unix/uuenview.c
+@@ -310,7 +310,7 @@ SendMkCommand (char **rcptlist, char *to
+ }
+
+ if ((*rcptlist = (char *) malloc (strlen (towhom) + 16)) == NULL) {
+- fprintf (stderr, "error: Out of memory allocating %d bytes\n",
++ fprintf (stderr, "error: Out of memory allocating %zd bytes\n",
+ strlen (towhom)+16);
+ _FP_free (command);
+ return NULL;
+@@ -483,7 +483,7 @@ AttachFiles (char *towhom, char *subject
+ if (_FP_stristr (input, "multipart") != NULL) {
+ /* it is already a multipart posting. grab the boundary */
+ if ((ptr = _FP_stristr (input, "boundary=")) != NULL) {
+- fprintf(thepipe, input);
++ fprintf(thepipe, "%s", input);
+ strcpy (boundary, ParseValue (ptr));
+ hadmulti = 1;
+ }
diff --git a/app-text/uudeview/uudeview-0.5.20-r3.ebuild b/app-text/uudeview/uudeview-0.5.20-r3.ebuild
new file mode 100644
index 000000000000..903bd6b43754
--- /dev/null
+++ b/app-text/uudeview/uudeview-0.5.20-r3.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2022 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
+)
+
+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
+}
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-text/uudeview/files/, app-text/uudeview/
@ 2023-04-28 18:41 Hanno Böck
0 siblings, 0 replies; 4+ messages in thread
From: Hanno Böck @ 2023-04-28 18:41 UTC (permalink / raw
To: gentoo-commits
commit: d3755e075dd017ebb76976652a69e544e826a42d
Author: Hanno Böck <hanno <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 28 18:40:23 2023 +0000
Commit: Hanno Böck <hanno <AT> gentoo <DOT> org>
CommitDate: Fri Apr 28 18:40:23 2023 +0000
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 <hanno <AT> 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 000000000000..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 <string.h>
+ 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 000000000000..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
+}
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-04-28 18:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-26 17:50 [gentoo-commits] repo/gentoo:master commit in: app-text/uudeview/files/, app-text/uudeview/ Hanno Böck
-- strict thread matches above, loose matches on Subject: below --
2023-04-28 18:41 Hanno Böck
2020-01-21 21:51 David Seifert
2015-11-18 11:13 Sergey Popov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox