commit:     4dff1d851b4d4e37c85fe0e9dcce3558b9e0ecfc
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Sep  4 15:10:46 2020 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Sep  4 15:11:12 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4dff1d85

sys-apps/moreutils: respect CC

Closes: https://bugs.gentoo.org/740340
Package-Manager: Portage-3.0.4, Repoman-2.3.23
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-apps/moreutils/files/moreutils-0.64-respect-env.patch | 13 +++++++++++++
 sys-apps/moreutils/moreutils-0.64.ebuild                  |  4 ++++
 2 files changed, 17 insertions(+)

diff --git a/sys-apps/moreutils/files/moreutils-0.64-respect-env.patch 
b/sys-apps/moreutils/files/moreutils-0.64-respect-env.patch
new file mode 100644
index 00000000000..ea699d2c5e8
--- /dev/null
+++ b/sys-apps/moreutils/files/moreutils-0.64-respect-env.patch
@@ -0,0 +1,13 @@
+diff --git a/is_utf8/Makefile b/is_utf8/Makefile
+index 13b1021..f0a111e 100644
+--- a/is_utf8/Makefile
++++ b/is_utf8/Makefile
+@@ -37,7 +37,7 @@ LINKERNAME = lib$(NAME).so
+ SONAME = $(LINKERNAME).$(VERSION)
+ REALNAME = $(SONAME).$(MINOR).$(RELEASE)
+ 
+-CC = gcc
++CC ?= gcc
+ CFLAGS ?= -O3 -Wextra -Wall -ansi -Wstrict-prototypes
+ 
+ $(NAME): $(OBJ)

diff --git a/sys-apps/moreutils/moreutils-0.64.ebuild 
b/sys-apps/moreutils/moreutils-0.64.ebuild
index 86020a66dc6..ad2f9c8167d 100644
--- a/sys-apps/moreutils/moreutils-0.64.ebuild
+++ b/sys-apps/moreutils/moreutils-0.64.ebuild
@@ -31,6 +31,10 @@ DEPEND="
                app-text/docbook-xml-dtd:4.4
        )"
 
+PATCHES=(
+       "${FILESDIR}/${PN}-0.64-respect-env.patch"
+)
+
 src_prepare() {
        # don't build manpages
        if ! use doc ; then

Reply via email to