commit:     f45eabaeb37c56517c8c11843ca194d8fc5edaed
Author:     Vladislav Mikhailikov <vmikhailikov <AT> gmail <DOT> com>
AuthorDate: Wed Jun 25 22:29:55 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Oct  5 05:27:34 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f45eabae

net-analyzer/ippl: fix LTO

Closes: https://bugs.gentoo.org/949567
Signed-off-by: Vladislav Mikhailikov <vmikhailikov <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42750
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-analyzer/ippl/files/ippl-1.4.14-lto.patch | 31 +++++++++++++++++++++++++++
 net-analyzer/ippl/ippl-1.4.14-r7.ebuild       |  1 +
 2 files changed, 32 insertions(+)

diff --git a/net-analyzer/ippl/files/ippl-1.4.14-lto.patch 
b/net-analyzer/ippl/files/ippl-1.4.14-lto.patch
new file mode 100644
index 000000000000..2e26b6dbd9cf
--- /dev/null
+++ b/net-analyzer/ippl/files/ippl-1.4.14-lto.patch
@@ -0,0 +1,31 @@
+Holger Hoffstätte 2025-02-12 14:33:04 UTC
+As mentioned on IRC:
+
+The only uses of last_message in configuration.c are
+to initialize the buffer with a terminating null. It
+seems much easier to move the initialization to log.c
+and just remove the declaration/initialization from
+configuration.c.
+
+As there is already an initialisation of the buffer
+in log.c all that's needed is to zap the two unnecessary
+lines:
+
+--- a/Source/configuration.c
++++ b/Source/configuration.c
+@@ -67,7 +67,6 @@ void set_default_values() {
+   extern unsigned short log_closing;
+   extern unsigned short use_ident;
+   extern unsigned int repeats;
+-  extern char *last_message;
+ 
+   dns_expire = DNS_EXPIRE;
+   log_protocols = NONE;
+@@ -79,7 +78,6 @@ void set_default_values() {
+   log_closing = FALSE;
+   use_ident = FALSE;
+   repeats = 0;
+-  last_message = '\0';
+ }
+ 
+ void parse_config_file(char *filename) {

diff --git a/net-analyzer/ippl/ippl-1.4.14-r7.ebuild 
b/net-analyzer/ippl/ippl-1.4.14-r7.ebuild
index f7208987a415..1dea216cd792 100644
--- a/net-analyzer/ippl/ippl-1.4.14-r7.ebuild
+++ b/net-analyzer/ippl/ippl-1.4.14-r7.ebuild
@@ -27,6 +27,7 @@ PATCHES=(
        # bug #351287
        "${FILESDIR}"/${PN}-1.4.14-fix-build-system.patch
        "${FILESDIR}"/${PN}-1.4.14-musl.patch
+       "${FILESDIR}"/${PN}-1.4.14-lto.patch
 )
 
 src_prepare() {

Reply via email to