From unknown Thu Aug 14 22:19:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#33394: 27.0.50; trampver cannot determine repository version Resent-From: Geoffrey Ferrari Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Nov 2018 09:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33394 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 33394@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15422751731081 (code B ref -1); Thu, 15 Nov 2018 09:47:01 +0000 Received: (at submit) by debbugs.gnu.org; 15 Nov 2018 09:46:13 +0000 Received: from localhost ([127.0.0.1]:53009 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gNEE0-0000HM-WB for submit@debbugs.gnu.org; Thu, 15 Nov 2018 04:46:13 -0500 Received: from eggs.gnu.org ([208.118.235.92]:59706) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gNEDy-0000H9-TL for submit@debbugs.gnu.org; Thu, 15 Nov 2018 04:46:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gNEDq-0006Ps-W6 for submit@debbugs.gnu.org; Thu, 15 Nov 2018 04:46:05 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:44471) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gNEDq-0006Pk-Gq for submit@debbugs.gnu.org; Thu, 15 Nov 2018 04:46:02 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gNEDo-0001XV-8T for bug-gnu-emacs@gnu.org; Thu, 15 Nov 2018 04:46:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gNEDk-0006NR-70 for bug-gnu-emacs@gnu.org; Thu, 15 Nov 2018 04:46:00 -0500 Received: from mail-vs1-f44.google.com ([209.85.217.44]:45591) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gNEDk-0006N2-0V for bug-gnu-emacs@gnu.org; Thu, 15 Nov 2018 04:45:56 -0500 Received: by mail-vs1-f44.google.com with SMTP id v10so3916808vsv.12 for ; Thu, 15 Nov 2018 01:45:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=hS0v9uSPUUQBtvsncpKxHXSJ4iwBImqibqHgKndbFos=; b=QFtkYy9lcS57t04aA/Mesg+ujiPEhSrbcO/W01kcvEz6q6YWW5zvTXBCaEtfIGMoNq x9+zuP4NBUuxzvdWqAmuBDWWoTixVfcJk17l1GiVozUb9dqqlDHrVVWDsCGq/US49f5h RsKlRPyLSWCJS5lHNVkiwpwxg4u/ImiwUMjzWJnqGUuoOETvzPpFtsJxbMAIL/lNKm0I R3OEO1fl5e8Hb+jgBwAmA5wIu4KPnThYrEaHQRlVxcGDRGZsjJhklFUpuVoPF4+HNOwZ 3UbI3OD3rYxKFr3B/VS2Mb7/TPQtJtgfLaNbVnWdQ6tCdKaTsPLXMa9nplFrc21r0Jbj jPbg== X-Gm-Message-State: AGRZ1gJmG4Tr4Edek0RC9wSMijcx2cA8FHVA6krB9Om2vIyOSGs4k4cw M3kWDP2aQlWQQNLgNqeoVCEpwUoP2rzWSEiXrmkRoJmB X-Google-Smtp-Source: AJdET5d2n2T3r6PTVywX006Dxmk/ClxGkF9FfL4IxiY8EHITslpYaIXiRnaGAffYi4IZBT0dgE80a3Gzm7J5RqCVWPU= X-Received: by 2002:a67:358b:: with SMTP id x11mr2334193vsh.145.1542275154720; Thu, 15 Nov 2018 01:45:54 -0800 (PST) MIME-Version: 1.0 From: Geoffrey Ferrari Date: Thu, 15 Nov 2018 09:45:43 +0000 Message-ID: Content-Type: multipart/alternative; boundary="000000000000be3b35057ab0eaf0" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.8 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.8 (----) --000000000000be3b35057ab0eaf0 Content-Type: text/plain; charset="UTF-8" The error can be reproduced (after starting with 'emacs -Q') by running: (require 'tramp) This produces the error message: Debugger entered--Lisp error: (file-missing "Setting current directory" "No such file or directory" "/build/emacs-snapshot-zZJlNJ/emacs-snapshot-201811...") call-process("git" nil (t nil) nil "rev-parse" "--abbrev-ref" "HEAD") emacs-repository-branch-git("/build/emacs-snapshot-zZJlNJ/emacs-snapshot-201811...") emacs-repository-get-branch(nil) byte-code("\3011\21\0\302\30\303\304\305\306!\307\"!)0\207\210\310\207" [inhibit-message (error) t emacs-repository-get-branch locate-dominating-file locate-library "tramp" ".git" nil] 4) (defconst tramp-repository-branch (byte-code "\3011\21\0\302\30\303\304\305\306!\307\"!)0\207\210\310\207" [inhibit-message (error) t emacs-repository-get-branch locate-dominating-file locate-library "tramp" ".git" nil] 4) ("/usr/share/emacs/27.0.50/lisp/net/trampver.elc" . 601)) require(trampver) byte-code("\300\301!\210\300\302!\210\300\303!\210\304\305\306\307\310\311\310\312\313\314\315\316&\13\210\317\320\321\322\323DD\324\310\305\325\326&\7\210\317\327\321\322\330DD\331..." [require tramp-compat trampver cl-lib custom-declare-group tramp nil "Edit remote files with a combination of ssh, scp, ..." :group files comm :link (custom-manual "(tramp)Top") :version "22.1" custom-declare-variable tramp-mode funcall function #f(compiled-function () #) "Whether Tramp is enabled.\nIf it is set to nil, all..." :type boolean tramp-verbose #f(compiled-function () #) "Verbosity level for Tramp messages.\nAny level x in..." integer tramp-backup-directory-alist #f(compiled-function () #) "Alist of filename patterns and backup directory na..." (repeat (cons (regexp :tag "Regexp matching filename") (directory :tag "Backup directory name"))) tramp-auto-save-directory #f(compiled-function () #) "Put auto-save files in this directory, if set.\nThe..." (choice (const :tag "Use default" nil) (directory :tag "Auto save directory name")) tramp-encoding-shell #f(compiled-function () #) "Use this program for encoding and decoding command..." (file :must-match t) tramp-encoding-command-switch #f(compiled-function () #) "Use this switch together with `tramp-encoding-shel..." string tramp-encoding-command-interactive #f(compiled-function () #) "Use this switch together with `tramp-encoding-shel..." "24.1" (choice (const nil) string)] 12) require(tramp) eval((require 'tramp) nil) elisp--eval-last-sexp(nil) eval-last-sexp(nil) funcall-interactively(eval-last-sexp nil) call-interactively(eval-last-sexp nil nil) command-execute(eval-last-sexp) The issue can be traced to the definition of tramp-repository-branch in trampver.el. This calls: (emacs-repository-get-branch (locate-dominating-file (locate-library "tramp") ".git")) However, (locate-dominating-file (locate-library "tramp") ".git") evaluates to nil, meaning that above is equivalent to (emacs-repository-get-branch nil). This causes the function emacs-repository-get-branch (in version.el) to rely on the variable source-directory i.e. which references the source directory where the emacs binary was built, which of course does not exist on an end user's system. In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.1) of 2018-11-11, unofficial emacs-snapshot build: http://emacs.secretsauce.net built on lilbastard Windowing system distributor 'The X.Org Foundation', version 11.0.12003000 System Description: Debian GNU/Linux buster/sid Recent messages: Waiting for git... Entering debugger... Mark set Back to top level uncompressing trampver.el.gz...done Note: file is write protected Quit Mark set Quit Mark activated Configured using: 'configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/27.0.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/27.0.50/site-lisp:/usr/share/emacs/site-lisp --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/27.0.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/27.0.50/site-lisp:/usr/share/emacs/site-lisp --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/emacs-snapshot-zZJlNJ/emacs-snapshot-20181111+emacs-26.1-3391-ga004d3bbbae=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -fno-omit-frame-pointer' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' LDFLAGS=-Wl,-z,relro' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM THREADS LCMS2 GMP Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils jka-compr thingatpt help-fns radix-tree cl-print debug backtrace help-mode easymenu find-func tramp-compat tramp-loaddefs ucs-normalize shell pcomplete comint ansi-color ring parse-time format-spec advice auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib elec-pair mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 225554 12946) (symbols 48 22184 1) (strings 32 34717 2545) (string-bytes 1 968285) (vectors 16 38460) (vector-slots 8 767680 15958) (floats 8 51 275) (intervals 56 852 6) (buffers 992 13)) --000000000000be3b35057ab0eaf0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

The error can be repr= oduced (after starting with 'emacs -Q') by running:

