Skip to content

canon-cups-ufr2: Fix gcc rpath for libstdc++#397705

Merged
phaer merged 1 commit intoNixOS:masterfrom
lluchs:ufr2-gcc-rpath
May 4, 2025
Merged

canon-cups-ufr2: Fix gcc rpath for libstdc++#397705
phaer merged 1 commit intoNixOS:masterfrom
lluchs:ufr2-gcc-rpath

Conversation

@lluchs
Copy link
Contributor

@lluchs lluchs commented Apr 10, 2025

The rpath for libstdc++ was previously set to gcc's lib64 directory. That symlink was removed in #380325, breaking the programs and libraries distributed as binaries. Also stop using lib64 for libc, in case that symlink will be removed sometime in the future.

Fixes #396654

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.

The rpath for libstdc++ was previously set to gcc's lib64 directory.
That symlink was removed in NixOS#380325, breaking the programs and libraries
distributed as binaries. Also stop using lib64 for libc, in case that
symlink will be removed sometime in the future.

Fixes NixOS#396654
@lluchs
Copy link
Contributor Author

lluchs commented Apr 10, 2025

@anna328p please have a look whether that fixes printing for you. I don't run unstable on my print server.

@github-actions github-actions bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Apr 10, 2025
@anna328p
Copy link
Member

@anna328p please have a look whether that fixes printing for you. I don't run unstable on my print server.

Will let you know whenever I get a chance to test it. Thank you so much!

@sw5ciprl
Copy link

I've tested it; it works.

@anna328p
Copy link
Member

I just managed to update my system, will try it out now

@anna328p
Copy link
Member

anna328p commented Apr 18, 2025

It worked!! Thank you!

@phaer phaer merged commit 5c1b250 into NixOS:master May 4, 2025
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

canon-cups-ufr2: Regression in packaging (driver does not function)

4 participants