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

[Backport release-24.11] haskellPackages.lukko: fix ofd locking on 32bit Linux platforms #372642

Open
wants to merge 1 commit into
base: release-24.11
Choose a base branch
from

Conversation

nix-backports[bot]
Copy link

@nix-backports nix-backports bot commented Jan 10, 2025

Bot-based backport to release-24.11, triggered by a label in #372218.

  • Before merging, ensure that this backport is acceptable for the release.
    • Even as a non-commiter, if you find that it is not acceptable, leave a comment.

Quoting the patch:

> Previously, OFD locking was broken on 32-bit, because it would somehow
> end up using the 64-bit fcntl() function, but pass it 32-bit off_t
> values in struct flock.  To fix this, tell libc to use always use
> 64-bit file offsets.
>
> This is the same fix that was applied for a similar issue in GHC.

(cherry picked from commit 4ba7115)
Copy link
Contributor

@Jayman2000 Jayman2000 left a comment

Choose a reason for hiding this comment

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

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 372642


x86_64-linux

⏩ 1 package marked as broken and skipped:
  • stack2nix
✅ 20 packages built:
  • cabal-install
  • cachix (cachix.bin ,cachix.doc)
  • changelog-d
  • devenv
  • haskell-ci
  • hci
  • hercules-ci-agent
  • pre-commit
  • pre-commit.dist
  • python311Packages.asteroid-filterbanks
  • python311Packages.asteroid-filterbanks.dist
  • python311Packages.pyannote-audio
  • python311Packages.pyannote-audio.dist
  • python312Packages.asteroid-filterbanks
  • python312Packages.asteroid-filterbanks.dist
  • python312Packages.pyannote-audio
  • python312Packages.pyannote-audio.dist
  • stack
  • whisper-ctranslate2
  • whisper-ctranslate2.dist

I also tried to get nixpkgs-review to build packages for i686-linux, but it didn’t work. As a workaround, I manually ran nix-build -A pkgsi686Linux.haskellPackages.hackage-security, and it built successfully.

@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one reputable person label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants