From 9822bd83d0e7745abf10c530cfbc4047b50ccc2f Mon Sep 17 00:00:00 2001 From: James Antill Date: Thu, 26 May 2022 10:59:36 -0400 Subject: [PATCH] Auto sync2gitlab import of libva-2.5.0-2.el8.src.rpm --- .gitignore | 1 + EMPTY | 1 - libva-2.5.0-covscan.patch | 86 +++++++++++++ libva.spec | 261 ++++++++++++++++++++++++++++++++++++++ sources | 1 + 5 files changed, 349 insertions(+), 1 deletion(-) create mode 100644 .gitignore delete mode 100644 EMPTY create mode 100644 libva-2.5.0-covscan.patch create mode 100644 libva.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b433e15 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/libva-2.5.0.tar.gz diff --git a/EMPTY b/EMPTY deleted file mode 100644 index 0519ecb..0000000 --- a/EMPTY +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/libva-2.5.0-covscan.patch b/libva-2.5.0-covscan.patch new file mode 100644 index 0000000..0313293 --- /dev/null +++ b/libva-2.5.0-covscan.patch @@ -0,0 +1,86 @@ +diff --git a/va/glx/va_glx_impl.c b/va/glx/va_glx_impl.c +index 23ea270..fa44da2 100644 +--- a/va/glx/va_glx_impl.c ++++ b/va/glx/va_glx_impl.c +@@ -939,7 +939,7 @@ static VAStatus + vaDestroySurfaceGLX_impl_libva(VADriverContextP ctx, void *gl_surface) + { + VASurfaceGLXP pSurfaceGLX; +- struct OpenGLContextState old_cs, *new_cs; ++ struct OpenGLContextState old_cs = {0}, *new_cs; + + INIT_SURFACE(pSurfaceGLX, gl_surface); + +@@ -1072,7 +1072,7 @@ vaCopySurfaceGLX_impl_libva( + { + VASurfaceGLXP pSurfaceGLX; + VAStatus status; +- struct OpenGLContextState old_cs; ++ struct OpenGLContextState old_cs = {0}; + + INIT_SURFACE(pSurfaceGLX, gl_surface); + +diff --git a/va/va_trace.c b/va/va_trace.c +index d34fc40..7cd5ae5 100755 +--- a/va/va_trace.c ++++ b/va/va_trace.c +@@ -996,7 +996,7 @@ static void va_TraceSurface(VADisplay dpy, VAContextID context) + vaUnlockSurface(dpy, trace_ctx->trace_rendertarget); + return; + } +- va_TraceMsg(trace_ctx, "\tbuffer location = 0x%08x\n", buffer); ++ va_TraceMsg(trace_ctx, "\tbuffer location = 0x%p\n", buffer); + va_TraceMsg(trace_ctx, NULL); + + Y_data = (unsigned char*)buffer; +@@ -1668,7 +1668,7 @@ void va_TraceMapBuffer ( + va_TraceMsg(trace_ctx, "\t bit_offset = %u\n", buf_list->bit_offset); + va_TraceMsg(trace_ctx, "\t status = 0x%08x\n", buf_list->status); + va_TraceMsg(trace_ctx, "\t reserved = 0x%08x\n", buf_list->reserved); +- va_TraceMsg(trace_ctx, "\t buf = 0x%08x\n", buf_list->buf); ++ va_TraceMsg(trace_ctx, "\t buf = 0x%p\n", buf_list->buf); + + if (trace_ctx->trace_fp_codedbuf) { + va_TraceMsg(trace_ctx, "\tDump the content to file\n"); +@@ -1780,10 +1780,10 @@ static void va_TraceVAIQMatrixBufferMPEG2( + va_TraceMsg(trace_ctx,"\tload_non_intra_quantiser_matrix = %d\n", p->load_non_intra_quantiser_matrix); + va_TraceMsg(trace_ctx,"\tload_chroma_intra_quantiser_matrix = %d\n", p->load_chroma_intra_quantiser_matrix); + va_TraceMsg(trace_ctx,"\tload_chroma_non_intra_quantiser_matrix = %d\n", p->load_chroma_non_intra_quantiser_matrix); +- va_TraceMsg(trace_ctx,"\tintra_quantiser_matrix = %d\n", p->intra_quantiser_matrix); +- va_TraceMsg(trace_ctx,"\tnon_intra_quantiser_matrix = %d\n", p->non_intra_quantiser_matrix); +- va_TraceMsg(trace_ctx,"\tchroma_intra_quantiser_matrix = %d\n", p->chroma_intra_quantiser_matrix); +- va_TraceMsg(trace_ctx,"\tchroma_non_intra_quantiser_matrix = %d\n", p->chroma_non_intra_quantiser_matrix); ++ va_TraceMsg(trace_ctx,"\tintra_quantiser_matrix = %p\n", p->intra_quantiser_matrix); ++ va_TraceMsg(trace_ctx,"\tnon_intra_quantiser_matrix = %p\n", p->non_intra_quantiser_matrix); ++ va_TraceMsg(trace_ctx,"\tchroma_intra_quantiser_matrix = %p\n", p->chroma_intra_quantiser_matrix); ++ va_TraceMsg(trace_ctx,"\tchroma_non_intra_quantiser_matrix = %p\n", p->chroma_non_intra_quantiser_matrix); + va_TraceMsg(trace_ctx, NULL); + + return; +@@ -2054,7 +2054,7 @@ static void va_TraceVAEncSequenceParameterBufferMPEG2( + + va_TraceMsg(trace_ctx, "\tintra_period = %d\n", p->intra_period); + va_TraceMsg(trace_ctx, "\tbits_per_second = %d\n", p->bits_per_second); +- va_TraceMsg(trace_ctx, "\tframe_rate = %d\n", p->frame_rate); ++ va_TraceMsg(trace_ctx, "\tframe_rate = %f\n", p->frame_rate); + va_TraceMsg(trace_ctx, "\tvbv_buffer_size = %d\n", p->vbv_buffer_size); + va_TraceMsg(trace_ctx, NULL); + +@@ -5278,7 +5278,7 @@ void va_TracePutSurface ( + TRACE_FUNCNAME(idx); + + va_TraceMsg(trace_ctx, "\tsurface = 0x%08x\n", surface); +- va_TraceMsg(trace_ctx, "\tdraw = 0x%08x\n", draw); ++ va_TraceMsg(trace_ctx, "\tdraw = 0x%p\n", draw); + va_TraceMsg(trace_ctx, "\tsrcx = %d\n", srcx); + va_TraceMsg(trace_ctx, "\tsrcy = %d\n", srcy); + va_TraceMsg(trace_ctx, "\tsrcw = %d\n", srcw); +@@ -5287,7 +5287,7 @@ void va_TracePutSurface ( + va_TraceMsg(trace_ctx, "\tdesty = %d\n", desty); + va_TraceMsg(trace_ctx, "\tdestw = %d\n", destw); + va_TraceMsg(trace_ctx, "\tdesth = %d\n", desth); +- va_TraceMsg(trace_ctx, "\tcliprects = 0x%08x\n", cliprects); ++ va_TraceMsg(trace_ctx, "\tcliprects = 0x%p\n", cliprects); + va_TraceMsg(trace_ctx, "\tnumber_cliprects = %d\n", number_cliprects); + va_TraceMsg(trace_ctx, "\tflags = 0x%08x\n", flags); + va_TraceMsg(trace_ctx, NULL); diff --git a/libva.spec b/libva.spec new file mode 100644 index 0000000..53f6c77 --- /dev/null +++ b/libva.spec @@ -0,0 +1,261 @@ +Name: libva +Version: 2.5.0 +Release: 2%{?dist} +Summary: Video Acceleration (VA) API for Linux +License: MIT +URL: https://01.org/linuxmedia +Source0: https://github.com/01org/libva/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +Patch0: libva-2.5.0-covscan.patch + +BuildRequires: libtool + +BuildRequires: libudev-devel +BuildRequires: libXext-devel +BuildRequires: libXfixes-devel +BuildRequires: libdrm-devel +BuildRequires: libpciaccess-devel +BuildRequires: mesa-libEGL-devel +BuildRequires: mesa-libGL-devel +BuildRequires: mesa-libGLES-devel +%{!?_without_wayland: +BuildRequires: wayland-devel +BuildRequires: pkgconfig(wayland-client) >= 1 +BuildRequires: pkgconfig(wayland-scanner) >= 1 +} +# owns the %%{_libdir}/dri directory +Requires: mesa-dri-filesystem + +%description +Libva is a library providing the VA API video acceleration API. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{_isa} = %{version}-%{release} +Requires: pkgconfig + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + + +%prep +%autosetup -p1 +autoreconf -vif + +%build +%configure --disable-static \ + --enable-glx \ +%{?_without_wayland:--disable-wayland} + +# remove rpath from libtool +sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool +sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool + +%make_build V=1 + +%install +%make_install INSTALL="install -p" +find %{buildroot} -regex ".*\.la$" | xargs rm -f -- + +%ldconfig_scriptlets + +%files +%doc NEWS +%license COPYING +%ghost %{_sysconfdir}/libva.conf +%{_libdir}/libva*.so.* + +%files devel +%{_includedir}/va +%{_libdir}/libva*.so +%{_libdir}/pkgconfig/libva*.pc + +%changelog +* Sat Nov 30 2019 Jiri Kucera - 2.5.0-2 +- Fix issues found by static analysis + Related: #1728792 + +* Tue Nov 19 2019 Jiri Kucera - 2.5.0-1 +- Update to 2.5.0 + Resolves: #1728792 + +* Fri Jun 07 2019 Jiri Kucera - 2.4.1-1 +- Update to 2.4.1 + Resolves: #1493944 + +* Mon Feb 12 2018 Nicolas Chauvet - 2.1.0-1 +- Update to 2.1.0 + +* Wed Feb 07 2018 Fedora Release Engineering - 2.0.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Sat Feb 03 2018 Igor Gnatenko - 2.0.0-2 +- Switch to %%ldconfig_scriptlets + +* Tue Oct 24 2017 Nicolas Chauvet - 2.0.0-1 +- Update to 2.0.0 + +* Thu Aug 24 2017 Nicolas Chauvet - 1.8.3-4 +- Owns /etc/libva.conf and add NEWS in doc + +* Thu Aug 03 2017 Fedora Release Engineering - 1.8.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 1.8.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Wed Jul 12 2017 Nicolas Chauvet - 1.8.3-1 +- Update to 1.8.3 +- Remove dummy driver + +* Tue May 23 2017 Nicolas Chauvet - 1.8.2-1 +- Update to 1.8.2 + +* Mon Apr 10 2017 Nicolas Chauvet - 1.8.1-1 +- Update to 1.8.1 + +* Fri Mar 31 2017 Nicolas Chauvet - 1.8.0-1 +- Update to 1.8.0 +- Switch upstream URL to 01.org and github +- Split libva-utils into it's own package +- Clean-up groups + +* Wed Feb 15 2017 Hans de Goede - 1.7.3-3 +- Fix libva not working when using with libglvnd + wayland (rhbz#1422151) + +* Fri Feb 10 2017 Fedora Release Engineering - 1.7.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Nov 10 2016 Nicolas Chauvet - 1.7.3-1 +- Update to 1.7.3 + +* Mon Sep 05 2016 Nicolas Chauvet - 1.7.2-1 +- Update to 1.7.2 + +* Tue Jun 21 2016 Nicolas Chauvet - 1.7.1-1 +- Update to 1.7.1 + +* Sun Mar 20 2016 Nicolas Chauvet - 1.7.0-1 +- Update to 1.7.0 + +* Thu Feb 04 2016 Fedora Release Engineering - 1.6.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Tue Dec 15 2015 Nicolas Chauvet - 1.6.2-1 +- Update to 1.6.2 + +* Mon Sep 14 2015 Nicolas Chauvet - 1.6.1-1 +- Update to 1.6.1 + +* Mon Aug 03 2015 Nicolas Chauvet - 1.6.0-1 +- Update to 1.6.0 + +* Wed Jun 17 2015 Fedora Release Engineering - 1.5.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sun Apr 19 2015 Nicolas Chauvet - 1.5.1-1 +- Update to 1.5.1 + +* Sat Oct 25 2014 Nicolas Chauvet - 1.4.1-1 +- Update to 1.4.1 + +* Wed Oct 8 2014 Simon Farnsworth - 1.4.0-1 +- Update to 1.4.0 + +* Sun Aug 17 2014 Fedora Release Engineering - 1.3.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Fri Jun 20 2014 Elad Alfassa - 1.3.1-3 +- Apply upstream patch to fix a firefox crash (rhbz #1105890) + +* Sat Jun 07 2014 Fedora Release Engineering - 1.3.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Tue May 13 2014 Nicolas Chauvet - 1.3.1-1 +- Update to 1.3.1 + +* Tue Apr 08 2014 Nicolas Chauvet - 1.3.0-1 +- Update to 1.3.0 +- Enable wayland by default + +* Sat Aug 03 2013 Fedora Release Engineering - 1.2.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Jun 27 2013 Nicolas Chauvet - 1.2.1-1 +- Update to 1.2.1 +- Add mpeg2vaenc + +* Wed Jun 26 2013 Nicolas Chauvet - 1.2.0-1 +- Update to 1.2.0 +- Exclude mpeg2enc for now - namespace clash + +* Fri Apr 12 2013 Nicolas Chauvet - 1.1.1-2 +- Switch Requires to mesa-dri-filesystem + +* Wed Mar 20 2013 Nicolas Chauvet - 1.1.1-1 +- Update to 1.1.1 + +* Thu Feb 14 2013 Fedora Release Engineering - 1.1.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Tue Nov 20 2012 Nicolas Chauvet - 1.1.0-5 +- Drop wayland support - Lead to suspicious crash + to reintroduce later using alternates build for vainfo and libs. + +* Thu Nov 15 2012 Nicolas Chauvet - 1.1.0-4 +- Fix condition rhbz#877059 + +* Sat Oct 06 2012 Nicolas Chauvet - 1.1.0-3 +- Update to official 1.1.0 release +- Enable Wayland support on f18 - add subpackage +- Clean spec file + +* Thu Jul 19 2012 Fedora Release Engineering - 1.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jun 01 2012 Nicolas Chauvet - 1.1.0-1 +- Update to 1.1.0 - VA-API version 0.33.0 + +* Fri Jan 13 2012 Fedora Release Engineering - 1.0.15-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Thu Nov 03 2011 Nicolas Chauvet - 1.0.15-1 +- Update to 1.0.15 +- Back to vanilla upstream sources - no backend are provided anymore + +* Sun Aug 07 2011 Nicolas Chauvet - 1.0.14-1 +- Update to 1.0.14 + +* Fri Jun 10 2011 Nicolas Chauvet - 1.0.13-2 +- Add versioned requirement between main/utils + +* Wed Jun 08 2011 Nicolas Chauvet - 1.0.13-1 +- Update to 1.0.13 + +* Fri Apr 08 2011 Nicolas Chauvet - 1.0.12-1 +- Update to 1.0.12 + +* Mon Feb 21 2011 Nicolas Chauvet - 1.0.10-1 +- Update to 1.0.10 + +* Tue Jan 25 2011 Adam Williamson - 1.0.8-1 +- bump to new version +- fix modded tarball to actually not have i965 dir +- merge with the other spec I seem to have lying around somewhere + +* Wed Nov 24 2010 Adam Williamson - 1.0.6-1 +- switch to upstream from sds branch (sds now isn't carrying any very + interesting changes according to gwenole) +- pull in the dont-install-test-programs patch from sds +- split out libva-utils again for multilib purposes +- drop -devel package obsolete/provides itself too + +* Tue Nov 23 2010 Adam Williamson - 0.31.1-3.sds4 +- drop obsoletes and provides of itself (hangover from freeworld) + +* Tue Nov 23 2010 Adam Williamson - 0.31.1-2.sds4 +- fix the tarball to actually remove the i965 code (duh) + +* Thu Oct 7 2010 Adam Williamson - 0.31.1-1.sds4 +- initial package (based on package from elsewhere by myself and Nic + Chauvet with i965 driver removed) diff --git a/sources b/sources new file mode 100644 index 0000000..7e8554d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (libva-2.5.0.tar.gz) = ce810faa216fc9b3f466565b598018b20b8590692ec6b88874d2920bce8c5e875e429957e370ebba95aa2375f80c1c0f0d68cb6eb2276494c74b9da2a5547f96