The ebuild for tcc calls configure with absolute paths: ./configure --cc="$(tc-getCC)" \ --bindir=/usr/bin \ --libdir=/usr/$(get_libdir) \ --tccdir=tcc \ --includedir=/usr/include \ --docdir=/usr/share/doc/${PF} \ --mandir=/usr/share/man this is a bit unfortunate as it breaks prefix support. Simply refactoring this to ./configure --cc="$(tc-getCC)" \ --prefix="${EPREFIX}/usr" \ --libdir="${EPREFIX}/usr/$(get_libdir)" leads to the same result and is prefix compatible (tested on ~amd64-linux). Patch attached for convencience. Reproducible: Always
Created attachment 368862 [details, diff] Patch against tcc-0.9.26-r1.ebuild for discussed changes
Patch looks ok to me. @lang-misc: Any comments?
*tcc-0.9.26-r2 (02 Apr 2014) 02 Apr 2014; Christoph Junghans <ottxor@gentoo.org> +tcc-0.9.26-r2.ebuild, tcc-9999.ebuild: added prefix support (bug #499440)