Hi, gbp buildpackage -S -sa works for me.
Mentors strips binaries, so I don't understand why to call it with pbuilder :) alternatively also dpkg-buildpackage -S -sa works. And in case you want to do a backport, where you have to include the orig tarball, but pbuilder strips it (yes, it happens) "changestool package_version~bpo8+1_amd64.changes includeallsources" this is how I force the reinclusion of the source tarball. cheers, Gianfranco Il Sabato 30 Gennaio 2016 6:12, Tiago Ilieve <[email protected]> ha scritto: Hi, I've tried to upload a backport to mentors.d.n a few moments ago and it got rejected with the following error: "If you tried to upload a package which only increased the Debian revision part, make sure you include the full source (pass -sa to dpkg-buildpackage)" The manpage for "dpkg-buildpackage" says nothing about "-sa", but "dpkg-genchanges(1)" says it "Forces the inclusion of the original source", which makes total sense here. The problem is that I couldn't find out how to pass "-sa" to "gpb". The command used to build the package was: sudo gbp buildpackage --git-pbuilder --git-dist=jessie Which, as expected, didn't included the original sources. If I try to add "-sa" (because the manpage for "git-buildpackage" says that it will "Call debuild ... passing along all arguments given to gbp buildpackage that don't start with --git-"), as in: sudo gbp buildpackage -sa --git-pbuilder --git-dist=jessie It fails: (...) I: Running /usr/bin/dpkg-buildpackage -rfakeroot -us -uc ${DEBBUILDOPTS} dpkg-buildpackage: unknown option or argument '-sa' Use --help for program usage information. (...) gbp:error: 'git-pbuilder -sa' failed: it exited with 1 The chapter "6.7. Command hierarchy"[1] of the Debian New Maintainers' Guide states that "gbp buildpackage" is a wrapper around "gbp", "pbuilder" and "dpkg-buildpackage". By default it should call "debuild" (as it says on the excerpt from the manual above), but as "--git-pbuilder" is being used, it is calling "pbuilder" instead. The problem is that the chapter "9.2. Including orig.tar.gz for upload"[2] doesn't have any mentions about how to use "-sa" with "pbuilder", neither with "gbp". Am I missing something here and this isn't really hard to do? The entire stack and multiple levels of wrappers and their options being passed from one to another confused me a lot. Regards, Tiago. [1]: https://www.debian.org/doc/manuals/maint-guide/build.en.html#hierarchy [2]: https://www.debian.org/doc/manuals/maint-guide/upload.en.html#option-sa -- Tiago "Myhro" Ilieve Blog: https://blog.myhro.info/ GitHub: https://github.com/myhro LinkedIn: https://br.linkedin.com/in/myhro Montes Claros - MG, Brasil

