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:
parent
36756792da
commit
51f4741901
11
gcc14-runtest-no-const.patch
Normal file
11
gcc14-runtest-no-const.patch
Normal 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;
|
@ -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"
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user