delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/11/25/19:08:31

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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=aWzZc13rYBdI4/DE
ak3X1N3A8JFEQeYVbNAZO7o5PUfQ0Gz+Vsbcahe4WQtZj9b9KmtnyJOK63ADj7rV
PBWcOX3R1F56peflJuXX+lAIZwlRU4PIi1/yZXMweE8wWPirK6VEoWrt1HgEi7Np
s9Jk0xbXkvu18MCy0Uw1nxkKmvA=
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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=qgWfODhTFAlR7rpfNAHgLX
JRZtw=; b=YJY89bf8d4wBdNWWRcWqhLbzmhkWUinatxh54V5Z1YnYtquydGmHTl
iqMZM5oSUOdtYQKZ53zs8pwel1cEBFXGBERYuAaH2luHesKQzUJlFUAJ7008mvwQ
j3LHQ3t9idMsMLSUk/1IgNxr/bgSbYfzboVjI2XxucFM4vP3k+Etk=
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-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_05,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=H*Ad:D*t-online.de, HX-HELO:sk:mailout, We're, H*MI:sk:eee3ac0
X-HELO: mailout06.t-online.de
Subject: Re: Standard LEX variable doesn't work in Make.
To: cygwin AT cygwin DOT com
References: <d06883e8208624afb5d094ebd3e78375 AT mail DOT kylheku DOT com> <11448207-52c8-6745-999f-48a4534bbc41 AT t-online DOT de> <eee3ac0a-6715-1517-9045-2e2ac8544c66 AT SystematicSw DOT ab DOT ca>
From: =?UTF-8?Q?Hans-Bernhard_Br=c3=b6ker?= <HBBroeker AT t-online DOT de>
Message-ID: <4805811d-559f-a49d-9b2f-5041a0b94b08@t-online.de>
Date: Sat, 26 Nov 2016 01:08:02 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.0
MIME-Version: 1.0
In-Reply-To: <eee3ac0a-6715-1517-9045-2e2ac8544c66@SystematicSw.ab.ca>
X-IsSubscribed: yes

Am 25.11.2016 um 15:31 schrieb Brian Inglis:

> One solution, and the most common in Cygwin, is the package flex should
> create a symlink lex if no such symlink or exe exists;

In this case I believe that would be less than fully correct, because 
flex is not a clean drop-in replacement for generic lex.  For that one 
has to add the '-l' flag. So instead of a symlink one would use a 
wrapper script much like the 'yacc' script found in the 'bison' package, 
i.e.:

	#! /bin/sh
	exec /usr/bin/flex -l "$@"

 > or by the FHS,
> create a group of alternatives, with a slave alternative for each of
> its public components e.g. bin, man, info, etc. files.

I don't think 'alternatives' is applicable here.  We're not looking at 
several packages providing the same file --- we're looking at

* single packages offering the same executable under more than one name, 
causing it to express different personalities, like ex -> vi.exe, view 
-> vi.exe, latex --> pdftex.exe,

* a subsystem like texlive installing a truckload of executable scripts 
somewhere else, and links from /bin to them.

So while I agree that the 'alternatives' mechanism could, or even should 
be used more in Cygwin, I don't think this is one of the cases where 
that applies.


--
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