From f309f140ec9affe3e6564da31984ad70711af990 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Thu, 21 Jun 2018 12:06:12 -0300 Subject: [PATCH] gdbm: update to 1.16. --- common/shlibs | 2 +- .../gdbm/patches/gdbm-1.10-zeroheaders.patch | 29 ------------------- srcpkgs/gdbm/template | 6 ++-- 3 files changed, 4 insertions(+), 33 deletions(-) delete mode 100644 srcpkgs/gdbm/patches/gdbm-1.10-zeroheaders.patch diff --git a/common/shlibs b/common/shlibs index 38dd9c9ecb9..aa4cdc26e7d 100644 --- a/common/shlibs +++ b/common/shlibs @@ -175,7 +175,7 @@ libxfconf-0.so.2 xfconf-4.9.1_1 libxfce4util.so.7 libxfce4util-4.12.1_1 libxfce4panel-1.0.so.4 xfce4-panel-4.9.2_1 libxfce4panel-2.0.so.4 xfce4-panel-4.12.0_1 -libgdbm.so.5 gdbm-1.14_1_1 +libgdbm.so.6 gdbm-1.16_1 libgdbm_compat.so.4 gdbm-1.10_1_1 libintl.so.8 gettext-libs-0.19.2_1 libgnuintl.so.8 gettext-libs-0.19.2_1 diff --git a/srcpkgs/gdbm/patches/gdbm-1.10-zeroheaders.patch b/srcpkgs/gdbm/patches/gdbm-1.10-zeroheaders.patch deleted file mode 100644 index c44e33dad7b..00000000000 --- a/srcpkgs/gdbm/patches/gdbm-1.10-zeroheaders.patch +++ /dev/null @@ -1,29 +0,0 @@ -# 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 - ---- src/falloc.c.orig 2017-03-14 07:13:25.976990206 +0000 -+++ src/falloc.c 2017-03-14 07:17:27.833002683 +0000 -@@ -278,7 +278,7 @@ - - /* Split the header block. */ - temp = GDBM_DEBUG_ALLOC ("push_avail_block:malloc-failure", -- malloc (av_size)); -+ calloc (1, av_size)); - if (temp == NULL) - { - GDBM_SET_ERRNO (dbf, GDBM_MALLOC_ERROR, TRUE); ---- src/gdbmopen.c.orig 2017-03-14 07:23:52.954022551 +0000 -+++ src/gdbmopen.c 2017-03-14 07:26:31.950030754 +0000 -@@ -529,7 +529,7 @@ - { - (dbf->bucket_cache[index]).ca_bucket = - GDBM_DEBUG_ALLOC ("_gdbm_init_cache:bucket-malloc-failure", -- malloc (dbf->header->bucket_size)); -+ calloc (1, dbf->header->bucket_size)); - if ((dbf->bucket_cache[index]).ca_bucket == NULL) - { - GDBM_SET_ERRNO (dbf, GDBM_MALLOC_ERROR, TRUE); diff --git a/srcpkgs/gdbm/template b/srcpkgs/gdbm/template index 219d83d77d4..72dab398d64 100644 --- a/srcpkgs/gdbm/template +++ b/srcpkgs/gdbm/template @@ -1,6 +1,6 @@ # Template file for 'gdbm' pkgname=gdbm -version=1.14.1 +version=1.16 revision=1 build_style=gnu-configure configure_args="--enable-libgdbm-compat --disable-rpath" @@ -8,8 +8,8 @@ short_desc="GNU database routines" maintainer="Juan RP " license="GPL-3.0-or-later" homepage="http://www.gnu.org.ua/software/gdbm/" -distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.gz" -checksum=cdceff00ffe014495bed3aed71c7910aa88bf29379f795abc0f46d4ee5f8bc5f +distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz" +checksum=c8a18bc6259da0c3eefefb018f8aa298fddc6f86c6fc0f0dec73270896ab512f if [ "$CROSS_BUILD" ]; then hostmakedepends="libtool automake gettext-devel"