Your message dated Wed, 09 Apr 2025 17:50:09 +0000
with message-id <[email protected]>
and subject line Bug#902792: fixed in torsocks 2.5.0-1
has caused the Debian Bug report #902792,
regarding torsocks: fails catastrophically with multi-arch
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
902792: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=902792
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: torsocks
Version: 2.2.0-1+deb9u1
Severity: important
Tags: patch
Dear Maintainer,
On multi-arch systems, torsocks fails catastrophically with
other-arch binaries.
E.g. with torsocks:i386 and wget:amd64,
torsocks wget https://check.torproject.org
just spits
ERROR: ld.so: object '/usr/lib/i386-linux-gnu/torsocks/libtorsocks.so'
from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32):
ignored.
and happily continue connecting bypassing tor.
* What outcome did you expect instead?
It should be possible to co-install torsocks:i386 and torsocks:amd64,
and then it should work with both :amd64 and :i386 binaries.
(I'd like to point out to glibc ld.so feature to replace '$LIB' in
LD_PRELOAD and LD_LIBRARY_PATH with path to multi-arched /lib/ directory).
Some (very rough) patch attached (warning: only checked on linux; I have
no idea if this will work on hurd or kfreebsd).
-- System Information:
Debian Release: 9.4
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-debug'), (500,
'proposed-updates-debug'), (500, 'proposed-updates'), (500, 'stable')
Architecture: i386 (x86_64)
Foreign Architectures: amd64
Kernel: Linux 4.9.0-6-amd64 (SMP w/2 CPU cores)
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R),
LANGUAGE=ru_RU.KOI8-R (charmap=KOI8-R)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages torsocks depends on:
ii libc6 2.24-11+deb9u3
Versions of packages torsocks recommends:
ii tor 0.3.3.7-1~bpo9+1
torsocks suggests no packages.
-- no debconf information
diff -Nru torsocks-2.2.0/debian/control torsocks-2.2.0/debian/control
--- torsocks-2.2.0/debian/control 2017-08-04 22:09:04.000000000 +0300
+++ torsocks-2.2.0/debian/control 2018-06-30 23:50:37.000000000 +0300
@@ -15,6 +15,8 @@
Package: torsocks
Architecture: any
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
Depends: ${shlibs:Depends},
${misc:Depends}
Recommends: tor
@@ -22,3 +24,7 @@
Torsocks allows you to use most SOCKS-friendly applications in a safe way with
Tor. It ensures that DNS requests are handled safely and explicitly rejects
UDP traffic from the application you're using.
+ .
+ WARNING: on multi-arch systems, this package should be installed in all
+ enabled architectures.
+
diff -Nru torsocks-2.2.0/debian/patches/remove-M-A-conflicting-check.patch
torsocks-2.2.0/debian/patches/remove-M-A-conflicting-check.patch
--- torsocks-2.2.0/debian/patches/remove-M-A-conflicting-check.patch
1970-01-01 03:00:00.000000000 +0300
+++ torsocks-2.2.0/debian/patches/remove-M-A-conflicting-check.patch
2018-06-30 23:52:29.000000000 +0300
@@ -0,0 +1,17 @@
+Index: torsocks-2.2.0/src/bin/torsocks.in
+===================================================================
+--- torsocks-2.2.0.orig/src/bin/torsocks.in
++++ torsocks-2.2.0/src/bin/torsocks.in
+@@ -219,10 +219,12 @@ if [ $# -eq 0 ] ; then
+ fi
+
+ # Ensure libtorsocks exists,
++if false; then
+ if [ ! -f $SHLIB ]; then
+ echo "$0: $SHLIB does not exist! Try re-installing torsocks."
+ exit
+ fi
++fi
+
+ while true;
+ do
diff -Nru torsocks-2.2.0/debian/patches/series
torsocks-2.2.0/debian/patches/series
--- torsocks-2.2.0/debian/patches/series 2017-08-04 22:09:04.000000000
+0300
+++ torsocks-2.2.0/debian/patches/series 2018-06-30 23:52:29.000000000
+0300
@@ -1,2 +1,3 @@
Fix-check_addr-to-return-either-0-or-1.patch
exclude_test_requiring_network.patch
+remove-M-A-conflicting-check.patch
diff -Nru torsocks-2.2.0/debian/rules torsocks-2.2.0/debian/rules
--- torsocks-2.2.0/debian/rules 2017-08-04 22:09:04.000000000 +0300
+++ torsocks-2.2.0/debian/rules 2018-06-30 23:52:29.000000000 +0300
@@ -14,6 +14,7 @@
override_dh_auto_install:
dh_auto_install
+ sed -i 's,lib/$(DEB_HOST_MULTIARCH),\\$$LIB,'
$(DESTDIR)/usr/bin/$(PACKAGE)
dh_bash-completion
rm $(DESTDIR)/usr/share/doc/torsocks/DEBUG
rm $(DESTDIR)/usr/share/doc/torsocks/socks-extensions.txt
--- End Message ---
--- Begin Message ---
Source: torsocks
Source-Version: 2.5.0-1
Done: Sandro Knauß <[email protected]>
We believe that the bug you reported is fixed in the latest version of
torsocks, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Sandro Knauß <[email protected]> (supplier of updated torsocks 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 [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Wed, 09 Apr 2025 19:27:01 +0200
Source: torsocks
Architecture: source
Version: 2.5.0-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Privacy Tools Maintainers
<[email protected]>
Changed-By: Sandro Knauß <[email protected]>
Closes: 902792
Changes:
torsocks (2.5.0-1) unstable; urgency=medium
.
* New upstream release.
* Update copyright file.
* Remove 2 obsolete maintscript entries in 1 files.
* Drop unnecessary dependency on dh-autoreconf.
* Move upstream name and contact to copyright file.
* Update link from metadata file to dep12.
* Make dependency of torsocks -> libtorsocks arch:all compatible.
* Add patch to make torsocks M-A:foreign and Arch:all (Closes: #902792).
* Use Pre-Depends for libtorsocks.
* Do not ship <tripplet>-torsocks scripts anymore, instead we use ld.so
feature to load the correct library.
* Remove upstream applied patch.
* Warn user if libtorsocks is not installed for all archs.
Checksums-Sha1:
5e8d9bac4124d563f6d06b50755dde9f896beab8 2207 torsocks_2.5.0-1.dsc
d0e408daeefeeb154a85e98cc4c0873059ae8baf 99062 torsocks_2.5.0.orig.tar.bz2
12bd3d222b005393511c827185637fc4d47b8a3e 13900 torsocks_2.5.0-1.debian.tar.xz
Checksums-Sha256:
39b664653f68e86ccb9f4669dbe19e1cc59c09678358db15e29796775bc431ab 2207
torsocks_2.5.0-1.dsc
31a917328b221e955230b7663abfbc50d3a9b445a68cb0313c11cf884f8cb41f 99062
torsocks_2.5.0.orig.tar.bz2
564ef69c0832da37b72816a98f96034be25a2b565c1411350c9675ae39adc71a 13900
torsocks_2.5.0-1.debian.tar.xz
Files:
7826f3055cf71cd36f90f1fb864f9e58 2207 net optional torsocks_2.5.0-1.dsc
f81d17b12234982b73f1332b633fd746 99062 net optional torsocks_2.5.0.orig.tar.bz2
62378218b693c8d79c01b208d8c81816 13900 net optional
torsocks_2.5.0-1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iQJFBAEBCgAvFiEEOewRoCAWtykmSRoG462wCFBgVjYFAmf2r4YRHGhlZmVlQGRl
Ymlhbi5vcmcACgkQ462wCFBgVjZWWBAAo2qkknrE+tHP5ZAWquR6Mu5gbv5p9u25
/O+fR7Mo7OjskEBSkR7luaqwFs9RFGX1kprv6GTmPpmilSNxSl4oSyyazl3XXG7S
OJ+atSakvlQIOjX6sQFBJEqcyXmUir3Gzzi5UeAMFas1T8VkVb4798UUyEjzWABQ
469nIldylOfL5nYHDjs4ntNHEzMxSEtFZwfhvlENk4vfT9JcSv6PfrphApWgREYb
T+EACfRWkyQXB9sPbWprPANvJr4YVBRlBpgP6JMRs4/vUX31aKi7ZdUcOnHD/KBc
MEvNz946lhy1DBRtLgWGzOEtVllNKQAPU0a5WX48ji4jg1GXPmaRK4mLlGFkRioE
Kytl5U/bzK3IwO5urtZZJ6xtLsfux1bjln+VyiYiblTu6tDs/SbQt3A8AeMmYnTc
8ZqcYscF/Zieemnj/oxPghPO1TlK4GBUaMroSx0qWebk4u8xmDFzUNTZwMgS809y
/seTP6gXe7GpgNAkWnplVd0/WYspBgbfq8vBAsuMwK9mJoxeQpVMhsJe/iAFJ+oW
BXyiacj7twCqBZj8CV8i7975/DMgYGUc5Ly3J2sVbccTeGpow7WNNAPgv/gMJ/tv
RQxEtXA80/Z6ZAHlOLK/obxngHHsRRkX61WNJoBKXEAvfAdsHy0B3hTwosDJuOm1
/by3xrPA7/Q=
=lgA/
-----END PGP SIGNATURE-----
pgpGiq2x9FS8b.pgp
Description: PGP signature
--- End Message ---