New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libdrm: build with meson #57773
libdrm: build with meson #57773
Conversation
++ stdenv.lib.optionals (stdenv.isAarch32 || stdenv.isAarch64) | ||
[ "--enable-tegra-experimental-api" "--enable-etnaviv-experimental-api" ] | ||
++ stdenv.lib.optional stdenv.isDarwin "-C" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please review this deletion. I'm not sure what it was for, or what it's meson equivalent is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It can be dropped as well, it's asking configure to use the cache ( https://www.gnu.org/software/autoconf/manual/autoconf-2.65/html_node/Cache-Files.html ), presumably to pick up the value put there in preConfigure
previously.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure that the clock_gettime
workaround is still useful (meson or no), may need some testing or investigation on that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Agreed we'll need to move this to meson "soon" anyway.
|
||
src = fetchgit { | ||
url = "https://gitlab.freedesktop.org/mesa/drm"; | ||
inherit rev sha256; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the change of source?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It makes it easier to point at git revisions, but maybe not appropriate for this PR. I'll revert.
@@ -25,13 +28,15 @@ stdenv.mkDerivation rec { | |||
preConfigure = stdenv.lib.optionalString stdenv.isDarwin | |||
"echo : \\\${ac_cv_func_clock_gettime=\'yes\'} > config.cache"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be removed-- if we're using meson it does nothing :).
@@ -25,13 +28,15 @@ stdenv.mkDerivation rec { | |||
preConfigure = stdenv.lib.optionalString stdenv.isDarwin | |||
"echo : \\\${ac_cv_func_clock_gettime=\'yes\'} > config.cache"; | |||
|
|||
configureFlags = [ "--enable-install-test-programs" ] | |||
mesonFlags = | |||
[ "-Dinstall-test-programs=true" ] | |||
++ stdenv.lib.optionals (stdenv.isAarch32 || stdenv.isAarch64) | |||
[ "--enable-tegra-experimental-api" "--enable-etnaviv-experimental-api" ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"-Dtegra=true" "-Detnaviv=true"
, at least that's what I came up with :).
++ stdenv.lib.optionals (stdenv.isAarch32 || stdenv.isAarch64) | ||
[ "--enable-tegra-experimental-api" "--enable-etnaviv-experimental-api" ] | ||
++ stdenv.lib.optional stdenv.isDarwin "-C" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It can be dropped as well, it's asking configure to use the cache ( https://www.gnu.org/software/autoconf/manual/autoconf-2.65/html_node/Cache-Files.html ), presumably to pick up the value put there in preConfigure
previously.
++ stdenv.lib.optionals (stdenv.isAarch32 || stdenv.isAarch64) | ||
[ "--enable-tegra-experimental-api" "--enable-etnaviv-experimental-api" ] | ||
++ stdenv.lib.optional stdenv.isDarwin "-C" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure that the clock_gettime
workaround is still useful (meson or no), may need some testing or investigation on that.
Also, and maybe this is why I was asked to review ;), previously: #48218 . Been using it ever since, so far so good ^_^. |
2a867e4
to
ff4da7b
Compare
@dtzWill Thank you for the review. I actually hadn't seen that PR -- please let me know if you'd prefer to reopen your PR and drive it yourself. Otherwise, I'm happy to keep pushing this with your guidance. |
On Sun, 17 Mar 2019 13:12:44 -0700, Cole Mickens ***@***.***> wrote:
@dtzWill Thank you for the review. I actually hadn't seen that PR -- please let me know if you'd prefer to reopen your PR and drive it yourself. Otherwise, I'm happy to keep pushing this with your guidance.
I ran out of steam pushing that PR, so probably not wise to put our
hopes there. If you don't mind I think we can wrap this up here!
…
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#57773 (comment) part: text/html
|
41a49f5
to
e7408ca
Compare
I've updated this per the requested changes. Note, I don't have Darwin devices, so I can't test anything this affects in Darwin. |
e7408ca
to
d21dc1b
Compare
Rebased, pushed. 19.1's release is coming very soon. Shall we try to get this and the mesa/meson change pushed? |
Rebased on and re-pointed at staging. cc: @grahamc |
b36af9b
to
4c77d47
Compare
This broke the build with musl: |
Motivation for this change
I'm testing this jointly with #56199 and assume it might be staged with it?
I'm doing this as the next libdrm release seemed to require it, similar to the next release of mesa.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)