forked from pool/hdparm
Accepting request 994126 from Base:System
- add avoid-linux-includes.patch (bsc#1202212) OBS-URL: https://build.opensuse.org/request/show/994126 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hdparm?expand=0&rev=79
This commit is contained in:
commit
a87721827b
12
avoid-linux-includes.patch
Normal file
12
avoid-linux-includes.patch
Normal 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>
|
||||
|
@ -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>
|
||||
|
||||
|
@ -28,6 +28,8 @@ Patch1: hdparm-nostrip.patch
|
||||
Patch2: hdparm-wiper-warn.patch
|
||||
Patch3: hdparm-leak-fix.patch
|
||||
Patch4: hdparm-9.43-fix-bashisms.patch
|
||||
# https://sourceforge.net/p/hdparm/patches/52/
|
||||
Patch5: avoid-linux-includes.patch
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: pkgconfig(udev)
|
||||
Requires(post): coreutils
|
||||
@ -43,6 +45,7 @@ driver and IDE drives.
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
%patch4 -p1
|
||||
%patch5 -p1
|
||||
|
||||
%build
|
||||
%make_build CFLAGS="%{optflags} -Wall -Wstrict-prototypes" LDFLAGS= CC="gcc"
|
||||
|
Loading…
Reference in New Issue
Block a user