Source: aranym
Version: 1.1.0-2
Severity: wishlist
Tags: patch
User: debian-de...@lists.debian.org
Usertags: loongarch64

Dear maintainers,

When compiling the package aranym for loong64 in the Debian Package Auto-Building environment [1], The error message is as follows:
......Omit
(./configure --build=loongarch64-linux-gnu --host=loongarch64-linux-gnu --prefix=/usr --enable-usbhost && /usr/bin/make) checking build system type... Invalid configuration `loongarch64-linux-gnu': machine `loongarch64' not recognized
configure: error: /bin/bash ./config.sub loongarch64-linux-gnu failed
......Omit

The full compilation log can be found at [2].
The version of autosetup/config.{sub,guess} in the aranym source package are too old for the LoongArch architecture. The LoongArch architecture has been supported in config upstream [3] and autotools-dev source package [4].

Please consider update the outdated config.guess and config.sub to recognize the LoongArch.
Optionally, consider the patch (modify debian/rules) I have attached.
If you have any questions, you can contact me at any time.


[1]:https://buildd.debian.org/status/package.php?p=aranym&suite=sid
[2]:https://buildd.debian.org/status/fetch.php?pkg=aranym&arch=loong64&ver=1.1.0-2&stamp=1693873761&raw=0
[3]:https://git.savannah.gnu.org/cgit/config.git/commit/?id=20403c5701973a4cbd7e0b4bbeb627fcd424a0f1
[4]:https://packages.debian.org/bookworm/autotools-dev


thanks,
Dandan Zhang

diff -Nru aranym-1.1.0/debian/rules aranym-1.1.0/debian/rules
--- aranym-1.1.0/debian/rules   2021-01-31 11:52:49.000000000 +0000
+++ aranym-1.1.0/debian/rules   2021-01-31 14:27:46.000000000 +0000
@@ -53,6 +53,7 @@
        dh_testdir
 
        ([ ! -f Makefile ] || $(MAKE) distclean)
+       dh_update_autotools_config
        (./configure --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) 
--prefix=/usr ${CF_USB} && $(MAKE))
        ($(MAKE) install DESTDIR=`pwd`/debian/tmp )
 

Reply via email to