Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29163 - pari-2.1.5 on x86 gets wrong kernel
Summary: pari-2.1.5 on x86 gets wrong kernel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-19 19:27 UTC by James Cloos
Modified: 2004-03-15 04:37 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Cloos 2003-09-19 19:27:08 UTC
pari has assembly kernels for several architectures, as well as a reference C
kernel for other archs.  If you just run ./Configure it chooses its ix86 kernel,
but the ebuild passes --host=${CHOST} to Configure, and for the standard CHOST
of i686-pc-linux-gnu that fails to choose the ix86 kernel.

If the ebuild will continue to specify --host (rather than letting Configure get
it from uname(1)), it should munge CHOST to just arch-os, eg i686-linux.

Perhaps something like:

--host=${CHOST/%-*/}-linux

or just let it get it from uname(1).
Comment 1 Patrick Kursawe (RETIRED) gentoo-dev 2004-03-15 04:37:05 UTC
Thanks for the hint. Fixed in -r1.
Decided to use --host="$(echo ${CHOST} | cut -f "1 3" -d '-')"