| Summary: | pax-utils-0.2.1 fails to emerge due to unprefixed shebangs | ||
|---|---|---|---|
| Product: | Gentoo/Alt | Reporter: | Guilherme Amadio <amadio> |
| Component: | Prefix Support | Assignee: | Gentoo Prefix <prefix> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | CC: | sebastian |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | IA64 | ||
| OS: | OS X | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
please report the original error, portage should have fixed this by itself same bootstrap issue as #310589 *** This bug has been marked as a duplicate of bug 310589 *** |
Shebangs that are not prefixed cause QA tests to fail the emerge of pax-utils-0.2.1 ebuild Solution: added the lines below to src_compile in the ebuild: # fix shebangs for prefix environments sed -ie "s/\/bin\/bash/${EPREFIX//\//\\/}\/bin\/bash/;" lddtree.sh symtree.sh so src_compile now looks like: src_compile() { local libs if [[ ${CHOST} == *-solaris* || ${CHOST} == *-hpux* ]]; then append-flags -I"${EPREFIX}"/usr/$(get_libdir)/gnulib/include append-ldflags -L"${EPREFIX}"/usr/$(get_libdir)/gnulib/lib libs="-lgnu" fi # fix shebangs for prefix environments sed -ie "s/\/bin\/bash/${EPREFIX//\//\\/}\/bin\/bash/;" lddtree.sh symtree.sh emake CC="$(tc-getCC)" LIBS="${libs}" USE_CAP=$(use caps && echo yes) || die } Reproducible: Always