Source: xtide
Version: 2.15.2-1.1
Severity: important
Tags: ftbfs patch
Justification: fails to build from source (but built successfully in the past)
X-Debbugs-Cc: [email protected]
Dear maintainer(s),
xtide failed to build on riscv64 due to invalid conversion:
```
xxLocationList.cc: In member function ‘void xxLocationList::listChanged()’:
xxLocationList.cc:90:34: error: invalid conversion from ‘char**’ to ‘const
char**’ [-fpermissive]
90 | XawListChange (list->widget(), stringList, 0, 0, 1);
| ^~~~~~~~~~
| |
| char**
In file included from xtide.hh:45,
from xxLocationList.cc:21:
/usr/include/X11/Xaw/List.h:170:27: note: initializing argument 2 of ‘void
XawListChange(Widget, const char**, int, int, Boolean)’
170 | _Xconst char **list,
| ^
make[2]: *** [Makefile:1136: xxLocationList.o] Error 1
```
Full buildd log:
https://buildd.debian.org/status/fetch.php?pkg=xtide&arch=riscv64&ver=2.15.2-1.1%2Bb1&stamp=1671253782&raw=0
This can be fixed by explicitly converting types on riscv64, for which I've
included a patch. If more help is needed, please let me know.
Cheers,
Eric
--- a/xxLocationList.cc
+++ b/xxLocationList.cc
@@ -87,7 +87,11 @@
void xxLocationList::listChanged() {
+#ifdef __riscv
+ XawListChange (list->widget(), (const char**)stringList, 0, 0, 1);
+#else
XawListChange (list->widget(), stringList, 0, 0, 1);
+#endif
}