Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 197459 - dev-lisp/sbcl: ebuild doesn't work on system without sys-devel/gcc
Summary: dev-lisp/sbcl: ebuild doesn't work on system without sys-devel/gcc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: High normal (vote)
Assignee: osx porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-29 20:59 UTC by Benedikt Reinartz
Modified: 2007-11-19 21:59 UTC (History)
0 users

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


Attachments
This is the patch for the sbcl ebuild I currently use. (sbcl.ebuild.patch,564 bytes, patch)
2007-10-29 21:08 UTC, Benedikt Reinartz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benedikt Reinartz 2007-10-29 20:59:49 UTC
The line 
" if built_with_use sys-devel/gcc hardened && [blah]"
doesn't behave well on OS X as there is no sys-devel/gcc but sys-devel/gcc-apple installed.

Reproducible: Always

Steps to Reproduce:
1. emerge sbcl (every version by now)
Actual Results:  
 * ERROR: dev-lisp/sbcl-1.0.11 failed.
 * Call stack:
 *               ebuild.sh, line 1614:  Called dyn_setup
 *               ebuild.sh, line  665:  Called qa_call 'pkg_setup'
 *               ebuild.sh, line   44:  Called pkg_setup
 *      sbcl-1.0.11.ebuild, line   51:  Called built_with_use 'sys-devel/gcc' 'hardened'
 *           eutils.eclass, line 1673:  Called die
 * The specific snippet of code:
 *      [[ -z ${PKG} ]] && die "Unable to resolve $1 to an installed package"
 *  The die message:
 *   Unable to resolve sys-devel/gcc to an installed package
Comment 1 Benedikt Reinartz 2007-10-29 21:08:55 UTC
Created attachment 134658 [details, diff]
This is the patch for the sbcl ebuild I currently use.

This one patches the ebuild so it works on Darwin. But the problem should exist on every (prefix) system, that doesn't use the FSF GCC as it's default compiler.
Comment 2 Fabian Groffen gentoo-dev 2007-10-30 16:25:01 UTC
Given that you seem to use an ultra-new portage, I'm going to assume this is Prefix.
Comment 3 Elias Pipping (RETIRED) gentoo-dev 2007-11-19 18:15:12 UTC
this snippet from eutils.eclass:

        local PKG=$(best_version $1)
        [[ -z ${PKG} ]] && die "Unable to resolve $1 to an installed package"
        shift

means we can't check for something to be built_with_use if it's not guaranteed to be installed. which is the case with gcc in prefix (on certain platforms).
Comment 4 Elias Pipping (RETIRED) gentoo-dev 2007-11-19 18:16:47 UTC
i suppose we could either disable that check completely (there's no such thing as hardened for prefix, is there?) or we could disable it for darwin because gcc-apple certainly doesn't have USE=hardened.
Comment 5 Fabian Groffen gentoo-dev 2007-11-19 18:27:27 UTC
I opt for instead of using 

if [[ $CHOST != *-darwin* ]] && built_with_use sys-devel/gcc hardened

just doing

has_version sys-devel/gcc && built_with_use sys-devel/gcc hardened
Comment 6 Elias Pipping (RETIRED) gentoo-dev 2007-11-19 21:59:07 UTC
applied in r12666[1].


[1] http://overlays.gentoo.org/proj/alt/changeset/12666