<div dir="ltr">Hi Sebastian,<div class="gmail_extra"><br><div class="gmail_quote">2015-03-02 23:20 GMT+01:00 Sebastian Ramacher <span dir="ltr"><<a href="mailto:sramacher@debian.org" target="_blank">sramacher@debian.org</a>></span>:<br>
</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="h5"><br>
On 2015-02-27 10:40:05, Jaromír Mikeš wrote:<br>
> While working on Debian's “reproducible builds” effort [1], we have<br>
> > noticed that pyliblo-utils had different dependencies in two different<br>
> > builds [2].<br>
> ><br>
> > In the first build it had:<br>
> >  Depends: python-liblo, python, python:any (>= 2.5~)<br>
> ><br>
> > While on the second build:<br>
> >  Depends: python-liblo, python3, python:any (>= 2.5~)<br>
> > (python3 instead of python)<br>
> ><br>
> > The included scripts also had different shebangs, #!/usr/bin/python<br>
> > vs. #!/usr/bin/python3.<br>
> ><br>
> > [1]: <a href="https://wiki.debian.org/ReproducibleBuilds" target="_blank">https://wiki.debian.org/ReproducibleBuilds</a><br>
> > [2]: <a href="https://reproducible.debian.net/pyliblo" target="_blank">https://reproducible.debian.net/pyliblo</a><br>
> ><br>
><br>
> How this bug should be fixed?<br>
> <a href="https://reproducible.debian.net/rb-pkg/pyliblo.html" target="_blank">https://reproducible.debian.net/rb-pkg/pyliblo.html</a><br>
><br>
> 1) build pyliblo-utils only for python2 or python3<br>
> 2) build pyliblo-utils-python2 and pyliblo-utils-python3<br>
> 3) skip python2 and build everything only with python3<br>
> 4) other solution<br>
<br>
</div></div>There is no point in 2). We don't gain anything from having a second<br>
copy of that. FWIW, I can't reproduce the changing dependencies<br>
behavior. I always get the Python 3 version.<br>
<br>
I'd go for 1) and make sure that pyliblo-utils is only built for one<br>
Python version. Something like the following patch could do the trick:<br>
<br>
diff -Nru pyliblo-0.9.2/debian/pyliblo-utils.install pyliblo-0.9.2/debian/pyliblo-utils.install<br>
--- pyliblo-0.9.2/debian/pyliblo-utils.install  2014-10-05 12:59:24.000000000 +0200<br>
+++ pyliblo-0.9.2/debian/pyliblo-utils.install  2015-03-02 23:16:43.000000000 +0100<br>
@@ -1,2 +1,2 @@<br>
-/usr/bin/dump_osc<br>
-/usr/bin/send_osc<br>
+build/scripts-2.7/dump_osc /usr/bin<br>
+build/scripts-2.7/send_osc /usr/bin<br>
diff -Nru pyliblo-0.9.2/debian/rules pyliblo-0.9.2/debian/rules<br>
--- pyliblo-0.9.2/debian/rules  2014-10-05 18:04:55.000000000 +0200<br>
+++ pyliblo-0.9.2/debian/rules  2015-03-02 23:13:59.000000000 +0100<br>
@@ -6,5 +6,8 @@<br>
 override_dh_auto_build:<br>
        dh_auto_build -- --build-args=--with-cython<br>
<br>
+override_dh_python3:<br>
+       dh_python3 -p python3-liblo<br>
+<br>
 override_dh_installchangelogs:<br>
        dh_installchangelogs NEWS<br>
<span class=""><font color="#888888"><br>
</font></span></blockquote></div><br></div><div class="gmail_extra">thank you for your help ... going to upload :)<br><br></div><div class="gmail_extra">mira<br></div></div>