Bug#1144747: trixie-pu: package auto-apt-proxy/16.8+deb13u2

Antonio Terceiro <[email protected]>
Newsgroups gmane.linux.debian.devel.release
Message-ID <aoR5bGNWnDC1vYwf__39277.1087515698$1787066852$gmane$org@debian.org>
Package: release.debian.org
Severity: normal
Tags: trixie
X-Debbugs-Cc: [email protected]
Control: affects -1 + src:auto-apt-proxy
User: [email protected]
Usertags: pu

[ Reason ]
auto-apt-proxy is a helper tool for APT that automatically detects APT
proxies on the local network. In some networking configurations it might
enter an infinite loop. This bug is 

[ Impact ]
auto-apt-proxy might not only not detect a proxy, but will also go into
a infinite loop and prevent APT from working entirely.

[ Tests ]
All the autopkgtest pass with this change. The bug reporter also
confirmed that the change fixes things for them.

[ Risks ]
The change is trivial and risk is minimal, if not zero.

[ Checklist ]
  [x] *all* changes are documented in the d/changelog
  [x] I reviewed all changes and I approve them
  [x] attach debdiff against the package in (old)stable
  [x] the issue is verified as fixed in unstable

[ Changes ]
The call to `apt-helper download-file` will now receive an extra option
telling it to not use an APT proxy autodetection command, which would
cause auto-apt-proxy to be called again.

There is also a change to one of the test cases that is currently
failing in trixie. That test case is not a problem for forky because
there the default timeout for network operations has been changed to 1s
instead of 5.

[ Other info ]
n/a
auto-apt-proxy.trixie.diff (text/x-diff, 1.5 KB)
diff --git c/auto-apt-proxy w/auto-apt-proxy
index b730234..2b0903b 100755
--- c/auto-apt-proxy
+++ w/auto-apt-proxy
@@ -77,6 +77,7 @@ proxy_url() {
 hit() {
   timeout 5 /usr/lib/apt/apt-helper \
     -o Acquire::http::Proxy=DIRECT -o Acquire::Retries=0 \
+    -o Acquire::http::Proxy-Auto-Detect= \
     download-file "$@" "$output" 2>&1
 }
 
diff --git c/debian/changelog w/debian/changelog
index a8cccf7..ef2abb6 100644
--- c/debian/changelog
+++ w/debian/changelog
@@ -1,3 +1,11 @@
+auto-apt-proxy (16.8+deb13u2) trixie; urgency=medium
+
+  * hit(): prevent apt-helper call from recursing into auto-apt-proxy
+    (Closes: #1142542)
+  * debian/tests/timeout: fix tests to be more reliable
+
+ -- Antonio Terceiro <[email protected]>  Tue, 18 Aug 2026 12:13:08 -0300
+
 auto-apt-proxy (16.8+deb13u1) trixie; urgency=medium
 
   * Check explicitly configured proxies before network gateway
diff --git c/debian/tests/timeout w/debian/tests/timeout
index 08a8c26..3d1e026 100755
--- c/debian/tests/timeout
+++ w/debian/tests/timeout
@@ -14,10 +14,10 @@ class TimeoutProxy
 end
 run TimeoutProxy.new
 PROXY
-rackup --daemonize --pid proxy.pid --port 9999
+rackup --daemonize --pid proxy.pid --host 127.0.0.1 --port 9999
 trap 'kill -9 $(cat proxy.pid)' INT TERM EXIT
 
 set -x
 
-# auto-apt-proxy should timeout and exit 0 in less than 15 seconds
-timeout --signal=KILL 15 auto-apt-proxy
+# auto-apt-proxy should timeout and exit 0 in less than 60 seconds
+timeout --signal=KILL 60 auto-apt-proxy
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEst7mYDbECCn80PEM/A2xu81GC94FAmqEeW0ACgkQ/A2xu81G
C94U7BAAjCNJ2owvo8m+1QaPz2m5DQo/pXvMVtwxHw26auKEyolakK+CjTC7wGgm
Fnfw+kCT713Lg5cU+hl9jvuZjcz3SDClq/BngSFW9vWRXuasy28ZvfYK9dNrb2gK
4cJlYJ2t/C8OEwz0Udd8unxBaob7dU9kj0t0FoM2l1vTbUIjxJxz54nolTogyR3O
zBIfUIFAmcFIjCU3+t+kdm5YwUBzsfspDbJvI6iffwAwX7DI3H4vIKiG0LmU0Jcm
XjzHofqoWi5svWiNSHjRjTFPrkF7QP3phWwZFOIuObAuQLuvQSXx6ZTvyz4UFuj+
VDI1gp+/DDHykuuqPo1Va9DkYhuz9EhwSVvYcT7eC1dqzCEzdQpW4+0q2co3YzS1
mvWpdBVAIeSjC4bWXFwGYAOSzXSoZjnY0QTM2CSyWiJdpZ+xGrmzhIzsqkGamgFq
1JOsVyUq1nbbC9XCSFQDezWohkd4lD6v4duYVMuW3gYFKyL0NOTmOkQCzDx3QF2O
/tLSb6WCWe9yTlpfmFpsfeJtrPerZscbTYWw3kvyMNJ4VdId59vif9+3MCv70fRT
Uk64SU8huoZ2NQuhUjdEJgMaAylcLUsNWKfrXJMRkQN1z8hnnRgjJGqmpY2QII76
PiHWI3lsGQnVJpYJuuhkXEF513JOFJP2gPk5N5ZRkioTwHHzSdY=
=Savc
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.