[PATCH 1 of 2 logilab-mtconverter] Update Debian packaging

Denis Laxalde denis.laxalde at logilab.fr
Fri Jun 7 09:04:06 CEST 2019


Jérémy Bobbio a écrit :
> On 05/06/2019 20:21, Denis Laxalde wrote:
> > Jérémy Bobbio a écrit :
> >> # HG changeset patch
> >> # User Jérémy Bobbio <jeremy.bobbio at irq7.fr>
> >> # Date 1559736762 -7200
> >> #      Wed Jun 05 14:12:42 2019 +0200
> >> # Node ID fad960015fd7e9108483c23b590c03326efbce07
> >> # Parent  9ad8571111d41592bd028eb52791cc601813e79b
> >> Update Debian packaging
> > 
> > Series applied, thanks.
> >> diff -r 9ad8571111d4 -r fad960015fd7 debian/source/format
> >> --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
> >> +++ b/debian/source/format	Wed Jun 05 14:12:42 2019 +0200
> >> @@ -0,0 +1,1 @@
> >> +3.0 (quilt)
> > 
> > One question: can you explain this hunk? (This applies to all your
> > patches so far, not just this one.)
> > IIUC, this makes the package non-native. However, I'm not a specialist
> > but I wonder if the native option wasn't actually intentional (since the
> > vcs repo contains the debian/ directory, I guess). What's your (and
> > others') opinion on this?
> 
> These pieces of software are available outside Debian (PyPI at least)
> and works without Debian. The version in debian/changelog actually
> reflects this: it specifies the upstream version and a package
> revision (separated by an hyphen). In case a fix is made to
> `debian/control`, there should be no need to require a new upload to
> PyPI.
> 
> The canonical way to distribute a source tarball for a Python package is
> by running `python3 setup.py sdist`. This makes a nice orig tarball to
> build a Debian package against.

Yes, all this is totally true. Now that I think more about this, I
suspect the previous situation (using native packages) is a legacy from
the time we were not using sdist (and PyPI) as a source of truth for our
software. So all is fine now, thanks.

> The last bit that might worth explaining then is switching from “1.0” to
> “3.0 (quilt)”. There are two reasons to prefer the latter:

The "quilt" part is a bit misleading to me because it seems to indicate
that we'd eventually ship things in debian/patches whereas I tend to
believe this would not happen since the Debian packaging is versioned
along with the source package.



More information about the cubicweb-devel mailing list