Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 90643 - gcc-config update to work on G/FBSD systems
Summary: gcc-config update to work on G/FBSD systems
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-27 11:36 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2006-04-12 10:50 UTC (History)
2 users (show)

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


Attachments
gcc-config.patch (gcc-config.patch,1.67 KB, patch)
2005-04-27 11:36 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2005-04-27 11:36:36 UTC
As I'm currently having gcc-4.0.0 on the G/FBSD box, I'm having trouble with gcc-config script.

The main changes in the patch I'm attaching are:
- it doesn't use env -uCHOST as env -u doesn't work on, so saves, unsets and restores CHOST variable itself.
- it checks for path for portageq as for other utils as the path problem is real on G/FBSD.
- it uses ${CP}, ${TOUCH}, ${RM} and ${PORTAGEQ} instead of the direct command (see above).
- it uses -pPR instead of -a on ${CP} as -a is gnuish thing.

With those changes gcc-config works better, it just echo the warning

 * ./gcc-config: Profile does not exist or invalid setting for /etc/env.d/gcc/i686-unknown-freebsd5.3-4.0.0

but it works as it should anyway.

HTH, Diego
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-04-27 11:36:56 UTC
Created attachment 57411 [details, diff]
gcc-config.patch
Comment 2 SpanKY gentoo-dev 2005-04-27 18:47:22 UTC
cant we do something that isnt a hack to deal with the 'env -u' issue ?

ive committed all the cp->$CP, rm->$RM, etc... changes in all the gcc-config versions and changed 'cp -a' to 'cp -pP' since that's all we needed
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-04-28 04:45:40 UTC
Uhm we can just use ${ENV} -i to give portageq an empty environment completely.
That would be better?
Comment 4 SpanKY gentoo-dev 2005-04-28 16:42:23 UTC
that'd be fine actually, added to cvs