From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 376CC1582EF for ; Mon, 03 Mar 2025 00:45:46 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 1FA7333DF47 for ; Mon, 03 Mar 2025 00:45:46 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 04B441102D0; Mon, 03 Mar 2025 00:45:45 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id EC75A1102D0 for ; Mon, 03 Mar 2025 00:45:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8B90333BF39 for ; Mon, 03 Mar 2025 00:45:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E3F0B1EA7 for ; Mon, 03 Mar 2025 00:45:42 +0000 (UTC) From: "Ionen Wolkens" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ionen Wolkens" Message-ID: <1740962683.1b3ff108224f86ce2692688a217ca54ebc91938a.ionen@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/iniparser/files/, dev-libs/iniparser/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/iniparser/Manifest dev-libs/iniparser/files/iniparser-3.0-autotools.patch dev-libs/iniparser/files/iniparser-3.0b-cpp.patch dev-libs/iniparser/files/iniparser-4.0-out-of-bounds-read.patch dev-libs/iniparser/files/iniparser-4.1-CVE-null-getstring.patch dev-libs/iniparser/iniparser-3.1-r3.ebuild dev-libs/iniparser/iniparser-4.1-r2.ebuild X-VCS-Directories: dev-libs/iniparser/files/ dev-libs/iniparser/ X-VCS-Committer: ionen X-VCS-Committer-Name: Ionen Wolkens X-VCS-Revision: 1b3ff108224f86ce2692688a217ca54ebc91938a X-VCS-Branch: master Date: Mon, 03 Mar 2025 00:45:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 64e51830-7986-40ff-8dfa-6d5ea397fc8f X-Archives-Hash: 56ac8736930a629bfa030ef77e4614fe commit: 1b3ff108224f86ce2692688a217ca54ebc91938a Author: Ionen Wolkens gentoo org> AuthorDate: Mon Mar 3 00:42:25 2025 +0000 Commit: Ionen Wolkens gentoo org> CommitDate: Mon Mar 3 00:44:43 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b3ff108 dev-libs/iniparser: drop 3.1-r3, 4.1-r2 Hopefully nothing needs these anymore, been quiet with 4.2.x. wrt 3.x, most packages also depend on >=4.1 either way. Signed-off-by: Ionen Wolkens gentoo.org> dev-libs/iniparser/Manifest | 2 - .../iniparser/files/iniparser-3.0-autotools.patch | 38 -------------- dev-libs/iniparser/files/iniparser-3.0b-cpp.patch | 45 ----------------- .../files/iniparser-4.0-out-of-bounds-read.patch | 11 ---- .../files/iniparser-4.1-CVE-null-getstring.patch | 43 ---------------- dev-libs/iniparser/iniparser-3.1-r3.ebuild | 50 ------------------- dev-libs/iniparser/iniparser-4.1-r2.ebuild | 58 ---------------------- 7 files changed, 247 deletions(-) diff --git a/dev-libs/iniparser/Manifest b/dev-libs/iniparser/Manifest index 84c4c4356f6a..1360907fc22f 100644 --- a/dev-libs/iniparser/Manifest +++ b/dev-libs/iniparser/Manifest @@ -1,4 +1,2 @@ -DIST iniparser-3.1.tar.gz 39097 BLAKE2B 4ada36f5bb95476c06deffa7938a750bcdeb0bd5bb817b24274c1e1c588d9abbd23c3a58f3cb3b6f961912f3e12e74aadf224da4cd81863b874e4a84d11c1744 SHA512 8fd8324c5629fdc3e3eff00afb5f0832402ccc760c5b92db82aa29b340ec891419ca2c4fee3a4d4d67cf9bc51c76b095bc0c458e087c2b8e72ac36867c47ae86 -DIST iniparser-4.1.tar.gz 44732 BLAKE2B a3480dab512b41eb9635c733b76048ab089a311c2970aae5ce89d103ff6ab1923d5824a5fca3bf445ba213ecd9954018fdef2831fd98c1a43c9ae7d4fb1cb388 SHA512 a8125aaaead1f9dfde380fa1e45bae31ca2312be029f2c53b4072cb3b127d16578a95c7c0aee1e3dda5e7b8db7a865ba6dfe8a1d80eb673061b3babef744e968 DIST iniparser-v4.2.5.tar.bz2 34574 BLAKE2B 47eeffa4f441d491c153717df5b713e56181e090509b4496e9768b7f4654970b9cc6f261f9c821afbd2769b194a5742f82d20fc46471c92577bcde5ad350f989 SHA512 db7ebab3336bf9854efc9a70784762b1917da616d4c1f5e6c2409b238dd967967c196df85f444c1d21732dc47d195ca044a93ae2b0d8d556fe150e7dd1b78d64 DIST iniparser-v4.2.6.tar.bz2 34731 BLAKE2B ce63256b8a6640e188184f7d1d7de40690ca612938d6d06cb97d012fe40e05e647510d97221bc61fa25db47a96565b21e7fd346f370afde7d3c461f93c3e2fc0 SHA512 6a37c0bad24093c5852d232e13e1c2182ab97508be3b03a44ea5510a70884cb7ac1fa8a9e8415ece2d2a13c9b38efabc1d37d920d894a198b89cd04731f32392 diff --git a/dev-libs/iniparser/files/iniparser-3.0-autotools.patch b/dev-libs/iniparser/files/iniparser-3.0-autotools.patch deleted file mode 100644 index 361c96a7d4fb..000000000000 --- a/dev-libs/iniparser/files/iniparser-3.0-autotools.patch +++ /dev/null @@ -1,38 +0,0 @@ ---- /dev/null -+++ b/Makefile.am -@@ -0,0 +1,8 @@ -+ACLOCAL_AMFLAGS = -I config -+ -+lib_LTLIBRARIES = libiniparser.la -+ -+libiniparser_la_LDFLAGS = -no-undefined -version-info @SHARED_VERSION_INFO@ -+libiniparser_la_SOURCES = src/dictionary.c src/iniparser.c -+ -+include_HEADERS = src/dictionary.h src/iniparser.h ---- /dev/null -+++ b/configure.ac -@@ -0,0 +1,24 @@ -+AC_PREREQ([2.65]) -+AC_INIT([iniparser], [3.0], [ndevilla@free.fr]) -+ -+AC_CONFIG_AUX_DIR(config) -+AC_CONFIG_MACRO_DIR(config) -+ -+AM_INIT_AUTOMAKE([1.8 foreign]) -+ -+SHARED_VERSION_INFO="0" -+AC_SUBST(SHARED_VERSION_INFO) -+ -+# Checks for programs. -+AC_PROG_CC -+AC_SYS_LARGEFILE -+ -+LT_INIT -+# Checks for header files. -+AC_CHECK_HEADERS([ ctype.h stdio.h stdlib.h string.h ]) -+ -+# Checks for library functions. -+AC_CHECK_FUNCS([strcmp]) -+ -+AC_CONFIG_FILES([Makefile]) -+AC_OUTPUT diff --git a/dev-libs/iniparser/files/iniparser-3.0b-cpp.patch b/dev-libs/iniparser/files/iniparser-3.0b-cpp.patch deleted file mode 100644 index b7cd17d2d226..000000000000 --- a/dev-libs/iniparser/files/iniparser-3.0b-cpp.patch +++ /dev/null @@ -1,45 +0,0 @@ ---- a/src/dictionary.c -+++ b/src/dictionary.c -@@ -32,6 +32,9 @@ - /*--------------------------------------------------------------------------- - Private functions - ---------------------------------------------------------------------------*/ -+#ifdef __cplusplus -+extern "C" { -+#endif - - /* Doubles the allocated size associated to a pointer */ - /* 'size' is the current allocated size. */ -@@ -394,5 +397,10 @@ - dictionary_del(d); - return 0 ; - } -+ -+#ifdef __cplusplus -+} -+#endif -+ - #endif - /* vim: set ts=4 et sw=4 tw=75 */ ---- a/src/iniparser.h -+++ b/src/iniparser.h -@@ -49,6 +49,10 @@ - int iniparser_getnsec(dictionary * d); - - -+#ifdef __cplusplus -+extern "C" { -+#endif -+ - /*-------------------------------------------------------------------------*/ - /** - @brief Get name for section n in a dictionary. -@@ -304,4 +308,8 @@ - /*--------------------------------------------------------------------------*/ - void iniparser_freedict(dictionary * d); - -+#ifdef __cplusplus -+} -+#endif -+ - #endif diff --git a/dev-libs/iniparser/files/iniparser-4.0-out-of-bounds-read.patch b/dev-libs/iniparser/files/iniparser-4.0-out-of-bounds-read.patch deleted file mode 100644 index f6488810ac12..000000000000 --- a/dev-libs/iniparser/files/iniparser-4.0-out-of-bounds-read.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/src/iniparser.c -+++ b/src/iniparser.c -@@ -663,7 +663,7 @@ - while (fgets(line+last, ASCIILINESZ-last, in)!=NULL) { - lineno++ ; - len = (int)strlen(line)-1; -- if (len==0) -+ if (len<=0) - continue; - /* Safety check against buffer overflows */ - if (line[len]!='\n') { diff --git a/dev-libs/iniparser/files/iniparser-4.1-CVE-null-getstring.patch b/dev-libs/iniparser/files/iniparser-4.1-CVE-null-getstring.patch deleted file mode 100644 index bf3c035fda07..000000000000 --- a/dev-libs/iniparser/files/iniparser-4.1-CVE-null-getstring.patch +++ /dev/null @@ -1,43 +0,0 @@ -From ace9871f65d11b5d73f0b9ee8cf5d2807439442d Mon Sep 17 00:00:00 2001 -From: Antonio -Date: Fri, 2 Jun 2023 15:03:10 -0300 -Subject: [PATCH] Handle null return from iniparser_getstring - -Fix handling of NULL returns from iniparser_getstring in -iniparser_getboolean, iniparser_getlongint and iniparser_getdouble, -avoiding a crash. ---- - src/iniparser.c | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) - -diff --git a/src/iniparser.c b/src/iniparser.c -index f1d1658..dbceb20 100644 ---- a/src/iniparser.c -+++ b/src/iniparser.c -@@ -456,7 +456,7 @@ long int iniparser_getlongint(const dictionary * d, const char * key, long int n - const char * str ; - - str = iniparser_getstring(d, key, INI_INVALID_KEY); -- if (str==INI_INVALID_KEY) return notfound ; -+ if (str==NULL || str==INI_INVALID_KEY) return notfound ; - return strtol(str, NULL, 0); - } - -@@ -511,7 +511,7 @@ double iniparser_getdouble(const dictionary * d, const char * key, double notfou - const char * str ; - - str = iniparser_getstring(d, key, INI_INVALID_KEY); -- if (str==INI_INVALID_KEY) return notfound ; -+ if (str==NULL || str==INI_INVALID_KEY) return notfound ; - return atof(str); - } - -@@ -553,7 +553,7 @@ int iniparser_getboolean(const dictionary * d, const char * key, int notfound) - const char * c ; - - c = iniparser_getstring(d, key, INI_INVALID_KEY); -- if (c==INI_INVALID_KEY) return notfound ; -+ if (c==NULL || c==INI_INVALID_KEY) return notfound ; - if (c[0]=='y' || c[0]=='Y' || c[0]=='1' || c[0]=='t' || c[0]=='T') { - ret = 1 ; - } else if (c[0]=='n' || c[0]=='N' || c[0]=='0' || c[0]=='f' || c[0]=='F') { diff --git a/dev-libs/iniparser/iniparser-3.1-r3.ebuild b/dev-libs/iniparser/iniparser-3.1-r3.ebuild deleted file mode 100644 index 00798d267bb7..000000000000 --- a/dev-libs/iniparser/iniparser-3.1-r3.ebuild +++ /dev/null @@ -1,50 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit autotools - -DESCRIPTION="A free stand-alone ini file parsing library" -HOMEPAGE="http://ndevilla.free.fr/iniparser/" -SRC_URI="http://ndevilla.free.fr/iniparser/${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~m68k ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" -IUSE="doc examples" -# the tests are rather examples than tests, no point in running them -RESTRICT="test" - -BDEPEND="doc? ( app-text/doxygen )" - -S="${WORKDIR}/${PN}" - -PATCHES=( - "${FILESDIR}"/${PN}-3.0b-cpp.patch - "${FILESDIR}"/${PN}-3.0-autotools.patch - "${FILESDIR}"/${PN}-4.0-out-of-bounds-read.patch -) - -src_prepare() { - default - eautoreconf -} - -src_install() { - if use doc; then - emake -C doc - HTML_DOCS=( html/. ) - fi - - default - - if use examples; then - docinto examples - dodoc test/*.{c,ini,py} - docompress -x /usr/share/doc/${PF}/examples - fi - - # No static archives - find "${ED}" -name '*.la' -delete || die -} diff --git a/dev-libs/iniparser/iniparser-4.1-r2.ebuild b/dev-libs/iniparser/iniparser-4.1-r2.ebuild deleted file mode 100644 index d48fac06d4e7..000000000000 --- a/dev-libs/iniparser/iniparser-4.1-r2.ebuild +++ /dev/null @@ -1,58 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit toolchain-funcs flag-o-matic - -DESCRIPTION="Free stand-alone ini file parsing library" -HOMEPAGE="https://github.com/ndevilla/iniparser/" -SRC_URI=" - https://github.com/ndevilla/iniparser/archive/refs/tags/v${PV}.tar.gz - -> ${P}.tar.gz -" - -LICENSE="MIT" -SLOT="0/1" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" -IUSE="doc examples" - -BDEPEND="doc? ( app-text/doxygen )" - -PATCHES=( - "${FILESDIR}"/${P}-CVE-null-getstring.patch -) - -src_prepare() { - default - - rm -r html || die -} - -src_compile() { - append-lfs-flags - tc-export AR CC - - emake V=1 ADDITIONAL_CFLAGS= - use doc && emake -C doc -} - -src_test() { - emake V=1 -C test -} - -src_install() { - dolib.so lib${PN}.so.1 - dosym -r /usr/$(get_libdir)/lib${PN}.so{.1,} - - doheader src/*.h - - if use examples; then - docinto examples - dodoc -r example/. - docompress -x /usr/share/doc/${PF}/examples - fi - - use doc && local HTML_DOCS=( html/. ) - einstalldocs -}