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

   Dear maintainers,

When compiling the package lftp for loong64 in the Debian Package Auto-Building environment [1], The error message is as follows:
......omit
checking build system type... Invalid configuration `loongarch64-linux-gnu': machine `loongarch64' not recognized configure: error: /bin/bash build-aux/config.sub loongarch64-linux-gnu failed
make: *** [debian/rules:24: configure-stamp] Error 1
......omit

The full compilation log can be found at [2].
The version of config.guess and config.sub in the lftp 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 the patch (modify debian/rules) I have attached.
Alternatively, update the config.guess and config.sub files, see the merge request for lftp [5].
If you have any questions, you can contact me at any time.


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

thanks,
Dandan Zhang

diff -Nru lftp-4.9.2/debian/rules lftp-4.9.2/debian/rules
--- lftp-4.9.2/debian/rules     2018-09-17 07:33:33.000000000 +0000
+++ lftp-4.9.2/debian/rules     2022-07-16 10:24:04.000000000 +0000
@@ -20,6 +20,7 @@
 #configure: configure-stamp
 configure-stamp:
        dh_testdir
+       dh_update_autotools_config
        # Add here commands to configure the package.
        CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" CPPFLAGS="$(CPPFLAGS)" 
LDFLAGS="$(LDFLAGS)" ./configure \
                        --prefix=/usr \

Reply via email to