Files
bpfire/lfs/libidn
Adolf Belka f18d969716 libidn: Update to version 1.42
- Update from version 1.41 to 1.42
- Update of rootfile
- Changelog
    1.42
	** Bump required gettext version to 0.19.8 for musl-libc.
	** Compiler warning improvements.
		As before, compiler warnings are enabled by default.  You may disable
		them using ./configure --disable-gcc-warnings or turn them into fatal
		errors using ./configure --enable-gcc-warnings=error to add -Werror
		and sensible -Wno-error='s.  Based on gnulib's manywarnings, see
		<https://www.gnu.org/software/gnulib//manual/html_node/manywarnings.html>.
	** Fix type confusion on LLP64/Windows platforms.
		While libidn has worked using cygwin libc, it has never worked on
		ucrt/msvcrt libc.  Report and tiny patch by Francesco Pretto in
		<https://lists.gnu.org/archive/html/help-libidn/2022-02/msg00000.html>.
	** tests: Added script tests/standalone.sh suitable for integrators.
		The main purpose is to test a system-installed libidn, suitable for
		distributor checking (a'la Debian's autopkgtest/debci).  It may also
		be used to test a newly built libidn outside the usual 'make check'
		infrastructure.  To check that your system libidn is working, invoke
		the script with `srcdir` as an environment variable indicating where
		it can be find the source code for libidn's tests/ directory (it will
		use the directory name where the script is by default):
			tests/standalone.sh
			 To check that a newly built static libidn behaves, invoke:
				env STANDALONE_CFLAGS="-Ilib lib/.libs/libidn.a"
				 tests/standalone.sh
			 To check that a newly built shared libidn behaves, invoke:
				env srcdir=tests STANDALONE_CFLAGS="-Ilib -Wl,-rpath
				 lib/.libs lib/.libs/libidn.so" tests/standalone.sh
			 If the libidn under testing is too old and has known bugs, that
			  should cause tests to fail, which is intentional.
	** Updated translations.
	** Update gnulib files and build fixes.

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

84 lines
3.3 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.42
THISAPP = libidn-$(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 = 8f16d388884ad2ac9aafc46ec5eae144508ca86135184f625761c82c02ec9f99400bd4db65c9c9df54d315502cd5e2d37893d171abc6d76abe0a70f29acdb68e
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)
cd $(DIR_APP) && ./configure \
--prefix=/usr \
--disable-nls \
--disable-doc \
--disable-static
cd $(DIR_APP) && make $(MAKETUNING)
cd $(DIR_APP) && make install
sed -e 's/include_next/include/g' -i /usr/include/idn-int.h
@rm -rf $(DIR_APP)
@$(POSTBUILD)