<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Jan 13, 2014 at 2:00 AM, Yaroslav Halchenko <span dir="ltr"><<a href="mailto:debian@onerussian.com" target="_blank">debian@onerussian.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im"><br>
On Mon, 13 Jan 2014, Luke Campagnola wrote:<br>
<br>
> After my prolonged and daring escape from graduate school, I am finally<br>
> ready to pick this up again. Here is where I am at:<br>
<br>
> 1. I have updated pyqtgraph's debian/ files to make use of pybuild;<br>
> successfully building .dsc describing 1 source package and 3 binary<br>
> packages: python-pyqtgraph, python3-pyqtgraph, and python-pyqtgraph-doc.<br>
<br>
</div>fancy you ;) it would cost you though:  pybuild is relatively new and<br>
not available on elderly ubuntus (there is a backport for debian stable<br>
wheezy so there we all set).  But if you do not care -- me neither twice<br>
;)<br></blockquote><div><br></div><div>I think for any of the (rare?) elderly instalations, the alternative installation strategies are sufficiently simple. </div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


> 2. I ran nd_addistall;<br><div class="im"><br>
>    - debian-jessie and nd+debian-jessie both had this error:<br>
>         I: running debootstrap<br>
>         /usr/sbin/debootstrap<br>
>         E: No such script: /usr/share/debootstrap/scripts/jessie<br>
>         E: debootstrap failed<br>
<br>
</div>easy one, just symlink to sid<br>
<br>
$> ls -l /usr/share/debootstrap/scripts/jessie<br>
lrwxrwxrwx 1 root root 3 Jul 14  2013 /usr/share/debootstrap/scripts/jessie -> sid<br></blockquote><div><br></div><div>And after that, what command to rebuild just those two distributions? </div><div>Alternately: are the commands documented somewhere? </div>

<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">> 3. running nd_build4all on my .dsc generates this error:<br>


<br>
>        dh_install -O--buildsystem=pybuild<br>
>     dh_install: python-pyqtgraph missing files (usr/lib/python2*), aborting<br>
>     make: *** [binary] Error 2<br>
<br>
>     The path in question comes from the debian/*.install files:<br>
>         debian/python-pyqtgraph.install:<br>
>             usr/lib/python2*<br>
>         debian/python3-pyqtgraph.install:<br>
>             usr/lib/python3*<br>
<br>
>     These were added because I otherwise end up with empty packages.<br>
<br>
>     The error appears to occur because the dsc describes 3 binary packages:<br>
>         python-pyqtgraph, python3-pyqtgraph, and python-pyqtgraph-doc.<br>
<br>
>     In a successful build, the py2 and py3 files are all installed into the<br>
> same fakeroot:<br>
>         .../python-pyqtgraph-0.9.8/debian/tmp/...<br>
<br>
>     ..but when running nd_build4all, each package has its own fakeroot:<br>
>         /tmp/buildd/python-pyqtgraph-0.9.8/debian/python-pyqtgraph/...<br>
>         /tmp/buildd/python-pyqtgraph-0.9.8/debian/python3-pyqtgraph/...<br>
<br>
>     I suspect this causes dh_install to fail because it can't find<br>
> python2.7 in<br>
>     the python3 fakeroot.<br>
<br>
</div>hm - interesting if I got it right (too late now to think straight... even sent<br>
out a google recruiter to <a href="http://f.ck" target="_blank">f.ck</a> off (politely)) you are claiming that in your<br>
local environment (which is?) pybuild results in a different behavior than<br>
while building in those clean chroots?<br></blockquote><div> </div><div>That appears to be the case. I am building on ubuntu 13.04.</div><div> </div><div>I meant to include this link previously: <a href="https://github.com/lcampagn/pyqtgraph/tree/deb_build">https://github.com/lcampagn/pyqtgraph/tree/deb_build</a></div>

<div>From there you can run `python setup.py sdist deb --force-version=0.9.8`. The 'deb' command just creates a deb_build directory and populates it with the necessary pieces before calling `dh -us -uc`. The --force-version flag is only needed to circumvent a changelog check that I built in.</div>

</div></div></div>