Accepting request 1172005 from home:dziobian

- Fix ftbfs with GCC14 (bsc#1220571)
  * correct libxslt-random-seed.patch to include time.h unconditionally
  * add gcc14-runtest-no-const.patch

OBS-URL: https://build.opensuse.org/request/show/1172005
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libxslt?expand=0&rev=101
This commit is contained in:
David Anes 2024-05-06 07:04:35 +00:00 committed by Git OBS Bridge
parent 36756792da
commit 51f4741901
4 changed files with 21 additions and 3 deletions

View File

@ -0,0 +1,11 @@
--- libxslt-1.1.39/tests/runtest.c.old 2023-11-16 12:36:28.000000000 +0000
+++ libxslt-1.1.39/tests/runtest.c 2024-05-05 16:25:22.656618600 +0000
@@ -269,7 +269,7 @@ xmlParserPrintFileContextInternal(xmlPar
}
static void
-testStructuredErrorHandler(void *ctx ATTRIBUTE_UNUSED, const xmlError *err) {
+testStructuredErrorHandler(void *ctx ATTRIBUTE_UNUSED, xmlError *err) {
char *file = NULL;
int line = 0;
int code = -1;

View File

@ -8,7 +8,7 @@ Index: libxslt-v1.1.36/libexslt/math.c
===================================================================
--- libxslt-v1.1.36.orig/libexslt/math.c
+++ libxslt-v1.1.36/libexslt/math.c
@@ -12,6 +12,14 @@
@@ -12,6 +12,12 @@
#include <math.h>
#include <stdlib.h>
@ -16,9 +16,7 @@ Index: libxslt-v1.1.36/libexslt/math.c
+#include <unistd.h>
+#endif
+#include <fcntl.h>
+#ifdef HAVE_TIME_H
+#include <time.h>
+#endif
+
#include "exslt.h"

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sun May 5 16:26:10 UTC 2024 - Bruno Pitrus <brunopitrus@hotmail.com>
- Fix ftbfs with GCC14 (bsc#1220571)
* correct libxslt-random-seed.patch to include time.h unconditionally
* add gcc14-runtest-no-const.patch
-------------------------------------------------------------------
Fri Nov 24 20:53:10 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>

View File

@ -40,6 +40,8 @@ Patch0: libxslt-1.1.24-no-net-autobuild.patch
# Initialize the random seed to ensure libxslt's math.random() function
# produces unpredictable outputs.
Patch1: libxslt-random-seed.patch
# PATCH-FIX_UPSTREAM -- gcc14-runtest-no-const.patch
Patch2: gcc14-runtest-no-const.patch
#
### SUSE patches starts on 1000
# PATCH-FIX-SUSE