X-Loop: help-debbugs@HIDDEN Subject: bug#31368: vc-chlog reports "test: Illegal number" errors Resent-From: Bruno Haible <bruno@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-vc-dwim@HIDDEN Resent-Date: Sat, 05 May 2018 00:51:02 +0000 Resent-Message-ID: <handler.31368.B.152548142211173 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 31368 X-GNU-PR-Package: vc-dwim X-GNU-PR-Keywords: To: 31368 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-vc-dwim@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.152548142211173 (code B ref -1); Sat, 05 May 2018 00:51:02 +0000 Received: (at submit) by debbugs.gnu.org; 5 May 2018 00:50:22 +0000 Received: from localhost ([127.0.0.1]:50089 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1fElP2-0002u8-UX for submit <at> debbugs.gnu.org; Fri, 04 May 2018 20:50:22 -0400 Received: from eggs.gnu.org ([208.118.235.92]:42943) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <bruno@HIDDEN>) id 1fElP0-0002tv-V1 for submit <at> debbugs.gnu.org; Fri, 04 May 2018 20:50:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <bruno@HIDDEN>) id 1fElOu-00005o-MR for submit <at> debbugs.gnu.org; Fri, 04 May 2018 20:50:13 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:42163) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <bruno@HIDDEN>) id 1fElOu-00005a-Iv for submit <at> debbugs.gnu.org; Fri, 04 May 2018 20:50:12 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <bruno@HIDDEN>) id 1fElOt-0001hx-F2 for bug-vc-dwim@HIDDEN; Fri, 04 May 2018 20:50:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <bruno@HIDDEN>) id 1fElOs-0008Vo-HM for bug-vc-dwim@HIDDEN; Fri, 04 May 2018 20:50:11 -0400 Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::4]:30366) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <bruno@HIDDEN>) id 1fElOr-0008S6-UQ for bug-vc-dwim@HIDDEN; Fri, 04 May 2018 20:50:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1525481405; s=strato-dkim-0002; d=clisp.org; h=Message-ID:Date:Subject:To:From:X-RZG-CLASS-ID:X-RZG-AUTH:From: Subject:Sender; bh=O86l28QgL42kLSk+plphDkiglD/sS+3u0iHk+qUTDYc=; b=Q7vomjsFSs7y5Kwky8XDxZa8/cLlhEi1XVHYhjolioDP3qw9qc5Wl9CT7wDLqqn1NS WRS/EGq5rOWrgMmkSyhwGZKGQ3Voh8mcadtEWYubMjWQT4zQLrmOFbBCB+Ngz8lGx8VG dxldU/TmAfhF1edmiOXU/kJ10XnvgEpjPGZ7yM8SzBmnSFiwReAW13hYjXPfIftKxJq5 2P8vlVt5dQsNRU3RwvO0AFuierzaJn7KINeUND9kducORofLsxNu28RtczBdLy5Vk9U/ LENR7hKrSmnHJtgrAqyeoKkJx3hSy/Msz7zqtninKTy1LbWNhz+i+Qh3Ts1cMLZ1kqGg 3nVA== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH+AHjwLuWOGKf9zfs=" X-RZG-CLASS-ID: mo00 Received: from bruno.haible.de by smtp.strato.de (RZmta 43.8 DYNA|AUTH) with ESMTPSA id e09803u450o5Coq (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Sat, 5 May 2018 02:50:05 +0200 (CEST) From: Bruno Haible <bruno@HIDDEN> Date: Sat, 05 May 2018 02:50:04 +0200 Message-ID: <1763108.JQDEx9xaCp@omega> User-Agent: KMail/5.1.3 (Linux/4.4.0-119-generic; KDE/5.18.0; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -6.0 (------) How to reproduce: $ wget -O gettext-clean.tar.xz 'https://www.dropbox.com/s/01pkbqsydi5ix0v/gettext-clean.tar.xz?dl=0' $ tar xf gettext-clean.tar.xz $ cd gettext-clean $ vc-chlog > /tmp/xx /usr/gnu/bin/vc-chlog: 459: test: Illegal number: + /usr/gnu/bin/vc-chlog: 458: test: Illegal number: + /usr/gnu/bin/vc-chlog: 474: test: Illegal number: + /usr/gnu/bin/vc-chlog: 459: test: Illegal number: gettext-runtime/m4/longlong.m4 /usr/gnu/bin/vc-chlog: 458: test: Illegal number: gettext-runtime/m4/longlong.m4 /usr/gnu/bin/vc-chlog: 474: test: Illegal number: gettext-runtime/m4/longlong.m4 /usr/gnu/bin/vc-chlog: 483: test: Illegal number: /tmp/vccJw9Bn8/oldfile-20-longlong.m4 /usr/gnu/bin/vc-chlog: 482: test: Illegal number: /tmp/vccJw9Bn8/oldfile-20-longlong.m4 /usr/gnu/bin/vc-chlog: 498: test: Illegal number: /tmp/vccJw9Bn8/oldfile-20-longlong.m4 $ vc-chlog --version vc-chlog version 1.8 This is on Linux (Ubuntu 16.04). Bruno
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Bruno Haible <bruno@HIDDEN> Subject: bug#31368: Acknowledgement (vc-chlog reports "test: Illegal number" errors) Message-ID: <handler.31368.B.152548142211173.ack <at> debbugs.gnu.org> References: <1763108.JQDEx9xaCp@omega> X-Gnu-PR-Message: ack 31368 X-Gnu-PR-Package: vc-dwim Reply-To: 31368 <at> debbugs.gnu.org Date: Sat, 05 May 2018 00:51:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-vc-dwim@HIDDEN If you wish to submit further information on this problem, please send it to 31368 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 31368: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D31368 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#31368: [Bug-vc-dwim] bug#31368: vc-chlog reports "test: Illegal number" errors Resent-From: Jim Meyering <jim@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-vc-dwim@HIDDEN Resent-Date: Sun, 06 May 2018 01:09:02 +0000 Resent-Message-ID: <handler.31368.B31368.15255688911445 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 31368 X-GNU-PR-Package: vc-dwim X-GNU-PR-Keywords: To: Bruno Haible <bruno@HIDDEN> Cc: 31368 <at> debbugs.gnu.org Received: via spool by 31368-submit <at> debbugs.gnu.org id=B31368.15255688911445 (code B ref 31368); Sun, 06 May 2018 01:09:02 +0000 Received: (at 31368) by debbugs.gnu.org; 6 May 2018 01:08:11 +0000 Received: from localhost ([127.0.0.1]:50916 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1fF89q-0000NF-Ut for submit <at> debbugs.gnu.org; Sat, 05 May 2018 21:08:11 -0400 Received: from mail-wr0-f175.google.com ([209.85.128.175]:39627) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <meyering@HIDDEN>) id 1fF89p-0000N1-6O for 31368 <at> debbugs.gnu.org; Sat, 05 May 2018 21:08:10 -0400 Received: by mail-wr0-f175.google.com with SMTP id q3-v6so24496892wrj.6 for <31368 <at> debbugs.gnu.org>; Sat, 05 May 2018 18:08:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=owpjkCSmFHh+rEZ7J+yUJ70p8b9wy53m+rVM4Bt50Hk=; b=L5ENNuUUy9S21URbhXx7ua2rW378dnDGh5uc00bCsfDX+8ZSg/VmYXNXychFvcalju UITp3/a695rbPaCUFFO8y9p1EP7ifwlagI+yAM5D9K8R/QmDh2ldawPzTrPAWkVierVy rOAE87xydEvVPMDmYZw4L3dm6KTRLqVA50rOnhvLNrdoAeX+3PpSCQ1MzeyrS892QjUg MU28G/t/ZMyd+QkpAA0SJuXAZLSnQ+pbWIiIE4tu4bNrBtEwhddcDwB+ZKYL0pvGBLHo l3BpuG+OE9ip0qvHL8IhcIb42UGoLFysqOxmiw/eVcHwUuOB3FDHSlonUVTfhzf21Kk1 rZKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=owpjkCSmFHh+rEZ7J+yUJ70p8b9wy53m+rVM4Bt50Hk=; b=hlOEqONIvYMtj1qpTQ5hdbvSvj1VJrWCZUh8L8puarMLEwfFi0ZR+b4ktO77RGJyts 7hWxH/g3cOBp8Xcn5jEYqyGnKdUjec+WdNumVniHbSnbkP3/kpzOu7l95MgceT8qHbhY 0E8oOSpYkL802zuHNl2FeigXHhivrpPtkY5z95A2kZIs9tMpHJ6nkdiszazTFRdoVne3 JsxOBKxwluOzVGokqXXnihnphb7x5qeOXz1PUv8s+f9kG8BSpE+1bbq6c3iFJwgNfTCr PaVUs9RltuAhXY+U5eiDeUId0AEUGffp68Ur3hK/btoVpsQIfZtl1L2q3zQ6alebODfh O3Zg== X-Gm-Message-State: ALQs6tBd3ZwlSt662az+rVKM+Nu5OpoTYmboRTQATQfQAdmaTS9U2B91 uadMPgzcYy85hKH7bOCXt/aiTCynhyv+0zFF4gQ= X-Google-Smtp-Source: AB8JxZqYPf75N5NEtAwxAuTP3hIDoY7hjvyNzgFPUbcnh1g7L2uALQs2H38sS1+jqkdF1+ZXxk7bJZ9yL4FpU0O1VQ0= X-Received: by 2002:adf:b18d:: with SMTP id q13-v6mr24060680wra.276.1525568883295; Sat, 05 May 2018 18:08:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.160.125 with HTTP; Sat, 5 May 2018 18:07:42 -0700 (PDT) In-Reply-To: <1763108.JQDEx9xaCp@omega> References: <1763108.JQDEx9xaCp@omega> From: Jim Meyering <jim@HIDDEN> Date: Sat, 5 May 2018 18:07:42 -0700 X-Google-Sender-Auth: Z7iElXLhbsFKjtsStFikz0eYmFY Message-ID: <CA+8g5KFm=vKVCkXzEeSO-yJt_QCDZvY_CVmoqXZb9x533JNtQw@HIDDEN> Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.5 (/) On Fri, May 4, 2018 at 5:50 PM, Bruno Haible <bruno@HIDDEN> wrote: > How to reproduce: ... > vc-chlog version 1.8 Hi Bruno, Thank you for the report. I can make vc-chlog misbehave that way by configuring and building vc-dwim tools with an exuberant ctags binary first in search path, but (say later) running vc-chlog with a different ctags (e.g., from emacs) earlier in the search path. You have two solutions: - rerun vc-dwim's configure+build+install to take into account the new ctags state of your shell's search path. - restore the expected ctags binary to the earlier spot in your shell's search path. Ideas for how vc-dwim can do better on this front: - hard-code the path to ctags that it finds during configure, but we prefer not to hard-code such paths... - make vc-chlog detect which ctags it is using at run time. Not ideal, but it would have saved you this trouble. The configure check shows how simple the test is: case `$CTAGS -x conftest.c` in *function*) rw_cv_ctags_type_column=yes ;; *) rw_cv_ctags_type_column=no;; esac But I suspect we could get away with an even less expensive check: inspect the output of ctags --version. If it matches something like /^Exuberant Ctags/, assume we have the more desirable type column. I'm leaning towards the latter. What do you think?
X-Loop: help-debbugs@HIDDEN Subject: bug#31368: [Bug-vc-dwim] bug#31368: vc-chlog reports "test: Illegal number" errors Resent-From: Bruno Haible <bruno@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-vc-dwim@HIDDEN Resent-Date: Sun, 06 May 2018 09:30:02 +0000 Resent-Message-ID: <handler.31368.B31368.152559895421771 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 31368 X-GNU-PR-Package: vc-dwim X-GNU-PR-Keywords: To: Jim Meyering <jim@HIDDEN> Cc: 31368 <at> debbugs.gnu.org Received: via spool by 31368-submit <at> debbugs.gnu.org id=B31368.152559895421771 (code B ref 31368); Sun, 06 May 2018 09:30:02 +0000 Received: (at 31368) by debbugs.gnu.org; 6 May 2018 09:29:14 +0000 Received: from localhost ([127.0.0.1]:50983 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1fFFyj-0005f5-S8 for submit <at> debbugs.gnu.org; Sun, 06 May 2018 05:29:14 -0400 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.162]:31247) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <bruno@HIDDEN>) id 1fFFyh-0005ew-OR for 31368 <at> debbugs.gnu.org; Sun, 06 May 2018 05:29:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1525598950; s=strato-dkim-0002; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=N1oTxtroyNDFb5Cpaabn8y1GHI91AkKsDJU3fhxapvQ=; b=gnNWyNa1uE3Xt3nSalPVVNdzA3pl/xTxspdR2yTRwf9z98ju6DYfRnuw2GBgB+o5TN oNh2ZwhRi7hiO3eKfPYypwoIgzNrZXD01L4ID/+/YDtDGmcgqW7PvX96Jt91EyS3u/hs K7xN3Xh8GO90DFbtKtA7zt+XHZFv2X0wmjvLnEP579kthTRDfceUSESs4M8vGDEIgIpD fQT6r5kXhlKMXtC3EizvZS4FW1FrqBrwJbRGxPVEn++kq0sZYAweZar6kbpLgD5Y9e/m ZCEESKly4wAXY54a3e3nr1LTTtMKuUN3No9F3LHArUeXiWJIoHyrQRVTtKlPq3avjG6M +5+A== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH+AHjwLuWOGKf9zfs=" X-RZG-CLASS-ID: mo00 Received: from bruno.haible.de by smtp.strato.de (RZmta 43.8 DYNA|AUTH) with ESMTPSA id e09803u469T9JHF (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Sun, 6 May 2018 11:29:09 +0200 (CEST) From: Bruno Haible <bruno@HIDDEN> Date: Sun, 06 May 2018 11:29:08 +0200 Message-ID: <1865158.RV6fPvkgnT@omega> User-Agent: KMail/5.1.3 (Linux/4.4.0-119-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: <CA+8g5KFm=vKVCkXzEeSO-yJt_QCDZvY_CVmoqXZb9x533JNtQw@HIDDEN> References: <1763108.JQDEx9xaCp@omega> <CA+8g5KFm=vKVCkXzEeSO-yJt_QCDZvY_CVmoqXZb9x533JNtQw@HIDDEN> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Hi Jim, > I can make vc-chlog misbehave that way by configuring and building > vc-dwim tools with an exuberant ctags binary first in search path, but > (say later) running vc-chlog with a different ctags (e.g., from emacs) > earlier in the search path. > > You have two solutions: > - rerun vc-dwim's configure+build+install to take into account the new > ctags state of your shell's search path. > - restore the expected ctags binary to the earlier spot in your > shell's search path. But I did not fiddle with PATH. I can reproduce the issue with $ cd vc-dwim-1.8 $ ./configure --prefix=PREFIX [the PREFIX/bin dir is in my $PATH] ... checking for ctags-exuberant... no checking for ctags... ctags checking whether ctags prints an extra column... no ... $ make $ make install $ cd .. $ wget -O gettext-clean.tar.xz 'https://www.dropbox.com/s/01pkbqsydi5ix0v/gettext-clean.tar.xz?dl=0' $ tar xf gettext-clean.tar.xz $ cd gettext-clean $ vc-chlog > /tmp/xx PREFIX/bin/vc-chlog: 459: test: Illegal number: + PREFIX/bin/vc-chlog: 458: test: Illegal number: + PREFIX/bin/vc-chlog: 474: test: Illegal number: + PREFIX/bin/vc-chlog: 459: test: Illegal number: gettext-runtime/m4/longlong.m4 PREFIX/bin/vc-chlog: 458: test: Illegal number: gettext-runtime/m4/longlong.m4 PREFIX/bin/vc-chlog: 474: test: Illegal number: gettext-runtime/m4/longlong.m4 PREFIX/bin/vc-chlog: 483: test: Illegal number: /tmp/vcczGSIVa/oldfile-20-longlong.m4 PREFIX/bin/vc-chlog: 482: test: Illegal number: /tmp/vcczGSIVa/oldfile-20-longlong.m4 PREFIX/bin/vc-chlog: 498: test: Illegal number: /tmp/vcczGSIVa/oldfile-20-longlong.m4 The version of ctags that I have in $PATH is $ ctags --version ctags (GNU Emacs 23.1) Copyright (C) 2009 Free Software Foundation, Inc. This program is distributed under the terms in ETAGS.README and I don't use ctags at all (there is no 'tags' or 'TAGS' file in the said tarball). > Ideas for how vc-dwim can do better on this front: > - hard-code the path to ctags that it finds during configure, but we > prefer not to hard-code such paths... > - make vc-chlog detect which ctags it is using at run time. Not ideal, > but it would have saved you this trouble. The configure check shows > how simple the test is: > > case `$CTAGS -x conftest.c` in > *function*) rw_cv_ctags_type_column=yes ;; > *) rw_cv_ctags_type_column=no;; > esac Hard-coding a path is not a good idea, I agree. As an administrator of my machine, I hate it when GCC uses a hardwired 'as' or when autoconf uses a hardwired 'm4' location. This invocation is not very costly (4 ms in my case): $ time ctags -x conftest.c f 2 conftest.c f real 0m0.004s user 0m0.000s sys 0m0.000s Therefore I would vote for moving this configure test to the run time. Bruno
X-Loop: help-debbugs@HIDDEN Subject: bug#31368: [Bug-vc-dwim] bug#31368: vc-chlog reports "test: Illegal number" errors References: <1763108.JQDEx9xaCp@omega> Resent-From: Karl Berry <karl@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-vc-dwim@HIDDEN Resent-Date: Fri, 22 Nov 2019 22:50:02 +0000 Resent-Message-ID: <handler.31368.B31368.157446299225485 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 31368 X-GNU-PR-Package: vc-dwim X-GNU-PR-Keywords: To: jim@HIDDEN, 31368 <at> debbugs.gnu.org Received: via spool by 31368-submit <at> debbugs.gnu.org id=B31368.157446299225485 (code B ref 31368); Fri, 22 Nov 2019 22:50:02 +0000 Received: (at 31368) by debbugs.gnu.org; 22 Nov 2019 22:49:52 +0000 Received: from localhost ([127.0.0.1]:55669 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1iYHkL-0006cx-Nb for submit <at> debbugs.gnu.org; Fri, 22 Nov 2019 17:49:52 -0500 Received: from freefriends.org ([96.88.95.60]:51874) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <karl@HIDDEN>) id 1iYHkK-0006cn-2o for 31368 <at> debbugs.gnu.org; Fri, 22 Nov 2019 17:49:49 -0500 X-Envelope-From: karl@HIDDEN Received: from freefriends.org (freefriends.org [96.88.95.60]) by freefriends.org (8.14.7/8.14.7) with ESMTP id xAMMngbh004343 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 22 Nov 2019 15:49:43 -0700 Received: (from apache@localhost) by freefriends.org (8.14.7/8.14.7/Submit) id xAMMng3D004342; Fri, 22 Nov 2019 15:49:42 -0700 Date: Fri, 22 Nov 2019 15:49:42 -0700 Message-Id: <201911222249.xAMMng3D004342@HIDDEN> From: Karl Berry <karl@HIDDEN> In-Reply-To: <CA+8g5KFm=vKVCkXzEeSO-yJt_QCDZvY_CVmoqXZb9x533JNtQw@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Back on this mail from 2018, let me just mention that I ran into a stream of errors similar to Bruno's ("test: Illegal number ..."). Which shouldn't say "illegal", but that's a different matter :). jm> I can make vc-chlog misbehave that way by configuring and building vc-dwim tools with an exuberant ctags binary first in search path, but (say later) running vc-chlog with a different ctags (e.g., from emacs) earlier in the search path. In my case it was the other way around, but whatever. I suspect we could get away with an even less expensive check: inspect the output of ctags --version. I fully agree. I see no overriding reason why vc-chlog cannot check what it needs to check at runtime, and do nothing at configure time. Which would be way more flexible and reliable. However, I didn't go so far as to write that patch :(. --thanks, karl.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.