git.iko.soy/typeable/nixpkgs
on master help sign in
cups-filters: make shell string longer (close #10493)

The cstring for the shell path is too short for nixos in cups-filters, causing it to be truncated. This was previously fixed in #5428, but regressed. This is a permanent solution accepted even upstream https://bugs.linuxfoundation.org/show_bug.cgi?id=1325 http://bzr.linuxfoundation.org/loggerhead/openprinting/cups-filters/revision/7401

commitc0a963e3cc6bd9c049f6db198a6acf92ee795e4e authorBrandon Dimcheff <bdimchef-git@wieldim.com> dateMon 19 Oct 2015, 21:07 (11 years ago) parent1c48e74
2 files changed+21−5
pkgs/misc/cups/filters.nix+8−5 pkgs/misc/cups/longer-shell-path.patch+13
pkgs/misc/cups/filters.nix+8−5
@@ -10,11 +10,14 @@ stdenv.mkDerivation rec {
1010 sha256 = "07wwlqcykfjfqcwj1bxk60ggahyaw7wcx32n5s104d1qkhham01i";
1111 };
1212
13− patches = [(fetchpatch { # drop on update
14− name = "poppler-0.34.patch";
15− url = "https://bugs.linuxfoundation.org/attachment.cgi?id=493";
16− sha256 = "18za83q0b0n4hpvvw76jsv0hm89zmijvps2z5kg1srickqlxj891";
17− })];
13+ patches = [
14+ ./longer-shell-path.patch
15+ (fetchpatch { # drop on update
16+ name = "poppler-0.34.patch";
17+ url = "https://bugs.linuxfoundation.org/attachment.cgi?id=493";
18+ sha256 = "18za83q0b0n4hpvvw76jsv0hm89zmijvps2z5kg1srickqlxj891";
19+ })
20+ ];
1821
1922 buildInputs = [
2023 pkgconfig cups poppler poppler_utils fontconfig libjpeg libpng perl
pkgs/misc/cups/longer-shell-path.patchnew file+13
@@ -0,0 +1,13 @@
1+diff --git a/filter/foomatic-rip/foomaticrip.c b/filter/foomatic-rip/foomaticrip.c
2+index 90a851c..689a2bd 100644
3+--- a/filter/foomatic-rip/foomaticrip.c
4++++ b/filter/foomatic-rip/foomaticrip.c
5+@@ -174,7 +174,7 @@ char cupsfilterpath[PATH_MAX] = "/usr/local/lib/cups/filter:"
6+ "/opt/cups/filter:"
7+ "/usr/lib/cups/filter";
8+
9+-char modern_shell[64] = SHELL;
10++char modern_shell[] = SHELL;
11+
12+ void config_set_option(const char *key, const char *value)
13+ {