Gentoo Archives: gentoo-commits

From: Johannes Huber <johu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: kde-base/analitza/, kde-base/analitza/files/
Date: Sat, 30 Nov 2013 20:34:04
Message-Id: 1385839919.93bd53c9b09aa8ca7ce323c16f99ddfc4a831b0c.johu@gentoo
1 commit: 93bd53c9b09aa8ca7ce323c16f99ddfc4a831b0c
2 Author: Johannes Huber <johu <AT> gentoo <DOT> org>
3 AuthorDate: Sat Nov 30 19:31:59 2013 +0000
4 Commit: Johannes Huber <johu <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 30 19:31:59 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=93bd53c9
7
8 [kde-base/analitza] Add upstream patch to fix compile on arm spotted by Michael Palimaka <kensington <AT> gentoo.org>, bug #492940.
9
10 Package-Manager: portage-2.2.7
11
12 ---
13 kde-base/analitza/analitza-4.11.49.9999.ebuild | 2 +
14 kde-base/analitza/files/analitza-4.11.3-arm.patch | 64 +++++++++++++++++++++++
15 2 files changed, 66 insertions(+)
16
17 diff --git a/kde-base/analitza/analitza-4.11.49.9999.ebuild b/kde-base/analitza/analitza-4.11.49.9999.ebuild
18 index 0dffdd1..3c555ba 100644
19 --- a/kde-base/analitza/analitza-4.11.49.9999.ebuild
20 +++ b/kde-base/analitza/analitza-4.11.49.9999.ebuild
21 @@ -18,6 +18,8 @@ DEPEND="
22 "
23 RDEPEND="${DEPEND}"
24
25 +PATCHES=( "${FILESDIR}/${PN}-4.11.3-arm.patch" )
26 +
27 src_configure() {
28 local mycmakeargs=(
29 $(cmake-utils_use_with opengl OpenGL)
30
31 diff --git a/kde-base/analitza/files/analitza-4.11.3-arm.patch b/kde-base/analitza/files/analitza-4.11.3-arm.patch
32 new file mode 100644
33 index 0000000..9180f04
34 --- /dev/null
35 +++ b/kde-base/analitza/files/analitza-4.11.3-arm.patch
36 @@ -0,0 +1,64 @@
37 +commit 07dc31770db7a7d2e5273db0c2b32578a7e13c4e
38 +Author: Maximiliano Curia <maxy@××××××.org>
39 +Date: Wed Oct 30 23:53:19 2013 +0100
40 +
41 + Fix compile in armhf
42 +
43 + Acked by Aleix
44 + REVIEW: 111121
45 + BUGS: 321244
46 +
47 +diff --git a/analitzaplot/plotter3d.cpp b/analitzaplot/plotter3d.cpp
48 +index accac1a..476b31a 100644
49 +--- a/analitzaplot/plotter3d.cpp
50 ++++ b/analitzaplot/plotter3d.cpp
51 +@@ -143,6 +143,10 @@ void Plotter3D::setViewport(const QRectF& vp)
52 + renderGL();
53 + }
54 +
55 ++// add overloaded functions which call the underlying OpenGL function
56 ++inline void glMultMatrix(const GLfloat *m) { glMultMatrixf(m); }
57 ++inline void glMultMatrix(const GLdouble *m) { glMultMatrixd(m); }
58 ++
59 + void Plotter3D::drawPlots()
60 + {
61 + glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
62 +@@ -153,7 +157,7 @@ void Plotter3D::drawPlots()
63 +
64 + glMatrixMode(GL_MODELVIEW);
65 + glLoadIdentity();
66 +- glMultMatrixd(m_rot.data());
67 ++ glMultMatrix(m_rot.constData());
68 +
69 + // Object Drawing :
70 + glCallList(m_sceneObjects.value(Axes));
71 +@@ -398,6 +402,14 @@ void Plotter3D::scale(GLdouble factor)
72 + renderGL();
73 + }
74 +
75 ++inline QMatrix4x4 get_matrix(GLfloat *m)
76 ++{
77 ++ return QMatrix4x4(m[0], m[1], m[2], m[3],
78 ++ m[4], m[5], m[6], m[7],
79 ++ m[8], m[9], m[10], m[11],
80 ++ m[12], m[13], m[14], m[15]);
81 ++}
82 ++
83 + void Plotter3D::rotate(int dx, int dy)
84 + {
85 + GLdouble ax = -dy;
86 +@@ -412,11 +424,11 @@ void Plotter3D::rotate(int dx, int dy)
87 + m_rot.rotate(angle, m_rotFixed.normalized());
88 + renderGL();
89 + } else {
90 +- GLdouble matrix[16] = {0}; // model view matrix from current OpenGL state
91 ++ GLfloat matrix[16] = {0}; // model view matrix from current OpenGL state
92 +
93 +- glGetDoublev(GL_MODELVIEW_MATRIX, matrix);
94 ++ glGetFloatv(GL_MODELVIEW_MATRIX, matrix);
95 +
96 +- QMatrix4x4 matrix4(matrix);
97 ++ QMatrix4x4 matrix4(get_matrix(matrix));
98 + bool couldInvert;
99 + matrix4 = matrix4.inverted(&couldInvert);
100 +