Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 249504 - sys-devel/kgcc64 should run gcc-config to select itself
Summary: sys-devel/kgcc64 should run gcc-config to select itself
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-01 17:50 UTC by Andrew Gaffney (RETIRED)
Modified: 2012-05-13 20:26 UTC (History)
2 users (show)

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 Andrew Gaffney (RETIRED) gentoo-dev 2008-12-01 17:50:19 UTC
Currently, when sys-devel/kgcc64 is emerged, you have to manually run gcc-config to select the 64-bit toolchain and create the necessary files in /usr/bin. On sparc, this is a problem, since it prevents building a kernel >=2.6.25 when using catalyst, since you can't perform "manual" steps like that.
Comment 1 Andrew Gaffney (RETIRED) gentoo-dev 2008-12-01 18:00:22 UTC
Looking at the following line in should_we_gcc_config() in toolchain.eclass, it looks like this *should* already work:

curr_config=$(env -i ROOT="${ROOT}" gcc-config -c ${CTARGET} 2>&1) || return 0

That of course assumes that CTARGET is set to sparc64-unknown-linux-gnu in the case kgcc64 on sparc with CHOST="sparc-unknown-linux-gnu".
Comment 2 Andrew Gaffney (RETIRED) gentoo-dev 2008-12-01 20:33:58 UTC
I believe I found the problem. The sys-devel/kgcc64 ebuilds define their own pkg_postinst(), so the gcc-compiler_pkg_postinst() never gets called, and that's where the gcc-config logic is. Just adding a call to 'toolchain_pkg_postinst' at the top of kgcc64's pkg_postinst() seems to fix this.
Comment 3 Andrew Gaffney (RETIRED) gentoo-dev 2008-12-01 20:38:18 UTC
It looks like the fix for bug #228157 caused this problem.
Comment 4 SpanKY gentoo-dev 2012-05-13 20:26:03 UTC
looks like this was fixed a while ago:

  09 Dec 2008; Mark Loeser <halcy0n@gentoo.org> kgcc64-4.1.2.ebuild,
  kgcc64-4.2.4.ebuild, kgcc64-4.3.1.ebuild, kgcc64-4.3.2.ebuild:
  Add call back in for toolchain_pkg_postinst, thanks to Andrew Gaffney
  <agaffney AT gentoo DOT org>; bug #249504