Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 303545 - sys-devel/icecream-0.9.4: icecream-create-env does not work because CHOST is not set
Summary: sys-devel/icecream-0.9.4: icecream-create-env does not work because CHOST is ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2010-02-05 07:46 UTC by 2010dli
Modified: 2010-09-18 10:24 UTC (History)
2 users (show)

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


Attachments
Proposed patch that suppress the need to define CHOST (icecream-chost-not-needed.patch,1.11 KB, patch)
2010-06-10 16:38 UTC, Quentin Casasnovas
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description 2010dli 2010-02-05 07:46:11 UTC
icecream-create-env, when creating a tarball for a different target architecture, uses the environment variable ${CHOST}, which is blank instead of set to the correct CHOST. This causes icecream-create-env to fail.

Setting the CHOST on the command line before running icecream-create-env works fine.

Reproducible: Always

Steps to Reproduce:
1. crossdev -t sparc-unknown-linux-gnu
2. icecream-create-env sparc-unknown-linux-gnu
3. CHOST="i686-pc-linux-gnu" icecream-create-env sparc-unknown-linux-gnu

Actual Results:  
Step 2 fails, step 3 works.

Expected Results:  
Step 2 works, with the addition in step 3 unnecessary.
Comment 1 2010dli 2010-02-05 18:21:44 UTC
Not sure if this is a bug or a feature.
The documentation at http://dev.gentoo.org/~bluebird/icecream.xml?style=printable includes instructions to prepend CHOST=<host's chost> to the command line.
However, the documentation here: http://dev.gentoo.org/~bluebird/icecream.xml?style=printable makes no mention of it.
Either way, the proposed patch here from bug 275756 fixes this issue.
Comment 2 Gregg Casillo 2010-02-12 02:16:06 UTC
This seems to be what I ran into here:
http://forums.gentoo.org/viewtopic-t-789604-highlight-icecream.html

Just ran into this issue again today. So looks like I'm in the same boat here and would appreciate a permanent fix.
Comment 3 Ricardo Salveti 2010-02-17 21:04:50 UTC
(In reply to comment #1)
> Not sure if this is a bug or a feature.

Yeah, it seems to be a feature, since CHOST is only used to construct the correct path.

I also would prefer to have this fixed in the script.
Comment 4 Quentin Casasnovas 2010-06-10 16:38:43 UTC
Created attachment 234875 [details, diff]
Proposed patch that suppress the need to define CHOST
Comment 5 Tomáš Chvátal (RETIRED) gentoo-dev 2010-09-18 10:24:11 UTC
Thanks for bugreport and patch guys, applied.