gentoo-ebuilds/sci-electronics/gtkwave/files/gtkwave-3.3.125-fix_c23.patch
Nicolas PARLANT f239359ae9
sci-electronics/gtkwave: add 3.3.125
update HOMEPAGE
update SRC_URI (redirect)
update metadata with github repo uses for issues and the dev branch
update license to GPL2+ (see metainfo.xml)

fix VariableOrder

deps:
add wayland / X for GTK to avoid automagic
add deps inherited by gtk+:3
add app-arch/bzip2, required
add net-libs/libtirpc, forced w/ --with-tirpc (bug 676896)

export PKG_CONFIG
use an array for econf
use gsettings (and gnome2-utils)
disable struct-pack (runtime errors w/ UBSAN

unconditionally install doc/examples files, not built

patches to fix bashism, getopt/musl, c23

Closes: https://bugs.gentoo.org/676896
Closes: https://bugs.gentoo.org/898072
Closes: https://bugs.gentoo.org/943812
Closes: https://bugs.gentoo.org/945794
Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/43987
Closes: https://github.com/gentoo/gentoo/pull/43987
Signed-off-by: Sam James <sam@gentoo.org>
2025-09-30 10:55:29 +01:00

51 lines
1.4 KiB
Diff

https://github.com/gtkwave/gtkwave/pull/455.patch
fix c23, remove old-style definition
the files have been removed in the dev branch
--- a/contrib/rtlbrowse/definehash.c
+++ b/contrib/rtlbrowse/definehash.c
@@ -46,9 +46,7 @@ inline
#endif
#endif
static unsigned int
-hash (str, len)
- register const char *str;
- register unsigned int len;
+hash (register const char *str, register unsigned int len)
{
static const unsigned char asso_values[] =
{
@@ -110,9 +108,7 @@ __attribute__ ((__gnu_inline__))
#endif
#endif
const char *
-is_builtin_define (str, len)
- register const char *str;
- register unsigned int len;
+is_builtin_define (register const char *str, register unsigned int len)
{
static const char * const wordlist[] =
{
--- a/src/vcd_keywords.c
+++ b/src/vcd_keywords.c
@@ -58,9 +58,7 @@ inline
#endif
#endif
static unsigned int
-keyword_hash (str, len)
- register const char *str;
- register unsigned int len;
+keyword_hash (register const char *str, register unsigned int len)
{
static const unsigned char asso_values[] =
{
@@ -101,9 +99,7 @@ __attribute__ ((__gnu_inline__))
#endif
#endif
const struct vcd_keyword *
-check_identifier (str, len)
- register const char *str;
- register unsigned int len;
+check_identifier (register const char *str, register unsigned int len)
{
static const struct vcd_keyword wordlist[] =
{