Package: gnss-sdr
Version: 0.0.7-1
Severity: important
Tags: sid, patch
Justification: FTBFS
User: debian-m...@lists.debian.org
Usertags: mips-patch
Package gnss-sdr FTBFS for mips and mipsel on configure with the following
error:
> -- Cannot find gflags
> -- gflags library has not been found.
> -- gflags will be downloaded and built automatically
> -- when doing 'make'.
> CMake Error at /usr/share/cmake-3.5/Modules/ExternalProject.cmake:1757
> (message):
> error: could not find git for clone of gflags-2.1.2
> Call Stack (most recent call first):
> /usr/share/cmake-3.5/Modules/ExternalProject.cmake:2459
> (_ep_add_download_command)
> CMakeLists.txt:480 (ExternalProject_Add)
>
>
> -- Configuring incomplete, errors occurred!
The reason for this error is missing library path for mips architectures in
FindGFlags.cmake.
The patch that adds library path for mips is attached.
After applying this patch build fails with issue reported issue:
https://bugs.debian.org/828034
The same issue with gflags appears on powerpc, ppc64, ppc64el and s390x.
I believe that similar fix could be created for mentioned architectures as
well but unfortunately I am not able to test it.
Regards,
Dejan
diff -uNr gnss-sdr-0.0.7.orig/cmake/Modules/FindGFlags.cmake gnss-sdr-0.0.7/cmake/Modules/FindGFlags.cmake
--- gnss-sdr-0.0.7.orig/cmake/Modules/FindGFlags.cmake 2016-05-15 12:27:51.000000000 +0000
+++ gnss-sdr-0.0.7/cmake/Modules/FindGFlags.cmake 2016-06-24 06:32:14.000000000 +0000
@@ -36,6 +36,9 @@
/usr/lib/arm-linux-gnueabihf
/usr/lib/arm-linux-gnueabi
/usr/lib/aarch64-linux-gnu
+ /usr/lib/mipsel-linux-gnu
+ /usr/lib/mips-linux-gnu
+ /usr/lib/mips64el-linux-gnuabi64
/usr/lib64
/usr/lib
)