-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
meson: set multiple output dirs in setup hook #36326
Conversation
Success on x86_64-linux (full log) Partial log (click to expand)
|
Success on x86_64-darwin (full log) Partial log (click to expand)
|
Success on aarch64-linux (full log) Partial log (click to expand)
|
+ if commonpath([value, prefix]) == str(PurePath(prefix)): | ||
+ # Convert path to be relative to prefix | ||
+ skip = len(prefix) + 1 | ||
+ value = value[skip:] |
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.
Should this be allowed outside of nix builds?
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.
Unlike the other patches, this should not have any side effects, so it is probably fine.
761cf6a
to
671361f
Compare
Rebasing onto master as it will be merged with GNOME 3.28. |
Success on x86_64-linux (full log) Attempted: meson Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: meson Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: meson Partial log (click to expand)
|
Upstream insists on not allowing bindir and other dir options outside of prefix for some reason: mesonbuild/meson#2561 We remove the check so multiple outputs can work sanely.
671361f
to
bfa24c1
Compare
I'm afraid we have a general meson problem here; according to docs:
I wonder how this has been working so far? It feels like I'm missing something. If not, maybe we could use relative paths like What brought me here: #65095 /cc @worldofpeace |
Most packages use |
As long as they conform to meson docs, it seems a bit hard for me to argue that they should (also) work with absolute paths. |
I've been having a hard time arguing this as well, ref the PR to gtk3 was closed |
Motivation for this change
Will allow us to build gdk_pixbuf using meson (#36312)
Closes: #32636
Things done
I built
json-glib
with this and the include directory was created correctly (did not need to be moved).build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)