Some plugins no longer build due to undefined DEG2RAD
Bug #918554 reported by
Daniel van Vugt
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Compiz Core |
Fix Released
|
Medium
|
Daniel van Vugt | ||
Compiz CubeAddon Plugin |
Fix Released
|
Critical
|
Alan Griffiths | ||
Compiz Extra Plugins |
Fix Released
|
Critical
|
Daniel van Vugt | ||
Compiz Main Plugins |
Fix Released
|
Critical
|
Alan Griffiths |
Bug Description
The macro DEG2RAD is no longer universally defined as has now moved to core/deg2rad.h. But some plugins don't know this yet...
lp:compiz-expo-plugin / compiz-plugins-main
lp:compiz-cubeaddon-plugin / compiz-
This is due to:
https:/
One could resolve this by simply including core/deg2rad.h in the affected code. But looking at deg2rad.h I suggest the file shouldn't exist at all and should be removed from compiz-core. And plugins should replace DEG2RAD with an explicit (M_PI / 180.0f) which is more readable and reduces coupling.
Related branches
lp://qastaging/~alan-griffiths/compiz-cubeaddon-plugin/Bug-918554
- Thomas Voß: Approve
- Daniel van Vugt: Approve
-
Diff: 32 lines (+5/-5)1 file modifiedsrc/cubeaddon.cpp (+5/-5)
lp://qastaging/~vanvugt/compiz-core/fix-918554
- Alan Griffiths: Approve
-
Diff: 82 lines (+5/-12)5 files modifiedinclude/core/CMakeLists.txt (+0/-1)
include/core/deg2rad.h (+0/-6)
plugins/annotate/src/annotate.cpp (+2/-1)
plugins/opengl/src/matrix.cpp (+2/-1)
plugins/opengl/src/paint.cpp (+1/-3)
description: | updated |
Changed in compiz-core: | |
importance: | Undecided → High |
Changed in compiz-cubeaddon-plugin: | |
importance: | Undecided → High |
Changed in compiz-expo-plugin: | |
importance: | Undecided → High |
Changed in compiz-cubeaddon-plugin: | |
assignee: | nobody → Alan Griffiths (alan-griffiths) |
Changed in compiz-expo-plugin: | |
assignee: | nobody → Alan Griffiths (alan-griffiths) |
Changed in compiz-core: | |
assignee: | nobody → Alan Griffiths (alan-griffiths) |
Changed in compiz-cubeaddon-plugin: | |
status: | New → In Progress |
Changed in compiz-cubeaddon-plugin: | |
importance: | High → Critical |
Changed in compiz-expo-plugin: | |
importance: | High → Critical |
Changed in compiz-cubeaddon-plugin: | |
status: | In Progress → Fix Committed |
Changed in compiz-expo-plugin: | |
status: | New → Fix Committed |
Changed in compiz-core: | |
assignee: | Alan Griffiths (alan-griffiths) → Daniel van Vugt (vanvugt) |
importance: | High → Medium |
status: | New → In Progress |
milestone: | none → 0.9.7.0 |
Changed in compiz-core: | |
status: | In Progress → Fix Committed |
affects: | compiz-expo-plugin → compiz-plugins-main |
Changed in compiz-plugins-main: | |
milestone: | none → 0.9.7.0 |
Changed in compiz-plugins-extra: | |
status: | New → Triaged |
importance: | Undecided → Critical |
milestone: | none → 0.9.7.0 |
Changed in compiz-core: | |
status: | Fix Committed → Fix Released |
Changed in compiz-plugins-extra: | |
status: | Fix Committed → Fix Released |
Changed in compiz-plugins-main: | |
status: | Fix Committed → Fix Released |
Changed in compiz-cubeaddon-plugin: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
See also, other build failures described in bug 915236.