Compare commits

1 Commits
main ... 1.1

3 changed files with 8 additions and 38 deletions

View File

@@ -1,11 +0,0 @@
--- a/lib/parser-sming.y
+++ b/lib/parser-sming.y
@@ -17,7 +17,7 @@
#ifdef BACKEND_SMING
-#define _ISOC99_SOURCE
+
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>

View File

@@ -1,19 +1,3 @@
-------------------------------------------------------------------
Tue Jul 2 03:28:00 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Added patch:
* libsmi-c99.patch
+ fix build with gcc14 (boo#1225858)
+ Do not define _ISOC99_SOURCE in parser-sming.y, since
the timegm declaration in <time.h> is wrapped by
__GLIBC_USE(ISOC2X)
-------------------------------------------------------------------
Fri Mar 1 09:47:49 UTC 2024 - pgajdos@suse.com
- Use %patch -P N instead of deprecated %patchN.
-------------------------------------------------------------------
Tue Jan 4 21:45:50 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package libsmi
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,7 +16,6 @@
#
%global make make
Name: libsmi
Version: 0.4.8
Release: 0
@@ -31,7 +30,6 @@ Patch2: libsmi-CVE-2010-2891.patch
Patch3: libsmi-flex.patch
Patch4: libsmi-bison-3.0.patch
Patch5: libsmi-exports.patch
Patch6: libsmi-c99.patch
BuildRequires: bison
BuildRequires: flex
BuildRequires: libtool
@@ -78,15 +76,14 @@ libsmi.
%prep
%setup -q
%patch -P 0 -p1
%patch -P 1 -p1
%patch -P 2
%patch0 -p1
%patch1 -p1
%patch2
%if 0%{?suse_version} > 1220 && 0%{?suse_version} < 1321
%patch -P 3 -p1
%patch3 -p1
%endif
%patch -P 4 -p1
%patch -P 5 -p1
%patch -P 6 -p1
%patch4 -p1
%patch5 -p1
%build
autoreconf --force --install
@@ -95,7 +92,7 @@ autoreconf --force --install
--enable-sming \
--with-mibdir=%{_datadir}/mibs
# Parallel build disabled
%make #%{?_smp_mflags}
%make_build #%{?_smp_mflags}
%install
%make_install