Bug#1051907: aranym: Please update the outdated config.guess and config.sub to recognize the LoongArch

2023-09-14 Thread Thorsten Glaser
John Paul Adrian Glaubitz dixit:

>I was planning to rewrite the debian/rules file anyway and I will probably
>fix with dh_autoreconf. I was not aware of dh_update_autotools_config, so

AFAICT, using the “dh7-style” rules files runs dh_autoreconf
automatically, and so should fix this automatically if it can
find the config.* files.

bye,
//mirabilos
-- 
(gnutls can also be used, but if you are compiling lynx for your own use,
there is no reason to consider using that package)
-- Thomas E. Dickey on the Lynx mailing list, about OpenSSL



Bug#1051907: aranym: Please update the outdated config.guess and config.sub to recognize the LoongArch

2023-09-14 Thread John Paul Adrian Glaubitz
Hi Dandan!

On Thu, 2023-09-14 at 10:33 +0800, zhangdandan wrote:
> 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.

I'm aware of the problem and I will fix it for the next upload.

I was planning to rewrite the debian/rules file anyway and I will probably
fix with dh_autoreconf. I was not aware of dh_update_autotools_config, so
thanks for the suggestion.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Bug#1051907: aranym: Please update the outdated config.guess and config.sub to recognize the LoongArch

2023-09-13 Thread zhangdandan

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=sid
[2]:https://buildd.debian.org/status/fetch.php?pkg=aranym=loong64=1.1.0-2=1693873761=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.0 +
+++ aranym-1.1.0/debian/rules   2021-01-31 14:27:46.0 +
@@ -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 )