diff mbox series

[meta-oe,36/39] minini: upgrade 1.2.b -> 1.5

Message ID 20261127041343.1772294-8-khem.raj@oss.qualcomm.com
State New
Headers show
Series None | expand

Commit Message

Khem Raj Nov. 27, 2026, 4:13 a.m. UTC
1.5 adds ini_hassection(), ini_haskey() and ini_putbool(), ignores
spaces around section names, and no longer passes const user data to
the browse callback (API change since 1.3).

Upstream moved from the Google Code archive to GitHub, so fetch the
v1.5 tag with git and check its tags; the sources are now in dev/.
Backport the upstream fix for the ini_putbool() prototype, which used
TCHAR instead of mTCHAR in 1.5. The sources use CRLF line endings, so
inherit dos2unix and keep the backport an ordinary LF patch.

This replaces the upstream check settings from commit 787d1b73e2
("meta-oe: repair broken recipe upstream version-checks").

License-Update: LICENSE is unchanged apart from CRLF line endings, which dos2unix converts

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 ...pe-used-in-prototype-for-ini_putbool.patch | 23 +++++++++++++++++++
 .../minini/{minini_1.2.b.bb => minini_1.5.bb} | 21 ++++++++++-------
 2 files changed, 36 insertions(+), 8 deletions(-)
 create mode 100644 meta-oe/recipes-support/minini/minini/0001-BUG-fix-wrong-type-used-in-prototype-for-ini_putbool.patch
 rename meta-oe/recipes-support/minini/{minini_1.2.b.bb => minini_1.5.bb} (65%)
diff mbox series

Patch

diff --git a/meta-oe/recipes-support/minini/minini/0001-BUG-fix-wrong-type-used-in-prototype-for-ini_putbool.patch b/meta-oe/recipes-support/minini/minini/0001-BUG-fix-wrong-type-used-in-prototype-for-ini_putbool.patch
new file mode 100644
index 0000000000..b14f239a66
--- /dev/null
+++ b/meta-oe/recipes-support/minini/minini/0001-BUG-fix-wrong-type-used-in-prototype-for-ini_putbool.patch
@@ -0,0 +1,23 @@ 
+From 797be9d2b883222d387732df73945d52c99ec994 Mon Sep 17 00:00:00 2001
+From: Thiadmer Riemersma <thiadmer.riemersma@gmail.com>
+Date: Sat, 6 Jan 2024 17:16:27 +0100
+Subject: [PATCH] BUG fix: wrong type used in prototype for ini_putbool()
+ function.
+
+Upstream-Status: Backport [https://github.com/compuphase/minIni/commit/797be9d2b883222d387732df73945d52c99ec994]
+Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
+---
+ dev/minIni.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/dev/minIni.h
++++ b/dev/minIni.h
+@@ -51,7 +51,7 @@
+ #endif
+ 
+ #if !defined INI_READONLY
+-int  ini_putbool(const TCHAR *Section, const TCHAR *Key, int Value, const TCHAR *Filename);
++int  ini_putbool(const mTCHAR *Section, const mTCHAR *Key, int Value, const mTCHAR *Filename);
+ int  ini_putl(const mTCHAR *Section, const mTCHAR *Key, long Value, const mTCHAR *Filename);
+ int  ini_puts(const mTCHAR *Section, const mTCHAR *Key, const mTCHAR *Value, const mTCHAR *Filename);
+ #if defined INI_REAL
diff --git a/meta-oe/recipes-support/minini/minini_1.2.b.bb b/meta-oe/recipes-support/minini/minini_1.5.bb
similarity index 65%
rename from meta-oe/recipes-support/minini/minini_1.2.b.bb
rename to meta-oe/recipes-support/minini/minini_1.5.bb
index 9baa803382..e447f60498 100644
--- a/meta-oe/recipes-support/minini/minini_1.2.b.bb
+++ b/meta-oe/recipes-support/minini/minini_1.5.bb
@@ -3,32 +3,37 @@  DESCRIPTION = "minIni is a programmer's library to read and write INI files in \
 embedded systems. minIni takes little resources, has a deterministic memory \
 footprint and can be configured for various kinds of file I/O libraries. minIni \
 provides functionality for reading, writing and deleting keys from an INI file, \
-all in 830 lines of (commented) source code (version 1.2) in C (the code also \
+all in about 1000 lines of (commented) source code in C (the code also \
 compiles in C++ and comes with a wrapper class)."
-HOMEPAGE = "https://code.google.com/p/minini/"
+HOMEPAGE = "https://github.com/compuphase/minIni"
 
 # License is Apache 2.0 with an exception to allow object code built from
 # unmodified original sources to be distributed more freely. See LICENSE
 # file for details.
 
 LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=eb21481ad45c5578ae8c8d37b8c8d76d"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=f75fb05044181a4a14fcbf1a88f37fa8"
 
-SRC_URI = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/minini/minIni_12b.zip;subdir=${BP}"
+SRC_URI = "git://github.com/compuphase/minIni.git;protocol=https;branch=master;tag=v${PV} \
+           file://0001-BUG-fix-wrong-type-used-in-prototype-for-ini_putbool.patch \
+           "
+SRCREV = "ede00e17ab3799dd62d00a5885c144810a335495"
 
-SRC_URI[sha256sum] = "b08839af74acb36061fb76e1123bf56711bc5cf7a08b32e189b0ad78a2e888e2"
-# Upstream lived on code.google.com (defunct); only archived zips remain, no
-# browsable release listing.
-UPSTREAM_VERSION_UNKNOWN = "1"
+UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>\d+(\.\d+)+)$"
+
+# The sources use CRLF line endings; convert them so patches stay plain
+inherit dos2unix
 
 do_configure[noexec] = "1"
 
 do_compile() {
+    cd ${S}/dev
     ${CC} ${CFLAGS} -fPIC -c minIni.c -o minIni.o
     ${CC} ${LDFLAGS} -shared -Wl,-soname,libminini.so.0 minIni.o -o libminini.so.0.0
 }
 
 do_install () {
+    cd ${S}/dev
 
     install -d ${D}${libdir}
     install -m 0644 libminini.so.0.0 ${D}${libdir}/