Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 199282 - media-libs/mesa-7.0.2 built_with_use failure due to xorg-server not being installed.
Summary: media-libs/mesa-7.0.2 built_with_use failure due to xorg-server not being ins...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-15 18:19 UTC by Ryan Hill (RETIRED)
Modified: 2008-11-24 22:29 UTC (History)
3 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 Ryan Hill (RETIRED) gentoo-dev 2007-11-15 18:19:20 UTC
i'm not really sure how i hit this, but..


Switching to xorg-x11 OpenGL interface... done

 *
 * ERROR: media-libs/mesa-7.0.2 failed.
 * Call stack:
 *           ebuild.sh, line 1682:  Called qa_call 'pkg_postinst'
 *           ebuild.sh, line   44:  Called pkg_postinst
 *   mesa-7.0.2.ebuild, line  270:  Called built_with_use 'x11-base/xorg-server' 'nptl'
 *       eutils.eclass, line 1665:  Called die
 * The specific snippet of code:
 *      [[ -z ${PKG} ]] && die "Unable to resolve $1 to an installed package"
 *  The die message:
 *   Unable to resolve x11-base/xorg-server to an installed package
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/media-libs/mesa-7.0.2/temp/build.log'.
 *
!!! FAILED postinst: 1
 * GNU info directory index is up-to-date.


the mesa ebuild contains this:

    # We need the outer check, because xorg-server may not be installed
    # first, and built_with_use() dies if the package isn't installed.
    if best_version x11-base/xorg-server; then
        if built_with_use x11-base/xorg-server nptl; then
            ewarn "Rebuild x11-base/xorg-server without USE=nptl"
            ewarn "or AIGLX (compiz, etc.) will not work."
            ewarn "This is because of a bug in the Mesa NPTL assembly code"
            ewarn "in all Mesa 7.0.x versions (Mesa 6.x is OK)."
        fi
    fi


so i really don't know what's happening here.
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2007-11-15 18:25:30 UTC
jakub pointed out to me that best_version returns an empty string, and we should be using has_version instead, which works for me.
Comment 2 R Stephan 2007-11-16 17:09:07 UTC
on my paludis system, I get the error (when trying to build xorg)
!!! ERROR in x11-base/xorg-server-1.3.0.0-r2:
!!! In pkg_setup at line 3796
!!! You must build xorg-server and mesa with the same nptl USE setting.

and true, although I have globally 'nptl', mesa has '-motif (-nptl)'
as default. As I don't have motif, the mismatched triggered the error.
I this the same bug?
Comment 3 R Stephan 2007-11-16 17:24:00 UTC
should I rebuild xorg with -nptl? should I wait for a patch in sync?
Comment 4 Donnie Berkholz (RETIRED) gentoo-dev 2007-11-16 18:18:39 UTC
Made the has_version change, thanks. For the others on here, yes you do need to rebuild with -nptl for now because I have no plans of adding a patch unless someone submits one.
Comment 5 Joakim Tjernlund 2008-01-22 08:51:21 UTC
Donnie, I sent you a patch long ago trying to fix the NPTL breakage in
Mesa assembly. Did it work or not?
Comment 6 genbug 2008-08-11 20:41:39 UTC
Deafening silence on that one. Maybe you could post the patch here if you want if testing. I take it you have it working locally and you want wider testing.

thx.
Comment 7 genbug 2008-08-11 20:41:59 UTC
Deafening silence on that one. Maybe you could post the patch here if you want if testing. I take it you have it working locally and you want wider testing.

thx.
Comment 8 Stephan Menzel 2008-10-23 18:14:01 UTC
Because of #235789 I've had to mask every xorg-server above 1.5.0.
With the one below 1.5.0 this still happens. Even though I've had mesa built with nptl. Apparently the reason is, xorg-server <1.5.0 doesn't know about this flag.

Unfortunately, since #235789 hasn't been fixed in quite some time despite of the existing patch I ended up with no useable xserver I can build. I would probably reopen that one. I also add a comment on the other one.

Thanks and greetings...

Stephan
Comment 9 Lee Chen 2008-11-24 22:29:08 UTC
This is an odd bug that has gone on without a fix for some time.

I have also masked every xorg-server above 1.4.2 and run into the same emerge problem.

Mesa 6.5.2-r1 is installed with nptl - I've tried it both on and off.

What, step-by-step, needs to be done to get a working xorg-server again on my gentoo x86_64 system?

Kind regards...