Bug#778707: differing dependencies between builds

Sebastian Ramacher sramacher at debian.org
Mon Mar 2 22:20:40 UTC 2015


Hi Jaromir

On 2015-02-27 10:40:05, Jaromír Mikeš wrote:
> While working on Debian's “reproducible builds” effort [1], we have
> > noticed that pyliblo-utils had different dependencies in two different
> > builds [2].
> >
> > In the first build it had:
> >  Depends: python-liblo, python, python:any (>= 2.5~)
> >
> > While on the second build:
> >  Depends: python-liblo, python3, python:any (>= 2.5~)
> > (python3 instead of python)
> >
> > The included scripts also had different shebangs, #!/usr/bin/python
> > vs. #!/usr/bin/python3.
> >
> > [1]: https://wiki.debian.org/ReproducibleBuilds
> > [2]: https://reproducible.debian.net/pyliblo
> >
> 
> How this bug should be fixed?
> https://reproducible.debian.net/rb-pkg/pyliblo.html
> 
> 1) build pyliblo-utils only for python2 or python3
> 2) build pyliblo-utils-python2 and pyliblo-utils-python3
> 3) skip python2 and build everything only with python3
> 4) other solution

There is no point in 2). We don't gain anything from having a second
copy of that. FWIW, I can't reproduce the changing dependencies
behavior. I always get the Python 3 version.

I'd go for 1) and make sure that pyliblo-utils is only built for one
Python version. Something like the following patch could do the trick:

diff -Nru pyliblo-0.9.2/debian/pyliblo-utils.install pyliblo-0.9.2/debian/pyliblo-utils.install
--- pyliblo-0.9.2/debian/pyliblo-utils.install  2014-10-05 12:59:24.000000000 +0200
+++ pyliblo-0.9.2/debian/pyliblo-utils.install  2015-03-02 23:16:43.000000000 +0100
@@ -1,2 +1,2 @@
-/usr/bin/dump_osc
-/usr/bin/send_osc
+build/scripts-2.7/dump_osc /usr/bin
+build/scripts-2.7/send_osc /usr/bin
diff -Nru pyliblo-0.9.2/debian/rules pyliblo-0.9.2/debian/rules
--- pyliblo-0.9.2/debian/rules  2014-10-05 18:04:55.000000000 +0200
+++ pyliblo-0.9.2/debian/rules  2015-03-02 23:13:59.000000000 +0100
@@ -6,5 +6,8 @@
 override_dh_auto_build:
        dh_auto_build -- --build-args=--with-cython
 
+override_dh_python3:
+       dh_python3 -p python3-liblo
+
 override_dh_installchangelogs:
        dh_installchangelogs NEWS

Cheers
-- 
Sebastian Ramacher
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20150302/654a85cf/attachment.sig>


More information about the pkg-multimedia-maintainers mailing list