commit:     dbdaa50c313235fbdba49845c3b0b3c92637d93f
Author:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 19 14:37:34 2021 +0000
Commit:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Tue Oct 19 14:42:02 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dbdaa50c

app-i18n/xvnkb: do not call cc directly

Closes: https://bugs.gentoo.org/729274
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Akinori Hattori <hattya <AT> gentoo.org>

 app-i18n/xvnkb/files/xvnkb-cc.patch   | 10 ++++++++++
 app-i18n/xvnkb/xvnkb-0.2.9a-r1.ebuild |  5 ++++-
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/app-i18n/xvnkb/files/xvnkb-cc.patch 
b/app-i18n/xvnkb/files/xvnkb-cc.patch
new file mode 100644
index 00000000000..1104998f788
--- /dev/null
+++ b/app-i18n/xvnkb/files/xvnkb-cc.patch
@@ -0,0 +1,10 @@
+--- a/tools/Makefile.common
++++ b/tools/Makefile.common
+@@ -49,6 +49,6 @@
+ Makefile.dep:
+       @echo
+       @echo -n Create $@ ... 
+-      @gcc -I$(XLIB_INC) -MM *.c > $@
++      @$(CC) -I$(XLIB_INC) -MM *.c > $@
+       @echo " done"
+       @echo

diff --git a/app-i18n/xvnkb/xvnkb-0.2.9a-r1.ebuild 
b/app-i18n/xvnkb/xvnkb-0.2.9a-r1.ebuild
index 837f22f8d6f..5281e302442 100644
--- a/app-i18n/xvnkb/xvnkb-0.2.9a-r1.ebuild
+++ b/app-i18n/xvnkb/xvnkb-0.2.9a-r1.ebuild
@@ -20,7 +20,10 @@ DEPEND="${RDEPEND}
        x11-base/xorg-proto"
 BDEPEND="xft? ( virtual/pkgconfig )"
 
-PATCHES=( "${FILESDIR}"/${P}-ldflags.patch )
+PATCHES=(
+       "${FILESDIR}"/${PN}-cc.patch
+       "${FILESDIR}"/${P}-ldflags.patch
+)
 
 src_prepare() {
        default

Reply via email to