[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: backport python-astropy for jessie?



> On Jan 25, 2017, at 3:16 PM, Ole Streicher <olebole@debian.org> wrote:
> 
> Hi Leo,
> 
> On 25.01.2017 19:16, Leo P. Singer wrote:
>>> On Jan 25, 2017, at 11:34 AM, Ole Streicher <olebole@debian.org> wrote:
>> I was trying to use the mini-dinstall method described here:
>> 
>> https://wiki.ubuntu.com/PbuilderHowto
>> 
>> But I get errors from dput:
>> ...
>> 
>> I'm not sure what to try next.
> 
> The simplest way is to use dpkg-scanpackages from dpkg-dev, directly in
> /var/cache/pbuilder/result/:
> 
> $ cd /var/cache/pbuilder/result/
> $ dpkg-scanpackages ./ > Packages
> 
> then put
> 
> BUILDRESULT=/var/cache/pbuilder/result
> OTHERMIRROR="deb [trusted=yes] file://${BUILDRESULT} ./"
> BINDMOUNTS="${BUILDRESULT}"
> 
> into the pbuilderrc, and do a "sudo cowbuilder --update --configfile
> ~/.pbuilderrc" (or pbuilder, depending on what you use). The configfile
> is needed if you change only your personal pbuilderrc.
> 
> Remove the OTHERMIRROR once you don't need it anymore...
> 
> For the other methods, better ask on debian-mentors; I have no
> experiencec with them.

Hi Ole,

I fixed the first error from dput ("E: Could not open file jessie-backports/python-astropy-helpers_1.3.orig.tar.gz - open (2: No such file or directory)" by manually copying python-astropy-helpers_1.3.orig.tar.gz into /var/cache/archive/jessie-backports (not sure why dput didn't copy it for me).

Now, I feel really dumb about the second error. I just had to add my local archive to BINDMOUNTS. I added this line to /etc/pbuilderrc:

BINDMOUNTS=/var/cache/archive

And now I'm in business! gbp-buildpackage now picks up my locally backported python-astropy-helpers package and goes about its business. Now I am getting a *real* build failure:

astropy/wcs/src/wcslib_wrap.c: In function '_setup_wcsprm_type':
astropy/wcs/src/wcslib_wrap.c:3492:14: error: 'WCSHDO_P12' undeclared (first use in this function)
     CONSTANT(WCSHDO_P12)       ||
              ^
astropy/wcs/src/wcslib_wrap.c:3423:52: note: in definition of macro 'CONSTANT'
 #define CONSTANT(a) PyModule_AddIntConstant(m, #a, a)
                                                    ^
Progress, though, right?

Leo

Reply to: