delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/05/12/06:12:44

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:date:message-id:subject:from:to
:content-type; q=dns; s=default; b=jcJupJolRJOORyPmtgtRnpJ8CYTvW
s6IUiekAUG9089a1k8v94qYqQdq4MV/PXYUdRKCvMl+uefrSpM6Xtw5/B+FJZvYO
pDob1i6YOqtV78+mz4qsjKoDNNqS/z4sT0J73YTUif35tlfoiLsZ7gL2s+PtUIi+
zEQbG/dQdPvuuI=
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:date:message-id:subject:from:to
:content-type; s=default; bh=awq0tpOuNzNxSqkKDWM4yQcFCak=; b=iT6
AhoV/CfMeQlq7mnCpsp32dR4oACFGzI4NDGafS3cYWbxBWnCp/f1cHEFJ4fbqPbA
RZnO3qCY37ZET8mqtIDFWe/fsw2Lk+OrV++Huj7b9YfYHbYtpsL/FUrshUIpxij1
svfGZQE1Hk4uKrGjLUazpOtNCy3vqtmen2LG/E7M=
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=-1.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-qg0-f41.google.com
MIME-Version: 1.0
X-Received: by 10.224.51.2 with SMTP id b2mr36959501qag.49.1399889543113; Mon, 12 May 2014 03:12:23 -0700 (PDT)
Date: Mon, 12 May 2014 13:12:23 +0300
Message-ID: <CAPbWNKGufbzvGCQd4u4e3nNp5OteAWM=C7=AgE1z-UVoN6XzjA@mail.gmail.com>
Subject: How do start a cygwin shell session from a script ?
From: Timothy Madden <terminatorul AT gmail DOT com>
To: cygwin AT cygwin DOT com

Hello

I have a CMake build script for my application, that among other
things tries to build libvpx (open-source video codec, see
webmproject.org).

libvpx library v1.3.0 compiles fine by hand when I open a cygwin
terminal from the Windows start menu and type in the needed
`configure`; `make` and `make install` commands.

But when I try to invoke the cygwin shell from my build script, to run
the same 3 commands with the -lc option to sh.exe (same command line),
something happens and the build commands no longer work like in the
real mintty terminal. Then my build fails.

I believe there is something in the cygwin shell session or
environment that I do not know how to set right when invoking
$(CYGWIN_DIR)/bin/sh from my CMake script.

Is there a way for me to start a cygwin shell session from the build
script, that is identical to the one that opens in the mintty terminal
from the start menu, and run some commands there ?

I checked the environment variables and umask in the mintty terminal
and in a /bin/sh session that I launch, they are the same in both
cases. I tried using /bin/sh, /bin/bash, /bin/dash, with both --login
and -c options. But the automated build always fails, and the manual
build works.

Thank you,
Timothy Madden

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