Hi Geert, Alexandre:
In general the issue appears to be that there's no orig.tar.gz file and
not documentation about how to create one. Alexandre, on May 10th you
posted to the bug report that you uploaded the packages (presumably one
of which was libhtmlcleaner-java) to
mentors.debian.net, but I'm not
able to find them. That source package would have included an
.orig.tar.gz file.
While it's possible to recreate the upstream orig.tar.gz from the
upstream branch in the git repository using git-archive, it would be
preferable going forward to use pristine-tar to create a pristine-tar
branch. (Since you already have an upstream branch it won't take up
much extra space.)
And from that, was able to build a package using "debuild -us -uc".
However, the packaging repo in pkg-java/libhtmlcleaner-java.git is kind
of a mess. Newer upstream versions 2.2.1 and 2.4 have already been
committed and merged, but the files in debian/ (changelog and patches)
are for the 2.2 version. Thus, the package can't build when the master
branch of the git repository has been merged with upstream/2.4, but the
debian/changelog is expecting an orig.tar.gz version 2.2.
If you just want to see how it build, you can follow these steps:
# clone the pkg-java repo
git clone git+ssh://
git.debian.org/git/pkg-java/libhtmlcleaner-java.git
cd libhtmlcleaner-java
# (re)create the upstream tarball for the 2.2 version
git archive upstream/2.2 --prefix=libhtmlcleaner-java-2.2/ -o
../libhtmlcleaner-java_2.2.orig.tar.gz
# clean up the 2.4 sources that are currently there
# (as an alternative, you could copy ./debian/ to a new folder)
rm -rf .git __MACOSX src
# restore the 2.2 sources
tar --strip-components=1 -xvf ../libhtmlcleaner-java_2.2.orig.tar.gz
# build!
debuild -us -uc
While this "works," it's completely and deeply flawed from a
git-buildpackage work-flow point of view. Alexandre, what I recommend
doing is to:
1) Get a working source package for whatever version it is you want to
package and then make that package available on
mentors.debian.net.
Iterate over that package until your sponsor feels it is ready for Debian.
2) Completely erase the existing pkg-java/libhtmlcleaner-java.git repo
so we can start over fresh.
3) Use git-import-dsc to create a local gbp repository for your package.
4) Verify that your package builds with git-buildpackage.
5) Push the newly created repository, including the upstream and
pristine-tar branches, to pkg-java/libhtmlcleaner-java.git.
Hope that helps,
tony