[arch-commits] Commit in libreoffice-fresh/trunk (3 files)

Andreas Radke andyrtr at archlinux.org
Sun Mar 6 13:16:25 UTC 2016


    Date: Sunday, March 6, 2016 @ 14:16:25
  Author: andyrtr
Revision: 261107

upgpkg: libreoffice-fresh 5.1.0-2

fix touchpad two finger scrolling - FS#48161; use system libcmis

Added:
  libreoffice-fresh/trunk/buildfix.diff
  libreoffice-fresh/trunk/trackpad_two_finger_scroll_goes_into_reverse.diff
Modified:
  libreoffice-fresh/trunk/PKGBUILD

---------------------------------------------------+
 PKGBUILD                                          |   19 ++++-
 buildfix.diff                                     |   67 ++++++++++++++++++++
 trackpad_two_finger_scroll_goes_into_reverse.diff |   34 ++++++++++
 3 files changed, 116 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-03-06 13:04:17 UTC (rev 261106)
+++ PKGBUILD	2016-03-06 13:16:25 UTC (rev 261107)
@@ -6,7 +6,7 @@
 pkgname=('libreoffice-fresh-sdk' 'libreoffice-fresh')
 _LOver=5.1.0.3
 pkgver=5.1.0
-pkgrel=1
+pkgrel=2
 arch=('i686' 'x86_64')
 license=('LGPL3')
 url="http://www.libreoffice.org/"
@@ -58,7 +58,9 @@
 	${_additional_source_url}/libfreehand-0.1.1.tar.bz2
 	${_additional_source_url2}/185d60944ea767075d27247c3162b3bc-unowinreg.dll
 	make-pyuno-work-with-system-wide-module-install.diff
