From 8ad732e5aa174e2b5e80f7f276104cc09bb7212f Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 29 Apr 2025 18:14:17 -0700 Subject: libiconv: Upgrade to 1.18 release The libiconv and charset library is now licensed under the LGPL version 2.1 instead of the LGPL version 2.0 previously. Programs e.g. iconv are under GPL 3.0 1.18 Release notes [1] Helps fixing build breaks seen with GCC15 [1] https://savannah.gnu.org/news/?id=10703 Signed-off-by: Khem Raj Signed-off-by: Richard Purdie --- recipes-support/libiconv/libiconv_1.15.bb | 51 ------------------------------- recipes-support/libiconv/libiconv_1.18.bb | 51 +++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 51 deletions(-) delete mode 100644 recipes-support/libiconv/libiconv_1.15.bb create mode 100644 recipes-support/libiconv/libiconv_1.18.bb diff --git a/recipes-support/libiconv/libiconv_1.15.bb b/recipes-support/libiconv/libiconv_1.15.bb deleted file mode 100644 index 2f2b473..0000000 --- a/recipes-support/libiconv/libiconv_1.15.bb +++ /dev/null @@ -1,51 +0,0 @@ -SUMMARY = "Character encoding support library" -DESCRIPTION = "GNU libiconv - libiconv is for you if your application needs to support \ -multiple character encodings, but that support lacks from your system." -HOMEPAGE = "http://www.gnu.org/software/libiconv" -SECTION = "libs" -NOTES = "Needs to be stripped down to: ascii iso8859-1 eucjp iso-2022jp gb utf8" -PROVIDES = "virtual/libiconv" -PR = "r1" -LICENSE = "LGPL-3.0-only" -LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=9f604d8a4f8e74f4f5140845a21b6674 \ - file://libcharset/COPYING.LIB;md5=9f604d8a4f8e74f4f5140845a21b6674" - -SRC_URI = "${GNU_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz" - -SRC_URI[md5sum] = "ace8b5f2db42f7b3b3057585e80d9808" -SRC_URI[sha256sum] = "ccf536620a45458d26ba83887a983b96827001e92a13847b45e4925cc8913178" - -S = "${WORKDIR}/libiconv-${PV}" - -inherit autotools pkgconfig gettext - -# Need to use absolute paths as autoreconf will recurse into libchardet -EXTRA_AUTORECONF += "-I ${S}/m4 -I ${S}/srcm4" - -python __anonymous() { - if d.getVar("TARGET_OS") != "linux": - return - if d.getVar("TCLIBC") == "glibc": - raise bb.parse.SkipPackage("libiconv is provided for use with uClibc only - glibc already provides iconv") -} - -EXTRA_OECONF += "--enable-shared --enable-static --enable-relocatable" - -LEAD_SONAME = "libiconv.so" - -do_configure:prepend () { - rm -f ${S}/m4/libtool.m4 ${S}/m4/ltoptions.m4 ${S}/m4/ltsugar.m4 ${S}/m4/ltversion.m4 ${S}/m4/lt~obsolete.m4 ${S}/libcharset/m4/libtool.m4 ${S}/libcharset/m4/ltoptions.m4 ${S}/libcharset/m4/ltsugar.m4 ${S}/libcharset/m4/ltversion.m4 ${S}/libcharset/m4/lt~obsolete.m4 -} - -do_configure:append () { - # forcibly remove RPATH from libtool - sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' *libtool - sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=_NO_RPATH_|g' *libtool -} - -do_install:append () { - rm -rf ${D}${libdir}/preloadable_libiconv.so - rm -rf ${D}${libdir}/charset.alias -} - -BBCLASSEXTEND = "nativesdk" diff --git a/recipes-support/libiconv/libiconv_1.18.bb b/recipes-support/libiconv/libiconv_1.18.bb new file mode 100644 index 0000000..c7c6332 --- /dev/null +++ b/recipes-support/libiconv/libiconv_1.18.bb @@ -0,0 +1,51 @@ +SUMMARY = "Character encoding support library" +DESCRIPTION = "GNU libiconv - libiconv is for you if your application needs to support \ +multiple character encodings, but that support lacks from your system." +HOMEPAGE = "http://www.gnu.org/software/libiconv" +SECTION = "libs" +NOTES = "Needs to be stripped down to: ascii iso8859-1 eucjp iso-2022jp gb utf8" +PROVIDES = "virtual/libiconv" +PR = "r1" +LICENSE = "GPL-3.0-only & LGPL-2.1-only" +LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ + file://COPYING.LIB;md5=4bf661c1e3793e55c8d1051bc5e0ae21 \ + file://libcharset/COPYING.LIB;md5=4bf661c1e3793e55c8d1051bc5e0ae21" + +SRC_URI = "${GNU_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz" + +SRC_URI[sha256sum] = "3b08f5f4f9b4eb82f151a7040bfd6fe6c6fb922efe4b1659c66ea933276965e8" + +S = "${WORKDIR}/libiconv-${PV}" + +inherit autotools pkgconfig gettext + +# Need to use absolute paths as autoreconf will recurse into libchardet +EXTRA_AUTORECONF += "-I ${S}/m4 -I ${S}/srcm4" + +python __anonymous() { + if d.getVar("TARGET_OS") != "linux": + return + if d.getVar("TCLIBC") == "glibc": + raise bb.parse.SkipPackage("libiconv is provided for use with uClibc only - glibc already provides iconv") +} + +EXTRA_OECONF += "--enable-shared --enable-static --enable-relocatable" + +LEAD_SONAME = "libiconv.so" + +do_configure:prepend () { + rm -f ${S}/m4/libtool.m4 ${S}/m4/ltoptions.m4 ${S}/m4/ltsugar.m4 ${S}/m4/ltversion.m4 ${S}/m4/lt~obsolete.m4 ${S}/libcharset/m4/libtool.m4 ${S}/libcharset/m4/ltoptions.m4 ${S}/libcharset/m4/ltsugar.m4 ${S}/libcharset/m4/ltversion.m4 ${S}/libcharset/m4/lt~obsolete.m4 +} + +do_configure:append () { + # forcibly remove RPATH from libtool + sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' *libtool + sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=_NO_RPATH_|g' *libtool +} + +do_install:append () { + rm -rf ${D}${libdir}/preloadable_libiconv.so + rm -rf ${D}${libdir}/charset.alias +} + +BBCLASSEXTEND = "nativesdk" -- cgit v1.2.3-54-g00ecf