Bug#998394: dgit push fails for native with .gitignore

2021-11-03 Thread Ian Jackson
Osamu Aoki writes ("Bug#998394: dgit push fails for native with .gitignore"):
> RTFM ... I know ... excuse me.  This is not a bug.
> 
> I think best place is here in BTS as wontfix so no more people harassing you.

Haha.  OK :-).

Thanks,
Ian.

-- 
Ian JacksonThese opinions are my own.  

Pronouns: they/he.  If I emailed you from @fyvzl.net or @evade.org.uk,
that is a private address which bypasses my fierce spamfilter.



Bug#998394: dgit push fails for native with .gitignore

2021-11-03 Thread Osamu Aoki
Control: tags -1 wontfix

On Wed, 2021-11-03 at 16:55 +, Ian Jackson wrote:
> Hi.
> 
> Osamu Aoki writes ("Bug#998394: dgit push fails for native with .gitignore"):
> > Package: dgit
> > Version: 9.14
> > Severity: normal
> > 
> > native source package drops .gitignore when making tar.
> > 
> > If I try to make "dgit push" on such package after building binary
> > packages with sbuild, dgit fails because tar is missing .gitignore .
> 
> I infer that you built the source package directly, without using dgit
> - ie, using raw sbuild without any options to control -i -I.  That the
> .gitignore is missing from the source package is a bug in dpkg-source,
> #908747.
> 
> The workaround is to use dgit to build your source package.  dgit
> knows what options to pass to dpkg-source to override the bad default.

Yes.

RTFM ... I know ... excuse me.  This is not a bug.

I think best place is here in BTS as wontfix so no more people harassing you.



Bug#998394: dgit push fails for native with .gitignore

2021-11-03 Thread Ian Jackson
Hi.

Osamu Aoki writes ("Bug#998394: dgit push fails for native with .gitignore"):
> Package: dgit
> Version: 9.14
> Severity: normal
> 
> native source package drops .gitignore when making tar.
> 
> If I try to make "dgit push" on such package after building binary
> packages with sbuild, dgit fails because tar is missing .gitignore .

I infer that you built the source package directly, without using dgit
- ie, using raw sbuild without any options to control -i -I.  That the
.gitignore is missing from the source package is a bug in dpkg-source,
#908747.

The workaround is to use dgit to build your source package.  dgit
knows what options to pass to dpkg-source to override the bad default.

When you use dgit push-source this is all done in one go, so you don't
notice that the source package is being built with those special
options.  When one builds binaries, one indeed normally uses something
like sbuild.  The solution in this case is to use "dgit sbuild" rather
than "sbuild".  dgit knows what options to pass to sbuild.  And you
can more or less use "dgit sbuild" like "sbuild".

I appreciate that this is suboptimal - yet another layer of build
wrapper, with extra complexity and confusion - but it is necessary
that the upload tarball is created *with* the .gitignore (so that the
dgit git branch and the uploaded .dsc are identical).  Until #908747
is fixed this is the only way to achieve it.

I think this is documented in the manuals where appropriate.  But
evidently you didn't see it.  So maybe we need to add a note
somewhere.  So can you tell me where in the documentation you looked ?

Thanks,
Ian.



Bug#998394: dgit push fails for native with .gitignore

2021-11-03 Thread Osamu Aoki
Package: dgit
Version: 9.14
Severity: normal

native source package drops .gitignore when making tar.

If I try to make "dgit push" on such package after building binary
packages with sbuild, dgit fails because tar is missing .gitignore .

I needed to upload binary package since a new additional binary package
was introduced to debian-reference.  Then I realize this problem.

-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.14.0-2-amd64 (SMP w/12 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages dgit depends on:
ii  apt2.3.11
ii  ca-certificates20210119
ii  coreutils  8.32-4+b1
ii  curl   7.74.0-1.3+b1
ii  devscripts 2.21.4
ii  dpkg-dev   1.20.9
ii  dput   1.1.0
ii  git [git-core] 1:2.33.0-1
ii  git-buildpackage   0.9.22
ii  libdpkg-perl   1.20.9
ii  libjson-perl   4.03000-1
ii  liblist-moreutils-perl 0.430-2
ii  liblocale-gettext-perl 1.07-4+b1
ii  libtext-csv-perl   2.01-1
ii  libtext-glob-perl  0.11-2
ii  libtext-iconv-perl 1.7-7+b1
ii  libwww-curl-perl   4.17-7+b1
ii  perl [libdigest-sha-perl]  5.32.1-6

Versions of packages dgit recommends:
ii  distro-info-data 0.52
ii  liburi-perl  5.10-1
ii  openssh-client [ssh-client]  1:8.4p1-6

Versions of packages dgit suggests:
ii  sbuild  0.81.2

-- no debconf information