Update to git snapshot to fix CVEs listed below

- CVE-2013-1982
This commit is contained in:
Peter Hutterer 2013-05-24 13:27:52 +10:00
parent 720b8c3a7c
commit 704ab7169f
5 changed files with 37 additions and 4 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@ libXext-1.1.2.tar.bz2
/libXext-1.2.0.tar.bz2
/libXext-1.3.0.tar.bz2
/libXext-1.3.1.tar.bz2
/libXext-20130524.tar.bz2

1
commitid Normal file
View File

@ -0,0 +1 @@
dfe6e1f3b8ede3d0bab7a5fa57f73513a09ec649

View File

@ -1,12 +1,22 @@
%global tarball libXext
%global gitdate 20130524
%global gitversion dfe6e1f3b
Summary: X.Org X11 libXext runtime library
Name: libXext
Version: 1.3.1
Release: 4%{?dist}
Release: 3%{?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: autoconf automake libtool
BuildRequires: xorg-x11-proto-devel >= 7.4-23
@ -28,7 +38,7 @@ Requires: %{name} = %{version}-%{release}
X.Org X11 libXext development package
%prep
%setup -q
%setup -q -n %{tarball}-%{?gitdate:%{gitdate}}%{!?gitdate:%{version}}
%build
autoreconf -v --install --force
@ -82,6 +92,10 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man3/*.3*
%changelog
* Fri May 24 2013 Peter Hutterer <peter.hutterer@redhat.com> 1.3.1-3.20130524gitdfe6e1f3b
- Update to git snapshot to fix CVEs listed below
- CVE-2013-1982
* Thu Mar 07 2013 Peter Hutterer <peter.hutterer@redhat.com> - 1.3.1-4
- autoreconf for aarch64

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

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