]> git.pld-linux.org Git - packages/xorg-lib-libXgesture.git/commitdiff
- added dead-invalid-code,includes patches master
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 28 Aug 2020 19:25:36 +0000 (21:25 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Fri, 28 Aug 2020 19:25:36 +0000 (21:25 +0200)
- drop .la file
- release 2

xorg-lib-libXgesture-dead-invalid-code.patch [new file with mode: 0644]
xorg-lib-libXgesture-includes.patch [new file with mode: 0644]
xorg-lib-libXgesture.spec

diff --git a/xorg-lib-libXgesture-dead-invalid-code.patch b/xorg-lib-libXgesture-dead-invalid-code.patch
new file mode 100644 (file)
index 0000000..ab9ec62
--- /dev/null
@@ -0,0 +1,18 @@
+GetVersionInfo() is not defined.
+However, find_display_create_optional is always called with create=False.
+
+--- libXgesture-0.1.1/src/gesture.c.orig       2013-05-07 03:10:03.000000000 +0200
++++ libXgesture-0.1.1/src/gesture.c    2020-08-28 17:50:35.806416204 +0200
+@@ -106,11 +106,7 @@
+     }
+     if (!(dpyinfo = XextFindDisplay (gesture_info, dpy)) && create) {
+-        dpyinfo = XextAddDisplay(gesture_info, dpy,
+-                                 GESTURE_EXT_NAME,
+-                                 &gesture_extension_hooks,
+-                                 GestureNumberErrors,
+-                                 (XPointer)GetVersionInfo(dpy));
++        return NULL; // never called
+     }
+     return dpyinfo;
diff --git a/xorg-lib-libXgesture-includes.patch b/xorg-lib-libXgesture-includes.patch
new file mode 100644 (file)
index 0000000..f6f8b0f
--- /dev/null
@@ -0,0 +1,12 @@
+--- libXgesture-0.1.1/src/gesture.c.orig       2020-08-28 17:52:03.599273923 +0200
++++ libXgesture-0.1.1/src/gesture.c    2020-08-28 17:53:05.705604131 +0200
+@@ -39,8 +39,8 @@
+ #include <X11/extensions/gesture.h>
+ #include <X11/extensions/gestureproto.h>
+-#ifdef __XGESTURE_LIB_DEBUG__
+ #include <stdio.h>
++#ifdef __XGESTURE_LIB_DEBUG__
+ #define TRACE(msg)  fprintf(stderr, "[X11][GestureExt] %s\n", msg);
+ #else
+ #define TRACE(msg)
index 2e40c451cc26c4d039c1dc35e76230e6dfce2ecb..438eefed708a898991ac98e8228bdac0c7bb3626 100644 (file)
@@ -2,12 +2,14 @@ Summary:      Xgesture extension library
 Summary(pl.UTF-8):     Biblioteka rozszerzenia Xgesture
 Name:          xorg-lib-libXgesture
 Version:       0.1.1
-Release:       1
+Release:       2
 License:       MIT
 Group:         X11/Libraries
 Source0:       http://download.tizen.org/releases/2.2.1/latest/repos/tizen-main/source/libXgesture-%{version}-3.3.src.rpm
 # Source0-md5: 95e27d4041313b8a24746c5655282b39
-URL:           http://xorg.freedesktop.org/
+Patch0:                %{name}-dead-invalid-code.patch
+Patch1:                %{name}-includes.patch
+URL:           https://xorg.freedesktop.org/
 BuildRequires: autoconf >= 2.60
 BuildRequires: automake
 BuildRequires: libtool
@@ -68,6 +70,8 @@ Pakiet zawiera statycznÄ… bibliotekÄ™ libXgesture.
 %setup -q -c -T -n libXgesture-%{version}
 rpm2cpio %{SOURCE0} | cpio -i libXgesture-%{version}.tar.gz
 tar xf libXgesture-%{version}.tar.gz -C ..
+%patch0 -p1
+%patch1 -p1
 
 %build
 %{__libtoolize}
@@ -84,6 +88,8 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libXgesture.la
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -99,7 +105,6 @@ rm -rf $RPM_BUILD_ROOT
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libXgesture.so
-%{_libdir}/libXgesture.la
 %{_includedir}/X11/extensions/gesture.h
 %{_pkgconfigdir}/xgesture.pc
 
This page took 0.103069 seconds and 4 git commands to generate.