Skip to content

patchPpdFilesHook: fix path (and use getExe') - #472356

Merged
HeitorAugustoLN merged 2 commits into
NixOS:masterfrom
Yarny0:patch-ppd-files-hook
Dec 19, 2025
Merged

HeitorAugustoLN merged 2 commits into
NixOS:masterfrom
Yarny0:patch-ppd-files-hook

Conversation

@Yarny0

@Yarny0 Yarny0 commented Dec 19, 2025

Copy link
Copy Markdown
Contributor

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review
Commit: 39dc238759bbc151d2c9e2506552c2c779d6a911

x86_64-linux

✅ 9 packages built:
  • cups-drv-rastertosag-gdi
  • cups-kyocera
  • foomatic-db
  • foomatic-db-ppds
  • foomatic-db-ppds-withNonfreeDb
  • lexmark-aex
  • patchPpdFilesHook
  • ptouch-driver
  • samsung-unified-linux-driver

More

I have build each package that got listed by nixpkgs-review (see above): They all use the directory share/cups/model. So none of the packages inside nixpkgs is affected by the change, i.e., this pull request should cause no breakage. It might -- however -- affect private packages that also use the (wrong) directory share/ppds. I consider that risk to be very small.


Add a 👍 reaction to pull requests you find important.

This was an oversight in commit
335a908 .
The Wikipedia article referenced there
https://en.wikipedia.org/wiki/PostScript_Printer_Description#CUPS
clearly states that ppd file locations are
`/usr/share/ppd/` or `/usr/share/cups/model/`.
Even the version of that article
from that commit's time says so.
I don't know what dark force made me consistently
change that to `/usr/share/ppds/`.  *sigh*.
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Dec 19, 2025

@HeitorAugustoLN HeitorAugustoLN left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Diff LGTM

@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". and removed 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Dec 19, 2025
@HeitorAugustoLN

Copy link
Copy Markdown
Member

From what I searched /share/ppd is indeed correct, I am running nixpkgs-review on aarch64-linux after it succeeds I am merging it

@HeitorAugustoLN

Copy link
Copy Markdown
Member

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 472356
Commit: 39dc238759bbc151d2c9e2506552c2c779d6a911


x86_64-linux

✅ 9 packages built:
  • cups-drv-rastertosag-gdi
  • cups-kyocera
  • foomatic-db
  • foomatic-db-ppds
  • foomatic-db-ppds-withNonfreeDb
  • lexmark-aex
  • patchPpdFilesHook
  • ptouch-driver
  • samsung-unified-linux-driver (samsung-unified-linux-driver_4_01_17)

aarch64-linux

✅ 7 packages built:
  • cups-drv-rastertosag-gdi
  • foomatic-db
  • foomatic-db-ppds
  • foomatic-db-ppds-withNonfreeDb
  • patchPpdFilesHook
  • ptouch-driver
  • samsung-unified-linux-driver (samsung-unified-linux-driver_4_01_17)

x86_64-darwin

✅ 2 packages built:
  • cups-drv-rastertosag-gdi
  • patchPpdFilesHook

aarch64-darwin

✅ 2 packages built:
  • cups-drv-rastertosag-gdi
  • patchPpdFilesHook

@HeitorAugustoLN
HeitorAugustoLN added this pull request to the merge queue Dec 19, 2025
Merged via the queue into NixOS:master with commit 9aca797 Dec 19, 2025
@nixpkgs-ci

nixpkgs-ci Bot commented Dec 19, 2025

Copy link
Copy Markdown
Contributor

Successfully created backport PR for release-25.11:

@github-actions github-actions Bot added the 8.has: port to stable This PR already has a backport to the stable release. label Dec 19, 2025
@Yarny0
Yarny0 deleted the patch-ppd-files-hook branch December 20, 2025 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". 8.has: port to stable This PR already has a backport to the stable release. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants