From ceb52b6d8763662c2dc7360b7c7804309f7fee02 Mon Sep 17 00:00:00 2001 From: Juergen Buchmueller Date: Tue, 4 Oct 2016 11:00:17 +0200 Subject: [PATCH] frame: fix gcc6 (musl) build --- .../patches/fix-gcc6-uninitialized.patch | 23 +++++++++++++++++++ srcpkgs/frame/template | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/frame/patches/fix-gcc6-uninitialized.patch diff --git a/srcpkgs/frame/patches/fix-gcc6-uninitialized.patch b/srcpkgs/frame/patches/fix-gcc6-uninitialized.patch new file mode 100644 index 00000000000..fa16612a142 --- /dev/null +++ b/srcpkgs/frame/patches/fix-gcc6-uninitialized.patch @@ -0,0 +1,23 @@ +Initialize variables which gcc6 for musl libc complains +may be unitialized when returned. + +--- src/touch.cpp 2013-02-08 20:05:24.000000000 +0100 ++++ src/touch.cpp 2016-10-04 10:57:05.683000000 +0200 +@@ -195,7 +195,7 @@ + } + + float frame_touch_get_device_x(UFTouch touch) { +- float x; ++ float x = 0.0f; + const oif::frame::UFTouch* uftouch = + static_cast(touch); + UFStatus status = uftouch->GetValue(UFAxisTypeX, &x); +@@ -204,7 +204,7 @@ + } + + float frame_touch_get_device_y(UFTouch touch) { +- float y; ++ float y = 0.0f; + const oif::frame::UFTouch* uftouch = + static_cast(touch); + UFStatus status = uftouch->GetValue(UFAxisTypeY, &y); diff --git a/srcpkgs/frame/template b/srcpkgs/frame/template index 17422719cee..0b209f9c420 100644 --- a/srcpkgs/frame/template +++ b/srcpkgs/frame/template @@ -7,7 +7,7 @@ short_desc="Touch Frame Library" maintainer="Enno Boland " makedepends="libXi-devel xorg-server-devel" hostmakedepends="pkg-config" -license="LGPL" +license="LGPL-2.1" homepage="https://launchpad.net/frame" distfiles="https://launchpad.net/${pkgname}/trunk/v${version}/+download/${pkgname}-${version}.tar.gz" checksum=cfb9ab52cdccd926f1822a457264d0014c7eb9f4600a72626063dd073b26256f