commit:     c99effcf638c1461308af9068c8f7aeca6b374bd
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 19 03:30:06 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Mar 19 03:30:06 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c99effcf

sys-apps/dmidecode: simplify via append-lfs-flags

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-apps/dmidecode/dmidecode-3.4-r1.ebuild | 8 +++++---
 sys-apps/dmidecode/dmidecode-3.5-r1.ebuild | 6 ++++--
 2 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/sys-apps/dmidecode/dmidecode-3.4-r1.ebuild 
b/sys-apps/dmidecode/dmidecode-3.4-r1.ebuild
index 92d65b193d64..cf9d5fc8f094 100644
--- a/sys-apps/dmidecode/dmidecode-3.4-r1.ebuild
+++ b/sys-apps/dmidecode/dmidecode-3.4-r1.ebuild
@@ -1,11 +1,11 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
 # Upstream often give "recommended patches" at 
https://www.nongnu.org/dmidecode/
 # Check regularly after releases!
-inherit toolchain-funcs
+inherit flag-o-matic toolchain-funcs
 
 DESCRIPTION="DMI (Desktop Management Interface) table related utilities"
 HOMEPAGE="https://www.nongnu.org/dmidecode/";
@@ -29,8 +29,10 @@ src_prepare() {
 }
 
 src_compile() {
+       append-lfs-flags
+
        emake \
-               CFLAGS="-D_FILE_OFFSET_BITS=64 ${CFLAGS} ${CPPFLAGS}" \
+               CFLAGS="${CFLAGS} ${CPPFLAGS}" \
                LDFLAGS="${LDFLAGS}" \
                CC="$(tc-getCC)"
 }

diff --git a/sys-apps/dmidecode/dmidecode-3.5-r1.ebuild 
b/sys-apps/dmidecode/dmidecode-3.5-r1.ebuild
index 07d8528c8c98..516ba585f352 100644
--- a/sys-apps/dmidecode/dmidecode-3.5-r1.ebuild
+++ b/sys-apps/dmidecode/dmidecode-3.5-r1.ebuild
@@ -5,7 +5,7 @@ EAPI=8
 
 # Upstream often give "recommended patches" at 
https://www.nongnu.org/dmidecode/
 # Check regularly after releases!
-inherit toolchain-funcs
+inherit flag-o-matic toolchain-funcs
 
 DESCRIPTION="DMI (Desktop Management Interface) table related utilities"
 HOMEPAGE="https://www.nongnu.org/dmidecode/";
@@ -29,8 +29,10 @@ src_prepare() {
 }
 
 src_compile() {
+       append-lfs-flags
+
        emake \
-               CFLAGS="-D_FILE_OFFSET_BITS=64 ${CFLAGS} ${CPPFLAGS}" \
+               CFLAGS="${CFLAGS} ${CPPFLAGS}" \
                LDFLAGS="${LDFLAGS}" \
                CC="$(tc-getCC)"
 }

Reply via email to