[libXvMC] Update to latest git to fix the following CVEs

Peter Hutterer whot at fedoraproject.org
Fri May 24 04:07:26 UTC 2013


commit 3525c4458a1a70c4da7b096b837cccc65537e0e2
Author: Peter Hutterer <peter.hutterer at who-t.net>
Date:   Fri May 24 13:59:45 2013 +1000

    Update to latest git to fix the following CVEs
    
    - CVE-2013-1999

 .gitignore           |    1 +
 commitid             |    1 +
 libXvMC.spec         |   22 ++++++++++++++++++----
 make-git-snapshot.sh |   17 +++++++++++++++++
 sources              |    2 +-
 5 files changed, 38 insertions(+), 5 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 5955df7..0b89512 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 libXvMC-1.0.5.tar.bz2
 libXvMC-1.0.6.tar.bz2
 /libXvMC-1.0.7.tar.bz2
+/libXvMC-20130524.tar.bz2
diff --git a/commitid b/commitid
new file mode 100644
index 0000000..9d11c56
--- /dev/null
+++ b/commitid
@@ -0,0 +1 @@
+e9415ddef2ac81d4139bd32d5e9cda9394a60051
diff --git a/libXvMC.spec b/libXvMC.spec
index efe440c..f8a4add 100644
--- a/libXvMC.spec
+++ b/libXvMC.spec
@@ -1,12 +1,22 @@
+%global tarball libXvMC
+%global gitdate 20130524
+%global gitversion e9415ddef
+
 Summary: X.Org X11 libXvMC runtime library
 Name: libXvMC
 Version: 1.0.7
-Release: 4%{?dist}
+Release: 5%{?gitdate:.%{gitdate}git%{gitversion}}%{?dist}
 License: MIT
 Group: System Environment/Libraries
 URL: http://www.x.org
 
-Source0: ftp://ftp.x.org/pub/individual/lib/%{name}-%{version}.tar.bz2
+%if 0%{?gitdate}
+Source0:    %{tarball}-%{gitdate}.tar.bz2
+Source1:    make-git-snapshot.sh
+Source2:    commitid
+%else
+Source0: http://xorg.freedesktop.org/archive/individual/lib/%{name}-%{version}.tar.bz2
+%endif
 
 BuildRequires: xorg-x11-util-macros
 BuildRequires: autoconf automake libtool
@@ -24,7 +34,7 @@ Requires: %{name} = %{version}-%{release}
 X.Org X11 libXvMC development package
 
 %prep
-%setup -q
+%setup -q -n %{tarball}-%{?gitdate:%{gitdate}}%{!?gitdate:%{version}}
 
 %build
 autoreconf -v --install --force
@@ -50,7 +60,7 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
 
 %files
 %defattr(-,root,root,-)
-%doc COPYING README ChangeLog
+%doc COPYING README 
 %{_libdir}/libXvMC.so.1
 %{_libdir}/libXvMC.so.1.0.0
 %{_libdir}/libXvMCW.so.1
@@ -66,6 +76,10 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
 %{_libdir}/pkgconfig/xvmc.pc
 
 %changelog
+* Fri May 24 2013 Peter Hutterer <peter.hutterer at redhat.com> 1.0.7-5.20130524gite9415ddef
+- Update to latest git to fix the following CVEs
+- CVE-2013-1999
+
 * Thu Mar 07 2013 Peter Hutterer <peter.hutterer at redhat.com> - 1.0.7-4
 - autoreconf for aarch64
 
diff --git a/make-git-snapshot.sh b/make-git-snapshot.sh
new file mode 100755
index 0000000..2a86575
--- /dev/null
+++ b/make-git-snapshot.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+DIRNAME=libXvMC-$( date +%Y%m%d )
+
+rm -rf $DIRNAME
+git clone git://git.freedesktop.org/git/xorg/lib/libXvMC $DIRNAME
+cd $DIRNAME
+if [ -z "$1" ]; then
+    git log | head -1
+else
+    git checkout $1
+fi
+git log | head -1 | awk '{ print $2 }' > ../commitid
+git repack -a -d
+cd ..
+tar jcf $DIRNAME.tar.bz2 $DIRNAME
+rm -rf $DIRNAME
diff --git a/sources b/sources
index 5798f6a..0448aef 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-3340c99ff556ea2457b4be47f5cb96fa  libXvMC-1.0.7.tar.bz2
+bf253f419e79a43e197aa0c53f13efcd  libXvMC-20130524.tar.bz2


More information about the scm-commits mailing list