Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 586982 - sci-biology/ncbi-tools-2.2.26-r2 - undo ${EPREFIX}${EPREFIX} in ncbi/platform/*
Summary: sci-biology/ncbi-tools-2.2.26-r2 - undo ${EPREFIX}${EPREFIX} in ncbi/platform/*
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Biology related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-24 20:42 UTC by Martin Mokrejš
Modified: 2017-01-25 17:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
ncbi-tools-2.2.26-r2.ebuild.patch (ncbi-tools-2.2.26-r2.ebuild.patch,781 bytes, patch)
2016-06-24 20:42 UTC, Martin Mokrejš
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2016-06-24 20:42:18 UTC
Created attachment 438684 [details, diff]
ncbi-tools-2.2.26-r2.ebuild.patch

On Gentoo:Prefix I get:

make CFLAGS1="-DNDEBUG -O2 -pipe -O2 -pipe -march=native -c " LDFLAGS1="-O2 -pipe -O2 -pipe -march=native -Wl,-O1" OTHERLIBS="-lm" SHELL="/scratch/mmokrejs/gentoo/scratch/mmokrejs/gentoo/bin/sh" ...

where you can see the '/scratch/mmokrejs/gentoo' is included twice. We can at least undo this in the ebuild.
Comment 1 Martin Mokrejš 2017-01-25 17:37:40 UTC
Alternatively you can just drop the line:

        -e "/NCBI_MAKE_SHELL *=/s:=.*:= \"${EPREFIX}/bin/sh\":g" \

or if you really want a clean solution that figure out why the following

    sed \
        -re "s:/usr(/bin/.*sh):\1:g" \
        -e "s:(/bin/.*sh):${EPREFIX}\1:g" \
        -i $(find "${S}" -type f) || die


matched lines with '^NCBI_MAKE_SHELL =' which are then re-processed *again*.