Source: libmsv
Version: 1.1.1-4
Severity: normal
Tags: ftbfs patch
User: debian-loonga...@lists.debian.org
Usertags: loong64
Dear maintainers,
Compiling the libmsv failed for loong64 in the Debian Package
Auto-Building environment.
The error log is as follows,
```
UNAME_MACHINE = loongarch64
UNAME_RELEASE = 6.1.27
UNAME_SYSTEMÂ = Linux
UNAME_VERSION = #6 SMP PREEMPT Mon Jul 31 10:17:50 UTC 2023
configure: error: cannot guess build type; you must specify one
make: *** [debian/rules:31: stamp-build] Error 1
dpkg-buildpackage: error: debian/rules binary-arch subprocess returned
exit status 2
```
The Full log can be found at [1].
The version of config.guess and config.sub in the libmsv package are too
old for the LoongArch architecture.
LoongArch architecture has been supported in config upstream [2] and
autotools-dev source package [3].
Please consider the patch I have attached.
Your opinions are welcome.
[1]:https://buildd.debian.org/status/logs.php?pkg=libmsv&ver=1.1.1-4&arch=loong64
[2]:https://git.savannah.gnu.org/cgit/config.git/commit/?id=20403c5701973a4cbd7e0b4bbeb627fcd424a0f1
[3]:https://packages.debian.org/bookworm/autotools-dev
Thanks,
Dandan Zhang
diff -Nru libmsv-1.1.1/debian/rules libmsv-1.1.1/debian/rules
--- libmsv-1.1.1/debian/rules 2023-08-10 16:23:39.000000000 +0000
+++ libmsv-1.1.1/debian/rules 2023-08-10 16:23:39.000000000 +0000
@@ -28,6 +28,7 @@
build-indep: build-arch
build-arch: stamp-build
stamp-build: configure
+ dh_update_autotools_config
./configure $(CONFARGS) --prefix=/usr CFLAGS="$(CFLAGS)"
CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)"
$(MAKE)
doxygen libmsvdox.cfg