Package: devscripts
Version: 2.21.4
Severity: normal
Tags: patch
X-Debbugs-Cc: [email protected]

Dear Maintainer,

   * What led up to the situation?

        Upon using dget, we would like to build a package with --build given 
like this:

        dget --build 
https://ftp.debian.org/debian/pool/main/a/adduser/adduser_3.115.dsc

        However, in this case, dget just downloads files and exits before the 
build process starts.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

        After some investigation, I found that a regex in dget.pl fails to 
match with the
        following string, which is supposed to match with the regex pattern.

        dpkg-source: info: extracting adduser in adduser-3.115

        It looks like dpkg-source displays the message above with color 
whenever possible.
        This leds to an idea that "color codes" embedded in the string prevent 
the regex above 
        from matching with the info message produced by dpkg-source.

        Therefore, I created a small patch to fix this issue.
        See an attached file for details of the patch.

   * What was the outcome of this action?

        A deb package build does not start even though --build is given.

   * What outcome did you expect instead?

        A deb package build starts whenever --build option is given.

-- Package-specific info:

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

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

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

Kernel: Linux 4.19.0-16-cloud-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE, TAINT_SOFTLOCKUP
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages devscripts depends on:
ii  dpkg-dev              1.20.9
ii  fakeroot              1.25.3-1.1
ii  file                  1:5.39-3
ii  gnupg                 2.2.27-2
ii  gpgv                  2.2.27-2
ii  libc6                 2.31-17
ii  libfile-dirlist-perl  0.05-2
ii  libfile-homedir-perl  1.006-1
ii  libfile-touch-perl    0.11-1
ii  libfile-which-perl    1.23-1
ii  libipc-run-perl       20200505.0-1
ii  libmoo-perl           2.005004-1
ii  libwww-perl           6.53-1
ii  patchutils            0.4.2-1
ii  perl                  5.32.1-5
ii  python3               3.9.2-3
ii  sensible-utils        0.0.17
ii  wdiff                 1.2.2-2+b1

Versions of packages devscripts recommends:
ii  apt                         2.3.8
pn  dctrl-tools                 <none>
pn  debian-keyring              <none>
pn  dput | dupload              <none>
pn  equivs                      <none>
pn  libdistro-info-perl         <none>
ii  libdpkg-perl                1.20.9
ii  libencode-locale-perl       1.05-1.1
pn  libgit-wrapper-perl         <none>
pn  libgitlab-api-v4-perl       <none>
pn  liblist-compare-perl        <none>
ii  liblwp-protocol-https-perl  6.10-1
pn  libsoap-lite-perl           <none>
pn  libstring-shellquote-perl   <none>
ii  libtry-tiny-perl            0.30-1
ii  liburi-perl                 5.08-1
pn  licensecheck                <none>
pn  lintian                     <none>
pn  man-db                      <none>
ii  patch                       2.7.6-7
pn  pristine-tar                <none>
ii  python3-apt                 2.2.1
ii  python3-debian              0.1.39
pn  python3-magic               <none>
ii  python3-requests            2.25.1+dfsg-2
pn  python3-unidiff             <none>
pn  python3-xdg                 <none>
pn  strace                      <none>
pn  unzip                       <none>
pn  wget | curl                 <none>
ii  xz-utils                    5.2.5-2

Versions of packages devscripts suggests:
pn  adequate                   <none>
pn  at                         <none>
pn  autopkgtest                <none>
pn  bls-standalone             <none>
pn  bsd-mailx | mailx          <none>
pn  build-essential            <none>
pn  check-all-the-things       <none>
pn  cvs-buildpackage           <none>
pn  debhelper                  <none>
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>
pn  libauthen-sasl-perl        <none>
pn  libdbd-pg-perl             <none>
pn  libfile-desktopentry-perl  <none>
pn  libnet-smtps-perl          <none>
pn  libterm-size-perl          <none>
ii  libtimedate-perl           2.3300-2
pn  libyaml-syck-perl          <none>
pn  mmdebstrap                 <none>
pn  mozilla-devscripts         <none>
pn  mutt                       <none>
pn  piuparts                   <none>
pn  postgresql-client          <none>
pn  pristine-lfs               <none>
pn  quilt                      <none>
pn  ratt                       <none>
pn  reprotest                  <none>
pn  ssh-client                 <none>
pn  svn-buildpackage           <none>
pn  w3m                        <none>

-- no debconf information

Attachment: 0001-scripts-dget.pl-fix-regex-for-build-option-to-work.patch
Description: 0001-scripts-dget.pl-fix-regex-for-build-option-to-work.patch

Reply via email to