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). Reproducible: Always Steps to Reproduce: gcc-config x86_64-pc-linux-gnu-4.8.2 emerge x11-misc/imake head -n 40 `which xmkmf`
Created attachment 368646 [details, diff] fix-imake-ebuild.patch
Created attachment 368648 [details, diff] image-1.0.6-gcc48-avoid-stdin.patch 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] > fix-imake-ebuild.patch 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.
arm stable
Stable on ppc and ppc64. @other arches. This bug goes back to 2014-01-24 and it is blocking gcc-4.8.
amd64 stable
x86 stable
Stable on alpha.
sparc stable
ia64 stable. Closing.