- libxcb-1.1-sloppy-lock.patch: Turn sloppy locking on all the time. I'm

tired of fighting it. (#390261)
This commit is contained in:
Adam Jackson 2008-04-22 15:59:39 +00:00
parent 9a8aa9536d
commit 34f608af10
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -up libxcb-1.1/src/xcb_conn.c.jx libxcb-1.1/src/xcb_conn.c
--- libxcb-1.1/src/xcb_conn.c.jx 2007-10-28 16:11:18.000000000 -0400
+++ libxcb-1.1/src/xcb_conn.c 2008-04-22 11:58:05.000000000 -0400
@@ -63,7 +63,7 @@ static int _xcb_xlib_init(_xcb_xlib *xli
{
xlib->lock = 0;
#ifndef NDEBUG
- xlib->sloppy_lock = (getenv("LIBXCB_ALLOW_SLOPPY_LOCK") != 0);
+ xlib->sloppy_lock = 1;
#endif
pthread_cond_init(&xlib->cond, 0);
return 1;

View File

@ -1,6 +1,6 @@
Name: libxcb
Version: 1.1
Release: 2%{?dist}
Release: 3%{?dist}
Summary: A C binding to the X11 protocol
Group: System Environment/Libraries
@ -11,6 +11,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Patch0: libxcb-1.1-no-pthread-stubs.patch
Patch1: libxcb-1.1-abstract-socket.patch
Patch2: libxcb-1.1-sloppy-lock.patch
BuildRequires: autoconf automake libtool pkgconfig
BuildRequires: doxygen
@ -47,6 +48,7 @@ The %{name}-doc package contains documentation for the %{name} library.
%setup -q
%patch0 -p1 -b .pthread-stubs
%patch1 -p1 -b .abstract
%patch2 -p1 -b .sloppier
%build
autoreconf -v --install
@ -80,6 +82,10 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/doc/%{name}-%{version}
%changelog
* Tue Apr 22 2008 Adam Jackson <ajax@redhat.com> 1.1-3
- libxcb-1.1-sloppy-lock.patch: Turn sloppy locking on all the time. I'm
tired of fighting it. (#390261)
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.1-2
- Autorebuild for GCC 4.3