commit:     8cfb2386afa1b59ffd40577048fd51e35065f125
Author:     Kapil Porwal <107070036+kapil-porwal <AT> users <DOT> noreply <DOT> 
github <DOT> com>
AuthorDate: Wed Feb 22 09:48:38 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Mar 19 03:29:27 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8cfb2386

sys-apps/dmidecode: Enable LFS

The Makefile for this application is adding "_FILE_OFFSET_BITS=64" to the 
CFLAGS but the ebuild seems to be overriding it.

Signed-off-by: Kapil Porwal <107070036+kapil-porwal <AT> 
users.noreply.github.com>
Closes: https://github.com/gentoo/gentoo/pull/29717
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-apps/dmidecode/{dmidecode-3.4.ebuild => dmidecode-3.4-r1.ebuild} | 2 +-
 sys-apps/dmidecode/{dmidecode-3.5.ebuild => dmidecode-3.5-r1.ebuild} | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys-apps/dmidecode/dmidecode-3.4.ebuild 
b/sys-apps/dmidecode/dmidecode-3.4-r1.ebuild
similarity index 95%
rename from sys-apps/dmidecode/dmidecode-3.4.ebuild
rename to sys-apps/dmidecode/dmidecode-3.4-r1.ebuild
index 82a023f12031..92d65b193d64 100644
--- a/sys-apps/dmidecode/dmidecode-3.4.ebuild
+++ b/sys-apps/dmidecode/dmidecode-3.4-r1.ebuild
@@ -30,7 +30,7 @@ src_prepare() {
 
 src_compile() {
        emake \
-               CFLAGS="${CFLAGS} ${CPPFLAGS}" \
+               CFLAGS="-D_FILE_OFFSET_BITS=64 ${CFLAGS} ${CPPFLAGS}" \
                LDFLAGS="${LDFLAGS}" \
                CC="$(tc-getCC)"
 }

diff --git a/sys-apps/dmidecode/dmidecode-3.5.ebuild 
b/sys-apps/dmidecode/dmidecode-3.5-r1.ebuild
similarity index 95%
rename from sys-apps/dmidecode/dmidecode-3.5.ebuild
rename to sys-apps/dmidecode/dmidecode-3.5-r1.ebuild
index fd9962c60623..07d8528c8c98 100644
--- a/sys-apps/dmidecode/dmidecode-3.5.ebuild
+++ b/sys-apps/dmidecode/dmidecode-3.5-r1.ebuild
@@ -30,7 +30,7 @@ src_prepare() {
 
 src_compile() {
        emake \
-               CFLAGS="${CFLAGS} ${CPPFLAGS}" \
+               CFLAGS="-D_FILE_OFFSET_BITS=64 ${CFLAGS} ${CPPFLAGS}" \
                LDFLAGS="${LDFLAGS}" \
                CC="$(tc-getCC)"
 }

Reply via email to