Update to git snapshot to fix CVEs listed below

- CVE-2013-2063
This commit is contained in:
Peter Hutterer 2013-05-24 14:59:00 +10:00
parent dc340bb8db
commit 5d2cb927dc
5 changed files with 38 additions and 5 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
libXtst-1.0.99.2.tar.bz2
/libXtst-1.2.0.tar.bz2
/libXtst-1.2.1.tar.bz2
/libXtst-20130524.tar.bz2

1
commitid Normal file
View File

@ -0,0 +1 @@
e7e04b7be3f018ad636aba3a36bfc1cd80b9906d

View File

@ -1,12 +1,22 @@
%global tarball libXtst
%global gitdate 20130524
%global gitversion e7e04b7be
Summary: X.Org X11 libXtst runtime library
Name: libXtst
Version: 1.2.1
Release: 5%{?dist}
Release: 6%{?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
@ -29,7 +39,7 @@ Requires: libXi-devel%{?_isa}
X.Org X11 libXtst development package
%prep
%setup -q
%setup -q -n %{tarball}-%{?gitdate:%{gitdate}}%{!?gitdate:%{version}}
%build
autoreconf -v --install --force
@ -55,7 +65,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc COPYING ChangeLog
%doc COPYING
%{_libdir}/libXtst.so.6
%{_libdir}/libXtst.so.6.1.0
@ -68,6 +78,10 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man3/XTest*.3*
%changelog
* Fri May 24 2013 Peter Hutterer <peter.hutterer@redhat.com> 1.2.1-6.20130524gite7e04b7be
- Update to git snapshot to fix CVEs listed below
- CVE-2013-2063
* Thu Mar 07 2013 Peter Hutterer <peter.hutterer@redhat.com> - 1.2.1-5
- autoreconf for aarch64

17
make-git-snapshot.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/sh
DIRNAME=libXtst-$( date +%Y%m%d )
rm -rf $DIRNAME
git clone git://git.freedesktop.org/git/xorg/lib/libXtst $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

View File

@ -1 +1 @@
e8abc5c00c666f551cf26aa53819d592 libXtst-1.2.1.tar.bz2
33cad0a16e84643dfdbf7cb426110b22 libXtst-20130524.tar.bz2