xmkmf and other shell scripts are generated by this ebuild with tons of whitespace before the shebangs. This has to do with the Makefile.am and gcc4.8.
See https://bugs.freedesktop.org/show_bug.cgi?id=74031, https://bugs.freedesktop.org/show_bug.cgi?id=69439.
Enclosed patch should do the trick (sorry for the meta-patch, lazy, yes, but sufficiently trivial to sight-read).
Steps to Reproduce:
head -n 40 `which xmkmf`
Created attachment 368646 [details, diff]
Created attachment 368648 [details, diff]
Clean version of patch to apply (don't forget to autoreconf though!)
(In reply to Greg Turner from comment #1)
> Created attachment 368646 [details, diff] [details, diff]
Technically, it's not a backport. But probably will be soon enough :)
As hoped/predicted, this went in upstream (see
https://bugs.freedesktop.org/show_bug.cgi?id=74031) so back-porting it should be a no-brainer.
Nobody backported my patch, but this fix is automatically picked up by unstable, as upstream has it in imake-1.0.7.
Util gentoo-x86 stabilizes that version, the bug will still affect stable systems using gcc-4.8.x. Users affectedcan work around it simply by adding "=x11-misc/imake-1.0.7 *~" to package.accept_keywords.
Stable for HPPA.
Stable on ppc and ppc64.
@other arches. This bug goes back to 2014-01-24 and it is blocking gcc-4.8.
Stable on alpha.
ia64 stable. Closing.