Package: devscripts
Version: 2.25.5
Severity: minor
X-Debbugs-Cc: sre4e...@free.fr


Dear Maintainers,

The current implementation of uscan uses the uversionmangled version to
generate the destination filename of the git export archive (to be used as
pristine tar archive) as well as the path prefix for all included files, which
is inconvenient and probably not an intended feature.

For example currently with this watch file:

```
version=4
opts=\
 mode=git,\
 repack,compression=xz,\
uversionmangle=y/[A-Z]/[a-z]/;s/-alpha-/~10-/;s/-milestone-/~20-/;s/-rc-/~30-/;\
  s/-([a-z]+-)/~05$1/,\
dversionmangle=s/@DEB_EXT@//;s/~alpha-/~10-/;s/~milestone-/~20-/;s/~rc-/~30-/;\
  s/~([a-z]+-)/~05$1/,\
 oversionmangle=s/~10-/-alpha-/;s/~20-/-milestone-/;s/~30-/-rc-/;\
  s/~05([a-z]+-)/-$1/, \
 https://github.com/gradle/native-platform.git \
 refs/tags/@ANY_VERSION@

# mangle rules are for sort order: -[a-z]+- < -alpha- < -milestone- < -rc- < .*
```

the following files and links are created:

```
-rw-rw-r-- 1 ... ... 161404 Feb 26 17:24 libnative-platform-
java-0.22~20-28.tar.xz
lrwxrwxrwx 1 ... ...    105 Feb 26 17:24 libnative-platform-
java_0.22-milestone-28.orig.tar.xz -> /.../libnative-platform-
java_0.22~milestone-28.orig.tar.xz
-rw-rw-r-- 1 ... ... 103684 Feb 26 18:27 libnative-platform-
java_0.22~milestone-28.orig.tar.xz
```

and `tar tJf libnative-platform-java-0.22~20-28.tar.xz` outputs:

```
libnative-platform-java-0.22~20-28/
libnative-platform-java-0.22~20-28/.clang-format
libnative-platform-java-0.22~20-28/.editorconfig
...
```

instead of having a `libnative-platform-java-0.22-milestone-28.tar.xz` that
contains files prefixed by `libnative-platform-java-0.22-milestone-28/`.

A merge request fixing this will follow.

Best regards,

--
Julien Plissonneau Duquène


-- Package-specific info:

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

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

-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (20, 'unstable'), (10, 'experimental'), (5, 
'stable-updates'), (5, 'stable-security'), (5, 'bookworm-fasttrack'), (5, 
'bookworm-backports-staging'), (5, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.17-amd64 (SMP w/12 CPU threads; PREEMPT)
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 devscripts depends on:
ii  dpkg-dev              1.22.15
ii  file                  1:5.45-3+b1
ii  gnupg                 2.2.46-1
ii  gpgv                  2.2.46-1+b1
ii  libfile-dirlist-perl  0.05-3
ii  libfile-homedir-perl  1.006-2
ii  libfile-touch-perl    0.12-2
ii  libfile-which-perl    1.27-2
ii  libipc-run-perl       20231003.0-2
ii  libmoo-perl           2.005005-1
ii  libwww-perl           6.78-1
ii  patchutils            0.4.2-1
ii  perl                  5.40.1-2
ii  python3               3.13.2-1
ii  sensible-utils        0.0.24
ii  wdiff                 1.2.2-7

Versions of packages devscripts recommends:
ii  apt                         2.9.31
ii  curl                        8.12.1-3
ii  dctrl-tools                 2.24-3+b1
ii  debian-keyring              2024.09.22
ii  dput                        1.2.4
ii  equivs                      2.3.1
ii  libdistro-info-perl         1.13
ii  libdpkg-perl                1.22.15
ii  libencode-locale-perl       1.05-3
ii  libgit-wrapper-perl         0.048-2
ii  libgitlab-api-v4-perl       0.27-1
ii  libjson-perl                4.10000-1
ii  liblist-compare-perl        0.55-2
ii  liblwp-protocol-https-perl  6.14-1
ii  libsoap-lite-perl           1.27-3
ii  libstring-shellquote-perl   1.04-3
ii  libtry-tiny-perl            0.32-1
ii  liburi-perl                 5.30-1
ii  licensecheck                3.3.9-1
ii  lintian                     2.121.1+nmu1
ii  lzip                        1.25-2
ii  man-db                      2.13.0-1
ii  patch                       2.7.6-7
ii  pristine-tar                1.50+nmu2
ii  python3-apt                 2.9.9+b1
ii  python3-debian              0.1.49
ii  python3-magic               2:0.4.27-3
ii  python3-requests            2.32.3+dfsg-4
ii  python3-unidiff             0.7.5-2
ii  python3-xdg                 0.28-2
ii  strace                      6.13+ds-1
ii  unzip                       6.0-28
ii  wget                        1.25.0-1
ii  xz-utils                    5.6.4-1

Versions of packages devscripts suggests:
pn  adequate                                  <none>
pn  at                                        <none>
ii  autopkgtest                               5.46
pn  bls-standalone                            <none>
ii  bsd-mailx [mailx]                         8.1.2-0.20220412cvs-1
ii  build-essential                           12.12
pn  check-all-the-things                      <none>
ii  debhelper                                 13.24.1
ii  diffoscope                                289
pn  disorderfs                                <none>
ii  docker.io                                 26.1.5+dfsg1-9
pn  dose-extra                                <none>
pn  duck                                      <none>
pn  elpa-devscripts                           <none>
ii  faketime                                  0.9.10+2024-06-05+gba9ed5b2-0.6
ii  gnuplot                                   6.0.2+dfsg1-1
ii  gnuplot-qt [gnuplot]                      6.0.2+dfsg1-1
pn  how-can-i-help                            <none>
ii  libauthen-sasl-perl                       2.1700-1
pn  libdbd-pg-perl                            <none>
pn  libterm-size-perl                         <none>
ii  libtimedate-perl                          2.3300-2
pn  libyaml-syck-perl                         <none>
ii  mmdebstrap                                1.5.6-3
pn  mutt                                      <none>
ii  openssh-client [ssh-client]               1:9.9p2-1
pn  piuparts                                  <none>
ii  postgresql-client-17 [postgresql-client]  17.4-1
ii  pristine-lfs                              20241219.0-1
ii  python3-debianbts                         4.1.1
ii  python3-pycurl                            7.45.4-1+b1
ii  quilt                                     0.68-1
pn  ratt                                      <none>
pn  reprotest                                 <none>
pn  svn-buildpackage                          <none>
pn  w3m                                       <none>

-- no debconf information

Reply via email to