[Pkg-rust-maintainers] Bug#940983: Bug#940983: rust-sha-1: rebuilding results in broken dependencies.
peter green
plugwash at p10link.net
Thu Sep 26 16:57:10 BST 2019
On 24/09/2019 03:55, kpcyrd wrote:
> On Sun, Sep 22, 2019 at 11:07:57PM +0100, peter green wrote:
>> Package: rust-sha-1
>> Version: 0.8.1-2
>> Severity: serious
>>
>> If rust-sha-1 is re-built, the version mentioned in virtual package names in the provides changes from "0.4" to "0.8", but the version mentioned in the virtual package names in the depends stays at "0.4", thus breaking dependencies between the binary packages.
> hey!
>
> I'm having trouble reproducing this, can you provide a specific error,
> dpkg -I output or steps to reproduce?
apt-get build-dep rust-sha-1
apt-get source rust-sha1-1
dpkg-buildpackage -B
dcmd --deb dpkg -i rust-sha-1_0.8.1-2_amd64.changes
> Selecting previously unselected package librust-sha-1+asm-dev:amd64.
> (Reading database ... 120208 files and directories currently installed.)
> Preparing to unpack librust-sha-1+asm-dev_0.8.1-2_amd64.deb ...
> Unpacking librust-sha-1+asm-dev:amd64 (0.8.1-2) ...
> Selecting previously unselected package librust-sha-1+sha1-asm-dev:amd64.
> Preparing to unpack librust-sha-1+sha1-asm-dev_0.8.1-2_amd64.deb ...
> Unpacking librust-sha-1+sha1-asm-dev:amd64 (0.8.1-2) ...
> Selecting previously unselected package librust-sha-1+std-dev:amd64.
> Preparing to unpack librust-sha-1+std-dev_0.8.1-2_amd64.deb ...
> Unpacking librust-sha-1+std-dev:amd64 (0.8.1-2) ...
> Selecting previously unselected package librust-sha-1-dev:amd64.
> Preparing to unpack librust-sha-1-dev_0.8.1-2_amd64.deb ...
> Unpacking librust-sha-1-dev:amd64 (0.8.1-2) ...
> dpkg: dependency problems prevent configuration of librust-sha-1+asm-dev:amd64:
> librust-sha-1+asm-dev:amd64 depends on librust-sha1-asm-0.4+default-dev; however:
> Package librust-sha1-asm-0.4+default-dev is not installed.
>
> dpkg: error processing package librust-sha-1+asm-dev:amd64 (--install):
> dependency problems - leaving unconfigured
> dpkg: dependency problems prevent configuration of librust-sha-1+sha1-asm-dev:amd64:
> librust-sha-1+sha1-asm-dev:amd64 depends on librust-sha1-asm-0.4+default-dev; however:
> Package librust-sha1-asm-0.4+default-dev is not installed.
>
> dpkg: error processing package librust-sha-1+sha1-asm-dev:amd64 (--install):
> dependency problems - leaving unconfigured
> Setting up librust-sha-1-dev:amd64 (0.8.1-2) ...
> Setting up librust-sha-1+std-dev:amd64 (0.8.1-2) ...
> Errors were encountered while processing:
> librust-sha-1+asm-dev:amd64
> librust-sha-1+sha1-asm-dev:amd64
> 0.8.1 was the only version of sha-1 that was ever uploaded to debian.
The binaries in the Debian archive have satisfiable dependencies, but the results of re-building the source do not. I would assume this was triggered by some change in the rust packaging tools but I am not an expert on rust stuff.
More information about the Pkg-rust-maintainers
mailing list