delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/06/30/04:21:00

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:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=JR9Jk6HMaB66ADKh
iOPC9FBj2zrzCKCXEaPqIywssQTerAEx2wwMlsQ1QsXTFWvdMjoEwCleaXnoMpEp
rey4ALFOANH50Jycf34IE7DdA5k4tztXcVjLbveZl16Sp3TQRfwzXL118+lmpY3d
+MldokYBFqP1xyRTgHV1/Vb4awM=
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:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; s=default; bh=HHcK4ywUrcbb+tpdpMB7BR
XqlT4=; b=eZhMtySPqWFcSBLtzzEGRxXMmO9AgL+4LX5Hd2B/MQ+pUl911fN1r5
eJQ8upaVKim//+3qSp6CgcNims+ooSLyXkP8DLl6SDaJoKzmWZa5UPuw/tnqaNDC
XjlfGaDRLk22Ur0Q2hSWDCsQsYfybQtum7jFj4J5qG5irqGZgeR/Q=
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-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.1 spammy=H*UA:Bat!, hands, HX-Priority:Normal, english
X-HELO: forward104p.mail.yandex.net
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1561882802; bh=0XJ6yiPzbmOEO4kBIY1NC4eXmkc6MGF90naeTSHd904=; h=In-Reply-To:Subject:To:Reply-To:From:Message-ID:References:Date; b=otZiMlzg8AxJdjFEIGbgazXtlQZFLVhLgSx6d8aRmpWu3v/xnUNn/zU/az5S2hCEj /X8mZPUI1IX5zelJhBxFBh7e9mgSz4/pcluFjPaY8rv5hPZ5o/HgmGFPWW0fgBMAHS gHLDTQteKsVoYoctNiJkGUvKWv8DaMyf8F1eZIek=
Authentication-Results: mxback3o.mail.yandex.net; dkim=pass header.i=@yandex.ru
Date: Sun, 30 Jun 2019 11:09:02 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <10110680770.20190630110902@yandex.ru>
To: Federico Kircheis <federico DOT kircheis AT gmail DOT com>, cygwin AT cygwin DOT com
Subject: Re: cygport and C:\Windows\system32\tar.exe
In-Reply-To: <9cb73766-d910-4114-d886-a98e41ee57c0@gmail.com>
References: <bae0be8b-310d-e187-e8f7-f08d3495ce1c AT gmail DOT com> <58004f6c-2789-041d-8e75-65e602748db1 AT t-online DOT de> <9cb73766-d910-4114-d886-a98e41ee57c0 AT gmail DOT com>
MIME-Version: 1.0
X-IsSubscribed: yes

Greetings, Federico Kircheis!

>>> My problem is that cyport tries to invoke tar with an absolute file, and
>>> of course C:\Windows\system32\tar.exe does not understand a path that
>>> begins with `/cygdrive/c`.
>> 
>> No.  Your problem is that you're trying to use cygport from the wrong
>> place, causing the PATH seen by it to be completely wrong.  Well, either
>> that, or that you somehow failed to install Cygwin's own tar, even
>> though it's part of the base system, so it should always be installed.

> Mhm, You are of course right.

> I've a clean system (plus a couple of programs), and cygwin.

> I was able to reproduce the error directly from the cygwin terminal 
> (with relative and absolute path), but now I'm unable to trigger it 
> anymore :-S

If you've started mintty by hands, it will inherit current environment.
In which case, you have to do some hand-waving to make it work more reliable.

>> Cygport, like many of the more involved utilities delivered by Cygwin,
>> is meant to be used from inside the Cygwin shell.  At the very least,
>> you have to ensure that the PATH of the shell running cygport is set up
>> properly, with Cygwin's `/bin' and/or `usr/bin' mounts at the front of it.
>>> How do you generally solve that problem?
>> 
>> Basically by not even having it in the first place.

> Of course, since cycheck reported it as possible issue I thought that 
> was it.


-- 
With best regards,
Andrey Repin
Sunday, June 30, 2019 10:51:47

Sorry for my terrible english...


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