From a005cdc4027c73aab839d4d8ec8998890b7cd286 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 26 Mar 2010 12:46:20 +0100 Subject: [PATCH] physfs: update to 2.0.1. --HG-- extra : convert_revision : 80adcf4d92de3bd8441d50c45c056eb7c40d62c9 --- ...chivers-zip.c-fix-uninitialized-use-of-array.patch | 11 +++++++++++ srcpkgs/physfs/physfs-devel.template | 2 ++ srcpkgs/physfs/template | 4 ++-- 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/physfs/patches/archivers-zip.c-fix-uninitialized-use-of-array.patch diff --git a/srcpkgs/physfs/patches/archivers-zip.c-fix-uninitialized-use-of-array.patch b/srcpkgs/physfs/patches/archivers-zip.c-fix-uninitialized-use-of-array.patch new file mode 100644 index 00000000000..d9990c394c8 --- /dev/null +++ b/srcpkgs/physfs/patches/archivers-zip.c-fix-uninitialized-use-of-array.patch @@ -0,0 +1,11 @@ +--- archivers/zip.c.orig 2010-03-26 12:41:29.789614960 +0100 ++++ archivers/zip.c 2010-03-26 12:42:02.340615428 +0100 +@@ -375,7 +375,7 @@ static int ZIP_fileClose(fvoid *opaque) + static PHYSFS_sint64 zip_find_end_of_central_dir(void *in, PHYSFS_sint64 *len) + { + PHYSFS_uint8 buf[256]; +- PHYSFS_uint8 extra[4]; ++ PHYSFS_uint8 extra[4] = { 0, 0, 0, 0 }; + PHYSFS_sint32 i = 0; + PHYSFS_sint64 filelen; + PHYSFS_sint64 filepos; diff --git a/srcpkgs/physfs/physfs-devel.template b/srcpkgs/physfs/physfs-devel.template index e60eb9a1487..7bcc04a3775 100644 --- a/srcpkgs/physfs/physfs-devel.template +++ b/srcpkgs/physfs/physfs-devel.template @@ -5,6 +5,8 @@ long_desc="${long_desc} This package contains files for development, headers, static libs, etc." +Add_dependency run glibc +Add_dependency run readline-devel Add_dependency run zlib-devel Add_dependency run physfs diff --git a/srcpkgs/physfs/template b/srcpkgs/physfs/template index dad0d10ebf7..b9b7afc39b4 100644 --- a/srcpkgs/physfs/template +++ b/srcpkgs/physfs/template @@ -1,6 +1,6 @@ # Template file for 'physfs' pkgname=physfs -version=2.0.0 +version=2.0.1 distfiles="http://icculus.org/physfs/downloads/physfs-$version.tar.gz" build_style=configure CFLAGS="-fno-strict-aliasing" @@ -8,7 +8,7 @@ configure_script="cmake" configure_args=". -DCMAKE_INSTALL_PREFIX=/usr" short_desc="Library to provide abstract access to various archives" maintainer="Juan RP " -checksum=cbdfaf484d26c2c5d5673aabf8a3f1e0afdcbbd0a99865ba226e9368f3c5501c +checksum=1ee9891d9d34db4bcf78ae31f321fdb948c12e233ca04c690cae032968dbf45d long_desc=" It is intended for use in video games, and the design was somewhat inspired by Quake 3's file subsystem. The programmer defines a write directory on