public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michal Schmidt <michich@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/mstflint] rawhide: Merge #22 `keep bundling iniparser on RHEL<=10`
Date: Thu, 13 Aug 2026 09:45:17 GMT	[thread overview]
Message-ID: <178661431721.1.4401122691867156279.rpms-mstflint-afa70fd9a3f9@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/mstflint
Branch : rawhide
Commit : afa70fd9a3f9c967ab84327ed9794e593b857023
Author : Michal Schmidt <michich@fedoraproject.org>
Date   : 2026-08-13T09:45:13+00:00
Stats  : +19/-4 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/mstflint/c/afa70fd9a3f9c967ab84327ed9794e593b857023?branch=rawhide

Log:
Merge #22 `keep bundling iniparser on RHEL<=10`

---
diff --git a/mstflint.spec b/mstflint.spec
index dcf1320..daca38d 100644
--- a/mstflint.spec
+++ b/mstflint.spec
@@ -14,12 +14,20 @@ Source0: 	https://github.com/Mellanox/%{name}/releases/download/v%{version}-1/%{
 
 # jsoncpp and muParser are not in the RHEL/ELN content set, so we must
 # bundle them there. On Fedora, use the system libraries.
+# iniparser-devel on RHEL <= 10 lacks a .pc file, so pkg-config detection
+# fails; bundle it there too.
 %if !0%{?rhel}
+%bcond_with bundled_iniparser
 %bcond_with bundled_jsoncpp
 %bcond_with bundled_muparser
 %else
 %bcond_without bundled_jsoncpp
 %bcond_without bundled_muparser
+%if 0%{?rhel} <= 10
+%bcond_without bundled_iniparser
+%else
+%bcond_with bundled_iniparser
+%endif
 %endif
 
 BuildRequires:	make
@@ -27,8 +35,12 @@ BuildRequires:	libstdc++-devel, zlib-devel, libibmad-devel, gcc-c++, gcc
 BuildRequires:	libcurl-devel, boost-devel, libxml2-devel
 BuildRequires:	openssl-devel
 BuildRequires:	expat-devel
-BuildRequires:	iniparser-devel
 BuildRequires:	sqlite-devel
+%if %{without bundled_iniparser}
+BuildRequires:	iniparser-devel
+%else
+Provides:	bundled(iniparser)
+%endif
 %if %{without bundled_jsoncpp}
 BuildRequires:	jsoncpp-devel
 %else
@@ -63,8 +75,11 @@ for network adapters based on Mellanox Technologies chips.
 # Make sure system libraries are used where possible. Delete the bundled
 # sources. Exception: Keep */Makefile.am files because Makefiles are listed
 # as AC_CONFIG_FILES in configure.ac unconditionally.
-%global _unbundle_libs iniParser,sqlite%{!?with_bundled_jsoncpp:,json}%{!?with_bundled_muparser:,muparser}
-find ext_libs/{%{_unbundle_libs}} -depth -mindepth 1 -name Makefile.am -prune -o -delete
+%global _unbundle_dirs ext_libs/sqlite
+%{!?with_bundled_iniparser:%global _unbundle_dirs %{_unbundle_dirs} ext_libs/iniParser}
+%{!?with_bundled_jsoncpp:%global _unbundle_dirs %{_unbundle_dirs} ext_libs/json}
+%{!?with_bundled_muparser:%global _unbundle_dirs %{_unbundle_dirs} ext_libs/muparser}
+find %{_unbundle_dirs} -mindepth 1 -name Makefile.am -o -print -delete
 
 find . -type f -perm /a+x \( -name '*.[ch]' -o -name '*.cpp' \) -exec chmod a-x '{}' '+'
 

diff --git a/mstflint.spec b/mstflint.spec
index f38b62c..daca38d 100644
--- a/mstflint.spec
+++ b/mstflint.spec
@@ -85,7 +85,7 @@ find . -type f -perm /a+x \( -name '*.[ch]' -o -name '*.cpp' \) -exec chmod a-x 
 
 %build
 %if %{__remake_config}
-./autogen.sh
+autoreconf -fiv
 %endif
 %configure --enable-fw-mgr --enable-openssl --enable-adb-generic-tools
 %make_build

                 reply	other threads:[~2026-08-13  9:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178661431721.1.4401122691867156279.rpms-mstflint-afa70fd9a3f9@fedoraproject.org \
    --to=michich@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox