From b57a1df84ef604f603f57c9fedd0bc418993ac4a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 6 Feb 2025 23:50:10 +0100 Subject: [PATCH] Manually adding ftbfs-big-endian.patch from previous upload to git (patches are excluded because of upstreams gitignore file). Signed-off-by: Daniel Baumann --- debian/patches/debian/0001-ftbfs-big-endian.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 debian/patches/debian/0001-ftbfs-big-endian.patch diff --git a/debian/patches/debian/0001-ftbfs-big-endian.patch b/debian/patches/debian/0001-ftbfs-big-endian.patch new file mode 100644 index 0000000..7b9f599 --- /dev/null +++ b/debian/patches/debian/0001-ftbfs-big-endian.patch @@ -0,0 +1,15 @@ +Author: Helge Deller +Description: Fix the FTBFS on all big endian architectures (Closes: #1091379). + +diff -Naurp frr.orig/tests/lib/test_frrscript.c frr/tests/lib/test_frrscript.c +--- frr.orig/tests/lib/test_frrscript.c ++++ frr/tests/lib/test_frrscript.c +@@ -54,7 +54,7 @@ int main(int argc, char **argv) + n = 4; + result = frrscript_call(fs, "fact", ("n", &n)); + assert(result == 0); +- ansptr = frrscript_get_result(fs, "fact", "ans", lua_tointegerp); ++ ansptr = frrscript_get_result(fs, "fact", "ans", lua_tolonglongp); + assert(*ansptr == 24); + + XFREE(MTYPE_SCRIPT_RES, ansptr);