The package rpms/libvmi.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/libvmi.git/commit/?id=11c99368e7f....
Change:
+ExclusiveArch: x86_64
Thanks.
Full change:
============
commit 11c99368e7f1fb94290a513134799cf18bbb9958
Author: Björn Esser <besser82(a)fedoraproject.org>
Date: Wed Dec 15 12:56:20 2021 +0100
Build with proper build type "Release"
diff --git a/libvmi-no_werror.patch b/libvmi-no_werror.patch
new file mode 100644
index 0000000..75857ff
--- /dev/null
+++ b/libvmi-no_werror.patch
@@ -0,0 +1,13 @@
+Index: libvmi-aeb8d1d662d5009d1122182fc5b491d010d029ae/CMakeLists.txt
+===================================================================
+--- libvmi-aeb8d1d662d5009d1122182fc5b491d010d029ae.orig/CMakeLists.txt
++++ libvmi-aeb8d1d662d5009d1122182fc5b491d010d029ae/CMakeLists.txt
+@@ -38,7 +38,7 @@ include(GNUInstallDirs)
+ #-----------------------------------------------------------------------------
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra")
+ set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -g3 -O0")
+-set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Wno-cast-function-type -Werror
-O2")
++set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Wno-cast-function-type
-O2")
+
+ # default hardening flags that have no performance hit
+ set(HARDENING_LINKER_FLAGS "-Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now")
diff --git a/libvmi.spec b/libvmi.spec
index d8a79b6..1833456 100644
--- a/libvmi.spec
+++ b/libvmi.spec
@@ -14,9 +14,11 @@ Source0:
https://github.com/%{name}/%{name}/archive/%{commit}.tar.gz#/%{n
#
https://github.com/libvmi/libvmi/issues/1002
#
https://bugzilla.redhat.com/show_bug.cgi?id=2031182
Patch0000: libvmi-fix_cmake.patch
+# disable '-Werror'
+Patch0001: libvmi-no_werror.patch
# Cannot presently build on other architectures.
-ExclusiveArch: x86_64
+ExclusiveArch: x86_64
BuildRequires: cmake
BuildRequires: gcc bison flex xen-devel fuse-devel
@@ -50,7 +52,7 @@ use of %{name}.
%autosetup -n libvmi-%{commit} -p1
%build
-%cmake .
+%cmake -DCMAKE_BUILD_TYPE="Release" .
%cmake_build
%install
@@ -77,6 +79,7 @@ find %{buildroot}%{_libdir} -name '*.a' -delete -print
%changelog
* Wed Dec 15 2021 Björn Esser <besser82(a)fedoraproject.org> -
0.13.0-8.20200730gitaeb8d1d
- Add patch to fix build with recent cmake
+- Build with proper build type "Release"
* Thu Jul 22 2021 Fedora Release Engineering <releng(a)fedoraproject.org> -
0.13.0-7.20200730gitaeb8d1d
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
commit 3d132c9990c0377fcf1b7c7faea159d4d5e9722a
Author: Björn Esser <besser82(a)fedoraproject.org>
Date: Wed Dec 15 12:47:55 2021 +0100
Add patch to fix build with recent cmake
diff --git a/libvmi-fix_cmake.patch b/libvmi-fix_cmake.patch
new file mode 100644
index 0000000..8a4aadd
--- /dev/null
+++ b/libvmi-fix_cmake.patch
@@ -0,0 +1,30 @@
+Index: libvmi-aeb8d1d662d5009d1122182fc5b491d010d029ae/CMakeLists.txt
+===================================================================
+--- libvmi-aeb8d1d662d5009d1122182fc5b491d010d029ae.orig/CMakeLists.txt
++++ libvmi-aeb8d1d662d5009d1122182fc5b491d010d029ae/CMakeLists.txt
+@@ -29,8 +29,6 @@ set_package_properties(PkgConfig PROPERT
+ TYPE REQUIRED
+ PURPOSE "Find and configure multiple LibVMI dependencies")
+ pkg_search_module(GLIB REQUIRED glib-2.0)
+-# cleanup GLIB_LDFLAGS (remove -l prefix)
+-string(REGEX REPLACE "-l" "" GLIB_LDFLAGS ${GLIB_LDFLAGS})
+
+ include(DetectArchitecture)
+ include(StaticAnalysis)
+Index: libvmi-aeb8d1d662d5009d1122182fc5b491d010d029ae/libvmi/CMakeLists.txt
+===================================================================
+--- libvmi-aeb8d1d662d5009d1122182fc5b491d010d029ae.orig/libvmi/CMakeLists.txt
++++ libvmi-aeb8d1d662d5009d1122182fc5b491d010d029ae/libvmi/CMakeLists.txt
+@@ -39,10 +39,8 @@ add_library (vmi_shared SHARED $<TARGET_
+ target_link_libraries(vmi_shared PRIVATE m)
+ list(APPEND VMI_PUBLIC_DEPS m)
+ # one libvmi_extra.h function returns a GSList*
+-target_link_libraries(vmi_shared PUBLIC ${GLIB_LDFLAGS})
+-# cleanup GLIB_LDFLAGS (remove -l prefix)
+-string(REGEX REPLACE "-l" "" GLIB_LDFLAGS ${GLIB_LDFLAGS})
+-list(APPEND VMI_PUBLIC_DEPS ${GLIB_LDFLAGS})
++target_link_libraries(vmi_shared PUBLIC ${GLIB_LINK_LIBRARIES})
++list(APPEND VMI_PUBLIC_DEPS ${GLIB_LINK_LIBRARIES})
+ set_target_properties(vmi_shared PROPERTIES OUTPUT_NAME "vmi")
+ # set soname
+ set_target_properties(vmi_shared PROPERTIES
diff --git a/libvmi.spec b/libvmi.spec
index 461efe0..d8a79b6 100644
--- a/libvmi.spec
+++ b/libvmi.spec
@@ -4,12 +4,17 @@
Name: libvmi
Version: 0.13.0
-Release: 7.%{commit_date}git%{short_commit}%{?dist}
+Release: 8.%{commit_date}git%{short_commit}%{?dist}
Summary: A library for performing virtual-machine introspection
License: LGPLv3+
URL:
http://libvmi.com/
Source0:
https://github.com/%{name}/%{name}/archive/%{commit}.tar.gz#/%{name}-%{co...
+
+#
https://github.com/libvmi/libvmi/issues/1002
+#
https://bugzilla.redhat.com/show_bug.cgi?id=2031182
+Patch0000: libvmi-fix_cmake.patch
+
# Cannot presently build on other architectures.
ExclusiveArch: x86_64
@@ -70,6 +75,9 @@ find %{buildroot}%{_libdir} -name '*.a' -delete -print
%{_bindir}/*
%changelog
+* Wed Dec 15 2021 Björn Esser <besser82(a)fedoraproject.org> -
0.13.0-8.20200730gitaeb8d1d
+- Add patch to fix build with recent cmake
+
* Thu Jul 22 2021 Fedora Release Engineering <releng(a)fedoraproject.org> -
0.13.0-7.20200730gitaeb8d1d
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
commit 9dd0a97246a2ae24eede31a4004c7ae0d16bb181
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Thu Jul 22 12:43:11 2021 +0000
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng(a)fedoraproject.org>
diff --git a/libvmi.spec b/libvmi.spec
index 7169f47..461efe0 100644
--- a/libvmi.spec
+++ b/libvmi.spec
@@ -4,7 +4,7 @@
Name: libvmi
Version: 0.13.0
-Release: 6.%{commit_date}git%{short_commit}%{?dist}
+Release: 7.%{commit_date}git%{short_commit}%{?dist}
Summary: A library for performing virtual-machine introspection
License: LGPLv3+
@@ -70,6 +70,9 @@ find %{buildroot}%{_libdir} -name '*.a' -delete -print
%{_bindir}/*
%changelog
+* Thu Jul 22 2021 Fedora Release Engineering <releng(a)fedoraproject.org> -
0.13.0-7.20200730gitaeb8d1d
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
+
* Sat Jul 10 2021 Björn Esser <besser82(a)fedoraproject.org> -
0.13.0-6.20200730gitaeb8d1d
- Rebuild for versioned symbols in json-c
commit 3f4d9d57f41548092c388ad1578d883cea5c9cf7
Author: Björn Esser <besser82(a)fedoraproject.org>
Date: Sat Jul 10 11:55:18 2021 +0200
Rebuild for versioned symbols in json-c
diff --git a/libvmi.spec b/libvmi.spec
index 26cc5f8..7169f47 100644
--- a/libvmi.spec
+++ b/libvmi.spec
@@ -4,7 +4,7 @@
Name: libvmi
Version: 0.13.0
-Release: 5.%{commit_date}git%{short_commit}%{?dist}
+Release: 6.%{commit_date}git%{short_commit}%{?dist}
Summary: A library for performing virtual-machine introspection
License: LGPLv3+
@@ -70,6 +70,9 @@ find %{buildroot}%{_libdir} -name '*.a' -delete -print
%{_bindir}/*
%changelog
+* Sat Jul 10 2021 Björn Esser <besser82(a)fedoraproject.org> -
0.13.0-6.20200730gitaeb8d1d
+- Rebuild for versioned symbols in json-c
+
* Tue Jan 26 2021 Fedora Release Engineering <releng(a)fedoraproject.org> -
0.13.0-5.20200730gitaeb8d1d
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild