mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-18 16:08:17 +00:00
```
$ diff -u hdparm-9.65-r1.ebuild hdparm-9.65-r2.ebuild
--- hdparm-9.65-r1.ebuild 2023-09-22 07:41:40.287176532 +1000
+++ hdparm-9.65-r2.ebuild 2023-09-22 07:58:18.888053647 +1000
@@ -17,6 +17,7 @@
PATCHES=(
"${FILESDIR}"/${PN}-9.60-build.patch
+ "${FILESDIR}"/${P}-graceful-lfs.patch
)
src_prepare() {
@@ -25,6 +26,10 @@
use static && append-ldflags -static
}
+src_configure() {
+ append-lfs-flags
+}
+
src_compile() {
emake STRIP="true" CC="$(tc-getCC)"
}
```
Closes: https://bugs.gentoo.org/914505
Signed-off-by: Daniil Lunev <dlunev@google.com>
Closes: https://github.com/gentoo/gentoo/pull/32979
Signed-off-by: Sam James <sam@gentoo.org>
16 lines
420 B
Diff
16 lines
420 B
Diff
# Guard _LARGEFILE64_SOURCE define to avoid warning with append-lfs-flags
|
|
# https://bugs.gentoo.org/914505
|
|
diff --git a/hdparm.c b/hdparm.c
|
|
index eb9796b..a3204f9 100644
|
|
--- a/hdparm.c
|
|
+++ b/hdparm.c
|
|
@@ -4,7 +4,9 @@
|
|
*/
|
|
#define HDPARM_VERSION "v9.65"
|
|
|
|
+#ifndef _LARGEFILE64_SOURCE
|
|
#define _LARGEFILE64_SOURCE /*for lseek64*/
|
|
+#endif
|
|
#define _BSD_SOURCE /* for strtoll() */
|
|
#include <unistd.h>
|
|
#include <stdlib.h>
|