Skip to content

timidity: fix symlink permissions for Darwin build#380440

Merged
doronbehar merged 2 commits intoNixOS:masterfrom
Rhys-T:fix-timidity-darwin
Feb 9, 2025
Merged

timidity: fix symlink permissions for Darwin build#380440
doronbehar merged 2 commits intoNixOS:masterfrom
Rhys-T:fix-timidity-darwin

Conversation

@Rhys-T
Copy link
Copy Markdown
Contributor

@Rhys-T Rhys-T commented Feb 8, 2025

All but one of the symlinks in the instruments.tar.gz tarball have their permissions set to 0000. This causes noBrokenSymlinks to fail silently at readlink on systems like Darwin/macOS that actually care about symlink permissions. It also seems to be the reason that turning on dontRewriteSymlinks on Darwin was necessary.

Resolves #380436.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

All but one of the symlinks in the instruments.tar.gz tarball have their
permissions set to 0000. This causes noBrokenSymlinks to fail silently
at readlink on systems like Darwin/macOS that actually care about
symlink permissions. It also seems to be the reason that turning on
`dontRewriteSymlinks` on Darwin was necessary.

Resolves NixOS#380436.
@ofborg ofborg bot added the 6.topic: darwin Running or building packages on Darwin label Feb 8, 2025
@Rhys-T
Copy link
Copy Markdown
Contributor Author

Rhys-T commented Feb 8, 2025

One other thing I forgot to mention: The source URL for that instruments tarball (http://www.csee.umbc.edu/pub/midia/instruments.tar.gz) is now redirecting to https://news.cs.umbc.edu/pub/midia/instruments.tar.gz, which gets a 404. (It's not causing errors yet because cache.nixos.org still has it.) The actual current URL seems to be https://courses.cs.umbc.edu/pub/midia/instruments.tar.gz. Should I add that into this PR, or open a separate PR for it?

@doronbehar
Copy link
Copy Markdown
Contributor

The actual current URL seems to be courses.cs.umbc.edu/pub/midia/instruments.tar.gz. Should I add that into this PR, or open a separate PR for it?

Do it here please.

@doronbehar

This comment was marked as outdated.

@doronbehar
Copy link
Copy Markdown
Contributor

I'll also run a nixpkgs-review on aarch64-darwin for this PR afterwards, just to make sure we don't observe #380501 again.

@Rhys-T
Copy link
Copy Markdown
Contributor Author

Rhys-T commented Feb 9, 2025

Do it here please.

Thanks, just pushed it.

@github-actions github-actions bot added 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux. labels Feb 9, 2025
@nix-owners nix-owners bot requested a review from MarcWeber February 9, 2025 07:53
@doronbehar
Copy link
Copy Markdown
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 380440


aarch64-darwin

⏩ 24 packages marked as broken and skipped:
  • abuse
  • blockattack
  • blockattack.man
  • cdogs-sdl
  • enigma
  • frescobaldi
  • frescobaldi.dist
  • guile-chickadee
  • lbreakouthd
  • lpairs2
  • python312Packages.pettingzoo
  • python312Packages.pettingzoo.dist
  • python312Packages.shimmy
  • python312Packages.shimmy.dist
  • python312Packages.torchrl
  • python312Packages.torchrl.dist
  • python313Packages.pettingzoo
  • python313Packages.pettingzoo.dist
  • python313Packages.shimmy
  • python313Packages.shimmy.dist
  • python313Packages.torchrl
  • python313Packages.torchrl.dist
  • the-legend-of-edgar
  • vengi-tools
❌ 6 packages failed to build:
  • abbaye-des-morts
  • eduke32
  • liberal-crime-squad
  • rigel-engine
  • ryubing
  • wesnoth (wesnoth-dev)
✅ 73 packages built:
  • SDL2_mixer
  • SDL2_mixer.dev
  • SDL2_mixer_2_0
  • SDL2_mixer_2_0.dev
  • SDL2_sound
  • _20kly
  • augustus
  • blobwars
  • cataclysm-dda
  • cataclysm-dda-git
  • chocolate-doom
  • chocolate-doom.man
  • corsix-th
  • crawlTiles
  • crispy-doom
  • doomretro
  • ecwolf
  • endgame-singularity
  • endgame-singularity.dist
  • fheroes2
  • flare
  • guile-sdl2
  • julius
  • jumpnbump
  • mar1d
  • moc
  • narsil
  • nsz (python312Packages.nsz)
  • nsz.dist (python312Packages.nsz.dist)
  • pysolfc
  • pysolfc.dist
  • python312Packages.kivy
  • python312Packages.kivy-garden-modernmenu
  • python312Packages.kivy-garden-modernmenu.dist
  • python312Packages.kivy.dist
  • python312Packages.pygame
  • python312Packages.pygame-ce
  • python312Packages.pygame-ce.dist
  • python312Packages.pygame-gui
  • python312Packages.pygame-gui.dist
  • python312Packages.pygame-sdl2
  • python312Packages.pygame-sdl2.dist
  • python312Packages.pygame.dist
  • python312Packages.pygetwindow
  • python312Packages.pygetwindow.dist
  • python312Packages.pyrect
  • python312Packages.pyrect.dist
  • python312Packages.pysdl2
  • python312Packages.pysdl2.dist
  • python313Packages.kivy
  • python313Packages.kivy-garden-modernmenu
  • python313Packages.kivy-garden-modernmenu.dist
  • python313Packages.kivy.dist
  • python313Packages.nsz
  • python313Packages.nsz.dist
  • python313Packages.pygame
  • python313Packages.pygame-ce
  • python313Packages.pygame-ce.dist
  • python313Packages.pygame-gui
  • python313Packages.pygame-gui.dist
  • python313Packages.pygame.dist
  • python313Packages.pygetwindow
  • python313Packages.pygetwindow.dist
  • python313Packages.pyrect
  • python313Packages.pyrect.dist
  • python313Packages.pysdl2
  • python313Packages.pysdl2.dist
  • space-cadet-pinball
  • steamos-devkit
  • steamos-devkit.dist
  • taisei
  • timidity
  • xmoto

@doronbehar
Copy link
Copy Markdown
Contributor

No new failures according to hydra-check. Merging.

@doronbehar doronbehar merged commit 112e26d into NixOS:master Feb 9, 2025
Rhys-T added a commit to Rhys-T/nur-packages that referenced this pull request Feb 11, 2025
Shouldn't be necessary anymore for the most part, since those changes
have made it into nixpkgs-unstable. But this fixes it for users who
haven't updated their channel yet.

Also remove `meta.broken` flags related to NixOS/nixpkgs#380436, since
they aren't needed anymore.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: darwin Running or building packages on Darwin 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build failure: timidity on *-darwin (noBrokenSymlinks and symlink permissions)

2 participants