Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/moreutils/, sys-apps/moreutils/files/
Date: Fri, 04 Sep 2020 15:11:33
Message-Id: 1599232272.4dff1d851b4d4e37c85fe0e9dcce3558b9e0ecfc.sam@gentoo
1 commit: 4dff1d851b4d4e37c85fe0e9dcce3558b9e0ecfc
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 4 15:10:46 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 4 15:11:12 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4dff1d85
7
8 sys-apps/moreutils: respect CC
9
10 Closes: https://bugs.gentoo.org/740340
11 Package-Manager: Portage-3.0.4, Repoman-2.3.23
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 sys-apps/moreutils/files/moreutils-0.64-respect-env.patch | 13 +++++++++++++
15 sys-apps/moreutils/moreutils-0.64.ebuild | 4 ++++
16 2 files changed, 17 insertions(+)
17
18 diff --git a/sys-apps/moreutils/files/moreutils-0.64-respect-env.patch b/sys-apps/moreutils/files/moreutils-0.64-respect-env.patch
19 new file mode 100644
20 index 00000000000..ea699d2c5e8
21 --- /dev/null
22 +++ b/sys-apps/moreutils/files/moreutils-0.64-respect-env.patch
23 @@ -0,0 +1,13 @@
24 +diff --git a/is_utf8/Makefile b/is_utf8/Makefile
25 +index 13b1021..f0a111e 100644
26 +--- a/is_utf8/Makefile
27 ++++ b/is_utf8/Makefile
28 +@@ -37,7 +37,7 @@ LINKERNAME = lib$(NAME).so
29 + SONAME = $(LINKERNAME).$(VERSION)
30 + REALNAME = $(SONAME).$(MINOR).$(RELEASE)
31 +
32 +-CC = gcc
33 ++CC ?= gcc
34 + CFLAGS ?= -O3 -Wextra -Wall -ansi -Wstrict-prototypes
35 +
36 + $(NAME): $(OBJ)
37
38 diff --git a/sys-apps/moreutils/moreutils-0.64.ebuild b/sys-apps/moreutils/moreutils-0.64.ebuild
39 index 86020a66dc6..ad2f9c8167d 100644
40 --- a/sys-apps/moreutils/moreutils-0.64.ebuild
41 +++ b/sys-apps/moreutils/moreutils-0.64.ebuild
42 @@ -31,6 +31,10 @@ DEPEND="
43 app-text/docbook-xml-dtd:4.4
44 )"
45
46 +PATCHES=(
47 + "${FILESDIR}/${PN}-0.64-respect-env.patch"
48 +)
49 +
50 src_prepare() {
51 # don't build manpages
52 if ! use doc ; then