splix-2.0.0: fix compilation with gcc-4.5
svn path=/nixpkgs/branches/stdenv-updates/; revision=25312
This commit is contained in:
parent
5bb4096763
commit
35fe5dadb1
@ -8,6 +8,8 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0bwivrwwvh6hzvnycpzqs7a0capgycahc4s3v9ihx552fgy07xwp";
|
sha256 = "0bwivrwwvh6hzvnycpzqs7a0capgycahc4s3v9ihx552fgy07xwp";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [ ./splix-2.0.0-gcc45.patch ];
|
||||||
|
|
||||||
preBuild=''
|
preBuild=''
|
||||||
makeFlags="V=1 DISABLE_JBIG=1 CUPSFILTER=$out/lib/cups/filter CUPSPPD=$out/share/cups/model"
|
makeFlags="V=1 DISABLE_JBIG=1 CUPSFILTER=$out/lib/cups/filter CUPSPPD=$out/share/cups/model"
|
||||||
'';
|
'';
|
||||||
|
18
pkgs/misc/cups/drivers/splix/splix-2.0.0-gcc45.patch
Normal file
18
pkgs/misc/cups/drivers/splix/splix-2.0.0-gcc45.patch
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
Fixing build with gcc 4.5
|
||||||
|
|
||||||
|
http://bugs.gentoo.org/show_bug.cgi?id=318581
|
||||||
|
|
||||||
|
downloaded from
|
||||||
|
http://gentoo-overlays.zugaina.org/gentoo/portage/net-print/splix/files/splix-2.0.0-gcc45.patch
|
||||||
|
|
||||||
|
--- splix-old/src/ppdfile.cpp
|
||||||
|
+++ splix-new/src/ppdfile.cpp
|
||||||
|
@@ -282,7 +282,7 @@
|
||||||
|
* Opérateur d'assignation
|
||||||
|
* Assignment operator
|
||||||
|
*/
|
||||||
|
-void PPDFile::Value::operator = (const PPDFile::Value::Value &val)
|
||||||
|
+void PPDFile::Value::operator = (const PPDFile::Value &val)
|
||||||
|
{
|
||||||
|
if (_preformatted)
|
||||||
|
delete[] _preformatted;
|
Loading…
x
Reference in New Issue
Block a user