gentoo-ebuilds/sci-electronics/gtkwave/files/gtkwave-3.3.125-fix_musl.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

18 lines
444 B
Diff

see https://bugs.gentoo.org/945794
https://github.com/gtkwave/gtkwave/pull/455.patch
apply same ifdef as main.c
the getopt files have been deleted in the dev branch
--- a/src/globals.c
+++ b/src/globals.c
@@ -18,7 +18,11 @@
#include "fgetdynamic.h"
#include "ghw.h"
#include "globals.h"
+#ifdef HAVE_GETOPT_LONG
+#include <getopt.h>
+#else
#include "gnu-getopt.h"
+#endif
#include "gnu_regex.h"
#include "gtk23compat.h"
#include "lx2.h"