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

[gtk/gtk3] Fix install gschemas.compiled of glib-2.0 #33253

Merged
merged 5 commits into from
Aug 22, 2023

Conversation

LilyWangLL
Copy link
Contributor

Fixes #33037, fix install gschemas.compiled of glib-2.0.

  • Changes comply with the maintainer guide
  • SHA512s are updated for each updated download
  • The "supports" clause reflects platforms that may be fixed by this new version
  • Any fixed CI baseline entries are removed from that file.
  • Any patches that are no longer applied are deleted from the port's directory.
  • The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
  • Only one version is added to each modified port's versions file.

@LilyWangLL LilyWangLL added category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist info:internal This PR or Issue was filed by the vcpkg team. labels Aug 18, 2023
@LilyWangLL LilyWangLL changed the title [gtk, gtk3] Fix install gschemas.compiled of glib-2.0 [gtk/gtk3] Fix install gschemas.compiled of glib-2.0 Aug 18, 2023
@LilyWangLL LilyWangLL marked this pull request as ready for review August 18, 2023 09:54
Cheney-W
Cheney-W previously approved these changes Aug 21, 2023
@Cheney-W Cheney-W added the info:reviewed Pull Request changes follow basic guidelines label Aug 21, 2023
Copy link
Contributor

@dg0yt dg0yt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this PR is invalid, due to misunderstanding of gschemas.compiled. I don't claim I'm familiar with, but there is documentation.

  • share/glib-2.0/schemas seems to be the right location to collect gschema XML files.
  • share/glib-2.0/schemas/gschemas.compiled seems to be a file which cannot be installed/packaged in vcpkg. It can be owned only by a single package. But when installing from cache, the set and order of packages may be different. And there is no hook to update such files after installation from cache.
  • Locations like share/gtk-4.0/glib-2.0 are neither expected by upstream, nor in share/${PORT}, nor would they help users which need a single gschema.compiled for multiple packages.

AFAIU (vcpkg) users need to create gschemas.compiled as part of there deployment.

Taking a look at Debian:

ports/gtk/portfile.cmake Outdated Show resolved Hide resolved
ports/gtk3/portfile.cmake Outdated Show resolved Hide resolved
@Cheney-W Cheney-W removed the info:reviewed Pull Request changes follow basic guidelines label Aug 21, 2023
@LilyWangLL LilyWangLL marked this pull request as draft August 21, 2023 08:05
@LilyWangLL LilyWangLL requested a review from dg0yt August 22, 2023 02:09
@LilyWangLL LilyWangLL marked this pull request as ready for review August 22, 2023 06:19
@Cheney-W Cheney-W added the info:reviewed Pull Request changes follow basic guidelines label Aug 22, 2023
@dan-shaw dan-shaw merged commit 58c4dfa into microsoft:master Aug 22, 2023
15 checks passed
autoantwort pushed a commit to autoantwort/vcpkg that referenced this pull request Aug 23, 2023
* [gtk, gtk3] Fix install gschemas.compiled of glib-2.0

* update version

* Revert changes of gtk3 and disable install gschemas.compiled by gtk

* update version

* Update gtk3.json
@LilyWangLL LilyWangLL deleted the dev/LilyWang/issue33037 branch October 31, 2023 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist info:internal This PR or Issue was filed by the vcpkg team. info:reviewed Pull Request changes follow basic guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[gtk-3] [gtk] glib-compile-schemas should run after install
4 participants