[Pkg-rust-maintainers] Bug#940983: Bug#940983: Bug#940983: rust-sha-1: rebuilding results in broken dependencies.
kpcyrd
kpcyrd at rxv.cc
Thu Sep 26 19:11:26 BST 2019
On Thu, Sep 26, 2019 at 04:57:10PM +0100, peter green wrote:
> apt-get build-dep rust-sha-1
> apt-get source rust-sha1-1
This one should be rust-sha-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
I think the problem is dpkg -i. librust-sha-1+asm-dev contains sha-1
with the asm feature enabled, which has an additional dependency on
librust-sha1-asm-dev. To avoid dependency loops and since it's optional
the main sha-1 package doesn't list this dependency, but dpkg -i isn't
able to pull additional packages from the debian archive.
If you run `aptitude upgrade` after `dpkg -i` it would suggest
installing the missing packages to resolve the broken state.
More information about the Pkg-rust-maintainers
mailing list