[Frugalware-git] imgrebuild: zlib-1.2.5-2-i686
Miklos Vajna
vmiklos at frugalware.org
Tue Jun 1 13:32:35 CEST 2010
Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=imgrebuild.git;a=commitdiff;h=15b62ea6f3082afa3ee6736047ba8e3428f1e1c5
commit 15b62ea6f3082afa3ee6736047ba8e3428f1e1c5
Author: Miklos Vajna <vmiklos at frugalware.org>
Date: Tue Jun 1 13:32:17 2010 +0200
zlib-1.2.5-2-i686
- add patch to fix typo in header file (actually fixes the pdfedit
build)
diff --git a/source/base/zlib/FrugalBuild b/source/base/zlib/FrugalBuild
index 8be0fa5..e78bb15 100644
--- a/source/base/zlib/FrugalBuild
+++ b/source/base/zlib/FrugalBuild
@@ -4,14 +4,14 @@
pkgname=zlib
pkgver=1.2.5
-pkgrel=1
+pkgrel=2
pkgdesc="A compression/decompression library"
url="http://www.zlib.net/"
depends=('glibc>=2.8-3')
groups=('base' 'chroot-core')
archs=('i686' 'x86_64' 'ppc')
up2date="lynx -dump http://www.zlib.net/ | grep -m 1 'zlib source code' | cut -d ' ' -f 16 | tr -d ,"
-source=(http://www.zlib.net/$pkgname-$pkgver.tar.bz2)
+source=(http://www.zlib.net/$pkgname-$pkgver.tar.bz2 zlib-1.2.5-lfs-decls.patch)
build()
{
@@ -22,5 +22,6 @@ build()
Ffilerel /usr/man/man3/$pkgname.3
}
-sha1sums=('543fa9abff0442edca308772d6cef85557677e02')
+sha1sums=('543fa9abff0442edca308772d6cef85557677e02' \
+ 'ddf793bd7eb4c8a01ad5d6c31162ddd2629bcbd3')
# optimization OK
diff --git a/source/base/zlib/zlib-1.2.5-lfs-decls.patch b/source/base/zlib/zlib-1.2.5-lfs-decls.patch
new file mode 100644
index 0000000..36e26af
--- /dev/null
+++ b/source/base/zlib/zlib-1.2.5-lfs-decls.patch
@@ -0,0 +1,13 @@
+Index: zlib-1.2.5/zlib.h
+===================================================================
+--- zlib-1.2.5.orig/zlib.h
++++ zlib-1.2.5/zlib.h
+@@ -1578,7 +1578,7 @@ ZEXTERN int ZEXPORT inflateBackInit_ OF(
+ # define gzoffset gzoffset64
+ # define adler32_combine adler32_combine64
+ # define crc32_combine crc32_combine64
+-# ifdef _LARGEFILE64_SOURCE
++# ifndef _LARGEFILE64_SOURCE
+ ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *));
+ ZEXTERN z_off_t ZEXPORT gzseek64 OF((gzFile, z_off_t, int));
+ ZEXTERN z_off_t ZEXPORT gztell64 OF((gzFile));
More information about the Frugalware-git
mailing list