diff --git a/0001-util-Fix-fpermissive-warning.patch b/0001-util-Fix-fpermissive-warning.patch new file mode 100644 index 0000000..22645b0 --- /dev/null +++ b/0001-util-Fix-fpermissive-warning.patch @@ -0,0 +1,27 @@ +From 724b7405064b37410e67cd309e2862bc22d95fde Mon Sep 17 00:00:00 2001 +From: Colin Walters +Date: Tue, 1 Nov 2022 16:06:20 -0400 +Subject: [PATCH] util: Fix `-fpermissive` warning + +This seems to only be happening with newer gcc (or something +in the glib2 headers changed?). +--- + src/libpriv/rpmostree-util.cxx | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/libpriv/rpmostree-util.cxx b/src/libpriv/rpmostree-util.cxx +index 623475fe..438511a7 100644 +--- a/src/libpriv/rpmostree-util.cxx ++++ b/src/libpriv/rpmostree-util.cxx +@@ -436,7 +436,7 @@ rpmostree_str_ptrarray_contains (GPtrArray *strs, const char *str) + guint n = strs->len; + for (guint i = 0; i < n; i++) + { +- if (g_str_equal (str, strs->pdata[i])) ++ if (g_str_equal (str, (const char*)strs->pdata[i])) + return TRUE; + } + return FALSE; +-- +2.38.1 + diff --git a/rpm-ostree.spec b/rpm-ostree.spec index 9978e81..aca54b8 100644 --- a/rpm-ostree.spec +++ b/rpm-ostree.spec @@ -11,6 +11,8 @@ URL: https://github.com/coreos/rpm-ostree # in the upstream git. It also contains vendored Rust sources. Source0: https://github.com/coreos/rpm-ostree/releases/download/v%{version}/rpm-ostree-%{version}.tar.xz +Patch0: 0001-util-Fix-fpermissive-warning.patch + ExclusiveArch: %{rust_arches} BuildRequires: make