Source: rust-async-std
Version: 1.13.0-3
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)
X-Debbugs-Cc: syominser...@gmail.com

Dear maintainer!

It is impossible to build package rust-async-std from source with
profile "nocheck".

Steps how to reproduce.

Create fresh docker container with Debian Trixie:
```
docker run --rm -it debian:trixie bash
```

In my case I received such image:
```
REPOSITORY                                                       TAG        
IMAGE ID       CREATED        SIZE
debian                                                           trixie     
a1b129fd683d   2 weeks ago    118MB
```


Update apt cache:
```
apt update
```

Install vim:
```
apt install vim
```

Add deb-src into all lines starting with "Types:" in file
/etc/apt/sources.list.d/debian.sources.

Update apt cache again:
```
apt update
```

Install dpkg-dev package:
```
apt install dpkg-dev
```

Download sources of package rust-async-std:
```
apt source rust-async-std
```

In my case I received version 1.13.0-3

Goto into folder with sources.

Set necessary environment variables:
```
export DEB_BUILD_OPTIONS="nocheck"
export DEB_BUILD_PROFILES="nocheck"
```

Install necessary build deps:
```
apt build-dep .
```

Run build process:
```
dpkg-buildpackage -b -uc
```

I received an error:
```
error: failed to prepare local package for uploading

Caused by:
  no matching package named `async-attributes` found
  location searched: registry `crates-io`
  required by package `async-std v1.13.0 (/root/rust-async-std-1.13.0)`
```

It is interesting, that according to file debian/control build dep
librust-async-attributes-1+default-dev has condition <!nocheck>. But as
I saw, this dependency is mandatory indeed.

Without "nocheck" package builds correctly.
Could you please fix build of this package with profile "nocheck"? It is
really important to have possibility to build package with "nocheck".

P.S. There are lot of other rust packages not building with "nocheck"
profile. For example rust-async-attributes 1.1.2 and a lot of others.


-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.6.28-1-generic (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Reply via email to