Skip to contentSkip to conversation

iniparser upgrade

PATCH New [email protected] 1 participant 3 messages May 22, 2024

lore
Share & tools
lore
#0 lore raw

cover iniparser upgrade

I am the new upstream iniparser maintainer as
[announced by @ndevilla](https://github.com/ndevilla/iniparser/issues/125#issuecomment-2016557686)

As you can read in the project's [README](https://github.com/ndevilla/iniparser/blob/main/README.md) we moved to [Gitlab](https://gitlab.com/iniparser/iniparser)

Lars Möllendorf (2):
iniparser: upgrade 4.2 -> 4.2.1
iniparser: remove dependency on doxygen-native

 ...iniparser.pc-Make-libpath-a-variable.patch | 23 -------
 .../iniparser/Add-CMake-support.patch         | 65 -------------------
 .../iniparser/iniparser_4.2.2.bb              | 18 +++++
 .../iniparser/iniparser_4.2.bb                | 27 --------
 4 files changed, 18 insertions(+), 115 deletions(-)
 delete mode 100644 meta-oe/recipes-support/iniparser/iniparser/0001-iniparser.pc-Make-libpath-a-variable.patch
 delete mode 100644 meta-oe/recipes-support/iniparser/iniparser/Add-CMake-support.patch
 create mode 100644 meta-oe/recipes-support/iniparser/iniparser_4.2.2.bb
 delete mode 100644 meta-oe/recipes-support/iniparser/iniparser_4.2.bb
Signature · 1 line
2.43.2
#1 lore raw

PATCH 1/2 iniparser: upgrade 4.2 -> 4.2.1

From: Lars Möllendorf <[email protected]>

Hompage-Upgrade: upstream iniparser moved to Gitlab

Add-CMake-support.patch
removed since CMake support is now provided upstream

0001-iniparser.pc-Make-libpath-a-variable.patch removed since pkg-config file is now generated by CMake

---
 ...iniparser.pc-Make-libpath-a-variable.patch | 23 -------
 .../iniparser/Add-CMake-support.patch         | 65 -------------------
 .../iniparser/iniparser_4.2.2.bb              | 16 +++++
 .../iniparser/iniparser_4.2.bb                | 27 --------
 4 files changed, 16 insertions(+), 115 deletions(-)
 delete mode 100644 meta-oe/recipes-support/iniparser/iniparser/0001-iniparser.pc-Make-libpath-a-variable.patch
 delete mode 100644 meta-oe/recipes-support/iniparser/iniparser/Add-CMake-support.patch
 create mode 100644 meta-oe/recipes-support/iniparser/iniparser_4.2.2.bb
 delete mode 100644 meta-oe/recipes-support/iniparser/iniparser_4.2.bb
meta-oe/recipes-support/iniparser/iniparser/0001-iniparser.pc-Make-libpath-a-variable.patch deleted +0 -23
deleted file mode 100644
index 4824344f0..000000000
@@ -1,23 +0,0 @@
-From 1761298b73c759c07e4652ada307f68512a75ff1 Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Fri, 25 Mar 2022 20:44:41 -0700
-Subject: [PATCH] iniparser.pc: Make libpath a variable
-
-Will set according to baselib that yocto exports.
-
-Upstream-Status: Inappropriate [OE-specific]
-Signed-off-by: Khem Raj <[email protected]>
----
- iniparser.pc | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
---- a/iniparser.pc
-+++ b/iniparser.pc
-@@ -1,6 +1,6 @@
- prefix=/usr
- exec_prefix=/usr
--libdir=${exec_prefix}/lib
-+libdir=${exec_prefix}/@baselib@
- includedir=${prefix}/include
- datarootdir=${prefix}/share
- datadir=${datarootdir}
meta-oe/recipes-support/iniparser/iniparser/Add-CMake-support.patch deleted +0 -65

65 lines not on this page · raw message

meta-oe/recipes-support/iniparser/iniparser_4.2.2.bb new file +16 -0
new file mode 100644
index 000000000..a8f7947c8
@@ -0,0 +1,16 @@
+SUMMARY = "The iniParser library is a simple C library offering INI file parsing services (both reading and writing)."
+SECTION = "libs"
+HOMEPAGE = "https://gitlab.com/iniparser/iniparser"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=8474d3b745f77e203f1fc82fb0bb7678"
+SRCBRANCH = "main"
+SRCREV = "v${PV}"
+
+DEPENDS = "doxygen-native"
+
+SRC_URI = "git://gitlab.com/iniparser/iniparser.git;protocol=https;branch=${SRCBRANCH}"
+S = "${WORKDIR}/git"
+
+inherit cmake
+
+FILES_${PN}-staticdev += "${libdir}/cmake/iniparser/iniparser-staticTargets*.cmake"
meta-oe/recipes-support/iniparser/iniparser_4.2.bb deleted +0 -27
deleted file mode 100644
index d44772590..000000000
@@ -1,27 +0,0 @@
-SUMMARY = "The iniParser library is a simple C library offering INI file parsing services (both reading and writing)."
-SECTION = "libs"
-HOMEPAGE = "https://github.com/ndevilla/iniparser"
-LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=8474d3b745f77e203f1fc82fb0bb7678"
-
-DEPENDS = "doxygen-native"
-
-PV .= "+git"
-
-SRC_URI = "git://github.com/ndevilla/iniparser.git;protocol=https;branch=master \
-           file://0001-iniparser.pc-Make-libpath-a-variable.patch \
-           file://Add-CMake-support.patch \
-"
-
-SRCREV = "9f5a6da1c245b44f49a46212ec0d81ffb1f821aa"
-
-S = "${WORKDIR}/git"
-
-inherit cmake
-
-do_install:append() {
-    install -Dm 0644 ${S}/iniparser.pc ${D}${libdir}/pkgconfig/iniparser.pc
-    sed -i -e 's,@baselib@,${baselib},g' ${D}${libdir}/pkgconfig/iniparser.pc
-}
-
-BBCLASSEXTEND += "native"
Signature · 1 line
2.43.2
#2 lore raw

PATCH 2/2 iniparser: remove dependency on doxygen-native

In reply to [email protected]

From: Lars Möllendorf <[email protected]>

This is an extra commit since I am not sure if documentation is wanted or not.

---
 meta-oe/recipes-support/iniparser/iniparser_4.2.2.bb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
meta-oe/recipes-support/iniparser/iniparser_4.2.2.bb +4 -2
index a8f7947c8..4a1c6db15 100644
@@ -6,11 +6,13 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=8474d3b745f77e203f1fc82fb0bb7678"
 SRCBRANCH = "main"
 SRCREV = "v${PV}"
 
-DEPENDS = "doxygen-native"
-
 SRC_URI = "git://gitlab.com/iniparser/iniparser.git;protocol=https;branch=${SRCBRANCH}"
 S = "${WORKDIR}/git"
 
 inherit cmake
 
+EXTRA_OECMAKE = " \
+	-DBUILD_DOCS=OFF \
+	"
+
 FILES_${PN}-staticdev += "${libdir}/cmake/iniparser/iniparser-staticTargets*.cmake"
Signature · 1 line
2.43.2