[arch-commits] Commit in gdbm/repos (8 files)
Date: Thursday, May 26, 2016 @ 14:06:32 Author: bpiotrowski Revision: 268600 archrelease: copy trunk to testing-i686, testing-x86_64 Added: gdbm/repos/testing-i686/ gdbm/repos/testing-i686/PKGBUILD (from rev 268599, gdbm/trunk/PKGBUILD) gdbm/repos/testing-i686/gdbm-1.10-zeroheaders.patch (from rev 268599, gdbm/trunk/gdbm-1.10-zeroheaders.patch) gdbm/repos/testing-i686/gdbm.install (from rev 268599, gdbm/trunk/gdbm.install) gdbm/repos/testing-x86_64/ gdbm/repos/testing-x86_64/PKGBUILD (from rev 268599, gdbm/trunk/PKGBUILD) gdbm/repos/testing-x86_64/gdbm-1.10-zeroheaders.patch (from rev 268599, gdbm/trunk/gdbm-1.10-zeroheaders.patch) gdbm/repos/testing-x86_64/gdbm.install (from rev 268599, gdbm/trunk/gdbm.install) + testing-i686/PKGBUILD | 56 +++ testing-i686/gdbm-1.10-zeroheaders.patch | 33 +++ testing-i686/gdbm.install | 21 ++ testing-x86_64/PKGBUILD| 56 +++ testing-x86_64/gdbm-1.10-zeroheaders.patch | 33 +++ testing-x86_64/gdbm.install| 21 ++ 6 files changed, 220 insertions(+) Copied: gdbm/repos/testing-i686/PKGBUILD (from rev 268599, gdbm/trunk/PKGBUILD) === --- testing-i686/PKGBUILD (rev 0) +++ testing-i686/PKGBUILD 2016-05-26 12:06:32 UTC (rev 268600) @@ -0,0 +1,56 @@ +# $Id$ +# Maintainer: Bartłomiej Piotrowski+# Contributor: Stéphane Gaudreault +# Contributor: Allan McRae +# Contributor: judd + +pkgname=gdbm +pkgver=1.12 +pkgrel=1 +pkgdesc="GNU database library" +url="http://www.gnu.org/software/gdbm/gdbm.html; +license=('GPL3') +arch=('i686' 'x86_64') +depends=('glibc' 'sh') +options=('!makeflags') +install=gdbm.install +source=(ftp://ftp.gnu.org/gnu/gdbm/${pkgname}-${pkgver}.tar.gz{,.sig} +gdbm-1.10-zeroheaders.patch) +validpgpkeys=('325F650C4C2B6AD58807327A3602B07F55D0C732') +md5sums=('9ce96ff4c99e74295ea19040931c8fb9' + 'SKIP' + 'ac255b10452005237836cd2d3a470733') + +prepare() { + cd "${srcdir}/${pkgname}-${pkgver}" + + # Prevent gdbm from storing uninitialized memory content + # to database files. This patch improves security, as the + # uninitialized memory might contain sensitive informations + # from other applications. + # https://bugzilla.redhat.com/show_bug.cgi?id=4457 + # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=208927 + patch -Np1 -i ../gdbm-1.10-zeroheaders.patch +} + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + ./configure --prefix=/usr --enable-libgdbm-compat + make +} + +check() { + cd "${srcdir}/${pkgname}-${pkgver}" + make check +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + + # create symlinks for compatibility + install -dm755 "${pkgdir}"/usr/include/gdbm + ln -sf ../gdbm.h "${pkgdir}"/usr/include/gdbm/gdbm.h + ln -sf ../ndbm.h "${pkgdir}"/usr/include/gdbm/ndbm.h + ln -sf ../dbm.h "${pkgdir}"/usr/include/gdbm/dbm.h +} Copied: gdbm/repos/testing-i686/gdbm-1.10-zeroheaders.patch (from rev 268599, gdbm/trunk/gdbm-1.10-zeroheaders.patch) === --- testing-i686/gdbm-1.10-zeroheaders.patch(rev 0) +++ testing-i686/gdbm-1.10-zeroheaders.patch2016-05-26 12:06:32 UTC (rev 268600) @@ -0,0 +1,33 @@ +diff -up gdbm-1.10/src/falloc.c.zeroheaders gdbm-1.10/src/falloc.c +--- gdbm-1.10/src/falloc.c.zeroheaders 2011-11-11 11:59:11.0 +0100 gdbm-1.10/src/falloc.c 2011-11-14 17:34:32.487604027 +0100 +@@ -255,7 +255,7 @@ push_avail_block (GDBM_FILE dbf) + + + /* Split the header block. */ +- temp = (avail_block *) malloc (av_size); ++ temp = (avail_block *) calloc (1, av_size); + if (temp == NULL) _gdbm_fatal (dbf, _("malloc error")); + /* Set the size to be correct AFTER the pop_avail_block. */ + temp->size = dbf->header->avail.size; +diff -up gdbm-1.10/src/gdbmopen.c.zeroheaders gdbm-1.10/src/gdbmopen.c +--- gdbm-1.10/src/gdbmopen.c.zeroheaders 2011-11-11 19:39:42.0 +0100 gdbm-1.10/src/gdbmopen.c 2011-11-14 17:33:24.867608650 +0100 +@@ -264,7 +264,7 @@ gdbm_open (const char *file, int block_s + (dbf->header->block_size - sizeof (hash_bucket)) + / sizeof (bucket_element) + 1; + dbf->header->bucket_size = dbf->header->block_size; +- dbf->bucket = (hash_bucket *) malloc (dbf->header->bucket_size); ++ dbf->bucket = (hash_bucket *) calloc (1, dbf->header->bucket_size); + if (dbf->bucket == NULL) + { + gdbm_close (dbf); +@@ -456,7 +456,7 @@ _gdbm_init_cache(GDBM_FILE dbf, size_t s + for(index = 0; index < size; index++) + { +
[arch-commits] Commit in gdbm/repos (8 files)
Date: Wednesday, January 8, 2014 @ 01:31:37 Author: eric Revision: 203309 archrelease: copy trunk to testing-i686, testing-x86_64 Added: gdbm/repos/testing-i686/ gdbm/repos/testing-i686/PKGBUILD (from rev 203308, gdbm/trunk/PKGBUILD) gdbm/repos/testing-i686/gdbm-1.10-zeroheaders.patch (from rev 203308, gdbm/trunk/gdbm-1.10-zeroheaders.patch) gdbm/repos/testing-i686/gdbm.install (from rev 203308, gdbm/trunk/gdbm.install) gdbm/repos/testing-x86_64/ gdbm/repos/testing-x86_64/PKGBUILD (from rev 203308, gdbm/trunk/PKGBUILD) gdbm/repos/testing-x86_64/gdbm-1.10-zeroheaders.patch (from rev 203308, gdbm/trunk/gdbm-1.10-zeroheaders.patch) gdbm/repos/testing-x86_64/gdbm.install (from rev 203308, gdbm/trunk/gdbm.install) + testing-i686/PKGBUILD | 55 +++ testing-i686/gdbm-1.10-zeroheaders.patch | 33 testing-i686/gdbm.install | 21 ++ testing-x86_64/PKGBUILD| 55 +++ testing-x86_64/gdbm-1.10-zeroheaders.patch | 33 testing-x86_64/gdbm.install| 21 ++ 6 files changed, 218 insertions(+) Copied: gdbm/repos/testing-i686/PKGBUILD (from rev 203308, gdbm/trunk/PKGBUILD) === --- testing-i686/PKGBUILD (rev 0) +++ testing-i686/PKGBUILD 2014-01-08 00:31:37 UTC (rev 203309) @@ -0,0 +1,55 @@ +# $Id$ +# Maintainer: +# Contributor: Stéphane Gaudreault steph...@archlinux.org +# Contributor: Allan McRae al...@archlinux.org +# Contributor: judd jvi...@zeroflux.org + +pkgname=gdbm +pkgver=1.11 +pkgrel=1 +pkgdesc=GNU database library +url=http://www.gnu.org/software/gdbm/gdbm.html; +license=('GPL3') +arch=('i686' 'x86_64') +depends=('glibc' 'sh') +source=(ftp://ftp.gnu.org/gnu/gdbm/${pkgname}-${pkgver}.tar.gz{,.sig} +gdbm-1.10-zeroheaders.patch) +options=('!makeflags') +install=gdbm.install +md5sums=('72c832680cf0999caedbe5b265c8c1bd' + 'SKIP' + 'ac255b10452005237836cd2d3a470733') + +prepare() { + cd ${srcdir}/${pkgname}-${pkgver} + + # Prevent gdbm from storing uninitialized memory content + # to database files. This patch improves security, as the + # uninitialized memory might contain sensitive informations + # from other applications. + # https://bugzilla.redhat.com/show_bug.cgi?id=4457 + # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=208927 + patch -Np1 -i ../gdbm-1.10-zeroheaders.patch +} + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + ./configure --prefix=/usr --enable-libgdbm-compat + make +} + +check() { + cd ${srcdir}/${pkgname}-${pkgver} + make check +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + make DESTDIR=${pkgdir} install + + # create symlinks for compatibility + install -dm755 ${pkgdir}/usr/include/gdbm + ln -sf ../gdbm.h ${pkgdir}/usr/include/gdbm/gdbm.h + ln -sf ../ndbm.h ${pkgdir}/usr/include/gdbm/ndbm.h + ln -sf ../dbm.h ${pkgdir}/usr/include/gdbm/dbm.h +} Copied: gdbm/repos/testing-i686/gdbm-1.10-zeroheaders.patch (from rev 203308, gdbm/trunk/gdbm-1.10-zeroheaders.patch) === --- testing-i686/gdbm-1.10-zeroheaders.patch(rev 0) +++ testing-i686/gdbm-1.10-zeroheaders.patch2014-01-08 00:31:37 UTC (rev 203309) @@ -0,0 +1,33 @@ +diff -up gdbm-1.10/src/falloc.c.zeroheaders gdbm-1.10/src/falloc.c +--- gdbm-1.10/src/falloc.c.zeroheaders 2011-11-11 11:59:11.0 +0100 gdbm-1.10/src/falloc.c 2011-11-14 17:34:32.487604027 +0100 +@@ -255,7 +255,7 @@ push_avail_block (GDBM_FILE dbf) + + + /* Split the header block. */ +- temp = (avail_block *) malloc (av_size); ++ temp = (avail_block *) calloc (1, av_size); + if (temp == NULL) _gdbm_fatal (dbf, _(malloc error)); + /* Set the size to be correct AFTER the pop_avail_block. */ + temp-size = dbf-header-avail.size; +diff -up gdbm-1.10/src/gdbmopen.c.zeroheaders gdbm-1.10/src/gdbmopen.c +--- gdbm-1.10/src/gdbmopen.c.zeroheaders 2011-11-11 19:39:42.0 +0100 gdbm-1.10/src/gdbmopen.c 2011-11-14 17:33:24.867608650 +0100 +@@ -264,7 +264,7 @@ gdbm_open (const char *file, int block_s + (dbf-header-block_size - sizeof (hash_bucket)) + / sizeof (bucket_element) + 1; + dbf-header-bucket_size = dbf-header-block_size; +- dbf-bucket = (hash_bucket *) malloc (dbf-header-bucket_size); ++ dbf-bucket = (hash_bucket *) calloc (1, dbf-header-bucket_size); + if (dbf-bucket == NULL) + { + gdbm_close (dbf); +@@ -456,7 +456,7 @@ _gdbm_init_cache(GDBM_FILE dbf, size_t s + for(index = 0; index size; index++) + { + (dbf-bucket_cache[index]).ca_bucket +-= (hash_bucket *) malloc (dbf-header-bucket_size); ++= (hash_bucket *) calloc (1,
[arch-commits] Commit in gdbm/repos (8 files)
Date: Monday, October 21, 2013 @ 16:16:52 Author: allan Revision: 197030 archrelease: copy trunk to testing-i686, testing-x86_64 Added: gdbm/repos/testing-i686/ gdbm/repos/testing-i686/PKGBUILD (from rev 197029, gdbm/trunk/PKGBUILD) gdbm/repos/testing-i686/gdbm-1.10-zeroheaders.patch (from rev 197029, gdbm/trunk/gdbm-1.10-zeroheaders.patch) gdbm/repos/testing-i686/gdbm.install (from rev 197029, gdbm/trunk/gdbm.install) gdbm/repos/testing-x86_64/ gdbm/repos/testing-x86_64/PKGBUILD (from rev 197029, gdbm/trunk/PKGBUILD) gdbm/repos/testing-x86_64/gdbm-1.10-zeroheaders.patch (from rev 197029, gdbm/trunk/gdbm-1.10-zeroheaders.patch) gdbm/repos/testing-x86_64/gdbm.install (from rev 197029, gdbm/trunk/gdbm.install) + testing-i686/PKGBUILD | 62 +++ testing-i686/gdbm-1.10-zeroheaders.patch | 33 ++ testing-i686/gdbm.install | 21 + testing-x86_64/PKGBUILD| 62 +++ testing-x86_64/gdbm-1.10-zeroheaders.patch | 33 ++ testing-x86_64/gdbm.install| 21 + 6 files changed, 232 insertions(+) Copied: gdbm/repos/testing-i686/PKGBUILD (from rev 197029, gdbm/trunk/PKGBUILD) === --- testing-i686/PKGBUILD (rev 0) +++ testing-i686/PKGBUILD 2013-10-21 14:16:52 UTC (rev 197030) @@ -0,0 +1,62 @@ +# $Id$ +# Contributor: Stéphane Gaudreault steph...@archlinux.org +# Contributor: Allan McRae al...@archlinux.org +# Contributor: judd jvi...@zeroflux.org + +pkgname=gdbm +pkgver=1.10 +pkgrel=3 +pkgdesc=GNU database library +url=http://www.gnu.org/software/gdbm/gdbm.html; +license=('GPL') +arch=('i686' 'x86_64') +depends=('glibc' 'sh') +source=(ftp://ftp.gnu.org/gnu/gdbm/${pkgname}-${pkgver}.tar.gz +gdbm-1.10-zeroheaders.patch) +options=('!makeflags') +install=gdbm.install +md5sums=('88770493c2559dc80b561293e39d3570' + 'ac255b10452005237836cd2d3a470733') + +prepare() { + cd ${srcdir}/${pkgname}-${pkgver} + + # Prevent gdbm from storing uninitialized memory content + # to database files. This patch improves security, as the + # uninitialized memory might contain sensitive informations + # from other applications. + # https://bugzilla.redhat.com/show_bug.cgi?id=4457 + # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=208927 + patch -Np1 -i ../gdbm-1.10-zeroheaders.patch +} + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + + ./configure --prefix=/usr \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --enable-libgdbm-compat + + make prefix=/usr +} + +check() { + cd ${srcdir}/${pkgname}-${pkgver} + make check +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + make prefix=${pkgdir}/usr \ + manprefix=${pkgdir}/usr/share/man \ + man3dir=${pkgdir}/usr/share/man/man3 \ + infodir=${pkgdir}/usr/share/info \ + install + + # create symlinks for compatibility + install -dm755 ${pkgdir}/usr/include/gdbm + ln -sf ../gdbm.h ${pkgdir}/usr/include/gdbm/gdbm.h + ln -sf ../ndbm.h ${pkgdir}/usr/include/gdbm/ndbm.h + ln -sf ../dbm.h ${pkgdir}/usr/include/gdbm/dbm.h +} Copied: gdbm/repos/testing-i686/gdbm-1.10-zeroheaders.patch (from rev 197029, gdbm/trunk/gdbm-1.10-zeroheaders.patch) === --- testing-i686/gdbm-1.10-zeroheaders.patch(rev 0) +++ testing-i686/gdbm-1.10-zeroheaders.patch2013-10-21 14:16:52 UTC (rev 197030) @@ -0,0 +1,33 @@ +diff -up gdbm-1.10/src/falloc.c.zeroheaders gdbm-1.10/src/falloc.c +--- gdbm-1.10/src/falloc.c.zeroheaders 2011-11-11 11:59:11.0 +0100 gdbm-1.10/src/falloc.c 2011-11-14 17:34:32.487604027 +0100 +@@ -255,7 +255,7 @@ push_avail_block (GDBM_FILE dbf) + + + /* Split the header block. */ +- temp = (avail_block *) malloc (av_size); ++ temp = (avail_block *) calloc (1, av_size); + if (temp == NULL) _gdbm_fatal (dbf, _(malloc error)); + /* Set the size to be correct AFTER the pop_avail_block. */ + temp-size = dbf-header-avail.size; +diff -up gdbm-1.10/src/gdbmopen.c.zeroheaders gdbm-1.10/src/gdbmopen.c +--- gdbm-1.10/src/gdbmopen.c.zeroheaders 2011-11-11 19:39:42.0 +0100 gdbm-1.10/src/gdbmopen.c 2011-11-14 17:33:24.867608650 +0100 +@@ -264,7 +264,7 @@ gdbm_open (const char *file, int block_s + (dbf-header-block_size - sizeof (hash_bucket)) + / sizeof (bucket_element) + 1; + dbf-header-bucket_size = dbf-header-block_size; +- dbf-bucket = (hash_bucket *) malloc (dbf-header-bucket_size); ++ dbf-bucket = (hash_bucket *) calloc (1, dbf-header-bucket_size); + if (dbf-bucket == NULL) + { + gdbm_close (dbf); +@@ -456,7 +456,7 @@ _gdbm_init_cache(GDBM_FILE dbf, size_t s
[arch-commits] Commit in gdbm/repos (8 files)
Date: Tuesday, November 29, 2011 @ 08:32:52 Author: stephane Revision: 143799 db-move: moved gdbm from [testing] to [core] (i686) Added: gdbm/repos/core-i686/PKGBUILD (from rev 143798, gdbm/repos/testing-i686/PKGBUILD) gdbm/repos/core-i686/gdbm-1.10-zeroheaders.patch (from rev 143798, gdbm/repos/testing-i686/gdbm-1.10-zeroheaders.patch) gdbm/repos/core-i686/gdbm.install (from rev 143798, gdbm/repos/testing-i686/gdbm.install) Deleted: gdbm/repos/core-i686/PKGBUILD gdbm/repos/core-i686/gdbm-1.8.3-fhs.patch gdbm/repos/core-i686/gdbm-1.8.3-zeroheaders.patch gdbm/repos/core-i686/gdbm.install gdbm/repos/testing-i686/ --+ PKGBUILD | 116 -- gdbm-1.10-zeroheaders.patch | 33 + gdbm-1.8.3-fhs.patch | 138 - gdbm-1.8.3-zeroheaders.patch | 44 - gdbm.install | 42 ++-- 5 files changed, 111 insertions(+), 262 deletions(-) Deleted: core-i686/PKGBUILD === --- core-i686/PKGBUILD 2011-11-29 12:24:20 UTC (rev 143798) +++ core-i686/PKGBUILD 2011-11-29 13:32:52 UTC (rev 143799) @@ -1,59 +0,0 @@ -# $Id$ -# Maintainer: Allan McRae al...@archlinux.org -# Contributor: judd jvi...@zeroflux.org - -pkgname=gdbm -pkgver=1.8.3 -pkgrel=9 -pkgdesc=GNU database library -url=http://www.gnu.org/software/gdbm/gdbm.html; -license=('GPL') -arch=('i686' 'x86_64') -depends=('glibc' 'sh') -source=(ftp://ftp.gnu.org/gnu/gdbm/${pkgname}-${pkgver}.tar.gz -gdbm-1.8.3-zeroheaders.patch -gdbm-1.8.3-fhs.patch) -options=('!libtool' '!makeflags') -install=gdbm.install -md5sums=('1d1b1d5c0245b1c00aff92da751e9aa1' - 'a2ed344be9258775bd718074cf2e4ec6' - '66a7c235416c136dc89efc7d03352514') - -build() { - cd ${srcdir}/${pkgname}-${pkgver} - - # Prevent gdbm from storing uninitialized memory content - # to database files. This patch improves security, as the - # uninitialized memory might contain sensitive informations - # from other applications. - # https://bugzilla.redhat.com/show_bug.cgi?id=4457 - # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=208927 - patch -Np1 -i ../gdbm-1.8.3-zeroheaders.patch - - # Make gdbm buildable. - patch -Np1 -i ../gdbm-1.8.3-fhs.patch - - libtoolize --force --copy - aclocal - autoconf - - ./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info - - # flock does not work on nfs, we use fcntl instead - # https://bugzilla.redhat.com/show_bug.cgi?id=477300 - echo /* We use fcntl locking (POSIX) instead of flock (BSD) */ autoconf.h - echo #undef HAVE_FLOCK autoconf.h - - make prefix=/usr -} - -package() { - cd ${srcdir}/${pkgname}-${pkgver} - make prefix=$pkgdir/usr \ - manprefix=$pkgdir/usr/share/man \ - man3dir=$pkgdir/usr/share/man/man3 \ - infodir=$pkgdir/usr/share/info \ - install install-compat - - ln -sf gdbm/gdbm.h $pkgdir/usr/include -} Copied: gdbm/repos/core-i686/PKGBUILD (from rev 143798, gdbm/repos/testing-i686/PKGBUILD) === --- core-i686/PKGBUILD (rev 0) +++ core-i686/PKGBUILD 2011-11-29 13:32:52 UTC (rev 143799) @@ -0,0 +1,57 @@ +# $Id$ +# Maintainer: Stéphane Gaudreault steph...@archlinux.org +# Contributor: Allan McRae al...@archlinux.org +# Contributor: judd jvi...@zeroflux.org + +pkgname=gdbm +pkgver=1.10 +pkgrel=1 +pkgdesc=GNU database library +url=http://www.gnu.org/software/gdbm/gdbm.html; +license=('GPL') +arch=('i686' 'x86_64') +depends=('glibc' 'sh') +source=(ftp://ftp.gnu.org/gnu/gdbm/${pkgname}-${pkgver}.tar.gz +gdbm-1.10-zeroheaders.patch) +options=('!libtool' '!makeflags') +install=gdbm.install +md5sums=('88770493c2559dc80b561293e39d3570' + 'ac255b10452005237836cd2d3a470733') +build() { + cd ${srcdir}/${pkgname}-${pkgver} + + # Prevent gdbm from storing uninitialized memory content + # to database files. This patch improves security, as the + # uninitialized memory might contain sensitive informations + # from other applications. + # https://bugzilla.redhat.com/show_bug.cgi?id=4457 + # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=208927 + patch -Np1 -i ../gdbm-1.10-zeroheaders.patch + + ./configure --prefix=/usr \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --enable-libgdbm-compat + + make prefix=/usr +} + +check() { + cd ${srcdir}/${pkgname}-${pkgver} + make check +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + make prefix=${pkgdir}/usr \ + manprefix=${pkgdir}/usr/share/man \ + man3dir=${pkgdir}/usr/share/man/man3 \ + infodir=${pkgdir}/usr/share/info \ + install + + # create symlinks for compatibility + install -dm755 ${pkgdir}/usr/include/gdbm + ln -sf ../gdbm.h ${pkgdir}/usr/include/gdbm/gdbm.h + ln
[arch-commits] Commit in gdbm/repos (8 files)
Date: Friday, November 18, 2011 @ 19:37:18 Author: stephane Revision: 142942 archrelease: copy trunk to staging-i686, staging-x86_64 Added: gdbm/repos/staging-i686/ gdbm/repos/staging-i686/PKGBUILD (from rev 142941, gdbm/trunk/PKGBUILD) gdbm/repos/staging-i686/gdbm-1.10-zeroheaders.patch (from rev 142941, gdbm/trunk/gdbm-1.10-zeroheaders.patch) gdbm/repos/staging-i686/gdbm.install (from rev 142941, gdbm/trunk/gdbm.install) gdbm/repos/staging-x86_64/ gdbm/repos/staging-x86_64/PKGBUILD (from rev 142941, gdbm/trunk/PKGBUILD) gdbm/repos/staging-x86_64/gdbm-1.10-zeroheaders.patch (from rev 142941, gdbm/trunk/gdbm-1.10-zeroheaders.patch) gdbm/repos/staging-x86_64/gdbm.install (from rev 142941, gdbm/trunk/gdbm.install) + staging-i686/PKGBUILD | 57 +++ staging-i686/gdbm-1.10-zeroheaders.patch | 33 +++ staging-i686/gdbm.install | 21 + staging-x86_64/PKGBUILD| 57 +++ staging-x86_64/gdbm-1.10-zeroheaders.patch | 33 +++ staging-x86_64/gdbm.install| 21 + 6 files changed, 222 insertions(+) Copied: gdbm/repos/staging-i686/PKGBUILD (from rev 142941, gdbm/trunk/PKGBUILD) === --- staging-i686/PKGBUILD (rev 0) +++ staging-i686/PKGBUILD 2011-11-19 00:37:18 UTC (rev 142942) @@ -0,0 +1,57 @@ +# $Id$ +# Maintainer: Stéphane Gaudreault steph...@archlinux.org +# Contributor: Allan McRae al...@archlinux.org +# Contributor: judd jvi...@zeroflux.org + +pkgname=gdbm +pkgver=1.10 +pkgrel=1 +pkgdesc=GNU database library +url=http://www.gnu.org/software/gdbm/gdbm.html; +license=('GPL') +arch=('i686' 'x86_64') +depends=('glibc' 'sh') +source=(ftp://ftp.gnu.org/gnu/gdbm/${pkgname}-${pkgver}.tar.gz +gdbm-1.10-zeroheaders.patch) +options=('!libtool' '!makeflags') +install=gdbm.install +md5sums=('88770493c2559dc80b561293e39d3570' + 'ac255b10452005237836cd2d3a470733') +build() { + cd ${srcdir}/${pkgname}-${pkgver} + + # Prevent gdbm from storing uninitialized memory content + # to database files. This patch improves security, as the + # uninitialized memory might contain sensitive informations + # from other applications. + # https://bugzilla.redhat.com/show_bug.cgi?id=4457 + # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=208927 + patch -Np1 -i ../gdbm-1.10-zeroheaders.patch + + ./configure --prefix=/usr \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --enable-libgdbm-compat + + make prefix=/usr +} + +check() { + cd ${srcdir}/${pkgname}-${pkgver} + make check +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + make prefix=${pkgdir}/usr \ + manprefix=${pkgdir}/usr/share/man \ + man3dir=${pkgdir}/usr/share/man/man3 \ + infodir=${pkgdir}/usr/share/info \ + install + + # create symlinks for compatibility + install -dm755 ${pkgdir}/usr/include/gdbm + ln -sf ../gdbm.h ${pkgdir}/usr/include/gdbm/gdbm.h + ln -sf ../ndbm.h ${pkgdir}/usr/include/gdbm/ndbm.h + ln -sf ../dbm.h ${pkgdir}/usr/include/gdbm/dbm.h +} Copied: gdbm/repos/staging-i686/gdbm-1.10-zeroheaders.patch (from rev 142941, gdbm/trunk/gdbm-1.10-zeroheaders.patch) === --- staging-i686/gdbm-1.10-zeroheaders.patch(rev 0) +++ staging-i686/gdbm-1.10-zeroheaders.patch2011-11-19 00:37:18 UTC (rev 142942) @@ -0,0 +1,33 @@ +diff -up gdbm-1.10/src/falloc.c.zeroheaders gdbm-1.10/src/falloc.c +--- gdbm-1.10/src/falloc.c.zeroheaders 2011-11-11 11:59:11.0 +0100 gdbm-1.10/src/falloc.c 2011-11-14 17:34:32.487604027 +0100 +@@ -255,7 +255,7 @@ push_avail_block (GDBM_FILE dbf) + + + /* Split the header block. */ +- temp = (avail_block *) malloc (av_size); ++ temp = (avail_block *) calloc (1, av_size); + if (temp == NULL) _gdbm_fatal (dbf, _(malloc error)); + /* Set the size to be correct AFTER the pop_avail_block. */ + temp-size = dbf-header-avail.size; +diff -up gdbm-1.10/src/gdbmopen.c.zeroheaders gdbm-1.10/src/gdbmopen.c +--- gdbm-1.10/src/gdbmopen.c.zeroheaders 2011-11-11 19:39:42.0 +0100 gdbm-1.10/src/gdbmopen.c 2011-11-14 17:33:24.867608650 +0100 +@@ -264,7 +264,7 @@ gdbm_open (const char *file, int block_s + (dbf-header-block_size - sizeof (hash_bucket)) + / sizeof (bucket_element) + 1; + dbf-header-bucket_size = dbf-header-block_size; +- dbf-bucket = (hash_bucket *) malloc (dbf-header-bucket_size); ++ dbf-bucket = (hash_bucket *) calloc (1, dbf-header-bucket_size); + if (dbf-bucket == NULL) + { + gdbm_close (dbf); +@@ -456,7 +456,7 @@ _gdbm_init_cache(GDBM_FILE dbf, size_t s + for(index = 0; index size;