[Reproducible-builds] Bug#821777: diffoscope fails with "pkg_resources.DistributionNotFound: python-magic"

Holger Levsen holger at layer-acht.org
Wed Apr 20 07:46:30 UTC 2016

control: retitle -1 creating a jessie-backports takes more than a simple rebuild (and adopting the version)

On Tue, Apr 19, 2016 at 10:25:41AM +0200, Holger Levsen wrote:
> pkg_resources.DistributionNotFound: python-magic

from irc today:

< mapreri> | h01ger: this is because somehow /usr/lib/python3/dist-packages/diffoscope-51.egg-info/requires.txt in the backports build contains some lines that are not present in the sid build.
< mapreri> I couldn't figure it out at the time
< h01ger> | mapreri: i dont have that file, i have /usr/lib/python3/dist-packages/diffoscope-51_bpo8_1.egg-info/requires.txt which has two lines:
< h01ger> | python-magic
< h01ger> | libarchive-c
< mapreri> yeah, that.  the directory name changes with the package version.
< mapreri> python-magic is the problematic line, if you remove that it should just works, but I didn't want to do that with "brute force", but rather understand why it puts them in there in first place
< h01ger> | on sid, /usr/lib/python3/dist-packages/diffoscope-51.egg-info/requires.txt is empty
< h01ger> | when i remove that line…
< h01ger> | running diffoscope against two signed changes files for the same distro works \o/

so that is nice and just tells us, that creating a working backport is a bit
harder than just adopting the version and rebuilding…

I've also seen another problem when comparing a signed and unsigned changes
file and between ones from different suites, but let's limit the scope of
this bug report to the issue of creating a working backport for jessie.

Because the above manual workaround is no solution yet…

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 811 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20160420/74ebd120/attachment.sig>

More information about the Reproducible-builds mailing list