Your message dated Thu, 2 Oct 2025 18:30:38 -0400
with message-id 
<CAAajCMZwcogf=1gizw72CeE52rKn1p-EoBv25S51P2=rhj1...@mail.gmail.com>
and subject line Re: rust-dns-lookup: "lookup::test_rev_localhost' panicked at 
'assertion failed" on loong64
has caused the Debian Bug report #1068081,
regarding rust-dns-lookup: "lookup::test_rev_localhost' panicked at 'assertion 
failed" on loong64
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1068081: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1068081
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: rust-dns-lookup
Version: 1.0.8-4
Severity: wishlist
Tags: ftbfs
User: [email protected]
Usertags: loong64

Dear maintainers,

Compiling the rust-dns-lookup package failed for loong64 in the Debian Package Auto-Building environment, the error log is as follows:
```
test lookup::test_rev_localhost ... FAILED
failures:

---- lookup::test_rev_localhost stdout ----
thread 'lookup::test_rev_localhost' panicked at 'assertion failed: `(left == right)`
  left: `"loong64-loongson-03.local"`,
 right: `"localhost"`', src/lookup.rs:77:3
```

The full build log can be found at https://buildd.debian.org/status/logs.php?pkg=rust-dns-lookup&ver=1.0.8-4&arch=loong64.

After analysis, I think the maintainer may need to improve the test_rev_localhost() test case in the rust-dns-lookup-1.0.8/src/lookup.rs file.
The reasons are as follows:
1. If the first line of the /etc/hosts file is "127.0.0.1 localhost", the test case is successful.
```
# cat /etc/hosts
127.0.0.1       localhost
127.0.0.1       loong64-loongson-03.local loong64-loongson-03
```
Based on the above configure in /etc/hosts, the rust-dns-lookup package was compiled successfully on my local loong64 rootfs environment.

2. On the contrary, if the first line's content of the /etc/hosts file is not "127.0.0.1 localhost", the test case fails. Even if the /etc/hosts file contains "127.0.0.1 localhost" in other lines except the first line, the test case fails.
```
# cat /etc/hosts
127.0.0.1       loong64-loongson-03.local loong64-loongson-03
127.0.0.1       localhost
```

Alternatively, we could set the first line of the '/etc/hosts' file to '127.0.0.1 localhost' on the loong64 buildd machines.
Your opinions are welcome.
If you have any questions, you can contact me at any time.

Thanks,
Dandan Zhang

--- End Message ---
--- Begin Message ---
It appears to have built successfully:

https://buildd.debian.org/status/package.php?p=rust-dns-lookup

Thank you,
Jeremy Bícha

--- End Message ---

Reply via email to