Bug#753657: mk-build-deps: -i broken

Jan Braun janbraun at gmx.net
Fri Jul 4 00:30:36 UTC 2014


Package: devscripts
Version: 2.14.5
Severity: normal
File: /usr/bin/mk-build-deps

Hi,

the --install option of mk-build-deps is not working for me:

| $ mk-build-deps -s sudo -i polipo
| dpkg-gencontrol: warning: File::FcntlLock not available; using flock which is not NFS-safe
| dpkg-deb: building package `polipo-build-deps' in `../polipo-build-deps_1.1.1-1_all.deb'.
| 
| The package has been created.
| Attention, the package has been created in the current directory,
| not in ".." as indicated by the message above!
| dpkg-gencontrol: warning: File::FcntlLock not available; using flock which is not NFS-safe
| dpkg-deb: building package `polipo-build-deps' in `../polipo-build-deps_1.1.1-1_all.deb'.
| 
| The package has been created.
| Attention, the package has been created in the current directory,
| not in ".." as indicated by the message above!
| Use of uninitialized value $deb_files[1] in system at /usr/bin/mk-build-deps line 354.
| (Reading database ... 209746 files and directories currently installed.)
| Preparing to unpack polipo-build-deps_1.1.1-1_all.deb ...
| Unpacking polipo-build-deps (1.1.1-1) over (1.1.1-1) ...
| dpkg: error processing archive  (--unpack):
|  cannot access archive: No such file or directory
| Errors were encountered while processing:
| 
| dpkg call failed
| $

The immediate reason is an extra empty argument to dpkg, as seen by:
| $ mk-build-deps -s doom -i polipo
| [...]
| Use of uninitialized value $deb_files[1] in system at /usr/bin/mk-build-deps line 354.
| 4 args: <dpkg> <--unpack> <polipo-build-deps_1.1.1-1_all.deb> <>
| 4 args: </usr/bin/apt-get> <--no-install-recommends> <-f> <install>
| $

where "doom" is a shell script doing
| printf "%d args:" $# ; printf " <%s>" "$@" ; echo

Please also note the "uninitialized" warning by perl, for the deb_files
variable that holds the list of packages.
While the code looks superficially correct to me, I'm no perl coder.
Hence, could sombody who is please take a look?

Thanks & regards,
    Jan

-- Package-specific info:

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

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

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (800, 'testing'), (550, 'unstable'), (10, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.14-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages devscripts depends on:
ii  dpkg-dev     1.17.10
ii  libc6        2.19-4
ii  perl         5.18.2-4
ii  python3      3.4.1-1
pn  python3:any  <none>

Versions of packages devscripts recommends:
ii  at                          3.1.14-1
ii  curl                        7.37.0-1+b1
ii  dctrl-tools                 2.23
ii  debian-keyring              2014.04.25
pn  dput | dupload              <none>
ii  equivs                      2.0.9
ii  fakeroot                    1.18.4-2
ii  file                        1:5.19-1
ii  gnupg                       1.4.16-1.2
pn  libdistro-info-perl         <none>
ii  libencode-locale-perl       1.03-1
pn  libjson-perl                <none>
ii  liblwp-protocol-https-perl  6.04-3
pn  libparse-debcontrol-perl    <none>
pn  libsoap-lite-perl           <none>
ii  liburi-perl                 1.60-1
ii  libwww-perl                 6.06-1
pn  lintian                     <none>
ii  man-db                      2.6.7.1-1
ii  patch                       2.7.1-5
pn  patchutils                  <none>
pn  python3-debian              <none>
pn  python3-magic               <none>
ii  sensible-utils              0.0.9
ii  strace                      4.5.20-2.3
ii  unzip                       6.0-12
ii  wdiff                       1.2.2-1
ii  wget                        1.15-1+b1
ii  xz-utils                    5.1.1alpha+20120614-2

Versions of packages devscripts suggests:
pn  bsd-mailx | mailx            <none>
ii  build-essential              11.6
pn  cvs-buildpackage             <none>
pn  devscripts-el                <none>
pn  gnuplot                      <none>
ii  gpgv                         1.4.16-1.2
pn  libauthen-sasl-perl          <none>
pn  libfile-desktopentry-perl    <none>
pn  libnet-smtp-ssl-perl         <none>
pn  libterm-size-perl            <none>
ii  libtimedate-perl             2.3000-2
pn  libyaml-syck-perl            <none>
ii  mutt                         1.5.23-1
ii  openssh-client [ssh-client]  1:6.6p1-5
pn  svn-buildpackage             <none>
pn  w3m                          <none>

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/devscripts-devel/attachments/20140704/04b87d5d/attachment.sig>


More information about the devscripts-devel mailing list