SHA256
1
0
forked from pool/xmlsec1

Accepting request 1176772 from LibreOffice:Factory

Fix gcc14 build

OBS-URL: https://build.opensuse.org/request/show/1176772
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xmlsec1?expand=0&rev=27
This commit is contained in:
Ana Guerrero 2024-05-28 15:27:27 +00:00 committed by Git OBS Bridge
commit dc0b8ef8ed
3 changed files with 20 additions and 1 deletions

10
xmlsec1-gcc14.patch Normal file
View File

@ -0,0 +1,10 @@
--- xmlsec1-1.2.38/apps/crypto.c 2024-05-24 19:08:57.856528758 +0200
+++ xmlsec1-1.2.38/apps/crypto.c 2024-05-24 19:09:45.526855641 +0200
@@ -12,6 +12,7 @@
#endif
#include <string.h>
+#include <stdlib.h>
#include <xmlsec/xmlsec.h>
#include <xmlsec/keys.h>

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri May 24 17:15:05 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Added patch:
* xmlsec1-gcc14.patch
+ add missing include and fix gcc14 build
-------------------------------------------------------------------
Mon Feb 26 12:24:45 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -1,7 +1,7 @@
#
# spec file for package xmlsec1
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -33,6 +33,7 @@ Source1: https://www.aleksey.com/xmlsec/download/xmlsec1-%{version}.sig#/
Source2: %{name}.keyring
Source99: xmlsec1-rpmlintrc
Patch0: xmlsec1-ui_null.patch
Patch1: xmlsec1-gcc14.patch
BuildRequires: libgcrypt-devel
BuildRequires: libtool
# Needed certutil for tests
@ -145,6 +146,7 @@ Libraries, includes, etc. for developing XML Security applications with NSS.
%if 0%{?suse_version} < 1500
%patch -P 0 -p1
%endif
%patch -P 1 -p1
%build
# Allow for deprecations