From ef19426dca543f564089d277fb2a1f88aed6fc78740afcf8e77d238c8acd3275 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 9 Aug 2022 11:54:03 +0000 Subject: [PATCH] - add avoid-linux-includes.patch (bsc#1202212) OBS-URL: https://build.opensuse.org/package/show/Base:System/hdparm?expand=0&rev=105 --- avoid-linux-includes.patch | 12 ++++++++++++ hdparm.changes | 5 +++++ hdparm.spec | 2 ++ 3 files changed, 19 insertions(+) create mode 100644 avoid-linux-includes.patch diff --git a/avoid-linux-includes.patch b/avoid-linux-includes.patch new file mode 100644 index 0000000..9c0f572 --- /dev/null +++ b/avoid-linux-includes.patch @@ -0,0 +1,12 @@ +--- hdparm-9.64/hdparm.c ++++ hdparm-9.64/hdparm.c +@@ -24,9 +24,6 @@ + #include + #include + #include +-#include +-#include +-#include + #include + #include + diff --git a/hdparm.changes b/hdparm.changes index 89a2f63..b436d67 100644 --- a/hdparm.changes +++ b/hdparm.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Aug 9 11:52:28 UTC 2022 - Dirk Müller + +- add avoid-linux-includes.patch (bsc#1202212) + ------------------------------------------------------------------- Sat Jul 23 06:53:09 UTC 2022 - Dirk Müller diff --git a/hdparm.spec b/hdparm.spec index 2223fcb..e82215c 100644 --- a/hdparm.spec +++ b/hdparm.spec @@ -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"