Debian Bug report logs - #834976
auto-apt-proxy: FTBFS: SC2039: In POSIX sh, 'local' is undefined

version graph

Package: src:auto-apt-proxy; Maintainer for src:auto-apt-proxy is Antonio Terceiro <terceiro@debian.org>;

Reported by: Chris Lamb <lamby@debian.org>

Date: Sun, 21 Aug 2016 09:54:02 UTC

Severity: serious

Tags: patch

Found in version auto-apt-proxy/1

Fixed in version auto-apt-proxy/2

Done: Antonio Terceiro <terceiro@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, reproducible-builds@lists.alioth.debian.org, Antonio Terceiro <terceiro@debian.org>:
Bug#834976; Package src:auto-apt-proxy. (Sun, 21 Aug 2016 09:54:05 GMT) (full text, mbox, link).


Acknowledgement sent to Chris Lamb <lamby@debian.org>:
New Bug report received and forwarded. Copy sent to reproducible-builds@lists.alioth.debian.org, Antonio Terceiro <terceiro@debian.org>. (Sun, 21 Aug 2016 09:54:05 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Chris Lamb <lamby@debian.org>
To: submit@bugs.debian.org
Subject: auto-apt-proxy: FTBFS: SC2039: In POSIX sh, 'local' is undefined
Date: Sun, 21 Aug 2016 10:50:42 +0100
[Message part 1 (text/plain, inline)]
Source: auto-apt-proxy
Version: 1
Severity: serious
Justification: fails to build from source
User: reproducible-builds@lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Dear Maintainer,

auto-apt-proxy fails to build from source in unstable/amd64:

  [..]

  
  **************************************************************************************
  ** Starting build                                                                   **
  **************************************************************************************
  
   Package:              auto-apt-proxy
   Version:              1
   Build architecture:   amd64
   Date:                 Sun, 21 Aug 2016 10:40:03 +0100
   Hostname:             4084b642edd1
   Uname:                Linux 4084b642edd1 4.6.0-1-amd64 #1 SMP Debian 4.6.4-1 (2016-07-18) x86_64 GNU/Linux
   /etc/timezone:        Europe/London
  
  **************************************************************************************
  ** Installing build dependencies                                                    **
  **************************************************************************************
  
  dh_testdir
  dh_testroot
  dh_prep
  dh_testdir
  dh_testroot
  dh_install
  dh_installdocs
  dh_installchangelogs
  dh_compress
  dh_fixperms
  dh_installdeb
  dh_gencontrol
  dh_md5sums
  dh_builddeb
  dpkg-deb: building package 'auto-apt-proxy-build-deps' in '../auto-apt-proxy-build-deps_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!
  Selecting previously unselected package auto-apt-proxy-build-deps.
  (Reading database ... 23244 files and directories currently installed.)
  Preparing to unpack auto-apt-proxy-build-deps_1_all.deb ...
  Unpacking auto-apt-proxy-build-deps (1) ...
  Reading package lists...
  Building dependency tree...
  Reading state information...
  Correcting dependencies... Done
  The following additional packages will be installed:
    shellcheck
  The following NEW packages will be installed:
    shellcheck
  0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  1 not fully installed or removed.
  Need to get 1667 kB of archives.
  After this operation, 13.9 MB of additional disk space will be used.
  Get:1 http://httpredir.debian.org/debian sid/main amd64 shellcheck amd64 0.4.4-2 [1667 kB]
  Fetched 1667 kB in 0s (84.9 MB/s)
  Selecting previously unselected package shellcheck.
  (Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 23248 files and directories currently installed.)
  Preparing to unpack .../shellcheck_0.4.4-2_amd64.deb ...
  Unpacking shellcheck (0.4.4-2) ...
  Setting up shellcheck (0.4.4-2) ...
  Processing triggers for man-db (2.7.5-1) ...
  Setting up auto-apt-proxy-build-deps (1) ...
  
  **************************************************************************************
  ** Environment                                                                      **
  **************************************************************************************
  
  PATH=/home/lamby/git/projects/dotfiles/dotfiles/..//bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  HOSTNAME=4084b642edd1
  TERM=xterm
  PAGER=more
  DISPLAY=:0
  DOCKER_IMAGE=lamby-debian-sid
  DEB_BUILD_OPTIONS=parallel=9
  PIP_DOWNLOAD_CACHE=/home/lamby/.cache/pip
  HOME=/home/lamby
  LOGNAME=lamby
  SHLVL=1
  PWD=/home/lamby/temp/cdt.20160821104002.Ei1p5KYGw2.db.auto-apt-proxy/auto-apt-proxy-1
  OLDPWD=/home/lamby/temp/cdt.20160821104002.Ei1p5KYGw2.db.auto-apt-proxy
  GPG_TTY=/dev/console
  QUILT_PATCHES=debian/patches
  QUILT_NO_DIFF_INDEX=1
  QUILT_REFRESH_ARGS=-p ab --no-timestamps --no-index
  DEBEMAIL=lamby@debian.org
  DEBFULLNAME=Chris Lamb
  EDITOR=vim
  LESS=-cgiFx4M
  GPG_KEY=1E953E27D4311E58
  BLASTER=A220 I5 D1 H5 P330 T6
  _=/usr/bin/env
  
  **************************************************************************************
  ** Building auto-apt-proxy 1 on amd64                                               **
  **************************************************************************************
  
   dpkg-buildpackage -rfakeroot -D -us -uc -b
  dpkg-buildpackage: info: source package auto-apt-proxy
  dpkg-buildpackage: info: source version 1
  dpkg-buildpackage: info: source distribution unstable
  dpkg-buildpackage: info: source changed by Antonio Terceiro <terceiro@debian.org>
   dpkg-source --before-build auto-apt-proxy-1
  dpkg-buildpackage: info: host architecture amd64
   fakeroot debian/rules clean
  dh clean
     dh_testdir
     debian/rules override_dh_auto_clean
  make[1]: Entering directory '/home/lamby/temp/cdt.20160821104002.Ei1p5KYGw2.db.auto-apt-proxy/auto-apt-proxy-1'
  rm -f auto-apt-proxy.1 auto-apt-proxy.pod
  dh_auto_clean
  make[1]: Leaving directory '/home/lamby/temp/cdt.20160821104002.Ei1p5KYGw2.db.auto-apt-proxy/auto-apt-proxy-1'
     dh_clean
   debian/rules build
  dh build
     dh_testdir
     dh_update_autotools_config
     dh_auto_configure
     debian/rules override_dh_auto_build
  make[1]: Entering directory '/home/lamby/temp/cdt.20160821104002.Ei1p5KYGw2.db.auto-apt-proxy/auto-apt-proxy-1'
  sed -e 's/^#/=head1/' README.md > auto-apt-proxy.pod || (rm -f auto-apt-proxy.pod; false)
  pod2man --verbose --name auto-apt-proxy -c '' -r '' --utf8 auto-apt-proxy.pod auto-apt-proxy.1 || (rm -f auto-apt-proxy.1; false)
    auto-apt-proxy.1
  dh_auto_build
  make[1]: Leaving directory '/home/lamby/temp/cdt.20160821104002.Ei1p5KYGw2.db.auto-apt-proxy/auto-apt-proxy-1'
     debian/rules override_dh_auto_test
  make[1]: Entering directory '/home/lamby/temp/cdt.20160821104002.Ei1p5KYGw2.db.auto-apt-proxy/auto-apt-proxy-1'
  dh_auto_test
  shellcheck auto-apt-proxy
  
  In auto-apt-proxy line 19:
    local ip="$1"
    ^-- SC2039: In POSIX sh, 'local' is undefined.
  
  
  In auto-apt-proxy line 20:
    local proxy=http://$ip:3142
    ^-- SC2039: In POSIX sh, 'local' is undefined.
  
  debian/rules:14: recipe for target 'override_dh_auto_test' failed
  make[1]: *** [override_dh_auto_test] Error 1
  make[1]: Leaving directory '/home/lamby/temp/cdt.20160821104002.Ei1p5KYGw2.db.auto-apt-proxy/auto-apt-proxy-1'
  debian/rules:4: recipe for target 'build' failed
  make: *** [build] Error 2

  [..]

The full build log is attached.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby@debian.org / chris-lamb.co.uk
       `-
[auto-apt-proxy.1.unstable.amd64.log.txt.gz (application/octet-stream, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Antonio Terceiro <terceiro@debian.org>:
Bug#834976; Package src:auto-apt-proxy. (Sun, 21 Aug 2016 10:00:03 GMT) (full text, mbox, link).


Acknowledgement sent to Chris Lamb <lamby@debian.org>:
Extra info received and forwarded to list. Copy sent to Antonio Terceiro <terceiro@debian.org>. (Sun, 21 Aug 2016 10:00:03 GMT) (full text, mbox, link).


Message #10 received at 834976@bugs.debian.org (full text, mbox, reply):

From: Chris Lamb <lamby@debian.org>
To: 834976@bugs.debian.org
Subject: Re: auto-apt-proxy: FTBFS: SC2039: In POSIX sh, 'local' is undefined
Date: Sun, 21 Aug 2016 10:57:55 +0100
[Message part 1 (text/plain, inline)]
tags 834976 + patch
thanks

Patch attached.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby@debian.org / chris-lamb.co.uk
       `-
[auto-apt-proxy.diff.txt (text/plain, attachment)]

Added tag(s) patch. Request was from Chris Lamb <lamby@debian.org> to control@bugs.debian.org. (Sun, 21 Aug 2016 10:00:06 GMT) (full text, mbox, link).


Reply sent to Antonio Terceiro <terceiro@debian.org>:
You have taken responsibility. (Mon, 22 Aug 2016 17:24:14 GMT) (full text, mbox, link).


Notification sent to Chris Lamb <lamby@debian.org>:
Bug acknowledged by developer. (Mon, 22 Aug 2016 17:24:14 GMT) (full text, mbox, link).


Message #17 received at 834976-close@bugs.debian.org (full text, mbox, reply):

From: Antonio Terceiro <terceiro@debian.org>
To: 834976-close@bugs.debian.org
Subject: Bug#834976: fixed in auto-apt-proxy 2
Date: Mon, 22 Aug 2016 17:20:43 +0000
Source: auto-apt-proxy
Source-Version: 2

We believe that the bug you reported is fixed in the latest version of
auto-apt-proxy, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 834976@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Antonio Terceiro <terceiro@debian.org> (supplier of updated auto-apt-proxy package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Mon, 22 Aug 2016 13:26:44 -0300
Source: auto-apt-proxy
Binary: auto-apt-proxy
Architecture: source
Version: 2
Distribution: unstable
Urgency: medium
Maintainer: Antonio Terceiro <terceiro@debian.org>
Changed-By: Antonio Terceiro <terceiro@debian.org>
Description:
 auto-apt-proxy - automatic detector of common APT proxy settings
Closes: 834976
Changes:
 auto-apt-proxy (2) unstable; urgency=medium
 .
   * specify `--shell dash` to shellcheck (Closes: #834976)
     - unfortunately POSIX shell doesn't even define function-local variables,
       which are IMO a good thing to use.
Checksums-Sha1:
 c7772dfdf15384654b3ba9f2139a2c1a4f92768e 1734 auto-apt-proxy_2.dsc
 ca6d809cddbf36f25636ad501f99883866d72c0d 13692 auto-apt-proxy_2.tar.xz
Checksums-Sha256:
 10cf39ce0ca01828b3117a8d607258861e0d50aa1cf1063411f3dcc074890f61 1734 auto-apt-proxy_2.dsc
 6b0a714871ea71b3e78c8a96635c0d463ce4fac0a3f3145e8f15e1d931502b53 13692 auto-apt-proxy_2.tar.xz
Files:
 47a1d2de3b8d7f92e2ac70ef94e888e8 1734 net optional auto-apt-proxy_2.dsc
 dfc558e24e2e721645439e3ec081e29a 13692 net optional auto-apt-proxy_2.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIcBAEBCAAGBQJXuyg9AAoJEPwNsbvNRgveAuAP/3t0cb3g1yRLrj+jY8NGSd80
YJCqPAZLsN9SPBqGUByLfF59R0yVolBNaBbsfIIVObXPeg9sqs4iekPmD6h4sm2K
ifrzFRrNjgleJzF+v2pe4EeN99FRkyo+kdh1oX71TqhQNa9HZAzHlKhso3AOGyzR
P8ZUvFefqn+vsTLvb5rSgKA7MOB3lwwkmyWVjZeNxQ8x6LYWZINTCg5O8ZpFov0E
VW99fCgMOt/FJuo9sM3V3sMuTx9Tc5+yLEgRsxIZ3gWK4KUPSbT+i95IZE8Zj9mp
i0jIXtUE8Q2ICX/v+8K7Xb4rWkyBmvZWJ0Tajknw2MsAy43+wtua4M8H1F9/kIQd
rSmAPuBKCXaDJfBCCA87HGrhZAeQbMhSIJ6E23Q28e09zmAeOH38URbrXMcexHBu
VofUGhY0GO/2Q4JHdWWsdQw8fU6dwqu5pjGTSAI8g0uwmAW2sBWHX0ANjE197aIE
MqCRMVF4TGdu9std5vFOAFHZG3e2X0mBSTH3GcvMxbUn8s5hRX/uOmU08zxQmFmp
uY9Ue4vfg9/WrKFmZdVMt7DiOlpCQlt3iGwiD59T4gLbh4Nb+geUtbfvG9X9YQkI
vlxh8y8G+Utg3EkhZTIlMVz6kzICWFEugHeIslUORnHkPq5r7KBH4JNyakcRiqs3
XL0snHTK7xtO88XfEokQ
=/9WE
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 25 Sep 2016 07:28:39 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed May 17 13:51:32 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.