- add avoid-linux-includes.patch (bsc#1202212)

OBS-URL: https://build.opensuse.org/package/show/Base:System/hdparm?expand=0&rev=105
This commit is contained in:
Dirk Mueller 2022-08-09 11:54:03 +00:00 committed by Git OBS Bridge
parent 45f18faeb8
commit ef19426dca
3 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,12 @@
--- hdparm-9.64/hdparm.c
+++ hdparm-9.64/hdparm.c
@@ -24,9 +24,6 @@
#include <sys/mount.h>
#include <sys/mman.h>
#include <sys/user.h>
-#include <linux/types.h>
-#include <linux/fs.h>
-#include <linux/major.h>
#include <endian.h>
#include <asm/byteorder.h>

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Aug 9 11:52:28 UTC 2022 - Dirk Müller <dmueller@suse.com>
- add avoid-linux-includes.patch (bsc#1202212)
-------------------------------------------------------------------
Sat Jul 23 06:53:09 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@ -28,6 +28,7 @@ Patch1: hdparm-nostrip.patch
Patch2: hdparm-wiper-warn.patch
Patch3: hdparm-leak-fix.patch
Patch4: hdparm-9.43-fix-bashisms.patch
Patch5: avoid-linux-includes.patch
BuildRequires: pkgconfig
BuildRequires: pkgconfig(udev)
Requires(post): coreutils
@ -43,6 +44,7 @@ driver and IDE drives.
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%build
%make_build CFLAGS="%{optflags} -Wall -Wstrict-prototypes" LDFLAGS= CC="gcc"