Bug#940983: [Pkg-rust-maintainers] Bug#940983: Bug#940983: rust-sha-1: rebuilding results in broken dependencies.

2019-09-26 Thread kpcyrd
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.



Bug#940983: [Pkg-rust-maintainers] Bug#940983: rust-sha-1: rebuilding results in broken dependencies.

2019-09-26 Thread peter green

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.



Bug#940983: [Pkg-rust-maintainers] Bug#940983: rust-sha-1: rebuilding results in broken dependencies.

2019-09-23 Thread kpcyrd
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?

0.8.1 was the only version of sha-1 that was ever uploaded to debian.

Thanks!



Bug#940983: rust-sha-1: rebuilding results in broken dependencies.

2019-09-22 Thread peter green

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.