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

Fix sync_file_range() with musl 1.2.4 #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alyssais
Copy link

musl 1.2.4 has removed the transitional LFS off64_t type. sync_file_range is declared with off_t in musl, which is always 64 bits.

This assumes that the same is true of any other libc which doesn't provide off64_t. If it's not, gcc will produce an error due to the conflicting types of sync_file_range(), so it will be caught and can be fixed.

musl 1.2.4 has removed the transitional LFS off64_t type.
sync_file_range is declared with off_t in musl, which is always 64
bits.

This assumes that the same is true of any other libc which doesn't
provide off64_t.  If it's not, gcc will produce an error due to the
conflicting types of sync_file_range(), so it will be caught and can
be fixed.
alyssais added a commit to alyssais/nixpkgs that referenced this pull request May 13, 2024
This reverts commit c7f51f0.

This broke 32-bit Glibc builds.  I've submitted a revised patch
upstream, but in the meantime, there's no point keeping this around,
since we didn't do the musl upgrade yet.

Link: NixOS#292654 (comment)
Link: stewartsmith/libeatmydata#36
alyssais added a commit to NixOS/nixpkgs that referenced this pull request May 13, 2024
This reverts commit c7f51f0.

This broke 32-bit Glibc builds.  I've submitted a revised patch
upstream, but in the meantime, there's no point keeping this around,
since we didn't do the musl upgrade yet.

Link: #292654 (comment)
Link: stewartsmith/libeatmydata#36
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