X-Recipient: archive-cygwin@delorie.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@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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@flashtux.org>
To: cygwin@cygwin.com
Subject: CMake: parse error in file FindTclsh.cmake
Message-ID: <20190821071253.ezyanhcr7vdaufmu@flashtux.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
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