-	libreoffice-fresh.sh libreoffice-fresh.csh)
+	libreoffice-fresh.sh libreoffice-fresh.csh
+	trackpad_two_finger_scroll_goes_into_reverse.diff
+	buildfix.diff)
 noextract=(boost_1_59_0.tar.bz2
 	1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz
 	35c94d2df8893241173de1d16b6034c0-swingExSrc.zip
@@ -124,7 +126,9 @@
          '185d60944ea767075d27247c3162b3bc'
          'dcb5ad3e5f7139227677ea064b075422'
          '4195735a80876ae812fca5736b50192a'
-         'e7e4b3e70e99e5cba8f8dfcacf3b0d87')
+         'e7e4b3e70e99e5cba8f8dfcacf3b0d87'
+         '265b68b894c5a30eb66c25e7c08c87b6'
+         '97dac0a03bbcaa4ee29f262dbcb4b427')
 
 prepare() {
 
@@ -144,6 +148,12 @@
 
 	# fix not upstreamable pyuno paths - patch taken from Debian
 	patch -Np1 -i ${srcdir}/make-pyuno-work-with-system-wide-module-install.diff
+	
+	# FS#48161, FS#48406
+	# https://cgit.freedesktop.org/libreoffice/core/commit/?h=libreoffice-5-1&id=b083afac2f0531bacd790cb3ac25353f9a02db5d
+	patch -Np1 -i ${srcdir}/trackpad_two_finger_scroll_goes_into_reverse.diff
+	# https://gerrit.libreoffice.org/#/c/22695/
+	patch -Np1 -i ${srcdir}/buildfix.diff
 
 	#use the CFLAGS but remove the LibO overridden ones
 	for i in $CFLAGS; do
@@ -160,8 +170,9 @@
 	# qt4 fix
 	sed -i "s:qmake:qmake-qt4:g" configure.ac
 	
-	# mdds 1.0.0 fix
+	# mdds 1.0.0/liborcus 0.11.0 fix
 	sed -i "s:mdds >= 0.12.0:mdds-1.0 >= 0.12.0:g" configure.ac
+#	sed -i "s:liborcus-0.10:liborcus-0.11:g" configure.ac
 }
 
 build() {

Added: buildfix.diff
===================================================================
--- buildfix.diff	                        (rev 0)
+++ buildfix.diff	2016-03-06 13:16:25 UTC (rev 261107)
@@ -0,0 +1,67 @@
+From 36ae1972ff64c80dc053680c82032904f7bbdcb8 Mon Sep 17 00:00:00 2001
+From: Fabio Buso <dev.siroibaf at gmail.com>
+Date: Thu, 25 Feb 2016 09:45:03 +0100
+Subject: Use rtl::math::isNan()
+
+isnan() not found causes compilation error
+System: Archlinux (Kernel Version 4.4) - GCC 5.3.0
+
+Change-Id: Id0bb4555428896678437e8abf228f1c208f1e7a0
+Reviewed-on: https://gerrit.libreoffice.org/22695
+Reviewed-by: Tor Lillqvist <tml at collabora.com>
+Tested-by: Tor Lillqvist <tml at collabora.com>
+
+diff --git a/svx/source/items/e3ditem.cxx b/svx/source/items/e3ditem.cxx
+index 9e623dc..9604bce 100644
+--- a/svx/source/items/e3ditem.cxx
++++ b/svx/source/items/e3ditem.cxx
+@@ -19,6 +19,7 @@
+ 
+ #include <com/sun/star/drawing/Direction3D.hpp>
+ #include <tools/stream.hxx>
++#include <rtl/math.hxx>
+ 
+ #include <svx/e3ditem.hxx>
+ 
+@@ -87,7 +88,7 @@ SvStream& SvxB3DVectorItem::Store(SvStream &rStream, sal_uInt16 /*nItemVersion*/
+ 
+ bool SvxB3DVectorItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/ ) const
+ {
+-    assert(!isnan(aVal.getX()) && !isnan(aVal.getY()) && !isnan(aVal.getZ()));
++    assert(!rtl::math::isNan(aVal.getX()) && !rtl::math::isNan(aVal.getY()) && !rtl::math::isNan(aVal.getZ()));
+ 
+     drawing::Direction3D aDirection;
+ 
+@@ -111,7 +112,7 @@ bool SvxB3DVectorItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/ )
+     aVal.setY(aDirection.DirectionY);
+     aVal.setZ(aDirection.DirectionZ);
+ 
+-    assert(!isnan(aVal.getX()) && !isnan(aVal.getY()) && !isnan(aVal.getZ()));
++    assert(!rtl::math::isNan(aVal.getX()) && !rtl::math::isNan(aVal.getY()) && !rtl::math::isNan(aVal.getZ()));
+ 
+     return true;
+ }
+diff --git a/xmloff/source/draw/ximp3dscene.cxx b/xmloff/source/draw/ximp3dscene.cxx
+index 5cf205f..69fb32a 100644
+--- a/xmloff/source/draw/ximp3dscene.cxx
++++ b/xmloff/source/draw/ximp3dscene.cxx
+@@ -18,6 +18,7 @@
+  */
+ 
+ #include <sax/tools/converter.hxx>
++#include <rtl/math.hxx>
+ 
+ #include "ximp3dscene.hxx"
+ #include <xmloff/xmluconv.hxx>
+@@ -66,7 +67,7 @@ SdXML3DLightContext::SdXML3DLightContext(
+             {
+                 ::basegfx::B3DVector aVal;
+                 SvXMLUnitConverter::convertB3DVector(aVal, sValue);
+-                if (!isnan(aVal.getX()) && !isnan(aVal.getY()) && !isnan(aVal.getZ()))
++                if (!rtl::math::isNan(aVal.getX()) && !rtl::math::isNan(aVal.getY()) && !rtl::math::isNan(aVal.getZ()))
+                 {
+                     maDirection = aVal;
+                 }
+-- 
+cgit v0.10.2
+

Added: trackpad_two_finger_scroll_goes_into_reverse.diff
===================================================================
--- trackpad_two_finger_scroll_goes_into_reverse.diff	                        (rev 0)
+++ trackpad_two_finger_scroll_goes_into_reverse.diff	2016-03-06 13:16:25 UTC (rev 261107)
@@ -0,0 +1,34 @@
+From b083afac2f0531bacd790cb3ac25353f9a02db5d Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm at redhat.com>
+Date: Wed, 27 Jan 2016 16:20:35 +0000
+Subject: Resolves: rhbz#1294208 trackpad two finger scroll goes into reverse
+
+(cherry picked from commit e734c7f53cfffa6141e6b46c06825ee273e2136b)
+
+Change-Id: Ic576f14cae82781a93e52972513a28c4a141d1a2
+
+diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx
+index af284ca..3914de5 100644
+--- a/vcl/unx/gtk3/gtk3gtkframe.cxx
++++ b/vcl/unx/gtk3/gtk3gtkframe.cxx
+@@ -2557,14 +2557,12 @@ gboolean GtkSalFrame::signalScroll( GtkWidget*, GdkEvent* pEvent, gpointer frame
+     {
+         case GDK_SCROLL_SMOOTH:
+         {
+-            double delta_x, delta_y;
+-            gdk_event_get_scroll_deltas(pEvent, &delta_x, &delta_y);
+             //pick the bigger one I guess
+-            aEvent.mbHorz = fabs(delta_x) > fabs(delta_y);
++            aEvent.mbHorz = fabs(pSEvent->delta_x) > fabs(pSEvent->delta_y);
+             if (aEvent.mbHorz)
+-                aEvent.mnDelta = -delta_x;
++                aEvent.mnDelta = -pSEvent->delta_x * 40;
+             else
+-                aEvent.mnDelta = -delta_y;
++                aEvent.mnDelta = -pSEvent->delta_y * 40;
+             aEvent.mnScrollLines = 1;
+             pThis->m_nLastScrollEventTime = pSEvent->time;
+             break;
+-- 
+cgit v0.10.2
+



More information about the arch-commits mailing list