Files
bpfire/lfs/gdbm
Adolf Belka a2645d146e gdbm: Update to version 1.24
- Update from version 1.23 to 1.24
- Update of rootfile not required
- Changelog
    1.24
	* New gdbm_load option: --update
		The --update (-U) option instructs gdbm_load to update an existing
		 database.
	* Fix semantics of gdbm_load -r
		The --replace (-r) is valid only when used together with --update.
	* Use getline in gdbmtool shell.
	* New function: gdbm_load_from_file_ext
		In contrast to gdbm_load and gdbm_load_from_file, which derive
		the value of the flag parameter for gdbm_open from the value
		of their "replace" argument, this function allows the caller to
		specify it explicitly.  The prototype is:
		  int gdbm_load_from_file_ext (GDBM_FILE *pdbf, FILE *fp,
					       int flags, int replace,
					       int meta_mask,
					       unsigned long *line);
	* Bugfixes
		** Fix binary dump format for key and/or data of zero size.
		   (see https://puszcza.gnu.org.ua/bugs/?565)
		** Fix location tracking and recover command in gdbtool.
		   (see https://puszcza.gnu.org.ua/bugs/?566)
		** Fix possible buffer underflow in gdbmload.
		** Ensure any padding bytes in avail_elem structure are filled with 0.
		   (fixes https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1031276)
		** Improve the documentation.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-26 08:14:05 +00:00

89 lines
3.4 KiB
Plaintext

###############################################################################
# #
# IPFire.org - A linux based firewall #
# Copyright (C) 2007-2024 IPFire Team <info@ipfire.org> #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program. If not, see <http://www.gnu.org/licenses/>. #
# #
###############################################################################
###############################################################################
# Definitions
###############################################################################
include Config
VER = 1.24
THISAPP = gdbm-$(VER)
DL_FILE = $(THISAPP).tar.gz
DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
###############################################################################
# Top-level Rules
###############################################################################
objects = $(DL_FILE)
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
$(DL_FILE)_BLAKE2 = 79f49adbb455c2e1b91f3450037b71165fa8de82650d6402e0e22ee1f4d278fdb0bd78100659bf416e2409b432e1f8d32ecbae523980413f7148b80ee06c9f4b
install : $(TARGET)
check : $(patsubst %,$(DIR_CHK)/%,$(objects))
download :$(patsubst %,$(DIR_DL)/%,$(objects))
b2 : $(subst %,%_BLAKE2,$(objects))
###############################################################################
# Downloading, checking, b2sum
###############################################################################
$(patsubst %,$(DIR_CHK)/%,$(objects)) :
@$(CHECK)
$(patsubst %,$(DIR_DL)/%,$(objects)) :
@$(LOAD)
$(subst %,%_BLAKE2,$(objects)) :
@$(B2SUM)
###############################################################################
# Installation Details
###############################################################################
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
$(UPDATE_AUTOMAKE)
cd $(DIR_APP) && ./configure \
--prefix=/usr \
--disable-nls \
--disable-static
cd $(DIR_APP) && make $(MAKETUNING)
cd $(DIR_APP) && make BINOWN=root BINGRP=root install
cd $(DIR_APP) && ./configure \
--prefix=/usr \
--disable-nls \
--disable-static \
--enable-libgdbm-compat
cd $(DIR_APP) && make $(MAKETUNING)
cd $(DIR_APP) && make BINOWN=root BINGRP=root install
@rm -rf $(DIR_APP)
@$(POSTBUILD)