Skip to content

mesa: use buildEnv to join mesa(noglu) and glu - #405

Merged
vcunat merged 3 commits into
NixOS:x-updatesfrom
cpages:mesafix
Mar 28, 2013
Merged

vcunat merged 3 commits into
NixOS:x-updatesfrom
cpages:mesafix

Conversation

@cpages

@cpages cpages commented Mar 24, 2013

Copy link
Copy Markdown
Contributor

We had a brief discussion in aa0fb73 and @peti suggested what I think was the best solution to the upstream split of mesa and glu.

From the (little) tests I did, it seems to work (for example, SDL GL apps do work again) and I found no more references of mesa_noglu in nixpkgs besides the wxGTK one that I already fixed.

cpages added 2 commits March 24, 2013 12:36
Since mesa-9.x, upstream has separated mesa and glu. @peti suggested using
buildEnv to create a mesa environment that acts like old mesa, which is what
this commit does.
This is no longer needed since unifying mesa(noglu) and glu in a mesa buildEnv.
@vcunat

vcunat commented Mar 24, 2013

Copy link
Copy Markdown
Member

This looks nice, thanks. I'll leave some time for other interested people to react.

@7c6f434c

Copy link
Copy Markdown
Member

What is the real scale of things fixed by this? Do I need to have X.org built with fixed Mesa to benefit?

Currently, running updated glxinfo on top of old x-updates X.org yields

DISPLAY=:0 /nix/store/f9f72aids0ksjilw16mngnd2ar50xqsm-glxinfo-8.0.1/bin/glxinfo 
name of display: :0
Error: couldn't find RGB GLX visual or fbconfig

Is this an unrelated problem? What specific application should work so I can test it before/after?

@cpages

cpages commented Mar 28, 2013

Copy link
Copy Markdown
Contributor Author

Yes, you do need to rebuild the X stack to test this, I forgot to mention. Now that you have a broken config, you can test which applications don't work and retest after rebuilding X. I saw this problem while doing some stuff with SDL. I noticed that for example xmoto or blackshades wouldn't start with an error similar to what you describe.

@7c6f434c

Copy link
Copy Markdown
Member

Well, I am running a full rebuild, but it is slow (because Hydra is not used and I have a big configuration), so I wondered whether I already see it doesn't work or I jut haven't rebuit enough.

@vcunat

vcunat commented Mar 28, 2013

Copy link
Copy Markdown
Member

For getting such builds from Hydra I use sudo nix-pull http://hydra.nixos.org/job/nixpkgs/xorg-test/evince/channel/latest/MANIFEST or other jobs that depend on packages I need. I still don't understand why hydra's binary cache doesn't contain all that Hydra builds.

EDIT: sorry, I didn't realize it hasn't been merged yet, so I'll do it now to simplify testing :-)

vcunat added a commit that referenced this pull request Mar 28, 2013
mesa: use buildEnv to join mesa(noglu) and glu
@vcunat
vcunat merged commit 4ee055d into NixOS:x-updates Mar 28, 2013
@vcunat

vcunat commented Mar 28, 2013

Copy link
Copy Markdown
Member

Continue reporting any problems with mesa here, please.

@7c6f434c

Copy link
Copy Markdown
Member

For getting such builds from Hydra I use sudo nix-pull http://hydra.nixos.org/job/nixpkgs/xorg-test/evince/channel/latest/MANIFEST or other jobs that depend on packages I need. I still don't understand why hydra's binary cache doesn't contain all that Hydra builds.

My experience that directly using Hydra dynamic binary cache is actually
enough, but in this specific case I was not sure I want to merge without
testing myself.

@vcunat

vcunat commented Mar 28, 2013

Copy link
Copy Markdown
Member

@7c6f434c: It's possible that dynamic binary cache is enough, I'm not sure. It's a bit deprecated, however, as it's said to need nontrivial computation on the server-side.

Using buildenv instead of the separate packages should change very little as only paths change, nothing else.

wine evaluation: do you have any idea how to add passthru attributes to buildEnv output? Another option is to take wine's libdrm from elsewhere.

@7c6f434c

Copy link
Copy Markdown
Member

@7c6f434c: It's possible that dynamic binary cache is enough, I'm not sure. It's a bit deprecated, however, as it's said to need nontrivial computation on the server-side.

It is also recommended for testing large changes pre-merge, so you
should just get mainstream packages from static cache and then get the
rest from dynamic cache.

I try not to use it when nixos.org static binary cache does have what
I need, of course.

Using buildenv instead of the separate packages should change very little as only paths change, nothing else.

wine evaluation: do you have any idea how to add passthru attributes to buildEnv output? Another option is to take wine's libdrm from elsewhere.

I think we could take top-level libdrm.

@vcunat

vcunat commented Mar 28, 2013

Copy link
Copy Markdown
Member

Yes, probably, I can't imagine a reason why we wanted to use multiple libdrm versions in one nixpkgs tree revision.

@vcunat

vcunat commented Apr 1, 2013

Copy link
Copy Markdown
Member

Even dynamic cache does not work for me on x-updates, but the nix-pull way above does (maybe my settings is bad).

modulitos pushed a commit to modulitos/nixpkgs that referenced this pull request Nov 24, 2024
notklea pushed a commit to notklea/nixpkgs that referenced this pull request Dec 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants