[packages/lockdev] fix build with gcc 14

atler atler at pld-linux.org
Mon Jun 10 19:59:13 CEST 2024


commit 6b2457407684b9f3601586127a7ab34b32174bd9
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Jun 10 19:40:27 2024 +0200

    fix build with gcc 14

 gcc14.patch  | 10 ++++++++++
 lockdev.spec |  2 ++
 2 files changed, 12 insertions(+)
---
diff --git a/lockdev.spec b/lockdev.spec
index e8bdead..399a8f8 100644
--- a/lockdev.spec
+++ b/lockdev.spec
@@ -10,6 +10,7 @@ Source0:	http://ftp.debian.org/debian/pool/main/l/lockdev/%{name}_%{version}.ori
 Patch0:		%{name}-Makefile.patch
 Patch1:		%{name}-baudboy.patch
 Patch2:		%{name}-decl.patch
+Patch3:		gcc14.patch
 BuildRequires:	perl-ExtUtils-MakeMaker
 BuildRequires:	rpm-perlprov
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -111,6 +112,7 @@ a ich zawartość to identyfikator (PID) procesu posiadającego blokadę.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 %{__make} static \
diff --git a/gcc14.patch b/gcc14.patch
new file mode 100644
index 0000000..7fc260b
--- /dev/null
+++ b/gcc14.patch
@@ -0,0 +1,10 @@
+--- lockdev-1.0.3/src/sample.c.orig	2024-06-10 19:36:50.938518051 +0200
++++ lockdev-1.0.3/src/sample.c	2024-06-10 19:38:37.325350180 +0200
+@@ -1,5 +1,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <sys/types.h>
++#include <unistd.h>
+ #include "lockdev.h"
+ 
+ void
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lockdev.git/commitdiff/6b2457407684b9f3601586127a7ab34b32174bd9



More information about the pld-cvs-commit mailing list