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

Hughsie/win32 #177

Merged
merged 2 commits into from
Apr 25, 2024
Merged

Hughsie/win32 #177

merged 2 commits into from
Apr 25, 2024

Conversation

hughsie
Copy link
Owner

@hughsie hughsie commented Apr 25, 2024

No description provided.

hughsie added 2 commits April 25, 2024 20:21
To do this, remove the 'cached' silo from the builder -- which allows us to
drop the mmap to the existing silo before writing the new one.

This works around a regression in GLib, which started calling `_chsize()` during
`g_file_set_contents_full()` -- which doesn't work when the thing we're trying
to truncate is `mmap`'d. It's probably dumb to *not* unmap the previous file
before writing the new one -- although unmapping and then re-mapping the file
was the first thing libxmlb did after writing the file.

That's 6 hours of my life I'm never going to get back, although it does make the
builder slightly simpler.
@hughsie hughsie merged commit b150917 into main Apr 25, 2024
3 checks passed
@hughsie hughsie deleted the hughsie/win32 branch April 25, 2024 21:41
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.

1 participant