On Thu, Jul 16, 2020 at 05:21:16PM -0000, Dan Streetman wrote:
> > So what's the bug here?
>
> the bug is:
>
> $ git ubuntu clone qemu
> $ cd qemu
> $ git checkout pkg/ubuntu/bionic-devel
> $ sudo apt build-dep .
> $ dpkg-buildpackage
>
> that fails, due to the ..git file.
I understand that this fails, and that you expect this to work. However
as far as I'm aware there's no design of git-ubuntu possible where this
will work in all edge cases, so this is an unfortunate interaction and
not a bug in git-ubuntu or the imported qemu package.
> Or are you saying that using git-ubuntu implies people should no longer
> use dpkg-buildpackage (or debuild, etc)?
Where this edge case applies, correct. I don't know how to make this
possible in the general case. git won't let us (and it doesn't make
sense to) have an imported source package contain a .git directory. If
the build requires that, then it's not going to work.
The closest we can get is to this is to escape the .git in a way that
can be undone before calling dpkg-buildpackage, and that's already done
and working as expected. If you want some code to do the unescaping,
that's available in the git-ubuntu source.
Until "git ubuntu build" is fully implemented, you need to rename ..git
to .git before your build step if you want this to work.
On Thu, Jul 16, 2020 at 05:21:16PM -0000, Dan Streetman wrote: bionic- devel
> > So what's the bug here?
>
> the bug is:
>
> $ git ubuntu clone qemu
> $ cd qemu
> $ git checkout pkg/ubuntu/
> $ sudo apt build-dep .
> $ dpkg-buildpackage
>
> that fails, due to the ..git file.
I understand that this fails, and that you expect this to work. However
as far as I'm aware there's no design of git-ubuntu possible where this
will work in all edge cases, so this is an unfortunate interaction and
not a bug in git-ubuntu or the imported qemu package.
> Or are you saying that using git-ubuntu implies people should no longer
> use dpkg-buildpackage (or debuild, etc)?
Where this edge case applies, correct. I don't know how to make this
possible in the general case. git won't let us (and it doesn't make
sense to) have an imported source package contain a .git directory. If
the build requires that, then it's not going to work.
The closest we can get is to this is to escape the .git in a way that
can be undone before calling dpkg-buildpackage, and that's already done
and working as expected. If you want some code to do the unescaping,
that's available in the git-ubuntu source.
Until "git ubuntu build" is fully implemented, you need to rename ..git
to .git before your build step if you want this to work.