delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/08/21/03:13:51

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:mime-version
:content-type:content-transfer-encoding; q=dns; s=default; b=IiO
J5rAktkxw3SQUFL/s1bz8Gb0MXZgxgo4kGZupWdBHTJpcJNLnqWEpQdJLhqrA/m/
0ZBlCTcBnjUt9+ZvDLV9KlHijQcoAvlUIGdQttt+nAiKC7ILdw3zRBZcMhvoEd1y
pYvQg5uJjJcPsQf0YmgFuzQrD+4QNPhQYe74UF0M=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:mime-version
:content-type:content-transfer-encoding; s=default; bh=sT7W39bwC
RIBzrDdiPjgqBktwQk=; b=bQaA6fHo/fTXE36ifYFxunF0mgtH3Lw8eqZT/Ev4W
2ubOmws15TRo0tzxARYSqwHvgafwe39BOYzBvUIryqeqa+YWpXZjR8yvQJFmsAGb
BnrIlj9rgBuydA91n2lcIZRsN7tY/zLk1NvXpUoDOncitC8waqOk7q7gIp5/ZIT8
qg=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=0.2 required=5.0 tests=AWL,BAYES_00,KAM_ASCII_DIVIDERS,SPF_PASS autolearn=no version=3.3.1 spammy=TCL, HContent-Transfer-Encoding:8bit
X-HELO: mail.flashtux.org
Date: Wed, 21 Aug 2019 09:12:53 +0200
From: =?utf-8?Q?S=C3=A9bastien?= Helleu <flashcode AT flashtux DOT org>
To: cygwin AT cygwin DOT com
Subject: CMake: parse error in file FindTclsh.cmake
Message-ID: <20190821071253.ezyanhcr7vdaufmu@flashtux.org>
MIME-Version: 1.0
X-GPG-Key_fingerprint: 3122 55CC 88BA 5B8A 21FA 3C15 BEC8 E534 520B 673F
X-GPG-Public_key: https://flashtux.org/files/pubkey.txt
User-Agent: NeoMutt/20170113 (1.7.2)
X-IsSubscribed: yes

Hi,

In the version 3.14.5 of CMake, I have issues to detect Tcl (I'm author of
WeeChat, which uses TCL language as one of the supported language scripts).

The file seems to have a comment (as rst) on top, but it is not properly
closed.

I have the following error:

=====
CMake Error at /usr/share/cmake-3.14.5/Modules/FindTclsh.cmake:93:
  Parse error.  Expected a command name, got unterminated bracket with text
  ".rst:

  FindTclsh

  ---------



  Find tclsh

(...)
  ".
Call Stack (most recent call first):
  cmake/FindTCL.cmake:59 (include)
  src/plugins/CMakeLists.txt:121 (find_package)


-- Configuring incomplete, errors occurred!
=====

The content of /usr/share/cmake-3.14.5/Modules/FindTclsh.cmake starts with:

=====
# Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
# file Copyright.txt or https://cmake.org/licensing for details.

#[=======================================================================[.rst:
FindTclsh
---------

Find tclsh

This module finds if TCL is installed and determines where the include
files and libraries are.  It also determines what the name of the
library is.  This code sets the following variables:

::

  TCLSH_FOUND = TRUE if tclsh has been found
  TCL_TCLSH = the path to the tclsh executable


get_filename_component(TK_WISH_PATH "${TK_WISH}" PATH)
get_filename_component(TK_WISH_PATH_PARENT "${TK_WISH_PATH}" PATH)
string(REGEX REPLACE
  "^.*wish([0-9]\\.*[0-9]).*$" "\\1" TK_WISH_VERSION "${TK_WISH}")
(...)
=====

So for me this line is missing before the first CMake command:

#]=======================================================================]

Please let me know if I have report this bug on a tracker or send a patch.

Thanks.

-- 
Sébastien Helleu

web: weechat.org / flashtux.org
irc: FlashCode @ irc.freenode.net

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019