svn merge ^/nixpkgs/trunk

svn path=/nixpkgs/branches/stdenv-updates/; revision=32792
This commit is contained in:
Yury G. Kudryashov
2012-03-05 10:00:23 +00:00
42 changed files with 622 additions and 181 deletions
@@ -6,7 +6,7 @@ stdenv.mkDerivation {
url = mirror://sourceforge/vba/VisualBoyAdvance-src-1.7.2.tar.gz;
sha256 = "1dr9w5i296dyq2gbx7sijk6p375aqnwld2n6rwnbzm2g3a94y4gl";
};
patches = [ ./fix.diff ]; # patch to shut up lost of precision errors
patches = [ ./libpng15.patch ./fix.diff ]; # patch to shut up lost of precision errors
preConfigure = ''
# Fix errors with invalid conversion from 'const char*' to 'char*'
sed -i -e "s|char \* p = strrchr|const char * p = strrchr|g" src/GBA.cpp
@@ -0,0 +1,13 @@
From Gentoo. Fixes compilation with libpng-1.5
--- a/src/Util.cpp
+++ b/src/Util.cpp
@@ -79,7 +79,7 @@
return false;
}
- if(setjmp(png_ptr->jmpbuf)) {
+ if(setjmp(png_jmpbuf(png_ptr))) {
png_destroy_write_struct(&png_ptr,NULL);
fclose(fp);
return false;