Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 249722 - x11-libs/qt-core-4.4.2 fails on sparc-solaris due to eclass problems
Summary: x11-libs/qt-core-4.4.2 fails on sparc-solaris due to eclass problems
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-03 19:32 UTC by Chí-Thanh Christopher Nguyễn
Modified: 2009-05-20 17:44 UTC (History)
0 users

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


Attachments
qt4-build.eclass.patch (qt4-build.eclass.patch,824 bytes, patch)
2008-12-03 20:53 UTC, Chí-Thanh Christopher Nguyễn
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chí-Thanh Christopher Nguyễn gentoo-dev 2008-12-03 19:32:33 UTC
Trying to emerge qt-core-4.4.2 will result in various eclasses calling die.

Reproducible: Always

Steps to Reproduce:
1. add qt-core and dependencies to package.keywords
2. emerge qt-core


Actual Results:  
 * ERROR: x11-libs/qt-core-4.4.2 failed:
 *   Unknown CHOST, no platform choosen.
 *                                      
 * Call stack:                          
 *               ebuild.sh: 49: <call pkg_setup>
 *    qt-core-4.4.2.ebuild: 50: <call qt4-build_pkg_setup>
 *        qt4-build.eclass: 62: <call qt_mkspecs_dir>     
 *        qt4-build.eclass:466:                        die "Unknown CHOST, no platform choosen."                                                                

adding solaris to qt4-build.eclass will lead to the following error:

 * ERROR: x11-libs/qt-core-4.4.2 failed:
 *   sparc-solaris is unsupported by this eclass. Please file a bug.
 *                                                                  
 * Call stack:                                                      
 *               ebuild.sh:  49: <call src_compile>                 
 *             environment:2835: <call qt4-build_src_compile>       
 *             environment:2602: <call standard_configure_options>  
 *             environment:2915:             die "${ARCH} is unsupported by this eclass. Please file a bug."                                                    

Expected Results:  
At least try to start the build.

This is a regression from qt-4.3.3.
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-12-03 19:46:20 UTC
So, I guess that qt4-build.eclass needs to be made solaris aware.

qt_mkspecs_dir() {
    # Allows us to define which mkspecs dir we want to use.
    local spec

    case ${CHOST} in
        *-freebsd*|*-dragonfly*)
            spec="freebsd" ;;
        *-openbsd*)
            spec="openbsd" ;;
        *-netbsd*)
            spec="netbsd" ;;
        *-darwin*)
            spec="darwin" ;;
        *-linux-*|*-linux)
            spec="linux" ;;
        *) 
            die "Unknown CHOST, no platform choosen."
    esac

I don't know the answer.
Comment 2 Fabian Groffen gentoo-dev 2008-12-03 19:47:34 UTC
try specs=solaris
Comment 3 Chí-Thanh Christopher Nguyễn gentoo-dev 2008-12-03 20:53:14 UTC
Created attachment 174192 [details, diff]
qt4-build.eclass.patch

Patch to make qt4-build eclass not die. Unfortunately, configure is still broken, I am looking into it.
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-12-15 16:14:43 UTC
(In reply to comment #3)
> Created an attachment (id=174192) [edit]
> qt4-build.eclass.patch
> 
> Patch to make qt4-build eclass not die. Unfortunately, configure is still
> broken, I am looking into it.
> 

Applied.
Comment 5 Chí-Thanh Christopher Nguyễn gentoo-dev 2009-01-29 16:56:57 UTC
The remaining fixes (not eclass related) are attached to bug 256802 now.
Comment 6 Fabian Groffen gentoo-dev 2009-05-20 17:44:16 UTC
since this patch is applied, closing