delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/11/19/17:04:10

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A4943382EA07
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1700431447;
bh=aTpJ+60gIoxboRcKn5MinQPXdRYwzOmu1mHG4VDGxOc=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=SQzZJJa3n7jO7D1xj/AvGQg2lk6bfkqYXL0dJzSqrJIjXLR1QRj92o6T6dyo4Gb6d
Vwo22AVCwdYFAv+F2mH0nVlngc0jHqTJdk7xe2vgNdGGJErc/E9OaUM7Ds33JBM+cf
8EmXENOqDm4j6L7pNg3BmpfyRR42rRYfoZDX6lxY=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C73F43876079
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C73F43876079
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700431434; cv=none;
b=boYFNFPytLPUqZzX087HLEarwwerhYtYwbmWLshn32t1txpc6R+lBsRk5HGEBNVT2f37lyo/RvjSwxe+oISqbHFr9lQo5eI6y9I2JVz+1QIbHxdA9046eMQOv78tqTftzIzryh6SPCqoZe5kdOO49GReS3OTu5zGJ6DSwBA8Xg8=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1700431434; c=relaxed/simple;
bh=PvLBZURAHLyE2/ICIrAZIB6C09moI9/IsvClPvBlFxc=;
h=Message-ID:Date:MIME-Version:From:Subject:To;
b=VVM0/HNYjYRrKnNmwkP9hc9znIMPG+67Qsds/GsjAAzNQ3XBm27QcIL5JZHRsFdwQyXXTERZF+8zkXLJxsmbhRobnAHsYj6bQNWSYgGtt7yIY1kyjwfIobLLrJUlkrmJrED5EKW46C082O3RHuDu+BWlXYiZ3DMO94kr2qvugPg=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-SNCR-Rigid: 64C837300BB72DC2
X-Originating-IP: [81.153.98.243]
X-OWM-Source-IP: 81.153.98.243 (GB)
X-OWM-Env-Sender: jon DOT turney AT dronecode DOT org DOT uk
X-VadeSecure-score: verdict=clean score=0/300, class=clean
X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgedvkedrudeggedgudehiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemuceutffkvffkuffjvffgnffgvefqofdpqfgfvfenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepkfffgggfhffuvfhfjggtgfesthekredttddvjeenucfhrhhomheplfhonhcuvfhurhhnvgihuceojhhonhdrthhurhhnvgihsegurhhonhgvtghouggvrdhorhhgrdhukheqnecuggftrfgrthhtvghrnhepvdetvedvuedufeeuudehjeeutddtgeeuffekgeekiedvhedtteelhfeftedvleegnecuffhomhgrihhnpegthihgfihinhdrtghomhenucfkphepkedurdduheefrdelkedrvdegfeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopegludelvddrudeikedruddruddtjegnpdhinhgvthepkedurdduheefrdelkedrvdegfedpmhgrihhlfhhrohhmpehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkpdhnsggprhgtphhtthhopedvpdhrtghpthhtoheptgihghifihhnsegthihgfihinhdrtghomhdprhgtphhtthhopehmrghrthhinhdrlhdrfigvghgvsehgmhgrihhlrdgtohhmpdhrvghvkffrpehhohhsthekuddqudehfedqleekqddvgeefrdhrrghnghgvkeduqdduheefrdgsthgtvghnthhrrghlphhluhhsrdgtohhmpdgruhhthhgpuhhsvghrpehjohhnthhu
rhhnvgihsegsthhinhhtvghrnhgvthdrtghomhdpghgvohfkrfepifeupdfovfetjfhoshhtpehsrgdqphhrugdqrhhgohhuthdqtddtud
X-RazorGate-Vade-Verdict: clean 0
X-RazorGate-Vade-Classification: clean
Message-ID: <ca0e2f36-4893-462e-8e57-4f6379a5b256@dronecode.org.uk>
Date: Sun, 19 Nov 2023 22:03:50 +0000
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: setup-x86_64.exe (bug ?): Cannot write to /usr/bin/cygwin1.dll -
cyserver squatting it...
To: Martin Wege <martin DOT l DOT wege AT gmail DOT com>,
The Cygwin Mailing List <cygwin AT cygwin DOT com>
References: <a0f1e420-ae48-49a3-9300-c56f1948ad9b DOT 8d485f54-9f47-42b0-bdcb-9635fbf663c3 DOT 331c6002-7ca1-4c59-9494-402e573a76ee AT emailsignatures365 DOT codetwo DOT com>
<a0f1e420-ae48-49a3-9300-c56f1948ad9b DOT e52b7f5f-5a09-4346-99f8-a6591191169c DOT d8646e54-e135-4b48-b201-e04c766db67c AT emailsignatures365 DOT codetwo DOT com>
<DBBPR05MB111779EE12E855BE19BFE167B92B1A AT DBBPR05MB11177 DOT eurprd05 DOT prod DOT outlook DOT com>
<1594716181 DOT 20231115200144 AT yandex DOT ru>
<CANH4o6Ou6M13+gfA4zYvz_aseMDcc+q6v9HFjgXFNWgk8zYGVw AT mail DOT gmail DOT com>
In-Reply-To: <CANH4o6Ou6M13+gfA4zYvz_aseMDcc+q6v9HFjgXFNWgk8zYGVw@mail.gmail.com>
X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL,
KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Jon Turney via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Jon Turney <jon DOT turney AT dronecode DOT org DOT uk>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 3AJM49hl025496

On 16/11/2023 07:03, Martin Wege via Cygwin wrote:
> On Wed, Nov 15, 2023 at 6:05 PM Andrey Repin via Cygwin
> <cygwin AT cygwin DOT com> wrote:
>>
[...]
>>
>>> ---- snip ----
>>> Unable to extract /usr/bin/cygwin1.dll -- error writing file
>>> ---- snip ----
>>
>>> The fix is to do a $ sc stop cygserver # as Administrator, then
>>> "setup-x86_64.exe" can write to that file, and after "setup" is done do a $ sc start cygserverr # as Admin again.
>>
>>> ... is it possible to modify "setup-x86_64.exe" to stop cygserver before
>>> doing the installation process and re-start it after it ?

Yes, the source code is available. :)

>> There's no reason to do so, as there's no easy way to detect beforehand, if
>> you actually need to do so.
> 
> sc query cygserver is EASY to detect.

Unfortunately, this is not what's actually needed: To generically detect 
a service which (is the parent of) a process which has a file which 
setup wants to update open.

That said, I'd certainly be open to patches which improve matters 
without solving the problem with full generality, but just observing 
they are "EASY" doesn't bring them into existence...

Anyhow, you can see the old discussion about how we might add this 
feature back when I added the current limited support for terminating 
processes which have needed files open. starting at [1].

Perhaps someone cleverer or more diligent than me will progress this...

[1] https://cygwin.com/pipermail/cygwin-apps/2013-February/031448.html

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019