File 0002-Fix-compiliation-with-lua-5.5.patch of Package pktgen-dpdk

From 6829de53a991db24b8c223a70d37ec0cb4c5e08c Mon Sep 17 00:00:00 2001
From: Clemens Famulla-Conrad <cfamullaconrad@suse.com>
Date: Fri, 27 Feb 2026 11:05:52 +0100
Subject: [PATCH 2/2] Fix compiliation with lua 5.5

The macros lua_writestringerror(), lua_writeline() and lua_writestring()
are not exposed anymore.
---
 lib/lua/lua_config.c |    3 +--
 lib/lua/lua_utils.h  |    4 ++--
 2 files changed, 3 insertions(+), 4 deletions(-)

--- a/lib/lua/lua_config.c
+++ b/lib/lua/lua_config.c
@@ -179,8 +179,7 @@
     rte_mcfg_tailq_read_unlock();
 
     /* Make sure we display the copyright string for Lua. */
-    lua_writestring(LUA_COPYRIGHT, strlen(LUA_COPYRIGHT));
-    lua_writeline();
+    printf("%s\n", LUA_COPYRIGHT);
 
     return ld;
 }
--- a/lib/lua/lua_utils.h
+++ b/lib/lua/lua_utils.h
@@ -85,8 +85,8 @@
 l_message(const char *pname, const char *msg)
 {
     if (pname)
-        lua_writestringerror("%s: ", pname);
-    lua_writestringerror("%s\n", msg);
+        fprintf(stderr, "%s: ", pname);
+    fprintf(stderr, "%s\n", msg);
 }
 
 /**
openSUSE Build Service is sponsored by