Re: packaging sagemath
On Fri, May 28, 2021 at 11:46:31AM +0200, erentar2002 wrote:
>
> ive been following https://www.debian.org/doc/manuals/packaging-tutorial/packaging-tutorial.en.pdf
>
> i get a lot of errors looking like this:
>
> dpkg-source: error: add sage/src/sage_setup/docbuild/ext/__pycache__/sage_autodoc.cpython-39.pyc in debian/source/include-binaries if you want to store the modified binary in the debian tarball
Without having looked into this it somehow smells like a broken clean
target. Some
override_dh_clean:
dh_clean
find . -name __pycache__ -type d | xargs rm -rf
should do if there is no more straightforward way to solve this.
> dpkg-source: error: unrepresentable changes to source
> dpkg-buildpackage: error: dpkg-source -b . subprocess returned exit status 1
> debuild: fatal error at line 1182:
> dpkg-buildpackage -us -uc -ui failed
>
> exact commands to reproduce:
>
> apt source sagemath
> cd sagemath-9.2
> debuild -us -uc
I'd rather recommend
gbp clone salsa:science-team/sagemath
cd sagemath
gbp buildpackage
This requires some configuration (to let the salsa: shortcut
work and also `gbp buildpackage` needs some ~/.gbp.conf - but
you should find this inside Debian Science team policy.
Good luck
Andreas.
--
http://fam-tille.de
Reply to: