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
ghostscript: fix icc profile validation #47903
ghostscript: fix icc profile validation #47903
Conversation
@@ -46,6 +46,7 @@ stdenv.mkDerivation rec { | |||
patches = [ | |||
./urw-font-files.patch | |||
./doc-no-ref.diff | |||
./0001-For-ICC-profile-validation-have-cups-id-iteself-as-D.patch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't use fetchpatch
, as the source url http://git.ghostscript.com/?p=ghostpdl.git;a=patch;h=bc3df0773fcc
caused problems.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add the source url in the commit message and state that it must be included into nixpkgs due to invalid characters.
I didn't check whether unstable is affected too, as switching there took to long for me (but guess it is). As there are some scary fixes on master anyhow, I assume we should bump to 9.26 as soon as it's released on both channels anyhow, but I didn't want to introduce a printing regression in 18.09 |
Success on aarch64-linux (full log) Attempted: ghostscript Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: ghostscript Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: ghostscript Partial log (click to expand)
|
b383f32
to
5aea394
Compare
Currently, printing color documents fails with the following error: Oct 05 08:34:21 tp cupsd[16855]: | ./base/gsicc_manage.c:1863: gsicc_verify_device_profiles(): Mismatch of ICC profiles and device color model Oct 05 08:34:21 tp cupsd[16855]: | ./base/gsicc_manage.c:1990: gsicc_set_device_profile(): Error in device profiles Oct 05 08:34:21 tp cupsd[16855]: Unrecoverable error: rangecheck in .putdeviceprops Add the corresponding patch from ghostscript master to fix this
5aea394
to
df4456a
Compare
Success on aarch64-linux (full log) Attempted: ghostscript Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: ghostscript Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: ghostscript Partial log (click to expand)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ghostscript 9.24 has plenty of known security issues and we should update to 9.25 ASAP. Will this patch patch still apply to the new version?
duplicate of #46216. |
Currently, printing color documents fails with the following error:
Add the corresponding patch from ghostscript master to fix this.
Motivation for this change
Printing color documents didn't work on my printer (HP Officejet 4620). With this patch, it works again.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)