Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 155109 - media-libs/mesa: Missing libOSMesa
Summary: media-libs/mesa: Missing libOSMesa
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Matt Turner
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 383383 388887
  Show dependency tree
 
Reported: 2006-11-14 01:37 UTC by Hannes Krüger
Modified: 2011-11-18 16:19 UTC (History)
8 users (show)

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


Attachments
ebuild for media-libs/osmesa (osmesa-7.0.2.ebuild,2.62 KB, text/plain)
2008-03-14 08:05 UTC, Mathias Gumz
Details
uses the autotools configuration (osmesa-7.3-r1.ebuild,5.30 KB, text/plain)
2009-04-21 14:59 UTC, thewtex
Details
add libGLU.so* to the dynamic_libgl list (osmesa-7.3-r2.ebuild,5.35 KB, text/plain)
2009-04-21 18:37 UTC, thewtex
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hannes Krüger 2006-11-14 01:37:36 UTC
the libOSMesa isn't installed. It looks as it was removed around 6.3.1.1-r3.

from the ChangeLog:
  16 Aug 2005; Donnie Berkholz <spyderous@gentoo.org>;
  mesa-6.3.1.1-r3.ebuild:
  libOSMesa isn't building anymore, so stop symlinking and installing libtool
  archives.

A native mesa-6.5.1 still (or again?)  builds the osmesa library. 
Is there a reason for not including it in the ebuilds-install?
Otherwise it would be nice to have it back, because its the only option to render openGL without graphics hardware.
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2006-11-14 09:51:21 UTC
It was removed because in the current build system, it's a complete hack to build and almost nobody actually uses it anymore. Do you?
Comment 2 Hannes Krüger 2006-11-14 10:49:48 UTC
Yes, I do.Its very useful for rendering openGL images on servers, where X11 isn't available. 
I compiled the latest native mesa (6.5.1), and libOSMesa was build by default. Maybe its not that complicated to add it again probably something has changed again and it is not much effort to add it. After all, the native mesa installs it by default.
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2006-11-14 11:35:05 UTC
No, nothing's changed. It's still a huge PITA. You've having an easy time because you're only building it once (not OSMesa, OSMesa16, OSMesa32) and you're not simultaneously building the DRI drivers.
Comment 4 Luca Barbato gentoo-dev 2006-12-22 12:04:41 UTC
maybe you could also nuke the osmesa.h header or I'm missing something?
Comment 5 Jean Bréfort 2007-12-01 08:19:40 UTC
Still missing in 7.0.2. I don't understand why osmesa.h is installed while the library is not even built.
I just need it. I agree it's a hack to build it, but it is quite useful for off-screen rendering.
Comment 6 Mathias Gumz 2008-03-14 08:05:37 UTC
Created attachment 146083 [details]
ebuild for media-libs/osmesa

"It was removed because in the current build system, it's a complete hack to
build and almost nobody actually uses it anymore. Do you?"

hehe, calling the stuff the mesa guys use to .. well, "build" things a "build system" is kind of nice. the way to produce proper win32 based libs is hackerish at its best, why not use cmake or scons to provide platform neutral stuff, but anyway.

yes, i use osmesa. and some others might as well. but since you are right in the fact that it should be only installed when really explicitly wanted: i attached the proposal for an osmesa-ebuild. i stripped down the mesa ebuild, i am not very much in the deeps of getting a perfect ebuild but it creates the osmesa just fine on my system.

next step would be to a) make a new ticket for osmesa.ebuild and b) let people test it, especially the requestors.

what do you think?
Comment 7 Donnie Berkholz (RETIRED) gentoo-dev 2008-03-15 22:56:56 UTC
Upstream git now has an autoconf build, and I think that getting a simultaneous osmesa may have gotten a lot easier there. I faintly recall mailing-list posts to that effect. I'll look into getting osmesa into it, and then we can have a mesa-9999.ebuild in the x11 overlay that can do osmesa. How's that sound?
Comment 8 Denilson Sá Maia 2008-10-03 03:00:26 UTC
Huh... Shouldn't this bug be renamed to something else? mesa-6.5.1-r1 is somewhat old, and is not even in portage anymore.
Comment 9 thewtex 2009-04-21 14:59:39 UTC
Created attachment 189051 [details]
uses the autotools configuration

this is an adjustment of the media-libs/mesa ebuild to generate the osmesa result.  I put the patches in ${FILESDIR} since I don't have access to the mirrors.
Comment 10 thewtex 2009-04-21 18:37:55 UTC
Created attachment 189077 [details]
add libGLU.so* to the dynamic_libgl list

otherwise conflicts with the libGLU.so* installed with media-libs/mesa
Comment 11 Yaroslav Isakov 2009-06-02 11:16:20 UTC
Any progress? desmume (svn version) need OSMesa for 3d engine
Comment 12 Rémi Cardona (RETIRED) gentoo-dev 2009-06-03 07:34:07 UTC
I think OSmesa should now be handled using the media-libs/mesa ebuild instead.

Or maybe at the very least, the 2 ebuilds should be identical.
Comment 13 Donnie Berkholz (RETIRED) gentoo-dev 2009-06-07 20:27:49 UTC
(In reply to comment #12)
> I think OSmesa should now be handled using the media-libs/mesa ebuild instead.

Yep. I think build-system changes might actually allow for the osmesa to be built at the same time without restarting from a clean build now.
Comment 14 Tomáš Chvátal (RETIRED) gentoo-dev 2009-08-21 06:54:16 UTC
Okey if anyone interested here in writting nice patch then do it this way:
add osmesa useflag to the mesa-7.5 ebuild and make it work with it.

I will then review the patch and apply it to main tree/overlay :]

Cheers.
Comment 15 Rémi Cardona (RETIRED) gentoo-dev 2009-08-21 07:02:42 UTC
Actually, I would suggest a "minimal" USE flag instead.

USE=minimal would only build one or more variants of osmesa
USE=-minimal would build everything like today + osmesa

It would probably require quite a few DEPEND changes... Like Tomáš said, patches welcome :)
Comment 16 Navid Zamani 2011-01-15 03:45:28 UTC
Just so you know: Firefox 4, having WebGL included, uses and requires osmesa. It won’t even compile without it. At least the ebuild that’s in the mozilla overlay right now. So you better get osmesa back, or you’ll be in real trouble when Firefox 4 gets into main Portage.

But of course, 
1. If it’s such a mess, then how come nobody cleans it up? I can’t stand messes in my own code. It makes me feel sick. So I’m unable to relate. Although maybe just because nobody needed it. But then why did the mesa team not officially deprecate it?
2. Why does Firefox need osmesa in the first place? Is it for those cases where there is no GPU acceleration / OpenGL library available? I’m not sure there are any systems where Firefox would run on, that don’t at least have a mainboard chipset (e.g. a Intel one) supporting OpenGL.
Comment 17 Rémi Cardona (RETIRED) gentoo-dev 2011-01-15 12:08:14 UTC
(In reply to comment #16)
> Just so you know: Firefox 4, having WebGL included, uses and requires osmesa.
> It won’t even compile without it. At least the ebuild that’s in the mozilla
> overlay right now. So you better get osmesa back, or you’ll be in real
> trouble when Firefox 4 gets into main Portage.

I hope you're not threatening us...

And [1] disagrees with you, Firefox doesn't _need_ osmesa although it can _use_ it if asked to do so.

[1] http://www.khronos.org/webgl/wiki/Implementations/Firefox
Comment 18 Navid Zamani 2011-01-15 15:28:09 UTC
(In reply to comment #17)
> I hope you're not threatening us...
LOL. What? Why would I…? How…? …wait, what?
I guess I was just watching too much of that one show. :)
Replace the “you’ll” with a “we’ll” :)

> And [1] disagrees with you, Firefox doesn't _need_ osmesa although it can _use_ it if asked to do so.

Well, a crashing Firefox 4 ebuild would like to disagree with /that/. I can’t tell him he’s lying. He’s such a nice ebuild. :P
Comment 19 Matt Turner gentoo-dev 2011-09-21 20:36:25 UTC
I added an osmesa USE flag to mesa-9999 in the X11 overlay.

I don't have any use for osmesa, but I can confirm that it builds a working osmesa .so.

This will get to the tree for Mesa 7.12/8.0.
Comment 20 Navid Zamani 2011-09-21 21:37:22 UTC
Hey, nice work! Thank you man!
You’d be surprised how much this helps! :)

Sorry, I’m just so excited!
Comment 21 Matt Turner gentoo-dev 2011-09-21 21:38:53 UTC
Very glad to hear it! :)

Please let me know how it works and if there's something I can do to make it better.
Comment 22 Eckard Brauer 2011-10-15 16:17:56 UTC
Even sci-visualization/gfsview wants  libOSMesa for being able to batch process data. So thanks for re-integrating - please keep it included.
Comment 23 Justin Lecher (RETIRED) gentoo-dev 2011-10-29 20:36:47 UTC
I need it for gchemutils.
Comment 24 Chí-Thanh Christopher Nguyễn gentoo-dev 2011-11-18 16:19:18 UTC
Fixed in 7.11.1, thanks for holding out with us.