Ionen Wolkens b94256f4e9 x11-misc/imake: ease usage with toolchain's -native-symlinks
This is to provide a more-sane way for ebuilds to fix their bugs,
without really altering how imake behaves.

There's four notable known runtime issues with -native-symlinks:

- checks if /usr/bin/cc exists (without executing), if missing it
  skips setting some defines and notably causes generated Makefiles
  to use makedepend over gccmakedep resulting in some build failures.

- `ld -v` inoring LD, no failure but gives a QA warning (bug #729630),
  also prevents a define from being set and given previous issue
  rather ensure they're conserved (slightly used in xorg-cf-files).

- `gcc -E` ignoring CC/CPP, causes build failure if missing. imake has
  IMAKECPP to change this but can't take arguments leading to build
  failure if setting to $(tc-getCPP) which often has -E.

- `xmkmf -a` sometimes calls imake again in an imake-generated Makefile
  leading to the environment's CC/LD being ignored again.

Added patches to fix each. xmkmf-using ebuilds wanting to take
advantage of this need something along the lines of:

BDEPEND=">=x11-misc/imake-1.0.8-r1"
CC="$(tc-getBUILD_CC)" LD="$(tc-getLD)" \
	IMAKECPP=${IMAKECPP:-$(tc-getCPP)} xmkmf ... || die
emake CC="$(tc-getCC)" ...
+test with -native-symlinks to ensure don't need more emake vars.
(only CC should be BUILD_* here, LD not used to link)

IMAKECPP is used this way to allow users to override without changing
normal CPP. imake uses traditional CPP and clang notably doesn't
play that well with that.

Closes: https://bugs.gentoo.org/729630
Signed-off-by: Ionen Wolkens <sudinave@gmail.com>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
2021-04-15 09:38:48 +03:00
2021-04-14 08:58:26 +03:00
2021-04-15 05:18:40 +00:00
2021-04-13 00:19:03 +01:00
2021-03-31 16:55:13 +07:00
2021-04-15 08:32:08 +02:00
2021-04-15 07:11:51 +02:00
2021-04-13 00:19:05 +01:00
2021-04-08 10:45:02 -05:00
2021-04-11 17:49:13 +02:00
2021-04-01 00:19:02 +02:00
2021-04-12 23:58:28 +01:00
2021-04-02 14:00:05 +00:00
2021-04-04 11:56:23 -07:00
2021-04-12 02:07:10 +01:00
2021-04-13 13:11:47 -06:00
2021-04-13 20:16:18 +02:00
S
Description
No description provided
9.8 GiB
Languages
Shell 98%
Roff 1.4%
Emacs Lisp 0.2%
C 0.1%