diff --git a/Fix-compilation-failure-caused-by-gcc12.patch b/Fix-compilation-failure-caused-by-gcc12.patch new file mode 100644 index 0000000..a7b4bd9 --- /dev/null +++ b/Fix-compilation-failure-caused-by-gcc12.patch @@ -0,0 +1,15 @@ +diff --git a/configure.ac b/configure.ac +index d8cb25b..69b2a55 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -405,8 +405,8 @@ if test "$enable_media_studio_va" = "yes"; then + [Defined to 1 to enable H265 encoding when --enable-media-studio-va="yes"]) + fi + +-AC_SUBST([AM_CFLAGS], ["-g -O2 -fPIE -fPIC -fstack-protector -Wall -Wno-unused-function -Wno-cpp -Werror"]) +-AC_SUBST([AM_CXXFLAGS], ["-g -O2 -fPIE -fPIC -fstack-protector -Wall -Wno-unused-function -Wno-cpp -Wno-missing-braces -Werror"]) ++AC_SUBST([AM_CFLAGS], ["-g -O2 -fPIE -fPIC -fstack-protector -Wall -Wno-unused-function -Wno-cpp -Werror -Wno-array-compare -Wno-address"]) ++AC_SUBST([AM_CXXFLAGS], ["-g -O2 -fPIE -fPIC -fstack-protector -Wall -Wno-unused-function -Wno-cpp -Wno-missing-braces -Werror -Wno-array-compare -Wno-address"]) + + #Add flags for SDL signoff called SDL325 - Compile With Defenses Enabled + AC_SUBST([AM_CPPFLAGS], ["-D_FORTIFY_SOURCE=2"]) diff --git a/libyami.spec b/libyami.spec index 29dac26..c7cc249 100644 --- a/libyami.spec +++ b/libyami.spec @@ -1,11 +1,14 @@ Name: libyami Version: 1.3.2 -Release: 1 +Release: 2 Summary: Another Media Infrastructure License: ASL 2.0 and BSD URL: https://github.com/intel/libyami Source0: https://github.com/intel/libyami/archive/%{version}/%{name}-%{version}.tar.gz + Patch0000: libyami-libtool-macro.patch +Patch0001: Fix-compilation-failure-caused-by-gcc12.patch + BuildRequires: libtool gcc-c++ libva-devel pkgconfig(libdrm) pkgconfig(x11) %description Yami is the core building block of a media solution. It uses hardware acceleration to parses and decode video streams. @@ -47,6 +50,9 @@ autoreconf -vif %{_libdir}/pkgconfig/libyami.pc %changelog +* Sat Jul 15 2023 xu_ping <707078654@qq.com> - 1.3.2-2 +- Fix compilation failure caused by gcc upgrade to 12. + * Tue Jun 29 2021 lingsheng - 1.3.2-1 - Update to 1.3.2