commit:     789193af5fdab1cb39ed3fdc06efe7db3e3d33b2
Author:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 21 07:24:37 2020 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Sun Jun 21 07:24:47 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=789193af

app-misc/fdupes: honour CFLAGS.

Closes: https://bugs.gentoo.org/726632
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>

 app-misc/fdupes/fdupes-1.6.1-r1.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/app-misc/fdupes/fdupes-1.6.1-r1.ebuild 
b/app-misc/fdupes/fdupes-1.6.1-r1.ebuild
index b127dfcbd85..b016e903738 100644
--- a/app-misc/fdupes/fdupes-1.6.1-r1.ebuild
+++ b/app-misc/fdupes/fdupes-1.6.1-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -16,10 +16,13 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc 
~ppc64 ~s390 ~sparc ~
 src_prepare() {
        default
        append-lfs-flags
+       sed -e "s#^CFLAGS= \(.*\)#CFLAGS= \1 ${CFLAGS}#g;" \
+               -i "Makefile" || die "can't patch Makefile"
 }
 
 src_compile() {
        emake CC=$(tc-getCC)
+       #emake CC=$(tc-getCC) CFLAGS="${CFLAGS} -DVERSION=\"1.6.1\" 
-D_FILE_OFFSET_BITS=64 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE 
-D_LARGEFILE64_SOURCE"
 }
 
 src_install() {

Reply via email to