Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 310587

Summary: pax-utils-0.2.1 fails to emerge due to unprefixed shebangs
Product: Gentoo/Alt Reporter: Guilherme Amadio <amadio>
Component: Prefix SupportAssignee: 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: ---

Description Guilherme Amadio gentoo-dev 2010-03-21 18:58:39 UTC
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
Comment 1 Fabian Groffen gentoo-dev 2010-03-21 20:43:39 UTC
please report the original error, portage should have fixed this by itself
Comment 2 Fabian Groffen gentoo-dev 2010-03-22 07:59:18 UTC
same bootstrap issue as #310589

*** This bug has been marked as a duplicate of bug 310589 ***