From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Jeronimo Pellegrini Newsgroups: gmane.emacs.bugs Subject: bug#35639: 27.0.50; tramp fails to use ssh on LibreCMC (no base64 encoder available, and not mentioned in tramp manual) Date: Wed, 8 May 2019 20:01:45 -0300 Message-ID: <20190508230145.GA1697@socrates.lan> References: <87d0ksrk0g.fsf@mitra.i-did-not-set--mail-host-address--so-tickle-me> <87k1f03im0.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="238286"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.10.1 (2018-07-13) Cc: 35639@debbugs.gnu.org, Jeronimo Pellegrini To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 09 01:02:11 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hOVZi-000zrz-WC for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 May 2019 01:02:11 +0200 Original-Received: from localhost ([127.0.0.1]:44835 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOVZh-00023I-UF for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 May 2019 19:02:09 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45175) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOVZc-00023C-1C for bug-gnu-emacs@gnu.org; Wed, 08 May 2019 19:02:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hOVZa-0005wL-Lz for bug-gnu-emacs@gnu.org; Wed, 08 May 2019 19:02:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48965) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hOVZa-0005wE-Hq for bug-gnu-emacs@gnu.org; Wed, 08 May 2019 19:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hOVZa-00052n-Dc for bug-gnu-emacs@gnu.org; Wed, 08 May 2019 19:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jeronimo Pellegrini Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 May 2019 23:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35639 X-GNU-PR-Package: emacs Original-Received: via spool by 35639-submit@debbugs.gnu.org id=B35639.155735651819364 (code B ref 35639); Wed, 08 May 2019 23:02:02 +0000 Original-Received: (at 35639) by debbugs.gnu.org; 8 May 2019 23:01:58 +0000 Original-Received: from localhost ([127.0.0.1]:34269 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hOVZV-00052G-Uq for submit@debbugs.gnu.org; Wed, 08 May 2019 19:01:58 -0400 Original-Received: from mail.aleph0.info ([66.228.54.186]:41338 helo=aleph0.info) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hOVZT-000521-Cu for 35639@debbugs.gnu.org; Wed, 08 May 2019 19:01:56 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by aleph0.info (Postfix) with ESMTP id C3E444238A; Wed, 8 May 2019 20:01:48 -0300 (-03) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=aleph0.info; s=mail; t=1557356508; bh=HtaOEDgdGPSzxgfUvq/eIrJFI1LTBJToG9ZFVe5jA0o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Q8Q/x4O4OERe1DrByHoX6AKhScVZOYKHuSku4e5UtJHIXQNO4+ueGFYfmUYQ7gyjX MSUFR6iiW8xMKD4kN37wwX8T04FSpRpWztz4rWhpP6lGo/g35XgYKh4niprJb/46Zn rjzqNM5cN59jo4JNBcfBqPHUyY7sHeihOAmpVuXg67whh+euV2+Lnl8Ungsutv8fga iO7Pn0gxa9gRCmxo4eJrpg8vjCsXLmE4nCMHZCTd4G2diO2y9Vlq3pNvyiwk9qWZgG hNIH3F3gwi+8m+h//2Un3QDNvT+TUkwoWAhizoCgj2O3jklYoma1cJ/kv7/spiOAe1 JRQG+7Lu3DCPw== Original-Received: from aleph0.info ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id INXOhJyV7NIR; Wed, 8 May 2019 20:01:48 -0300 (-03) Original-Received: from socrates.aleph0.info (unknown [191.181.133.68]) (Authenticated sender: je) by aleph0.info (Postfix) with ESMTPSA id 6FA2442376; Wed, 8 May 2019 20:01:48 -0300 (-03) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=aleph0.info; s=mail; t=1557356508; bh=HtaOEDgdGPSzxgfUvq/eIrJFI1LTBJToG9ZFVe5jA0o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Q8Q/x4O4OERe1DrByHoX6AKhScVZOYKHuSku4e5UtJHIXQNO4+ueGFYfmUYQ7gyjX MSUFR6iiW8xMKD4kN37wwX8T04FSpRpWztz4rWhpP6lGo/g35XgYKh4niprJb/46Zn rjzqNM5cN59jo4JNBcfBqPHUyY7sHeihOAmpVuXg67whh+euV2+Lnl8Ungsutv8fga iO7Pn0gxa9gRCmxo4eJrpg8vjCsXLmE4nCMHZCTd4G2diO2y9Vlq3pNvyiwk9qWZgG hNIH3F3gwi+8m+h//2Un3QDNvT+TUkwoWAhizoCgj2O3jklYoma1cJ/kv7/spiOAe1 JRQG+7Lu3DCPw== Original-Received: by socrates.aleph0.info (Postfix, from userid 1000) id CE6CD961B1; Wed, 8 May 2019 20:01:45 -0300 (-03) Content-Disposition: inline In-Reply-To: <87k1f03im0.fsf@gmx.de> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:158964 Archived-At: Michael Albinus writes: Hi, > Jeronimo Pellegrini writes: > > Hi Jeronimo, > >> The rem-enc function should use a base64 encoding program on the >> router (but LibreCMC and OpenWRT do not have it!). > > Tramp is busy to detect base64 or any other method which can be used for > encoding/decoding. Pls set tramp-verbose to 6, and rerun the test (w/o > an installed base64 on the remote machine). There will be a Tramp debug > buffer. Yes. That's where I first saw the ""Wrong method specification" message. The buffer contents are here: http://aleph0.info/jp/tramp-debug/tramp-debug-buffer.txt >> reading lisp/net/tramp-sh.el I get the impression that tramp >> actually *should* be able to encode/decode using busybox/awk, >> which *is* available in LibreCMC (or did I get it wrong?). > > See variable tramp-remote-coding-commands, it contains all the different > encoding/decoding commands Tramp tries to apply. awk is among them. Before using tramp it has no content; after trying to connect, tramp-remote-coding-commands is: ((b64 "base64" "base64 -d -i") (b64 "base64" "base64 -d") (b64 "openssl enc -base64" "openssl enc -d -base64") (b64 "mimencode -b" "mimencode -u -b") (b64 "mmencode -b" "mmencode -u -b") (b64 "recode data..base64" "recode base64..data") (b64 tramp-perl-encode-with-module tramp-perl-decode-with-module) (b64 tramp-perl-encode tramp-perl-decode) (b64 tramp-awk-encode tramp-awk-decode "test -c /dev/zero && od -v -t x1 -A n The debug buffer you'll send shall show us, why it doesn't work. Yes, it is here: 19:41:26.088945 tramp-sh-handle-file-local-copy (1) # File error: Wrong method specification for ‘ssh’ (this is the only occurrence of the string "error"). As I had mentioned in the first message, this is because line 3174 of tramp.el was reached. It is the default case of a COND expression that has other two cases: - (or (tramp-local-host-p v) (tramp-method-out-of-band-p v size)) - (rem-enc ...) What happened is that (rem-enc ...) failed (because tramp could not use any encoding command), and fell through into the default action, which is this error. >> So, I'm not sure if this is a tramp bug (can't use awk to encode/decode >> files in base64 format) or bug in its manual (doesn't mention that >> a base64 binary is needed on the remote side). > > Tramp shall describe in its manual, what does it need for > encoding/decoding. Agreed. Right... I will later in the week propose a patch to the manual, if that is OK. J.