public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: x11-misc/viewglob/, x11-misc/viewglob/files/
@ 2025-02-10  9:43 Sam James
  0 siblings, 0 replies; only message in thread
From: Sam James @ 2025-02-10  9:43 UTC (permalink / raw
  To: gentoo-commits

commit:     6cd1543abf091dd83e1cf36c462b1cbde5510a79
Author:     NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com>
AuthorDate: Sat Jan 11 14:38:06 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Feb 10 09:42:01 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6cd1543a

x11-misc/viewglob: update EAPI 7 -> 8, prepare for GCC-14/C23

Ordering of includes and correct function signatures for C23
And AC_USE_SYSTEM_EXTENSIONS for implicit delc in configure
I noticed on my system (not a reported bug)

Bug: https://bugs.gentoo.org/928851
Closes: https://bugs.gentoo.org/944278
Closes: https://bugs.gentoo.org/944019
Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/40097
Signed-off-by: Sam James <sam <AT> gentoo.org>

 x11-misc/viewglob/files/viewglob-2.0.4-C23.patch | 56 ++++++++++++++++++++++++
 x11-misc/viewglob/viewglob-2.0.4-r1.ebuild       |  7 +--
 2 files changed, 60 insertions(+), 3 deletions(-)

diff --git a/x11-misc/viewglob/files/viewglob-2.0.4-C23.patch b/x11-misc/viewglob/files/viewglob-2.0.4-C23.patch
new file mode 100644
index 000000000000..160a0e069162
--- /dev/null
+++ b/x11-misc/viewglob/files/viewglob-2.0.4-C23.patch
@@ -0,0 +1,56 @@
+https://bugs.gentoo.org/944019
+https://bugs.gentoo.org/921573
+Fix implicit defines in configure by defaulting to GNU_SOURCES, set include
+ordering straight for implicit define in code and fix sizes/declarations
+for C23
+--- a/configure.ac
++++ b/configure.ac
+@@ -1,6 +1,7 @@
+ dnl Process this file with autoconf to produce a configure script.
+ AC_INIT([viewglob], [2.0.4])
+ AM_INIT_AUTOMAKE
++AC_USE_SYSTEM_EXTENSIONS
+ AM_CONFIG_HEADER([config.h])
+ RELEASE_DATE="April 26, 2006"
+ 
+--- a/common/conf-to-args.c
++++ b/common/conf-to-args.c
+@@ -32,7 +32,7 @@
+ 	GString* arg_str = NULL;
+ 
+ 	gchar buf[1024];
+-	gint nread;
++	gssize nread;
+ 
+ 	gchar* home = getenv("HOME");
+ 	if (!home) {
+--- a/vgd/tcp-listen.c
++++ b/vgd/tcp-listen.c
+@@ -26,6 +26,8 @@
+ 	Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+ 
++#include "common.h"
++
+ #include <sys/types.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+@@ -34,7 +36,6 @@
+ 
+ #include <string.h>
+ 
+-#include "common.h"
+ #include "tcp-listen.h"
+ 
+ 
+--- a/vgseer/ptytty.c
++++ b/vgseer/ptytty.c
+@@ -112,7 +112,7 @@
+ #if defined(HAVE_GRANTPT) && defined(HAVE_UNLOCKPT)
+ # if defined(PTYS_ARE_GETPT) || defined(PTYS_ARE_PTMX)
+     {
+-	extern char    *ptsname();
++	extern char    *ptsname(int fd);
+ 
+ #  ifdef PTYS_ARE_GETPT
+ 	pfd = getpt();

diff --git a/x11-misc/viewglob/viewglob-2.0.4-r1.ebuild b/x11-misc/viewglob/viewglob-2.0.4-r1.ebuild
index 5e6a315f0954..a130b2f633c8 100644
--- a/x11-misc/viewglob/viewglob-2.0.4-r1.ebuild
+++ b/x11-misc/viewglob/viewglob-2.0.4-r1.ebuild
@@ -1,12 +1,12 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
 inherit autotools readme.gentoo-r1
 
 DESCRIPTION="Graphical display of directories and globs referenced at the shell prompt"
-HOMEPAGE="http://viewglob.sourceforge.net/"
+HOMEPAGE="https://viewglob.sourceforge.net/"
 SRC_URI="https://downloads.sourceforge.net/viewglob/${P}.tar.gz"
 
 LICENSE="GPL-2"
@@ -23,6 +23,7 @@ DEPEND="${RDEPEND}"
 PATCHES=(
 	"${FILESDIR}"/${P}-underlinking.patch
 	"${FILESDIR}"/${P}-format-security.patch
+	"${FILESDIR}"/${P}-C23.patch
 )
 
 src_prepare() {


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2025-02-10  9:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-10  9:43 [gentoo-commits] repo/gentoo:master commit in: x11-misc/viewglob/, x11-misc/viewglob/files/ Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox