splix-2.0.0: fix compilation with gcc-4.5

svn path=/nixpkgs/branches/stdenv-updates/; revision=25312

+20
+2
pkgs/misc/cups/drivers/splix/default.nix
··· 8 8 sha256 = "0bwivrwwvh6hzvnycpzqs7a0capgycahc4s3v9ihx552fgy07xwp"; 9 9 }; 10 10 11 + patches = [ ./splix-2.0.0-gcc45.patch ]; 12 + 11 13 preBuild='' 12 14 makeFlags="V=1 DISABLE_JBIG=1 CUPSFILTER=$out/lib/cups/filter CUPSPPD=$out/share/cups/model" 13 15 '';
+18
pkgs/misc/cups/drivers/splix/splix-2.0.0-gcc45.patch
··· 1 + Fixing build with gcc 4.5 2 + 3 + http://bugs.gentoo.org/show_bug.cgi?id=318581 4 + 5 + downloaded from 6 + http://gentoo-overlays.zugaina.org/gentoo/portage/net-print/splix/files/splix-2.0.0-gcc45.patch 7 + 8 + --- splix-old/src/ppdfile.cpp 9 + +++ splix-new/src/ppdfile.cpp 10 + @@ -282,7 +282,7 @@ 11 + * Opérateur d'assignation 12 + * Assignment operator 13 + */ 14 + -void PPDFile::Value::operator = (const PPDFile::Value::Value &val) 15 + +void PPDFile::Value::operator = (const PPDFile::Value &val) 16 + { 17 + if (_preformatted) 18 + delete[] _preformatted;