| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE |
| X-Spam-Check-By: | sourceware.org |
| Message-ID: | <780008.43883.qm@web25501.mail.ukl.yahoo.com> |
| Date: | Fri, 29 Oct 2010 11:17:42 +0100 (BST) |
| From: | Marco Atzeri <marco_atzeri AT yahoo DOT it> |
| Subject: | Re: Odd directory created when installing 1.7 |
| To: | cygwin AT cygwin DOT com, Matteo Cortese <matteo_cortese AT fastwebnet DOT it> |
| In-Reply-To: | <9004718.190941288345976110.JavaMail.defaultUser@defaultHost> |
| MIME-Version: | 1.0 |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
--- Ven 29/10/10, Matteo Cortese ha scritto:
> I've not seen any follow up on this issue for some time,
> and in fact I've just experienced a failure of bash's
> postinstall script fails due to the strange way DEVDIR is
> built.
Matteo,
I don't understand. The bash postinstall script have=20
nor DEVDIR neither /cygdrive/
/etc/postinstall/bash.sh (eventually bash.sh.done if successfull)
-------------------------------------------------------------
#!/bin/bash
# Bash postinstall script. Assumes you are running setup.exe 2.510.2.2 or
# newer, meaning that this is executed by /bin/bash and not /bin/sh (if you
# are running an older setup.exe, this postinstall script can't do anything=
).
#
# Copyright (C) 2007, 2008, 2010 Eric Blake
# This file is free software; I give unlimited permission to copy and/or
# distribute it, with or without modifications, as long as this notice is
# preserved.
# Track any failure in this script.
result=3D0
# Install /dev/fd, /dev/std{in,out,err}. The bash builtin test was compiled
# to assume these exist, so use /bin/test to really check.
test -d /dev || result=3D1
/bin/test -h /dev/stdin || ln -sf /proc/self/fd/0 /dev/stdin || result=3D1
/bin/test -h /dev/stdout || ln -sf /proc/self/fd/1 /dev/stdout || result=3D1
/bin/test -h /dev/stderr || ln -sf /proc/self/fd/2 /dev/stderr || result=3D1
/bin/test -h /dev/fd || ln -sf /proc/self/fd /dev/fd || result=3D1
test $result =3D 0 || exit $result
-------------------------------------------------------------
Could you clarify a bit ?
Marco
--
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |