Skip to content
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

gnome: Add post_install() method #8272

Merged
merged 1 commit into from Feb 5, 2021

Conversation

xclaesse
Copy link
Member

@xclaesse xclaesse commented Jan 29, 2021

Various GNOME projects have scripts that does similar task, better do it directly in meson. This ensures it's done correctly regarding usage of subprojects and pkg-config. See for example this gtk bug:
https://gitlab.gnome.org/GNOME/gtk/-/issues/3626.

Fixes: #8268

@xclaesse
Copy link
Member Author

CC @ebassi

See corresponding MR in gtk4: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/3135

@xclaesse
Copy link
Member Author

Also need a patch in glib in case it's a subproject: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1909.

gnomesysadmins pushed a commit to GNOME/glib that referenced this pull request Jan 30, 2021
It is going to be used in Meson's gnome module, and if glib is built as
subproject it's better to use it.

See mesonbuild/meson#8272.
@jpakkane
Copy link
Member

I don't know enough about Gnome internals to say anything about the UX but featurewise looks good.

Various GNOME projects have scripts that does similar task, better do it
directly in meson. This ensures it's done correctly regarding usage of
subprojects and pkg-config. See for example this gtk bug:
https://gitlab.gnome.org/GNOME/gtk/-/issues/3626.

Fixes: mesonbuild#8268
@xclaesse xclaesse changed the title gnome: Add install_script() method gnome: Add post_install() method Jan 31, 2021
@xclaesse
Copy link
Member Author

I decided to rename the method to gnome.post_install() because that's the name used by most GNOME projects for their script doing that task. Also it's not really a script, it's executing native binaries.

@xclaesse
Copy link
Member Author

xclaesse commented Jan 31, 2021

I don't know enough about Gnome internals to say anything about the UX but featurewise looks good.

@ebassi could validate the idea maybe?

@xclaesse xclaesse mentioned this pull request Feb 2, 2021
@xclaesse xclaesse added this to the 0.57 milestone Feb 5, 2021
@xclaesse xclaesse merged commit b5100fe into mesonbuild:master Feb 5, 2021
@xclaesse xclaesse deleted the gnome-install-script branch February 5, 2021 20:08
@mclasen
Copy link

mclasen commented Feb 5, 2021 via email

@xclaesse
Copy link
Member Author

xclaesse commented Feb 5, 2021

That was for @matthiasclasen, sorry.

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.

GNOME: Add post_install() script
4 participants