Skip to content

[staging-next] samsung-unified-linux-driver: fix library path, with lib;, finalAttrs#388732

Merged
SuperSandro2000 merged 4 commits intoNixOS:staging-nextfrom
Yarny0:samsung-unified-linux-driver-library-path-fix
Mar 10, 2025
Merged

[staging-next] samsung-unified-linux-driver: fix library path, with lib;, finalAttrs#388732
SuperSandro2000 merged 4 commits intoNixOS:staging-nextfrom
Yarny0:samsung-unified-linux-driver-library-path-fix

Conversation

@Yarny0
Copy link
Contributor

@Yarny0 Yarny0 commented Mar 10, 2025

#380325 changed some library paths in stdenv.cc.cc. samsung-unified-linux-driver v4.01.17 uses these paths to find libstdc++.so (and possibly more), and thus got broken by that change.

The pull request at hand adapts the build recipe of samsung-unified-linux-driver to use the new paths. It also renames the derivation (name attribute) so that it matches the names of the other samsung-unified-linux-driver versions.

Furthermore, it removes with lib; from meta and replaces rec with the finalAttrs pattern in all three samsung-unified-linux-driver derivations.

Notifying maintainer of newest version (the other versions have no maintainer): @jokogr

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.

Yarny0 added 4 commits March 10, 2025 15:39
Change the name of the derivation in
`pkgs/misc/cups/drivers/samsung/4.01.17.nix` from
"samsung-UnifiedLinuxDriver" to "samsung-unified-linux-driver",
so that it matches the names of the other versions declared
in `pkgs/misc/cups/drivers/samsung/1.00.37.nix` and in
`pkgs/by-name/sa/samsung-unified-linux-driver_1_00_36/package.nix`.
On x86-64, the executables were looking for
libraries in `${lib.getLib stdenv.cc.cc}/lib64`,
but that path apparently changed with
NixOS@5e2e98f ,
resulting in a runtime error:

> /nix/store/0z8gd4fmjknwswx0pp5kzqnrhj1k9q8x-samsung-UnifiedLinuxDriver-4.01.17/lib/cups/filter/rastertospl: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

Affected programs are
`$out/lib/cups/filter/{ps,raster}tospl{,c}`.

The commit at hand fixes the library lookup path.
@github-actions github-actions bot added 6.topic: printing Drivers, CUPS & Co. 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. labels Mar 10, 2025
@nix-owners nix-owners bot requested a review from jokogr March 10, 2025 16:14
@SuperSandro2000 SuperSandro2000 changed the title [staging-next] samsung-unified-linux-driver: fix library path, with lib;, finalAttrs [staging-next] samsung-unified-linux-driver: fix library path, with lib;, finalAttrs Mar 10, 2025
@SuperSandro2000 SuperSandro2000 merged commit 9203d9e into NixOS:staging-next Mar 10, 2025
34 of 36 checks passed
@Yarny0 Yarny0 deleted the samsung-unified-linux-driver-library-path-fix branch March 26, 2025 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: printing Drivers, CUPS & Co. 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants