X-Recipient: archive-cygwin@delorie.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@cygwin.com
Delivered-To: cygwin@cygwin.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.turney@dronecode.org.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.l.wege@gmail.com>,
        The Cygwin Mailing List <cygwin@cygwin.com>
References: <a0f1e420-ae48-49a3-9300-c56f1948ad9b.8d485f54-9f47-42b0-bdcb-9635fbf663c3.331c6002-7ca1-4c59-9494-402e573a76ee@emailsignatures365.codetwo.com>
 <a0f1e420-ae48-49a3-9300-c56f1948ad9b.e52b7f5f-5a09-4346-99f8-a6591191169c.d8646e54-e135-4b48-b201-e04c766db67c@emailsignatures365.codetwo.com>
 <DBBPR05MB111779EE12E855BE19BFE167B92B1A@DBBPR05MB11177.eurprd05.prod.outlook.com>
 <1594716181.20231115200144@yandex.ru>
 <CANH4o6Ou6M13+gfA4zYvz_aseMDcc+q6v9HFjgXFNWgk8zYGVw@mail.gmail.com>
Content-Language: en-GB
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@cygwin.com
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Jon Turney via Cygwin <cygwin@cygwin.com>
Reply-To: Jon Turney <jon.turney@dronecode.org.uk>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>
Content-Transfer-Encoding: 8bit
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@cygwin.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

