Package: devscripts
Version: 2.19.5+deb10u1
Severity: wishlist

Dear Maintainer,

I'm packaging phppgadmin[1]. Upstream provides several nice test suites,
but they are strip from the official release tarball using a
.gitattributes file with export-ignore lines[2].

Tests include a lot of files, like selenium core-lib. In turn, selenium
bundle many external libraries.
It makes sense to me that the final user doesn't want the full test suite
deployed. So I fell unconfortable asking upstream to change their way of not
releasing all this.

However, I do want to get these files, at least in the source, so I can
run unit tests.

Uscan already provides a nice way to use upstream git. However, uscan calls
"git archive" that also takes into account the .gitattributes file, so that
it also removes the "/tests" files.

Right now, I'm building a orig file using "git deborig" [3]. This is
quite ugly.

I believe it would be easy for uscan to override or ignore this
.gitattributes file, like "git deborig" does. That would help a lot.

Please provide a way to override / ignore / patch upstream .gitattributes.

Hint: git archive have an option --worktree-attributes, that allows such
override [4]. As far as I known, uscan doesn't provide a way to run code
between "git clone" and "git archive".

[1] https://tracker.debian.org/pkg/phppgadmin
[2] https://github.com/phppgadmin/phppgadmin/blob/master/.gitattributes
[3] 
https://salsa.debian.org/postgresql/phppgadmin/blob/debian/sid/debian/README.source
[4] https://manpages.debian.org/buster/git-man/git-archive.1.en.html

-- Package-specific info:

--- /etc/devscripts.conf ---

--- ~/.devscripts ---
Not present

-- System Information:
Debian Release: 10.2
  APT prefers proposed-updates
  APT policy: (500, 'proposed-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-6-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8), 
LANGUAGE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages devscripts depends on:
ii  dpkg-dev              1.19.7
ii  fakeroot              1.23-1
ii  file                  1:5.35-4+deb10u1
ii  gnupg                 2.2.12-1+deb10u1
ii  gpgv                  2.2.12-1+deb10u1
ii  libc6                 2.28-10
ii  libfile-homedir-perl  1.004-1
ii  libfile-which-perl    1.23-1
ii  libipc-run-perl       20180523.0-1
ii  libmoo-perl           2.003004-2
ii  libwww-perl           6.36-2
ii  patchutils            0.3.4-2
ii  perl                  5.28.1-6
ii  python3               3.7.3-1
ii  sensible-utils        0.0.12
ii  wdiff                 1.2.2-2+b1

Versions of packages devscripts recommends:
ii  apt                         1.8.2
ii  at                          3.1.23-1
ii  curl                        7.64.0-4
ii  dctrl-tools                 2.24-3
ii  debian-keyring              2019.02.25
ii  dput                        1.0.3
ii  equivs                      2.2.0
ii  libdistro-info-perl         0.21
ii  libdpkg-perl                1.19.7
ii  libencode-locale-perl       1.05-1
ii  libgit-wrapper-perl         0.048-1
ii  libgitlab-api-v4-perl       0.16-1
ii  liblist-compare-perl        0.53-1
ii  liblwp-protocol-https-perl  6.07-2
ii  libsoap-lite-perl           1.27-1
ii  libstring-shellquote-perl   1.04-1
ii  libtry-tiny-perl            0.30-1
ii  liburi-perl                 1.76-1
ii  licensecheck                3.0.31-3
ii  lintian                     2.15.0
ii  man-db                      2.8.5-2
ii  patch                       2.7.6-3+deb10u1
ii  python3-apt                 1.8.4
ii  python3-debian              0.1.35
ii  python3-magic               2:0.4.15-2
ii  python3-requests            2.21.0-1
ii  python3-unidiff             0.5.4-1
ii  python3-xdg                 0.25-5
ii  strace                      4.26-0.2
ii  unzip                       6.0-23+deb10u1
ii  wget                        1.20.1-1.1
ii  xz-utils                    5.2.4-1

Versions of packages devscripts suggests:
pn  adequate                                  <none>
pn  autopkgtest                               <none>
pn  bls-standalone                            <none>
ii  bsd-mailx [mailx]                         8.1.2-0.20180807cvs-1
ii  build-essential                           12.6
pn  check-all-the-things                      <none>
pn  cvs-buildpackage                          <none>
ii  debhelper                                 12.1.1
pn  devscripts-el                             <none>
pn  diffoscope                                <none>
pn  disorderfs                                <none>
pn  dose-extra                                <none>
pn  duck                                      <none>
pn  faketime                                  <none>
pn  gnuplot                                   <none>
pn  how-can-i-help                            <none>
ii  libauthen-sasl-perl                       2.1600-1
pn  libdbd-pg-perl                            <none>
ii  libfile-desktopentry-perl                 0.22-1
pn  libnet-smtps-perl                         <none>
pn  libterm-size-perl                         <none>
ii  libtimedate-perl                          2.3000-2
pn  libyaml-syck-perl                         <none>
pn  mozilla-devscripts                        <none>
pn  mutt                                      <none>
ii  openssh-client [ssh-client]               1:7.9p1-10+deb10u1
pn  piuparts                                  <none>
ii  postgresql-client-11 [postgresql-client]  11.6-0+deb10u1
ii  quilt                                     0.65-3
pn  ratt                                      <none>
pn  reprotest                                 <none>
pn  svn-buildpackage                          <none>
pn  w3m                                       <none>

-- no debconf information

Reply via email to