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:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; q=dns; s=default; b=VF OKLWFobwD4f3lMtP4CSaLlvoRzn4MieWvKfJnTmzlhUM2+4Z+eit3pKJ8ZT4BbUu uILr9Nr64KmWncav6P6FVessxW71VXIjETRQdDvssk+iv++WVQZnRDFZrjMC7K3i xq9wjr44pZ3wtemidoxoK402UQoMpET1WH81xcfnk= 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:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; s=default; bh=u0ccbWwG Q6tFo8LbKuamo/abBPk=; b=Cu619Fu0S/62KsgTbntRTpY4f7ut8hZfL0mmJCEz Y0o1ke0vCR0Unr6DW4rU6AhP8fEfbW+FBAfx5Sy05OKoMHHBG+0Sp+S6glvApgRN 6anWGc1+GHqbxo8rbpyo9urY/VI9uloQ0Vdql7q68GffUYxxThu0YBNjxUh7+YM9 WFI= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-lb0-f193.google.com MIME-Version: 1.0 X-Received: by 10.112.147.225 with SMTP id tn1mr59856625lbb.37.1415112170020; Tue, 04 Nov 2014 06:42:50 -0800 (PST) In-Reply-To: <20141104092948.GK28636@calimero.vinschen.de> References: <0o355a5qcje49cevq02fb581uahr2jb38r AT 4ax DOT com> <20141031211001 DOT GD14051 AT calimero DOT vinschen DOT de> <54580070 DOT 70908 AT cygwin DOT com> <20141104092948 DOT GK28636 AT calimero DOT vinschen DOT de> Date: Tue, 4 Nov 2014 09:42:49 -0500 Message-ID: Subject: Re: terminfo and /usr/share/terminfo requirement From: cyg Simple To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes On Tue, Nov 4, 2014 at 4:29 AM, Corinna Vinschen wrote: > On Nov 3 17:34, cyg Simple wrote: >> On Mon, Nov 3, 2014 at 5:23 PM, Yaakov Selkowitz wrote: >> > On 2014-11-03 16:14, cyg Simple wrote: >> >> >> >> It is true that I am not using setup-${arch}.exe but that shouldn't >> >> matter as long as I have the dependencies resolved. >> > >> > >> > Yes, it does matter; Cygwin setup is the only supported method of creating >> > and managing a Cygwin installation. Please try again from scratch with >> > Cygwin setup and you will see that there is absolutely no need for a >> > /usr/share => /share mount. >> >> Are you saying setup or some post install file doesn't mount >> /usr/share? > > It's not necessary. Setup-${arch}.exe creates the default directory > layout. > >> If a mounted /usr/share isn't important then why is >> /usr/bin and /usr/lib automounted? > > Two reasons: > > - Windows. > > DLLs are found in the directory of the application even if $PATH > doesn't point to the directory containing the DLL. cygwin1.dll and > all other cygwin DLLs are in the same path as the essential binaries > so that you can start them from Windows even if $PATH is not set to > contain Cygwin's /bin. If we had separate /bin and /usr/bin dirs, we > would have the essential binaries spread over two directories, but the > cygwin DLLs in only one of them, or worse, spread over two dirs as > well. Hilarity ensues. > > - GCC. > > GCC generates the path to certain files under the lib dir relative to > the path it has been started from. So, if you run /bin/gcc, it searches > for the files under /lib, if you start /usr/bin/gcc it searches under > /usr/lib. Since you can do both, you have to handle lib just as bin. > > There was never a need to do that for any other directory, that's why > we don't have /sbin <=> /usr/sbin as Fedora. But /usr/share is used by the terminfo library to find the files that define TERM=cygwin or whatever value it has. Without the mount of /usr/share then the terminal doesn't know how to handle things like the Backspace key when deleting characters. If /usr is mounted to the PREFIX/usr directory and PREFIX/usr/lib does not exist the issue becomes one of a confusing file or directory not found message. My suggestion would be to automount /usr pointing to PREFIX/usr instead of adding another specific directory of /usr/share; one never knows when some other reason exists to have another one. If that isn't acceptable at least add the /usr/share automount, please. It would eliminate the plethora of email and forum posts asking why the Backspace key doesn't work. -- cyg Simple -- 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