Package: x42-plugins
Version: 20170428-1
Severity: important
Tags: patch
User: debian-gl...@lists.debian.org
Usertags: 2.27

x42-plugins 20170428-1 fails to build with glibc 2.27 (2.27-0experimental0 from
experimental):

| g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security -g -fvisibility=hidden -fomit-frame-pointer -O3 
-fno-finite-math-only -DNDEBUG -DXTERNAL_UI -DHAVE_LV2_1_8 -fPIC 
-fvisibility=hidden `pkg-config --cflags lv2` -DVERSION="\"0.9.4\"" -I. 
`pkg-config --cflags glu` -pthread -DHAVE_IDLE_IFACE `pkg-config --cflags cairo 
pango`  -DUSE_GUI_THREAD \
|   -DUINQHACK="1518036117100524" \
|   -DPLUGIN_SOURCE="\"gui/phasewheel.c\"" \
|   -DRTK_DESCRIPTOR="lv2ui_phasewheel" \
|   -o obj/phasewheelUI_gl.o ../robtk/ui_gl.c
| In file included from ../robtk/ui_gl.c:298:0:
| ./gui/phasewheel.c: In function 'bool cb_set_gain(RobWidget*, void*)':
| ./gui/phasewheel.c:815:23: error: 'pow10f' was not declared in this scope
|   const float thresh = pow10f(.05 * (MIN_CUTOFF - val));
|                        ^~~~~~
| ./gui/phasewheel.c:815:23: note: suggested alternative: 'powf'
|   const float thresh = pow10f(.05 * (MIN_CUTOFF - val));
|                        ^~~~~~
|                        powf
| ../robtk/robtk.mk:69: recipe for target 'obj/phasewheelUI_gl.o' failed
| make[3]: *** [obj/phasewheelUI_gl.o] Error 1
| make[3]: Leaving directory '/<<PKGBUILDDIR>>/meters.lv2'
| Makefile:17: recipe for target 'meters.lv2' failed
| make[2]: *** [meters.lv2] Error 2
| make[2]: Leaving directory '/<<PKGBUILDDIR>>'
| debian/rules:20: recipe for target 'override_dh_auto_build' failed
| make[1]: *** [override_dh_auto_build] Error 2
| make[1]: Leaving directory '/<<PKGBUILDDIR>>'
| debian/rules:10: recipe for target 'build-arch' failed
| make: *** [build-arch] Error 2
| dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit 
status 2

A full build logs is available there:
http://aws-logs.debian.net/2018/02/07/glibc-exp/x42-plugins_20170428-1_unstable_glibc-exp.log

Starting with glibc 2.27, the libm function pow10f is no longer
supported. The standard exp10f (from TS 18661-4:2015) should be used
instead. The attached patch fixes that.
diff -Nru x42-plugins-20170428/debian/patches/pow10f.patch
--- x42-plugins-20170428/debian/patches/pow10f.patch
+++ x42-plugins-20170428/debian/patches/pow10f.patch
@@ -0,0 +1,15 @@
+Description: Replace deprecated pow10f by exp10f.
+Author: Aurelien Jarno <aure...@debian.org>
+Forwarded: no
+
+--- x42-plugins-20170428.orig/meters.lv2/gui/phasewheel.c
++++ x42-plugins-20170428/meters.lv2/gui/phasewheel.c
+@@ -812,7 +812,7 @@ static bool cb_set_gain (RobWidget* hand
+               queue_draw(ui->m2);
+       }
+ #ifdef __USE_GNU
+-      const float thresh = pow10f(.05 * (MIN_CUTOFF - val));
++      const float thresh = exp10f(.05 * (MIN_CUTOFF - val));
+ #else
+       const float thresh = powf(10, .05 * (MIN_CUTOFF - val));
+ #endif
diff -Nru x42-plugins-20170428/debian/patches/series 
x42-plugins-20170428/debian/patches/series
--- x42-plugins-20170428/debian/patches/series
+++ x42-plugins-20170428/debian/patches/series
@@ -0,0 +1 @@
+pow10f.patch
_______________________________________________
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers

Reply via email to