<= /div>
(require 'tramp)

This produces the e= rror message:

Debugger entered--Lisp error: (file-= missing "Setting current directory" "No such file or directo= ry" "/build/emacs-snapshot-zZJlNJ/emacs-snapshot-201811...")=
=C2=A0 call-process("git" nil (t nil) nil "rev-pa= rse" "--abbrev-ref" "HEAD")
=C2=A0 emacs= -repository-branch-git("/build/emacs-snapshot-zZJlNJ/emacs-snapshot-20= 1811...")
=C2=A0 emacs-repository-get-branch(nil)
= =C2=A0 byte-code("\3011\21\0\302\30\303\304\305\306!\307\"!)0\207= \210\310\207" [inhibit-message (error) t emacs-repository-get-branch l= ocate-dominating-file locate-library "tramp" ".git" nil= ] 4)
=C2=A0 (defconst tramp-repository-branch (byte-code "\3= 011\21\0\302\30\303\304\305\306!\307\"!)0\207\210\310\207" [inhib= it-message (error) t emacs-repository-get-branch locate-dominating-file loc= ate-library "tramp" ".git" nil] 4) ("/usr/share/em= acs/27.0.50/lisp/net/trampver.elc" . 601))
=C2=A0 require(tr= ampver)
=C2=A0 byte-code("\300\301!\210\300\302!\210\300\303= !\210\304\305\306\307\310\311\310\312\313\314\315\316&\13\210\317\320\3= 21\322\323DD\324\310\305\325\326&\7\210\317\327\321\322\330DD\331...&qu= ot; [require tramp-compat trampver cl-lib custom-declare-group tramp nil &q= uot;Edit remote files with a combination of ssh, scp, ..." :group file= s comm :link (custom-manual "(tramp)Top") :version "22.1&quo= t; custom-declare-variable tramp-mode funcall function #f(compiled-function= () #<bytecode 0x13d8e7d>) "Whether Tramp is enabled.\nIf it is = set to nil, all..." :type boolean tramp-verbose #f(compiled-function (= ) #<bytecode 0x13d8e89>) "Verbosity level for Tramp messages.\nA= ny level x in..." integer tramp-backup-directory-alist #f(compiled-fun= ction () #<bytecode 0x13d8e95>) "Alist of filename patterns and = backup directory na..." (repeat (cons (regexp :tag "Regexp matchi= ng filename") (directory :tag "Backup directory name"))) tra= mp-auto-save-directory #f(compiled-function () #<bytecode 0x13d8ea1>)= "Put auto-save files in this directory, if set.\nThe..." (choice= (const :tag "Use default" nil) (directory :tag "Auto save d= irectory name")) tramp-encoding-shell #f(compiled-function () #<byt= ecode 0x13d8eb5>) "Use this program for encoding and decoding comma= nd..." (file :must-match t) tramp-encoding-command-switch #f(compiled-= function () #<bytecode 0x13d8ecd>) "Use this switch together wit= h `tramp-encoding-shel..." string tramp-encoding-command-interactive #= f(compiled-function () #<bytecode 0x13d8ee1>) "Use this switch t= ogether with `tramp-encoding-shel..." "24.1" (choice (const = nil) string)] 12)
=C2=A0 require(tramp)
=C2=A0 eval((re= quire 'tramp) nil)
=C2=A0 elisp--eval-last-sexp(nil)
=C2=A0 eval-last-sexp(nil)
=C2=A0 funcall-interactively(eval-la= st-sexp nil)
=C2=A0 call-interactively(eval-last-sexp nil nil)
command-execute(eval-last-sexp)


=
The issue can be traced to the definition of tramp-repository-branch i= n
trampver.el. This calls:

(emacs-reposi= tory-get-branch
(locate-= dominating-file (locate-library "tramp") ".git"))
=

However, (locate-dominating-file (locate-library "= tramp") ".git")
evaluates to nil, meaning that abo= ve is equivalent to
(emacs-repository-get-branch nil).
=
This causes the function emacs-repository-get-branch (in ver= sion.el) to
rely on the variable source-directory i.e. which refe= rences the source directory where the emacs
binary was built, whi= ch of course does not exist on an end user's system.



In GNU Emacs 27.0.50 (build 1, x86_64-= pc-linux-gnu, GTK+ Version 3.24.1)
=C2=A0of 2018-11-11, unofficia= l emacs-snapshot build: http://ema= cs.secretsauce.net built on lilbastard
Windowing system distr= ibutor 'The X.Org Foundation', version 11.0.12003000
Syst= em Description: Debian GNU/Linux buster/sid

Recent= messages:
Waiting for git...
Entering debugger...
Mark set
Back to top level
uncompressing trampver= .el.gz...done
Note: file is write protected
Quit
<= div>Mark set
Quit
Mark activated

Configured using:
=C2=A0'configure --build x86_64-linux-gn= u --prefix=3D/usr
=C2=A0--sharedstatedir=3D/var/lib --libexecdir= =3D/usr/lib
=C2=A0--localstatedir=3D/var/lib --infodir=3D/usr/sha= re/info
=C2=A0--mandir=3D/usr/share/man --with-pop=3Dyes
=C2=A0--enable-locallisppath=3D/etc/emacs-snapshot:/etc/emacs:/usr/local/= share/emacs/27.0.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/e= macs/27.0.50/site-lisp:/usr/share/emacs/site-lisp
=C2=A0--build x= 86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib
=C2= =A0--libexecdir=3D/usr/lib --localstatedir=3D/var/lib
=C2=A0--inf= odir=3D/usr/share/info --mandir=3D/usr/share/man --with-pop=3Dyes
=C2=A0--enable-locallisppath=3D/etc/emacs-snapshot:/etc/emacs:/usr/local/s= hare/emacs/27.0.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/em= acs/27.0.50/site-lisp:/usr/share/emacs/site-lisp
=C2=A0--with-x= =3Dyes --with-x-toolkit=3Dgtk3 --with-toolkit-scroll-bars
=C2=A0&= #39;CFLAGS=3D-g -O2
=C2=A0-fdebug-prefix-map=3D/build/emacs-snaps= hot-zZJlNJ/emacs-snapshot-20181111+emacs-26.1-3391-ga004d3bbbae=3D. -fstack= -protector-strong
=C2=A0-Wformat -Werror=3Dformat-security -Wall = -fno-omit-frame-pointer'
=C2=A0'CPPFLAGS=3D-Wdate-time -D= _FORTIFY_SOURCE=3D2' LDFLAGS=3D-Wl,-z,relro'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SO= UND GPM DBUS GSETTINGS GLIB
NOTIFY INOTIFY ACL LIBSELINUX GNUTLS = LIBXML2 FREETYPE M17N_FLT LIBOTF
XFT ZLIB TOOLKIT_SCROLL_BARS GTK= 3 X11 XDBE XIM THREADS LCMS2 GMP

Important setting= s:
=C2=A0 value of $LANG: en_GB.UTF-8
=C2=A0 locale-cod= ing-system: utf-8-unix

Major mode: Emacs-Lisp

Minor modes in effect:
=C2=A0 shell-dirtrack= -mode: t
=C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-mod= e: t
=C2=A0 eldoc-mode: t
=C2=A0 electric-indent-mode: = t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t=
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-composition-mo= de: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compre= ssion-mode: t
=C2=A0 buffer-read-only: t
=C2=A0 line-nu= mber-mode: t
=C2=A0 transient-mark-mode: t

Load-path shadows:
None found.

Featur= es:
(shadow sort mail-extr emacsbug message rmc puny dired dired-= loaddefs
rfc822 mml mml-sec epa derived epg epg-config gnus-util = rmail
rmail-loaddefs time-date mm-decode mm-bodies mm-encode mail= -parse
rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 r= fc2045
ietf-drums mm-util mail-prsvr mail-utils jka-compr thingat= pt help-fns
radix-tree cl-print debug backtrace help-mode easymen= u find-func
tramp-compat tramp-loaddefs ucs-normalize shell pcomp= lete comint
ansi-color ring parse-time format-spec advice auth-so= urce cl-seq eieio
eieio-core cl-macs eieio-loaddefs password-cach= e json map seq byte-opt
gv bytecomp byte-compile cconv cl-loaddef= s cl-lib elec-pair mule-util
tooltip eldoc electric uniquify edif= f-hook vc-hooks lisp-float-type
mwheel term/x-win x-win term/comm= on-win x-dnd tool-bar dnd fontset image
regexp-opt fringe tabulat= ed-list replace newcomment text-mode elisp-mode
lisp-mode prog-mo= de register page menu-bar rfn-eshadow isearch timer
select scroll= -bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-= colors frame cl-generic cham georgian utf-8-lang misc-lang
vietna= mese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
h= ebrew greek romanian slovak czech european ethiopic indian cyrillic
chinese composite charscript charprop case-table epa-hook jka-cmpr-hook<= /div>
help simple abbrev obarray minibuffer cl-preloaded nadvice loadde= fs
button faces cus-face macroexp files text-properties overlay s= ha1 md5
base64 format env code-pages mule custom widget hashtable= -print-readable
backquote threads dbusbind inotify lcms2 dynamic-= setting
system-font-setting font-render-setting move-toolbar gtk = x-toolkit x
multi-tty make-network-process emacs)

<= /div>
Memory information:
((conses 16 225554 12946)
=C2=A0(symbols 48 22184 1)
=C2=A0(strings 32 34717 2545)
=C2=A0(string-bytes 1 968285)
=C2=A0(vectors 16 38460)
=C2=A0(vector-slots 8 767680 15958)
=C2=A0(floats 8 51 275)
=C2=A0(intervals 56 852 6)
=C2=A0(buffers 992 13))
<= div>=C2=A0
--000000000000be3b35057ab0eaf0-- From unknown Thu Aug 14 22:19:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#33394: 27.0.50; trampver cannot determine repository version Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Nov 2018 11:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33394 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Geoffrey Ferrari Cc: 33394@debbugs.gnu.org Received: via spool by 33394-submit@debbugs.gnu.org id=B33394.154228202811740 (code B ref 33394); Thu, 15 Nov 2018 11:41:02 +0000 Received: (at 33394) by debbugs.gnu.org; 15 Nov 2018 11:40:28 +0000 Received: from localhost ([127.0.0.1]:53053 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gNG0Z-00033I-R9 for submit@debbugs.gnu.org; Thu, 15 Nov 2018 06:40:28 -0500 Received: from mout.gmx.net ([212.227.15.15]:42149) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gNG0X-000334-QH for 33394@debbugs.gnu.org; Thu, 15 Nov 2018 06:40:26 -0500 Received: from detlef.gmx.de ([212.86.38.133]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M39zL-1fVhqe2ljr-00srVY; Thu, 15 Nov 2018 12:40:19 +0100 From: Michael Albinus References: Date: Thu, 15 Nov 2018 12:40:17 +0100 In-Reply-To: (Geoffrey Ferrari's message of "Thu, 15 Nov 2018 09:45:43 +0000") Message-ID: <87tvkifu1q.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:BIj5Ncr2KuMx1r9vFqVTRCfcRzSggVe1ZYo59fuxXB4BFJWQH/S SFTtbVELItRDo2zQMyTUii1CVZ1UrPiS9zjpXzyAlLBxfHyse/sgOJWMP5Z6mbJMWerq2VG /iyyCaoAfLkXl9gVLxdXNuB+lY8rxbigBhwXbvjpgkeaeHCP3ucFilVs+mBtXEeITMKUKWI BW/Lw/kNJmJpyTermeycw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V01:K0:4fC3chkM3oE=:mztb9VYsqjdqiJjjoxI9+Y Ibcy3ZC2Js0lrnTCb0HOoKtVFkVOfIaRvvKdCNe2iahMufvfKza5SusEgmmWr+fyBv2vJd417 QQlCYj/av2qy8UuC2JrfjvXKwy55koCnMCQHqz75VflPzjxRS4qOS4SWS8L0edd56UiCCjrFV EuHvvSKYgb3QvRCzTYdj9k3/r6PLmPc9K7gHh6aYPSMlsNGpLDSsx8+V7aYC5dws1ylG7xpKG 21Zn9M2K3MFCoBu2Bw+ZdPotuEbjpaY7AonUDK/762wA2uniDVyhHrLgM9vY9pJjp860wmp1Q V9Abo+plMxelsQZYRcJKiTyvsx773z9uZtQe3s8RiZmrtsmuOzlhV/loMpbtzwaKk7mISF426 bjiatulmQT7WoP24ib2rkUZVlc/mor49vMMkkId9K/VpCLPol+iDogLcjBeutvDJ81Df7bAeO Eva8Wd1ZE+X5qqM+zcszk6t303UVdseEeHwfTJcD26AJp5KUJmBDQ9R6y9Uc7wYVXYWWdcjMP a7+jB4zw+TwyfxgvmPnSk2j3vRHp1scGehQyGbIkWd5eOd+1mrz7pHtInAqtoF8i0nnzsVcak 440eYzV4QQThT//qqR9RM3XdsVoNK7cy/V8hmFY03kBr6Z0d/4gWzwwaqGP1oKjU7vX6zd9y8 xmTNuy2hexfoEToC2+wE6IMvrV5AYjVPTixLookxzq17VlvQIwO176hSBmL947sU2kctKDca0 U6SD6kYCCYgS1dMVQIzyhoVij23BPdx4+M4VzFCcnCeu4nsxkzjbUadj7mksOOE/JAWtu8Mvl E+DyeeY1wMaFu0T5bMOnq1vaFg6YQsSMiEO8aQBz+I8kWxwWyL+dfW8fyIWV92DCaVZWahuL1 0Laur4FILGU537BuW9RasAr2wlbzfGObtcdv6lLpQa3ytnKcx4x21h8SIst4je8hcBwYJrkyJ 9kq06zWqk3w== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Geoffrey Ferrari writes: Hi Geoffrey, > The issue can be traced to the definition of tramp-repository-branch > in > trampver.el. This calls: > > (emacs-repository-get-branch > (locate-dominating-file (locate-library "tramp") ".git")) > > However, (locate-dominating-file (locate-library "tramp") ".git") > evaluates to nil, meaning that above is equivalent to > (emacs-repository-get-branch nil). > > This causes the function emacs-repository-get-branch (in version.el) > to > rely on the variable source-directory i.e. which references the source > directory where the emacs > binary was built, which of course does not exist on an end user's > system. Yes. However, the initial value of tramp-repository-branch is --8<---------------cut here---------------start------------->8--- (ignore-errors ;; Suppress message from `emacs-repository-get-branch'. (let ((inhibit-message t)) ;; `emacs-repository-get-branch' has been introduced with Emacs 27.1. (with-no-warnings (emacs-repository-get-branch (locate-dominating-file (locate-library "tramp") ".git"))))) --8<---------------cut here---------------end--------------->8--- I'm wondering why you see an error, although the code is wrapped by `ignore-errors'. Best regards, Michael. From unknown Thu Aug 14 22:19:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#33394: 27.0.50; trampver cannot determine repository version Resent-From: Geoffrey Ferrari Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Nov 2018 11:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33394 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: michael.albinus@gmx.de Cc: 33394@debbugs.gnu.org Received: via spool by 33394-submit@debbugs.gnu.org id=B33394.154228300413391 (code B ref 33394); Thu, 15 Nov 2018 11:57:02 +0000 Received: (at 33394) by debbugs.gnu.org; 15 Nov 2018 11:56:44 +0000 Received: from localhost ([127.0.0.1]:53064 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gNGGJ-0003Tv-Qj for submit@debbugs.gnu.org; Thu, 15 Nov 2018 06:56:44 -0500 Received: from mail-vs1-f41.google.com ([209.85.217.41]:44063) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gNGGH-0003Td-Ln for 33394@debbugs.gnu.org; Thu, 15 Nov 2018 06:56:42 -0500 Received: by mail-vs1-f41.google.com with SMTP id g68so11491238vsd.11 for <33394@debbugs.gnu.org>; Thu, 15 Nov 2018 03:56:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZHt7315xrMG3MEPGO86VngAJfpAGSlmmQdZIMHJ+x7E=; b=VCLVHTDBKxtQ6jHK/lxB1+ZQXpd5V3Y1rHfaqd0UV2ZwtUSXsydIgdv8VL5UnXAe6M /oqBZSbm/G/h7LROlQooT8ifmawd7lbdIr8JA6HsBgEr8Xaa8ABzFmTFvPQ3ClDZUBrO bYVRdvIo2Arctc/qxZ1OMVN5lYp4KsW+Mg4jK8HQix9Ui7Sas9eAYoBxOosrH76STyX7 8tlb49QLd7B/0Ty/O7vFheCLE4AgLuDx+G2XsLjez/3GZ8MD3KBn5oe6ZBpnKOfB2WHQ LORN+B91DtnJ/Ay95RlbMU8wleV03PfCdlBdcCiWQv6Q87BuU7sY/SBFVcbz/yFZa07N 0hGA== X-Gm-Message-State: AGRZ1gIulEjwU0hXk0p4AiPByr81ZbZqDgNbLWBv4kT2t3FuIVf2zRZn 9G5EhTjp5wqg0H9gFaZ2eb8EyhBlE74uAN8HWn4= X-Google-Smtp-Source: AJdET5f9vuw91SYnBcOrdab0vZzTTtArpSLr68TOXJTDmih0vD9lHBrL4RjBfeTdK4W4QcGFkLF6MG70dj4TM4nVK4w= X-Received: by 2002:a67:4a96:: with SMTP id e22mr2430505vsg.92.1542282995797; Thu, 15 Nov 2018 03:56:35 -0800 (PST) MIME-Version: 1.0 References: <87tvkifu1q.fsf@gmx.de> In-Reply-To: <87tvkifu1q.fsf@gmx.de> From: Geoffrey Ferrari Date: Thu, 15 Nov 2018 11:56:24 +0000 Message-ID: Content-Type: multipart/alternative; boundary="0000000000001b98a9057ab2be23" X-Spam-Score: 0.2 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) --0000000000001b98a9057ab2be23 Content-Type: text/plain; charset="UTF-8" Thanks Michael. On further investigation, I've found that this minimal code (after starting with emacs -Q) produces the same unexpected error: (condition-case nil (emacs-repository-get-branch nil) (error nil)) I don't think I can investigate further as condition-case is not a lisp function. Kind regards Geoff On Thu, 15 Nov 2018 at 11:40, Michael Albinus wrote: > Geoffrey Ferrari writes: > > Hi Geoffrey, > > > The issue can be traced to the definition of tramp-repository-branch > > in > > trampver.el. This calls: > > > > (emacs-repository-get-branch > > (locate-dominating-file (locate-library "tramp") ".git")) > > > > However, (locate-dominating-file (locate-library "tramp") ".git") > > evaluates to nil, meaning that above is equivalent to > > (emacs-repository-get-branch nil). > > > > This causes the function emacs-repository-get-branch (in version.el) > > to > > rely on the variable source-directory i.e. which references the source > > directory where the emacs > > binary was built, which of course does not exist on an end user's > > system. > > Yes. However, the initial value of tramp-repository-branch is > > --8<---------------cut here---------------start------------->8--- > (ignore-errors > ;; Suppress message from `emacs-repository-get-branch'. > (let ((inhibit-message t)) > ;; `emacs-repository-get-branch' has been introduced with Emacs 27.1. > (with-no-warnings > (emacs-repository-get-branch > (locate-dominating-file (locate-library "tramp") ".git"))))) > --8<---------------cut here---------------end--------------->8--- > > I'm wondering why you see an error, although the code is wrapped by > `ignore-errors'. > > Best regards, Michael. > --0000000000001b98a9057ab2be23 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks Michael. On further investiga= tion, I've found that this minimal code (after starting with emacs -Q) = produces the same unexpected error:

(condition-case nil
(e= macs-repository-get-branch nil)
=C2=A0 (error nil))
I don't think I can investigate further as condition-case i= s not a lisp function.

Kind regards

=
Geoff

On Thu, 15 Nov 2018 at 11:40, Michael Albinus <michael.albinus@gmx.de> wrote:
Geoffrey Ferrari <geoffrey.ferrari@oriel.oxon.org= > writes:

Hi Geoffrey,

> The issue can be traced to the definition of tramp-repository-branch > in
> trampver.el. This calls:
>
> (emacs-repository-get-branch
> (locate-dominating-file (locate-library "tramp") ".git&= quot;))
>
> However, (locate-dominating-file (locate-library "tramp") &q= uot;.git")
> evaluates to nil, meaning that above is equivalent to
> (emacs-repository-get-branch nil).
>
> This causes the function emacs-repository-get-branch (in version.el) > to
> rely on the variable source-directory i.e. which references the source=
> directory where the emacs
> binary was built, which of course does not exist on an end user's<= br> > system.

Yes. However, the initial value of tramp-repository-branch is

--8<---------------cut here---------------start------------->8---
=C2=A0 (ignore-errors
=C2=A0 =C2=A0 ;; Suppress message from `emacs-repository-get-branch'. =C2=A0 =C2=A0 (let ((inhibit-message t))
=C2=A0 =C2=A0 =C2=A0 ;; `emacs-repository-get-branch' has been introduc= ed with Emacs 27.1.
=C2=A0 =C2=A0 =C2=A0 (with-no-warnings
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (emacs-repository-get-branch
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(locate-dominating-file (locate-library &= quot;tramp") ".git")))))
--8<---------------cut here---------------end--------------->8---

I'm wondering why you see an error, although the code is wrapped by
`ignore-errors'.

Best regards, Michael.
--0000000000001b98a9057ab2be23-- From unknown Thu Aug 14 22:19:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#33394: 27.0.50; trampver cannot determine repository version Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Nov 2018 12:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33394 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Geoffrey Ferrari Cc: 33394@debbugs.gnu.org Received: via spool by 33394-submit@debbugs.gnu.org id=B33394.154228662326799 (code B ref 33394); Thu, 15 Nov 2018 12:58:01 +0000 Received: (at 33394) by debbugs.gnu.org; 15 Nov 2018 12:57:03 +0000 Received: from localhost ([127.0.0.1]:53084 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gNHCh-0006yB-B1 for submit@debbugs.gnu.org; Thu, 15 Nov 2018 07:57:03 -0500 Received: from mout.gmx.net ([212.227.15.18]:50751) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gNHCf-0006xf-8Q for 33394@debbugs.gnu.org; Thu, 15 Nov 2018 07:57:01 -0500 Received: from detlef.gmx.de ([212.86.38.133]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LjZEm-1fm0Zq3PHU-00bbJ4; Thu, 15 Nov 2018 13:56:54 +0100 From: Michael Albinus References: <87tvkifu1q.fsf@gmx.de> Date: Thu, 15 Nov 2018 13:56:53 +0100 In-Reply-To: (Geoffrey Ferrari's message of "Thu, 15 Nov 2018 11:56:24 +0000") Message-ID: <8736s2fqi2.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:gDNo9BIGAlXAjQWi4OMLE4wMZg/yVBZbUl2a8v51K9cUjB9QVIB I3qk26Sq43EFRUCUQaHBUAkuaWdXkVv2478etFIJvDXvcXwYoT+H2OhYI2zbTyJfE7IL+jk iCme8+25I+lBrX6kvgboHgRi8XSMxWbwcBAEAmm3+xlXf2greYoH2ZdqXhozsfePSUkx+qL yVz+ojKiG7fCv5EX3S3Sw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V01:K0:+xtNvJOpbtQ=:/vRX2fuptW623yBIUaw3OS sf5aaP4cvK/rsFC9lby6Qbv4NmV23WVyPw294PQFqrTNtveWHbErGrRWHhzpewKzGH3saTGrb 9vjbf7z0fkjgnvYwfx1eM/6TsPiQM0VWn1WWP7aGN/dFC4qYYaEP7pbe13eVI+OZrCWO2NgRK 2/qmt3QRS0b1qosWREeJdbbrf0Wao1+dhp04s7Fg43bzmRm/uOjzVXzDP6sclJi8bM3VnLtiT aboYCXglQGtVGpgGkbHTYvUdoR4ASbSvST4/TPGtTnibBp2Eie0FU186zxAYAd2uBozW4+q98 QMiUwOYpXI+bdMasdJjLHi7/qT9ibBWEutd1KeCeb9kKqVTlz3JhgsEVxT5xKOlojTqJD5Vjc WKU1e88vu13COEA4Rk3TO2pU/McP4NiKz/TGJG1t3gSFwaZdhHB0HKR1afpfCtP7FbFNnasUj FrGxHQuCA3jsDjMpOFP23TpVSgaGDuYjnIM/fyqwz6MXluU2l5bykCWkWHPyVlLjXCsH7WfHH TfSWac36c4zInox/KXH91/ScNpOuUH9iYXVj6y+g3jiOJPvk8pdjDViW5JirPxEYsPyPUFDFP QmPZc5zaxturncWHDFUQI1j/cUXRpB7Fz6Um8IF8zG9F30PSiakK6lb6DTd+E+ibC6vSGCBCM thpvf3wj2VGLRp4TQtw2l9CbgDHJuZ2i14RSDyBnWwAHQxHb+UVa95hiNJoE1ZXH9AYqSev3J ViIN+nJqMhQq7Pr8anUx1qLwC9BhL1QWMgkgxyMAnWPBCc8KFV9ERX0n5ooV1RciYgKRrNI3G A9JDkQS0/iNCxZxk66de2f5JO5B4rmRVIodbxD5naI3PcxuHDn5MSdZ2axNg66uvDYLQ1yJOo afAu7aQq+3hzMAqXcbgZf26TjUuYZ5dxbRnLtSM1pr/XVOrYq9B277i1DWhQYOSC/AI/YqAP5 +/G2z7gDfeQ== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Geoffrey Ferrari writes: Hi Geoffrey, > Thanks Michael. On further investigation, I've found that this minimal > code (after starting with emacs -Q) produces the same unexpected > error: > > (condition-case nil > (emacs-repository-get-branch nil) > (error nil)) You're right. After setting `default-directory' and `source-directory' to "/not/existing" I see the same error. `call-process' seems to break the `condition-case' jail. > I don't think I can investigate further as condition-case is not a > lisp function. I've hardened trampver.el, committed to the master branch. Could you, pls, check? > Kind regards > > Geoff Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 15 07:58:13 2018 Received: (at control) by debbugs.gnu.org; 15 Nov 2018 12:58:14 +0000 Received: from localhost ([127.0.0.1]:53090 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gNHDp-000708-Kk for submit@debbugs.gnu.org; Thu, 15 Nov 2018 07:58:13 -0500 Received: from mout.gmx.net ([212.227.17.21]:44127) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gNHDo-0006zw-Cl for control@debbugs.gnu.org; Thu, 15 Nov 2018 07:58:12 -0500 Received: from detlef.gmx.de ([212.86.38.133]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MMYZG-1gOvuF2FWo-008Nr6 for ; Thu, 15 Nov 2018 13:58:05 +0100 Date: Thu, 15 Nov 2018 13:58:04 +0100 Message-Id: <871s7mfqg3.fsf@gmx.de> To: control@debbugs.gnu.org From: Michael Albinus Subject: control message for bug #33394 X-Provags-ID: V03:K1:31Ps83PV45znuKxL2J2cxPhMKx7LnvearRLN+oxLDjJi5IZZaDn WojNqOK3gSqvHcx7tb/Dxxub07R+qIZ7nuOjoElWq8H2fpK/x+AqJq3oNTxFK1CBDt35cst FwzHWKc77eGS+nrCdU8qEI23YJ0+n9UngcLT7zw+E0SF/L3Si+7EnaFUDlWZ8wKJMyWFBfY tgUSgl3Li4oCj1qdxYcNw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V01:K0:Lm7GWUYNtG4=:Rzy+D7ugK2Donme4VOemE9 eN3IE6GadjIzeBLZBGuwuMU08iZu4st7Hrk+Wc26HYRamHGBQq0dwkXj9HSnYMVG4x58ECzmV 9dljAfmM847zOEhqmxu7octSR9JSaIjOWsoub4D61c+W/HXpA85N2DuZ2Qp3Iwv2U61FmbV0q SnwAPBzjmnZa5LpYQtw4znixbGlhNqS6V1zP/kfN2PxPj4swWXH1dNyyko+eavk8JZbN+nnMD jBi5igvvlr8lwdmSCGs5u+GXOf96hkSUg1EfcfQNtX5DVK06Vwk+Y84JJNZ/69oae/LlWdohZ CRs4vUZT7FrDpqPJZWBqoM21oO5y1U3UvFVAlzgxFqVmdTIskgV5rzzWYTePT9f3RDWqCtRYg dMV9l3cqClq6Qd3Q2gFnNwfevcaaRDiKBLcXHyogVna4cDdT4nu8g+XXarlgvQTZCs5dd6HU5 N3ve/P9bPi4ckbZo9OG06VBmDu8/aaqBtksv1f1i4m05RU/UcwnP8wPvt/fLnDrM9YnX+yT/C +t+iBKqjVpwE9A4X2oLtYymV0JXUNPQfAMJoa153DlsMo7m8PN5CU8kDO+DZgwipxfQCwCaZf 7MyfkhNmiNaqITeKihJWqB9dLmjftrn4DWwn7rHv/sF2WsMe5YZ+C0Y7XMPZwAdMCeJOiEWbd ocoy6hEB2NdTdD1AGHnPo/gY1AyiRO0YzUJrnR975z1v244KSzDgS/24/w3MUFoLS9D3OUkyu yIJ2ZagrrrYq5yWwa/AIPVMeBl4qyfwGTY8j+WiZt4g/3vE60KG63zFQoRDkNzg5qWBcZFPhC VpyDfJBZA0AtecqzV36xwsYKk2fRt8JQ5k/yKP1X+39Vo0UmaF9uHFs0UVGxh3fbqwwwX0ys/ VLRzzGYg1Zq4JGjolYOWx4tvawQf+O0mv8dHYABIOSMZ05VdOJjNmO+8en9Ny4 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) tags 33394 fixed From unknown Thu Aug 14 22:19:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#33394: 27.0.50; trampver cannot determine repository version Resent-From: Geoffrey Ferrari Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Nov 2018 13:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33394 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: michael.albinus@gmx.de Cc: 33394@debbugs.gnu.org Received: via spool by 33394-submit@debbugs.gnu.org id=B33394.15422874733497 (code B ref 33394); Thu, 15 Nov 2018 13:12:02 +0000 Received: (at 33394) by debbugs.gnu.org; 15 Nov 2018 13:11:13 +0000 Received: from localhost ([127.0.0.1]:53107 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gNHQP-0000uL-0T for submit@debbugs.gnu.org; Thu, 15 Nov 2018 08:11:13 -0500 Received: from mail-vs1-f44.google.com ([209.85.217.44]:42919) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gNHQN-0000u8-1z for 33394@debbugs.gnu.org; Thu, 15 Nov 2018 08:11:11 -0500 Received: by mail-vs1-f44.google.com with SMTP id b74so11612483vsd.9 for <33394@debbugs.gnu.org>; Thu, 15 Nov 2018 05:11:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=w2gO8dmfR4HXeZh0X4DGf1Q/k+I6v3FfF73sWShpWA8=; b=Du0UtwpcLqlLjAuujTuOu10kweEhIYYkP/3Zd1hGbFveMSO5r2ZP6NhhEFqSVkzKx5 BEp2e8y8SgQ695A6CEynISsFyS3hcrpZ7tSvHIA8QqkXqO3Dk+AsljlXBV/NtzgqhUpX x7ELaQC76ziTUOSL2Z6bmCaU/vCjc/LxmMS47styAp1Edan7lxMn3j3sOyThAg2159X9 XhWXQOfwAb41lAq4NG4v4KhiRFX6d8JGQG8VxYHdlpfbQg4yg7X6LkpftdZrvutNCrjH 9hdclIj8PDw8C+cIIoh1hE6npmSAk8QPm0+8x2zWThDvKUw9EeOuqU2myfVwnE1sZh5o XfRQ== X-Gm-Message-State: AGRZ1gJdSNhzqfjb2QCpnzj9DS7QXDB8FL0UA8cYZHoHDsGVYoZKaoJj z0VG8kmMpey/VYCx+IPr3qMwyNL2PmihkbMVFiA= X-Google-Smtp-Source: AJdET5fnm/F+dXFu4PuGeg/UzLBOQYCl0Edhjc40a9iY75ge+DaqotJyB2YS+9kk+U2BUS6F717H1mGOzAqiGxXnhOg= X-Received: by 2002:a67:4a96:: with SMTP id e22mr2534401vsg.92.1542287465275; Thu, 15 Nov 2018 05:11:05 -0800 (PST) MIME-Version: 1.0 References: <87tvkifu1q.fsf@gmx.de> <8736s2fqi2.fsf@gmx.de> In-Reply-To: <8736s2fqi2.fsf@gmx.de> From: Geoffrey Ferrari Date: Thu, 15 Nov 2018 13:10:53 +0000 Message-ID: Content-Type: multipart/alternative; boundary="000000000000826616057ab3c851" X-Spam-Score: 0.2 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) --000000000000826616057ab3c851 Content-Type: text/plain; charset="UTF-8" Thanks, Michael. I no longer get an error message with the new version of trampver, so this seems to have fix it. Of course, the two constants tramp-repository-branch and tramp-repository-version now both have the value nil on an end user system, but I assume that's both acceptable and intended. Kind regards, Geoff On Thu, 15 Nov 2018 at 12:57, Michael Albinus wrote: > Geoffrey Ferrari writes: > > Hi Geoffrey, > > > Thanks Michael. On further investigation, I've found that this minimal > > code (after starting with emacs -Q) produces the same unexpected > > error: > > > > (condition-case nil > > (emacs-repository-get-branch nil) > > (error nil)) > > You're right. After setting `default-directory' and `source-directory' > to "/not/existing" I see the same error. `call-process' seems to break > the `condition-case' jail. > > > I don't think I can investigate further as condition-case is not a > > lisp function. > > I've hardened trampver.el, committed to the master branch. Could you, > pls, check? > > > Kind regards > > > > Geoff > > Best regards, Michael. > --000000000000826616057ab3c851 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks, Michael.
I no longer get an error message with the new version of trampv= er, so this seems to have fix it. Of course, the two constants=C2=A0tramp-r= epository-branch and=C2=A0tramp-repository-version now both have the value = nil on an end user system, but I assume that's both acceptable and inte= nded.

Kind regards,

Geoff=

On = Thu, 15 Nov 2018 at 12:57, Michael Albinus <michael.albinus@gmx.de> wrote:
Geoffrey Ferrari <geoffrey.ferrari@oriel.oxon.org> wri= tes:

Hi Geoffrey,

> Thanks Michael. On further investigation, I've found that this min= imal
> code (after starting with emacs -Q) produces the same unexpected
> error:
>
> (condition-case nil
> (emacs-repository-get-branch nil)
>=C2=A0 =C2=A0(error nil))

You're right. After setting `default-directory' and `source-directo= ry'
to "/not/existing" I see the same error. `call-process' seems= to break
the `condition-case' jail.

> I don't think I can investigate further as condition-case is not a=
> lisp function.

I've hardened trampver.el, committed to the master branch. Could you, pls, check?

> Kind regards
>
> Geoff

Best regards, Michael.
--000000000000826616057ab3c851-- From unknown Thu Aug 14 22:19:15 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Geoffrey Ferrari Subject: bug#33394: closed (Re: bug#33394: 27.0.50; trampver cannot determine repository version) Message-ID: References: <87wopeeavf.fsf@gmx.de> X-Gnu-PR-Message: they-closed 33394 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: fixed Reply-To: 33394@debbugs.gnu.org Date: Thu, 15 Nov 2018 13:20:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1542288002-4297-1" This is a multi-part message in MIME format... ------------=_1542288002-4297-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #33394: 27.0.50; trampver cannot determine repository version which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 33394@debbugs.gnu.org. --=20 33394: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D33394 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1542288002-4297-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 33394-done) by debbugs.gnu.org; 15 Nov 2018 13:19:58 +0000 Received: from localhost ([127.0.0.1]:53113 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gNHYr-00016y-UK for submit@debbugs.gnu.org; Thu, 15 Nov 2018 08:19:58 -0500 Received: from mout.gmx.net ([212.227.15.15]:45101) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gNHYq-00016l-9o for 33394-done@debbugs.gnu.org; Thu, 15 Nov 2018 08:19:56 -0500 Received: from detlef.gmx.de ([212.86.38.133]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Lkx9B-1fmqwa0nJd-00amPI; Thu, 15 Nov 2018 14:19:49 +0100 From: Michael Albinus To: Geoffrey Ferrari Subject: Re: bug#33394: 27.0.50; trampver cannot determine repository version References: <87tvkifu1q.fsf@gmx.de> <8736s2fqi2.fsf@gmx.de> Date: Thu, 15 Nov 2018 14:19:48 +0100 In-Reply-To: (Geoffrey Ferrari's message of "Thu, 15 Nov 2018 13:10:53 +0000") Message-ID: <87wopeeavf.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:DokcEI/bHygfHW8IDCPadctLRwgfHKchY01IcyrhZf4aF2o7N9U iHINVBQC5opMWoJMXYzD/fFyWXbl9MtugPEeNjJ1XuqfVIVkZkoSG90nwFbXtyp6gKXmZDu naf2B+UIiL2NNEHiEO5IW822EcH+Sm6+NM4evTbx5hRgHd6mAdScY5rBZ4oRFWo4R4y8hzU 9I/hKFseslHqqBS9JVJIA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V01:K0:eDw+His/e/A=:npBOwY6VbQZpeLP+LZostX cG2oZ0EkmhVvWPu1mqbkzkrJcydj7jIkA0w7p8lws1mwZZx3wGB0FRkHTil7gNxpLkNiie5pq CjhuLw88leVyDoTTKavcjPL1nFATvkwjWWfJQl43kUiyO2/cvxAbEysUt9HEZtSfpZpOK5UzT g4RRFM8TvRl4fuKtPS8HALSpMn2opCjoqXFSO5WbK3cF/rpWjHh3Y0xG6YSJq+Pe6WOp/4qJx Cc46GxRq1fv4mBmIo4xXsMGlpH8ANCg8kUrjRH9U3wHtconpVc8o6cL/fDvuzPIFM1hsKP/Y0 kC7r2y5qp+Y67NCRYIHCA0q7Ls9ZzfUpD7oiLX7fbuotFSlB0IkPAwggieGehqB6jWf+uklQc b9ktTt1lxPh//mtQseBCP3njEzCIJ2Qf/rsDbQ33psys5k3jvC5JQmmIqa7ELNQUqqQl8RJvl Tc4sEGzJPyyKgnZlCSr339Ir/qGbwbTWETCEvOIRQxfUzQs94RtwGSuQK4Nub1SwX1V327yxF 57ofZOvP4v1iV2PkpulSEzMmY0czKJX7usdHxdYudXmFGRiv235UL3oH+F7DEHpX7940jaQ4n YAy4ySu1HSxGSe33y3osANr4Y/VgWbDxtUx+qISylTvSc2cn2/HF+aPifbS1UFK/cn/vLpBXD gX6g6ImI1d/B+sX1g8ueD7EedJfsLnhl6rbOLdwrouW0IIiU3CztbVL9muT0EXOSROCIN/Ivp jx6mx7IYulRgYHImkjXqMcWF0qBA/J8jv1XVVIFZK1q9HJrlvZp5eiqjqKKke1x4Id5dqL8IH zAcdCMInnuJvekQ20nf+fApiyLICnnR/EyONZbGlgEoep4e3JxUNlZShqFn0ECAL+30UFkfoo g40L7JuHc3tpZUlFHBxnD4UQWbixX6qfLEIztMrU0+Cv7k0XeOpPFjg2wxTHXI6DKZy3UBCjz rWB35c8sSUQ== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33394-done Cc: 33394-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Version: 27.1 Geoffrey Ferrari writes: > Thanks, Michael. Hi Geoffrey, > I no longer get an error message with the new version of trampver, so > this seems to have fix it. Of course, the two constants > tramp-repository-branch and tramp-repository-version now both have the > value nil on an end user system, but I assume that's both acceptable > and intended. Yes, that's all we could expect in that case. Thanks for reporting and testing! I'm closing the bug. > Kind regards, > > Geoff Best regards, Michael. ------------=_1542288002-4297-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 15 Nov 2018 09:46:13 +0000 Received: from localhost ([127.0.0.1]:53009 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gNEE0-0000HM-WB for submit@debbugs.gnu.org; Thu, 15 Nov 2018 04:46:13 -0500 Received: from eggs.gnu.org ([208.118.235.92]:59706) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gNEDy-0000H9-TL for submit@debbugs.gnu.org; Thu, 15 Nov 2018 04:46:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gNEDq-0006Ps-W6 for submit@debbugs.gnu.org; Thu, 15 Nov 2018 04:46:05 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:44471) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gNEDq-0006Pk-Gq for submit@debbugs.gnu.org; Thu, 15 Nov 2018 04:46:02 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gNEDo-0001XV-8T for bug-gnu-emacs@gnu.org; Thu, 15 Nov 2018 04:46:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gNEDk-0006NR-70 for bug-gnu-emacs@gnu.org; Thu, 15 Nov 2018 04:46:00 -0500 Received: from mail-vs1-f44.google.com ([209.85.217.44]:45591) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gNEDk-0006N2-0V for bug-gnu-emacs@gnu.org; Thu, 15 Nov 2018 04:45:56 -0500 Received: by mail-vs1-f44.google.com with SMTP id v10so3916808vsv.12 for ; Thu, 15 Nov 2018 01:45:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=hS0v9uSPUUQBtvsncpKxHXSJ4iwBImqibqHgKndbFos=; b=QFtkYy9lcS57t04aA/Mesg+ujiPEhSrbcO/W01kcvEz6q6YWW5zvTXBCaEtfIGMoNq x9+zuP4NBUuxzvdWqAmuBDWWoTixVfcJk17l1GiVozUb9dqqlDHrVVWDsCGq/US49f5h RsKlRPyLSWCJS5lHNVkiwpwxg4u/ImiwUMjzWJnqGUuoOETvzPpFtsJxbMAIL/lNKm0I R3OEO1fl5e8Hb+jgBwAmA5wIu4KPnThYrEaHQRlVxcGDRGZsjJhklFUpuVoPF4+HNOwZ 3UbI3OD3rYxKFr3B/VS2Mb7/TPQtJtgfLaNbVnWdQ6tCdKaTsPLXMa9nplFrc21r0Jbj jPbg== X-Gm-Message-State: AGRZ1gJmG4Tr4Edek0RC9wSMijcx2cA8FHVA6krB9Om2vIyOSGs4k4cw M3kWDP2aQlWQQNLgNqeoVCEpwUoP2rzWSEiXrmkRoJmB X-Google-Smtp-Source: AJdET5d2n2T3r6PTVywX006Dxmk/ClxGkF9FfL4IxiY8EHITslpYaIXiRnaGAffYi4IZBT0dgE80a3Gzm7J5RqCVWPU= X-Received: by 2002:a67:358b:: with SMTP id x11mr2334193vsh.145.1542275154720; Thu, 15 Nov 2018 01:45:54 -0800 (PST) MIME-Version: 1.0 From: Geoffrey Ferrari Date: Thu, 15 Nov 2018 09:45:43 +0000 Message-ID: Subject: 27.0.50; trampver cannot determine repository version To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="000000000000be3b35057ab0eaf0" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.8 (----) --000000000000be3b35057ab0eaf0 Content-Type: text/plain; charset="UTF-8" The error can be reproduced (after starting with 'emacs -Q') by running: (require 'tramp) This produces the error message: Debugger entered--Lisp error: (file-missing "Setting current directory" "No such file or directory" "/build/emacs-snapshot-zZJlNJ/emacs-snapshot-201811...") call-process("git" nil (t nil) nil "rev-parse" "--abbrev-ref" "HEAD") emacs-repository-branch-git("/build/emacs-snapshot-zZJlNJ/emacs-snapshot-201811...") emacs-repository-get-branch(nil) byte-code("\3011\21\0\302\30\303\304\305\306!\307\"!)0\207\210\310\207" [inhibit-message (error) t emacs-repository-get-branch locate-dominating-file locate-library "tramp" ".git" nil] 4) (defconst tramp-repository-branch (byte-code "\3011\21\0\302\30\303\304\305\306!\307\"!)0\207\210\310\207" [inhibit-message (error) t emacs-repository-get-branch locate-dominating-file locate-library "tramp" ".git" nil] 4) ("/usr/share/emacs/27.0.50/lisp/net/trampver.elc" . 601)) require(trampver) byte-code("\300\301!\210\300\302!\210\300\303!\210\304\305\306\307\310\311\310\312\313\314\315\316&\13\210\317\320\321\322\323DD\324\310\305\325\326&\7\210\317\327\321\322\330DD\331..." [require tramp-compat trampver cl-lib custom-declare-group tramp nil "Edit remote files with a combination of ssh, scp, ..." :group files comm :link (custom-manual "(tramp)Top") :version "22.1" custom-declare-variable tramp-mode funcall function #f(compiled-function () #) "Whether Tramp is enabled.\nIf it is set to nil, all..." :type boolean tramp-verbose #f(compiled-function () #) "Verbosity level for Tramp messages.\nAny level x in..." integer tramp-backup-directory-alist #f(compiled-function () #) "Alist of filename patterns and backup directory na..." (repeat (cons (regexp :tag "Regexp matching filename") (directory :tag "Backup directory name"))) tramp-auto-save-directory #f(compiled-function () #) "Put auto-save files in this directory, if set.\nThe..." (choice (const :tag "Use default" nil) (directory :tag "Auto save directory name")) tramp-encoding-shell #f(compiled-function () #) "Use this program for encoding and decoding command..." (file :must-match t) tramp-encoding-command-switch #f(compiled-function () #) "Use this switch together with `tramp-encoding-shel..." string tramp-encoding-command-interactive #f(compiled-function () #) "Use this switch together with `tramp-encoding-shel..." "24.1" (choice (const nil) string)] 12) require(tramp) eval((require 'tramp) nil) elisp--eval-last-sexp(nil) eval-last-sexp(nil) funcall-interactively(eval-last-sexp nil) call-interactively(eval-last-sexp nil nil) command-execute(eval-last-sexp) The issue can be traced to the definition of tramp-repository-branch in trampver.el. This calls: (emacs-repository-get-branch (locate-dominating-file (locate-library "tramp") ".git")) However, (locate-dominating-file (locate-library "tramp") ".git") evaluates to nil, meaning that above is equivalent to (emacs-repository-get-branch nil). This causes the function emacs-repository-get-branch (in version.el) to rely on the variable source-directory i.e. which references the source directory where the emacs binary was built, which of course does not exist on an end user's system. In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.1) of 2018-11-11, unofficial emacs-snapshot build: http://emacs.secretsauce.net built on lilbastard Windowing system distributor 'The X.Org Foundation', version 11.0.12003000 System Description: Debian GNU/Linux buster/sid Recent messages: Waiting for git... Entering debugger... Mark set Back to top level uncompressing trampver.el.gz...done Note: file is write protected Quit Mark set Quit Mark activated Configured using: 'configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/27.0.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/27.0.50/site-lisp:/usr/share/emacs/site-lisp --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/27.0.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/27.0.50/site-lisp:/usr/share/emacs/site-lisp --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/emacs-snapshot-zZJlNJ/emacs-snapshot-20181111+emacs-26.1-3391-ga004d3bbbae=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -fno-omit-frame-pointer' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' LDFLAGS=-Wl,-z,relro' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM THREADS LCMS2 GMP Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils jka-compr thingatpt help-fns radix-tree cl-print debug backtrace help-mode easymenu find-func tramp-compat tramp-loaddefs ucs-normalize shell pcomplete comint ansi-color ring parse-time format-spec advice auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib elec-pair mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 225554 12946) (symbols 48 22184 1) (strings 32 34717 2545) (string-bytes 1 968285) (vectors 16 38460) (vector-slots 8 767680 15958) (floats 8 51 275) (intervals 56 852 6) (buffers 992 13)) --000000000000be3b35057ab0eaf0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

The error can be repr= oduced (after starting with 'emacs -Q') by running:

<= /div>
(require 'tramp)

This produces the e= rror message:

Debugger entered--Lisp error: (file-= missing "Setting current directory" "No such file or directo= ry" "/build/emacs-snapshot-zZJlNJ/emacs-snapshot-201811...")=
=C2=A0 call-process("git" nil (t nil) nil "rev-pa= rse" "--abbrev-ref" "HEAD")
=C2=A0 emacs= -repository-branch-git("/build/emacs-snapshot-zZJlNJ/emacs-snapshot-20= 1811...")
=C2=A0 emacs-repository-get-branch(nil)
= =C2=A0 byte-code("\3011\21\0\302\30\303\304\305\306!\307\"!)0\207= \210\310\207" [inhibit-message (error) t emacs-repository-get-branch l= ocate-dominating-file locate-library "tramp" ".git" nil= ] 4)
=C2=A0 (defconst tramp-repository-branch (byte-code "\3= 011\21\0\302\30\303\304\305\306!\307\"!)0\207\210\310\207" [inhib= it-message (error) t emacs-repository-get-branch locate-dominating-file loc= ate-library "tramp" ".git" nil] 4) ("/usr/share/em= acs/27.0.50/lisp/net/trampver.elc" . 601))
=C2=A0 require(tr= ampver)
=C2=A0 byte-code("\300\301!\210\300\302!\210\300\303= !\210\304\305\306\307\310\311\310\312\313\314\315\316&\13\210\317\320\3= 21\322\323DD\324\310\305\325\326&\7\210\317\327\321\322\330DD\331...&qu= ot; [require tramp-compat trampver cl-lib custom-declare-group tramp nil &q= uot;Edit remote files with a combination of ssh, scp, ..." :group file= s comm :link (custom-manual "(tramp)Top") :version "22.1&quo= t; custom-declare-variable tramp-mode funcall function #f(compiled-function= () #<bytecode 0x13d8e7d>) "Whether Tramp is enabled.\nIf it is = set to nil, all..." :type boolean tramp-verbose #f(compiled-function (= ) #<bytecode 0x13d8e89>) "Verbosity level for Tramp messages.\nA= ny level x in..." integer tramp-backup-directory-alist #f(compiled-fun= ction () #<bytecode 0x13d8e95>) "Alist of filename patterns and = backup directory na..." (repeat (cons (regexp :tag "Regexp matchi= ng filename") (directory :tag "Backup directory name"))) tra= mp-auto-save-directory #f(compiled-function () #<bytecode 0x13d8ea1>)= "Put auto-save files in this directory, if set.\nThe..." (choice= (const :tag "Use default" nil) (directory :tag "Auto save d= irectory name")) tramp-encoding-shell #f(compiled-function () #<byt= ecode 0x13d8eb5>) "Use this program for encoding and decoding comma= nd..." (file :must-match t) tramp-encoding-command-switch #f(compiled-= function () #<bytecode 0x13d8ecd>) "Use this switch together wit= h `tramp-encoding-shel..." string tramp-encoding-command-interactive #= f(compiled-function () #<bytecode 0x13d8ee1>) "Use this switch t= ogether with `tramp-encoding-shel..." "24.1" (choice (const = nil) string)] 12)
=C2=A0 require(tramp)
=C2=A0 eval((re= quire 'tramp) nil)
=C2=A0 elisp--eval-last-sexp(nil)
=C2=A0 eval-last-sexp(nil)
=C2=A0 funcall-interactively(eval-la= st-sexp nil)
=C2=A0 call-interactively(eval-last-sexp nil nil)
command-execute(eval-last-sexp)


=
The issue can be traced to the definition of tramp-repository-branch i= n
trampver.el. This calls:

(emacs-reposi= tory-get-branch
(locate-= dominating-file (locate-library "tramp") ".git"))
=

However, (locate-dominating-file (locate-library "= tramp") ".git")
evaluates to nil, meaning that abo= ve is equivalent to
(emacs-repository-get-branch nil).
=
This causes the function emacs-repository-get-branch (in ver= sion.el) to
rely on the variable source-directory i.e. which refe= rences the source directory where the emacs
binary was built, whi= ch of course does not exist on an end user's system.



In GNU Emacs 27.0.50 (build 1, x86_64-= pc-linux-gnu, GTK+ Version 3.24.1)
=C2=A0of 2018-11-11, unofficia= l emacs-snapshot build: http://ema= cs.secretsauce.net built on lilbastard
Windowing system distr= ibutor 'The X.Org Foundation', version 11.0.12003000
Syst= em Description: Debian GNU/Linux buster/sid

Recent= messages:
Waiting for git...
Entering debugger...
Mark set
Back to top level
uncompressing trampver= .el.gz...done
Note: file is write protected
Quit
<= div>Mark set
Quit
Mark activated

Configured using:
=C2=A0'configure --build x86_64-linux-gn= u --prefix=3D/usr
=C2=A0--sharedstatedir=3D/var/lib --libexecdir= =3D/usr/lib
=C2=A0--localstatedir=3D/var/lib --infodir=3D/usr/sha= re/info
=C2=A0--mandir=3D/usr/share/man --with-pop=3Dyes
=C2=A0--enable-locallisppath=3D/etc/emacs-snapshot:/etc/emacs:/usr/local/= share/emacs/27.0.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/e= macs/27.0.50/site-lisp:/usr/share/emacs/site-lisp
=C2=A0--build x= 86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib
=C2= =A0--libexecdir=3D/usr/lib --localstatedir=3D/var/lib
=C2=A0--inf= odir=3D/usr/share/info --mandir=3D/usr/share/man --with-pop=3Dyes
=C2=A0--enable-locallisppath=3D/etc/emacs-snapshot:/etc/emacs:/usr/local/s= hare/emacs/27.0.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/em= acs/27.0.50/site-lisp:/usr/share/emacs/site-lisp
=C2=A0--with-x= =3Dyes --with-x-toolkit=3Dgtk3 --with-toolkit-scroll-bars
=C2=A0&= #39;CFLAGS=3D-g -O2
=C2=A0-fdebug-prefix-map=3D/build/emacs-snaps= hot-zZJlNJ/emacs-snapshot-20181111+emacs-26.1-3391-ga004d3bbbae=3D. -fstack= -protector-strong
=C2=A0-Wformat -Werror=3Dformat-security -Wall = -fno-omit-frame-pointer'
=C2=A0'CPPFLAGS=3D-Wdate-time -D= _FORTIFY_SOURCE=3D2' LDFLAGS=3D-Wl,-z,relro'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SO= UND GPM DBUS GSETTINGS GLIB
NOTIFY INOTIFY ACL LIBSELINUX GNUTLS = LIBXML2 FREETYPE M17N_FLT LIBOTF
XFT ZLIB TOOLKIT_SCROLL_BARS GTK= 3 X11 XDBE XIM THREADS LCMS2 GMP

Important setting= s:
=C2=A0 value of $LANG: en_GB.UTF-8
=C2=A0 locale-cod= ing-system: utf-8-unix

Major mode: Emacs-Lisp

Minor modes in effect:
=C2=A0 shell-dirtrack= -mode: t
=C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-mod= e: t
=C2=A0 eldoc-mode: t
=C2=A0 electric-indent-mode: = t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t=
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-composition-mo= de: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compre= ssion-mode: t
=C2=A0 buffer-read-only: t
=C2=A0 line-nu= mber-mode: t
=C2=A0 transient-mark-mode: t

Load-path shadows:
None found.

Featur= es:
(shadow sort mail-extr emacsbug message rmc puny dired dired-= loaddefs
rfc822 mml mml-sec epa derived epg epg-config gnus-util = rmail
rmail-loaddefs time-date mm-decode mm-bodies mm-encode mail= -parse
rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 r= fc2045
ietf-drums mm-util mail-prsvr mail-utils jka-compr thingat= pt help-fns
radix-tree cl-print debug backtrace help-mode easymen= u find-func
tramp-compat tramp-loaddefs ucs-normalize shell pcomp= lete comint
ansi-color ring parse-time format-spec advice auth-so= urce cl-seq eieio
eieio-core cl-macs eieio-loaddefs password-cach= e json map seq byte-opt
gv bytecomp byte-compile cconv cl-loaddef= s cl-lib elec-pair mule-util
tooltip eldoc electric uniquify edif= f-hook vc-hooks lisp-float-type
mwheel term/x-win x-win term/comm= on-win x-dnd tool-bar dnd fontset image
regexp-opt fringe tabulat= ed-list replace newcomment text-mode elisp-mode
lisp-mode prog-mo= de register page menu-bar rfn-eshadow isearch timer
select scroll= -bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-= colors frame cl-generic cham georgian utf-8-lang misc-lang
vietna= mese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
h= ebrew greek romanian slovak czech european ethiopic indian cyrillic
chinese composite charscript charprop case-table epa-hook jka-cmpr-hook<= /div>
help simple abbrev obarray minibuffer cl-preloaded nadvice loadde= fs
button faces cus-face macroexp files text-properties overlay s= ha1 md5
base64 format env code-pages mule custom widget hashtable= -print-readable
backquote threads dbusbind inotify lcms2 dynamic-= setting
system-font-setting font-render-setting move-toolbar gtk = x-toolkit x
multi-tty make-network-process emacs)

<= /div>
Memory information:
((conses 16 225554 12946)
=C2=A0(symbols 48 22184 1)
=C2=A0(strings 32 34717 2545)
=C2=A0(string-bytes 1 968285)
=C2=A0(vectors 16 38460)
=C2=A0(vector-slots 8 767680 15958)
=C2=A0(floats 8 51 275)
=C2=A0(intervals 56 852 6)
=C2=A0(buffers 992 13))
<= div>=C2=A0
--000000000000be3b35057ab0eaf0-- ------------=_1542288002-4297-1-- From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 01 00:06:33 2020 Received: (at control) by debbugs.gnu.org; 1 Apr 2020 04:06:33 +0000 Received: from localhost ([127.0.0.1]:37303 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jJUe9-0005V8-2y for submit@debbugs.gnu.org; Wed, 01 Apr 2020 00:06:33 -0400 Received: from mail-qt1-f182.google.com ([209.85.160.182]:45378) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jJUe6-0005Ue-Tl for control@debbugs.gnu.org; Wed, 01 Apr 2020 00:06:31 -0400 Received: by mail-qt1-f182.google.com with SMTP id t17so20527024qtn.12 for ; Tue, 31 Mar 2020 21:06:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=kPX39ow3qH3ZMD82704itwawB1iB4Zx6Cfm2HvfMbx4=; b=uudixGx2G/JZ2MGgoY+dom323GqHKLysVzCO6pSWD7olrzgbjO5pfNBq+Wvc7bL2mV gBwLzbH7FmabXvig7rANBOKcjjhhIGO9aWEL+YNMPpnUFnS4UUcILxVVr0Cj/fHeXbfv XQ8hImFFibTgxKck/XNDD0kSiclpty2P7Q76yhE8J07guxi6s90z4ivHnOK0JDcaseQM zazaQ06mzvFEqGigPYhiYA357oczvfhEp7lipjWecierRvf2xoHo3dvZNCnD150A1wTa fQUInWbRVFMfC9SlFT7Icgv5bk8TUaikazAKpyvoS7ORRKFDBeghCWuj7I4ex3V0ivbK yBNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=kPX39ow3qH3ZMD82704itwawB1iB4Zx6Cfm2HvfMbx4=; b=aoRDQGrLHHR00sgp/Pmqvs9jkJrukDD7sGJEws4AfBnmGKcJLct890uRKTd5WOQDwB AJbFsEo/bT5Cye0YiNmrb6Mk1cCeTtcOrkFf9agZTEIemwlrKpRhgFGptRqNOOrsg4d8 cK3WVXWrhjpe4ARRpaRQuALQOiwlnFrnvb5EztBOP3Ew8cTtcOYLRJMn8t85xQGyAxxd 832kl2dur/3BbvOXmllZ5tESdW2on+Ql32/Co488JDc6FrNXPRrjpNfdR2El/I9PCLBg DCZpN13Pc8ZqazwrTcksbE8pAQYdM590Lex9mDghGbaw1UwrSuGTTXGfxlXMEGoZzC9y RFwg== X-Gm-Message-State: ANhLgQ2h3ktZV7nDP5nMSFT4GJozSGnTYd2Brvb3UU+K+GEnfphoJSXx kFiN76qiNWwdqf0PVDCyyZT/udP2 X-Google-Smtp-Source: ADFU+vs9o26qwWvYlgYlZWYOaevGmrDs88/JThuqqypJYIB2Zf2OHXMKYxM3pB1GgtDuReUTRSTr0Q== X-Received: by 2002:ac8:1b6d:: with SMTP id p42mr8452858qtk.345.1585713985209; Tue, 31 Mar 2020 21:06:25 -0700 (PDT) Received: from ?IPv6:2601:184:4180:66e7:f9ce:b40d:ce07:c4ce? ([2601:184:4180:66e7:f9ce:b40d:ce07:c4ce]) by smtp.googlemail.com with ESMTPSA id s4sm722315qte.36.2020.03.31.21.06.24 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 31 Mar 2020 21:06:24 -0700 (PDT) To: control@debbugs.gnu.org From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Subject: 27.0.50; trampver cannot determine repository version Message-ID: Date: Wed, 1 Apr 2020 00:06:23 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) unarchive 33394 From unknown Thu Aug 14 22:19:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#33394: 27.0.50; trampver cannot determine repository version References: In-Reply-To: Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Pit-Claudel Original-Sender: "Debbugs-submit" Resent-CC: michael.albinus@gmx.de, bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Apr 2020 04:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33394 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: 33394@debbugs.gnu.org Cc: Michael Albinus X-Debbugs-Original-Xcc: Michael Albinus Received: via spool by 33394-submit@debbugs.gnu.org id=B33394.158571417921818 (code B ref 33394); Wed, 01 Apr 2020 04:10:02 +0000 Received: (at 33394) by debbugs.gnu.org; 1 Apr 2020 04:09:39 +0000 Received: from localhost ([127.0.0.1]:37308 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jJUh9-0005fp-Gv for submit@debbugs.gnu.org; Wed, 01 Apr 2020 00:09:39 -0400 Received: from mail-qk1-f175.google.com ([209.85.222.175]:37256) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jJUh7-0005fM-BC for 33394@debbugs.gnu.org; Wed, 01 Apr 2020 00:09:37 -0400 Received: by mail-qk1-f175.google.com with SMTP id x3so25764912qki.4 for <33394@debbugs.gnu.org>; Tue, 31 Mar 2020 21:09:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=frd3T6n9fNEnOSq7iGJZZWQvzGusZEzm1SdUX2kfrfA=; b=S0F/GDONVaPi4orZITIoXrqcUkPSmqNo2g+CeNwTx48Xmwnfl8JlDGBmwGRI/WTep+ cFkUrIaXfBttusqtOrcm33oz3nS4Azjh2ULVCLVbUu89ipruhGSmox4WUaIOpvCEorvf PwPrfe7pFrdcemOGlrpxicXOp7m1Jqb3VAHFKUmxRQ3pdCByQZr2uWmiYmkVGSwDW+Lh 1H2lP6/YMIjGPKyaKQaAONYoqGpWx0xQe+9NhA/l0wwR6S6fC0hGbUWUMjvDnI5ISyrN sGqUp+bqbVI8WL0WwuSm3SJjpR9xqeifcIl/Lzo9M6CAFRrtkSpLVBONt1xv9531XGZg I9Rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=frd3T6n9fNEnOSq7iGJZZWQvzGusZEzm1SdUX2kfrfA=; b=CYZVxrvF8wh9yfw7bfrKMp3mlFxekF7CjvUjf3ckC+kFxUrlxosVUFw8Pu2b41XKCQ 6/y5ysBP3wnmtrEGU7mKJ4WcLAvq5uNblHRJs4BYZm5AwEZT3yy5KvedSVZs9Rvntr4m 9qdfs4G2DwqmZmbUCOhLW/rLoaCiNZ8JiF39oYYoub0fz17vxKXzzxsH7sG21V5QdMCY Ea9Ts7kii22LnDPXvE6v7/Dp+Ggp9t4/I/8pN+ebpLh7fSodfYtpcv/OwHsAr9KQFCOv l7/q8LDAeLmzm44NBT5euY38HmPM1QJqsThJhQjFjNKEFeoHXgHzn4MmGSRBkEE3BoSg 5KPA== X-Gm-Message-State: ANhLgQ1k3kvy4S/YPzsZk+rstLI7yyv0GbaLVd9DVFBEoKHujWjkv4Zk NVmpNqodhKoypmiJvOqZ5gGVwV6H X-Google-Smtp-Source: ADFU+vvwoXPZOXScuj3P3NmGhUrQF61bYzKrxYLWAw95sbP23BgMDlUdLF6vdJ8bap7HNq+DnXeQHw== X-Received: by 2002:a37:702:: with SMTP id 2mr8086612qkh.134.1585714171399; Tue, 31 Mar 2020 21:09:31 -0700 (PDT) Received: from ?IPv6:2601:184:4180:66e7:f9ce:b40d:ce07:c4ce? ([2601:184:4180:66e7:f9ce:b40d:ce07:c4ce]) by smtp.googlemail.com with ESMTPSA id x2sm722436qkl.23.2020.03.31.21.09.30 for <33394@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 31 Mar 2020 21:09:31 -0700 (PDT) From: =?UTF-8?Q?Cl=C3=A9ment?= Pit-Claudel Message-ID: <07829fda-e40b-7baa-67c2-314e674d9fe6@gmail.com> Date: Wed, 1 Apr 2020 00:09:30 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Thanks for the fix, Michael. I'm still seeing a variant of this bug when git is not available: $ PATH= /usr/local/bin/emacs -Q --batch --eval '(setq debug-on-error t)' --eval "(require 'tramp)" Debugger entered--Lisp error: (file-missing "Searching for program" "No such file or directory" "git") call-process("git" nil (t nil) nil "rev-parse" "--abbrev-ref" "HEAD") emacs-repository-branch-git("/build/emacs/master/") emacs-repository-get-branch("/build/emacs/master/") byte-code("\3021$\0\303\304\305\306!\307\"\206\17\0\10\1\31\211;\205\37\0\310\1!\205\37\0\311\1!)\266\2020\207\210\312\207" [source-directory inhibit-message (error) t locate-dominating-file locate-library "tramp" ".git" file-directory-p emacs-repository-get-branch nil] 4) (defconst tramp-repository-branch (byte-code "\3021$\0\303\304\305\306!\307\"\206\17\0\10\1\31\211;\205\37\0\310\1!\205\37\0\311\1!)\266\2020\207\210\312\207" [source-directory inhibit-message (error) t locate-dominating-file locate-library "tramp" ".git" file-directory-p emacs-repository-get-branch nil] 4) ("/usr/local/share/emacs/28.0.50/lisp/net/trampver.e..." . 601)) require(trampver) byte-code("\300\301!\210\300\302!\210\300\303!\210\300\304!\210\305\306\307\310\311\312\311\313\314\315\316\317&\13\207" [require tramp-compat tramp-integration trampver cl-lib custom-declare-group tramp nil "Edit remote files with a combination of ssh, scp, ..." :group files comm :link (custom-manual "(tramp)Top") :version "22.1"] 12) require(tramp) eval((require 'tramp) t) command-line-1(("--eval" "(setq debug-on-error t)" "--eval" "(require 'tramp)")) command-line() normal-top-level() Btw, I'm not sure why that error escapes your ignore-errors form. Clément. From unknown Thu Aug 14 22:19:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#33394: 27.0.50; trampver cannot determine repository version Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Apr 2020 10:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33394 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: =?UTF-8?Q?Cl=C3=A9ment?= Pit-Claudel Cc: 33394@debbugs.gnu.org Received: via spool by 33394-submit@debbugs.gnu.org id=B33394.158573602819436 (code B ref 33394); Wed, 01 Apr 2020 10:14:02 +0000 Received: (at 33394) by debbugs.gnu.org; 1 Apr 2020 10:13:48 +0000 Received: from localhost ([127.0.0.1]:37466 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jJaNY-00053P-Dn for submit@debbugs.gnu.org; Wed, 01 Apr 2020 06:13:48 -0400 Received: from mout.gmx.net ([212.227.17.22]:43415) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jJaNW-00052w-7K for 33394@debbugs.gnu.org; Wed, 01 Apr 2020 06:13:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1585736020; bh=qmIwxQzUHCQZkUVX6E47k4JMQPJ6kES47D9r3ja/r44=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=VL3EySc71ynYeoNyV09NcAjZ1R96WsOL5LKcT2UwlL3Gqj+qTF4VF6g2ROZIkBm7s s05N1WxlWawmSzhm5eniS71rTDN+/Ytpx0WGZIbvemKfdB/JanejHkcQLgi5qaLRDc WpWLzgnDHJ4qGMd2zCc7n2l/D8rIgPD+pqOmNYVE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from detlef.gmx.de ([212.86.62.54]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N3siG-1jAoy3363c-00zqc4; Wed, 01 Apr 2020 12:13:39 +0200 From: Michael Albinus References: <07829fda-e40b-7baa-67c2-314e674d9fe6@gmail.com> Date: Wed, 01 Apr 2020 12:13:37 +0200 In-Reply-To: <07829fda-e40b-7baa-67c2-314e674d9fe6@gmail.com> ("=?UTF-8?Q?Cl=C3=A9ment?= Pit-Claudel"'s message of "Wed, 1 Apr 2020 00:09:30 -0400") Message-ID: <87zhbvfr8u.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:18/hbn77/VAXsZ5v5T2fvrDXXXEXZR0vvlHuNtQRUtDLSidOJs2 E8ZOvFnvs0rByDk3USi3pQJJJgi9CuC3wujSqLPKOKrm1WttewYoVU4EjYAdBygsb3tDS0e YAlP5O+zhC5DQCJqmecNaffxuYn/LOh5PwREUbzgIXyMosDyzouXIlz0+FLONHPXbadb8XS YFkJPS0bRLsteDVenN68w== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:7scaP9fxoDE=:rGaW5lrWo0uWtoYc9oIV/9 UPJKSLYOIXZSumiU5UGTQdLCHZyhvOQU0Q9LQZ1gzEJSLrW+uo+DHFM15CgKSvuRd9NANHpK2 mcgp9R2jPq68fO/epJBVNTxkOjGwk4wiTKNgjmo98I0BRZZ/PnnZ0OvBQyIbqXnxRfq1QIsv8 r7IQgT/5cMLP1kjyfC3e3dEpv3/y9Mof+AWmIu06kCd33WiPX4FJiJjDhAVjL0BqR+b6TURiI NlBKkdKThhc0gEjnzCoF0CvOxHEZGuX4c+zRFMCSnKtmkbUwvJsuRRMiVFbVaKxX8hRBgRrh6 d7bBn5ncxcFELMRepqGjepz121KjTORdA+JWFaYMXNlHJ3N6fw/pxpfMKfNGeOx+vXIpc36C9 7bC+k6WCZRxXVy8fLkhwJmR4kLsr/B/iAp64036X1OmB62KySZEyDOKqhujZHudjCTUrU83Wm feJdhvnmQNxlvYpb2+Dy59DEZpHvqyxVtGx1L4YUNc3g4miKubAwyBOvCglTv1ZS0X48j+WwQ 5qtWKkongUOkySMQAM8pBobWku3hY1+sVmVfMycGuFzxvpXVmN3q7XxDWq+aVrHfEAn+El69A ssB56m/IIrcbDqaKpa/7C5kHcjT9fpD2Zx2xzwZNdPj8jnIz3WXGEG6kUwwQ7KOGgiMGuoBm+ KpxOa583Rn7dCbdC3cgTrnXD+mocP8iNcwjsRkCn2W+py24NfH6f9Ywbl+HLzzUf5tJoPLHlp 1RV+PY+cdI4gIjIrhR9eB2Zx4FbfrfSRafF9tZv8areHNM1WQdFziQaT/gJ5J7U2xox4ziUVR h7cjjJjcid0/3z4eDNwvUUtjxcjSxhbJAE7DiScrA3M2w+6NzYSNbfu+jdfnuFouf3FHq1kMp +gznnKnryXtz9mK2PdC6PccmfkvDaw2WUCaaedk2EWsclvZe6wmHK/PiAXsuIxJ9xOYkIP0aR P8ITkxH0BuGabq9TGrPnp4gbOWj0XKuwGGEsSmeyb4nltEO5XTFZh6mQqIW1cF0Hq9F6BTwOO Ye3aeIUCWAn8Ed+V/Yjivmf0JBMDfcgRmF73W+NiG71ZtGaeXji61ISeXQ38RgN0vKY/OrFzr kBH6/02DDL/OuistJSoiMfQqZHrxYA0GKH/IFSExMQ8yiCdoxnhqOZlZ4xDzRxBWIGK+FKqlQ W+DC2z2sW15nYlWUUHsubhn79D27oHjk7tqbITBJbKs8Uax22/G+QFbGfUXfOgtCa4U8ab6yv NE73vMzI92WbyrBdy X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Cl=C3=A9ment Pit-Claudel writes: Hi Cl=C3=A9ment, > Thanks for the fix, Michael. > > I'm still seeing a variant of this bug when git is not available: > > Btw, I'm not sure why that error escapes your ignore-errors form. Thanks for reporting. I've pushed a fix to master, which should avoid this. I won't push it now to the emacs-27 branch, this will happen after the release of Emacs 27.1. The next ELPA version of Tramp, 2.4.3.4, will contain this patch. > Cl=C3=A9ment. Best regards, Michael. From unknown Thu Aug 14 22:19:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#33394: 27.0.50; trampver cannot determine repository version Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Apr 2020 13:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33394 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: =?UTF-8?Q?Cl=C3=A9ment?= Pit-Claudel Cc: 33394@debbugs.gnu.org, Michael Albinus Received: via spool by 33394-submit@debbugs.gnu.org id=B33394.158574620830626 (code B ref 33394); Wed, 01 Apr 2020 13:04:01 +0000 Received: (at 33394) by debbugs.gnu.org; 1 Apr 2020 13:03:28 +0000 Received: from localhost ([127.0.0.1]:37572 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jJd1j-0007xs-MW for submit@debbugs.gnu.org; Wed, 01 Apr 2020 09:03:27 -0400 Received: from mail-qt1-f176.google.com ([209.85.160.176]:41349) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jJd1i-0007xQ-Bw for 33394@debbugs.gnu.org; Wed, 01 Apr 2020 09:03:26 -0400 Received: by mail-qt1-f176.google.com with SMTP id i3so21431522qtv.8 for <33394@debbugs.gnu.org>; Wed, 01 Apr 2020 06:03:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=Egnp9+EpNVLoCA4ghDk53jxs5KK7erieypgBH9wvyvY=; b=QmkXAeLyO5OoB444gcnNPhyOiqwTlo+t8NHeYG/BfF4qtpQJX5MgPS3cTWZh1l2td4 imvl4ytGBtOe5ikeqyMGMJ1WNw+xMLObh2vgWud9eWHTQdsvmxMPCDZ+UEcP08gKIlUZ b+kcjhiSSGpx5MfwZda2c32vvFhrblWUXuZQEYruufkDz9AeWG6JhnJ1ycA5M0lwRUtN YlFhBiy8/IQbKaC2unLQqinUPs+F3Xrp+Nhwq413cDDP+cHVFL+ogRg1m5gc06YTHUKj EehF7jswrYq5ktHYlTN8hwYi3zzOXM+1kTCfCh9JIbD0XSxNW4zX06gTP10dYP6Kni8N TLYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=Egnp9+EpNVLoCA4ghDk53jxs5KK7erieypgBH9wvyvY=; b=ab2wFdEt7NjtENSUsj4TGKtTCEBQEt3QSWtWx1AO/sdTa3dUZb9WsB7pLSUffh1Spz UlzEAzQeg63ZKGxHBQ8elGTw/zueAzB3YhTBoZ0smFmG9qvYwTJyLzzitMrLkyQClumK vcPyKSepdBEeNqKxMEqh5yPhE3tSJi1cGNwcBX+4gfm6pKO8wlcxFjP+oPacdHnkSRtu vXsT2azOp6+bXAziMfxuKyRmTotIxY5BlO/681oTXkpvnVNCBYL4v86W37Xeac1wi7+c bltuiOWjNwbCqsii3hHbAeTq1bY8f/mxzIqdrgEBHLkTQ4MUflZSI36C73P7n6uM+5aq psoA== X-Gm-Message-State: ANhLgQ1V4IukbtxG0y8vZwL8IOM4K8st9pjDUw0C/VPE6EG2DxyWmk4j K2HOQ19yBy71YObX7/QZa2I= X-Google-Smtp-Source: ADFU+vsFL7VpMSq1sE5KI7t9vcQQ7XccwXx0Qk2vUlRLjQ4ImiL2htVnKEFxWVMoSvj2MpthKlYIqg== X-Received: by 2002:ac8:4e94:: with SMTP id 20mr10019120qtp.314.1585746200819; Wed, 01 Apr 2020 06:03:20 -0700 (PDT) Received: from vhost2 (CPE001143542e1f-CMf81d0f809fa0.cpe.net.cable.rogers.com. [99.230.38.42]) by smtp.gmail.com with ESMTPSA id c191sm1346430qkg.49.2020.04.01.06.03.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 01 Apr 2020 06:03:18 -0700 (PDT) From: Noam Postavsky References: <07829fda-e40b-7baa-67c2-314e674d9fe6@gmail.com> Date: Wed, 01 Apr 2020 09:03:17 -0400 In-Reply-To: <07829fda-e40b-7baa-67c2-314e674d9fe6@gmail.com> ("=?UTF-8?Q?Cl=C3=A9ment?= Pit-Claudel"'s message of "Wed, 1 Apr 2020 00:09:30 -0400") Message-ID: <857dyznysq.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Cl=E9ment Pit-Claudel writes: > I'm still seeing a variant of this bug when git is not available: > > $ PATH=3D /usr/local/bin/emacs -Q --batch --eval '(setq debug-on-error t)= ' --eval "(require 'tramp)" > Debugger entered--Lisp error: (file-missing "Searching for program" "No s= uch file or directory" "git") > call-process("git" nil (t nil) nil "rev-parse" "--abbrev-ref" "HEAD") > emacs-repository-branch-git("/build/emacs/master/") > emacs-repository-get-branch("/build/emacs/master/") > byte-code("\3021$\0\303\304\305\306!\307\"\206\17\0\10\1\31\211;\205\37= \0\310\1!\205\37\0\311\1!)\266\2020\207\210\312\207" > [source-directory inhibit-message (error) t locate-dominating-file > locate-library "tramp" ".git" file-directory-p > emacs-repository-get-branch nil] 4) > (defconst tramp-repository-branch (byte-code > Btw, I'm not sure why that error escapes your ignore-errors form. See https://debbugs.gnu.org/40109#8 Essentially, the innermost condition-case handler takes precedence.