delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/02/14/06:16:52

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D520B385DC22
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1707909410;
bh=BAuNa241ew3PNlF5M64pG38VHXaNIu5URYQNNx3QKFo=;
h=References:In-Reply-To:Date:Subject:To:Cc:List-Id:
List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
From:Reply-To:From;
b=iFbCIE43s/HIYl8J2I1szIRBb6B0DcKWelieLKtc7ORVmAitGcrlBZUxmdw76yk4Z
7qVG1+LO5btzv6dprmvQGgswK0JDyBepEb0zmQddqK46nAP1yRFnZqnCvBIzWeuDIN
wOqrybAOO/SYlEe3sYZK5mU+xSIxaRTTNAn47SC4=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E7A613857011
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E7A613857011
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707909346; cv=none;
b=BJaE/IzX7xT3+Xcsjwrj2hk9DecbSkT+u7OGax9yYGtaBwVEEoo4zF148V0LF1GHWrRL0SMkcKW5pNghjzvhVPYh53Yxgf/nAanhaWN6UnV8xqE4l/dGGtgeyqKD+LkP0K8wGzTQ7qx8Ik2KoVyX/RKAvk/fYkpF1IvSKI/wVgM=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1707909346; c=relaxed/simple;
bh=KSkqv5BqHZK6HgfnemlRRN7tyzcFACTdekqJXkaQAiY=;
h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
b=fxky/56KFBn412A6kYakohhpBDUBPTwhwGSgt5maXeDNepZ4EiP89sq/CDIEneQfMB9hshTZC1YOBu7O0HTKWxyYiVDAB+L3/4hPwfORJYHWFqT7XBtWptfeVqC5+tt86TXc83tVMx57VzkWngLzISXr5qSEK/YKHLild5nM2d4=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1707909343; x=1708514143;
h=content-transfer-encoding:cc:to:subject:message-id:date:from
:in-reply-to:references:mime-version:x-gm-message-state:from:to:cc
:subject:date:message-id:reply-to;
bh=/+aTNROI8n13pmN+3iLLbYueqs82LSw55VGtfXec5T0=;
b=uyZEDM9zhhLucQhivnRra7gN7gmgoTe8ZZIwUqKoRbhZueIQVMYIEhE71+4E3Zj+A3
ogkRgL2h6oklKR4gAY+h1Av3d4rR9SXpt/eUA1y/OEgPEavaOyc3L+DJqSLC2gvbTzrZ
UZfd5MSzB0m8pxXl6V52tS32MlaILLRPh7l1vKeUgEP7jshZw2v8PJb53yAqnZiNdfsL
mpNIR/LMoq060ZG4jLa2ImHPBU0qBkhCEYZJakJZsn7/XKGKvXlQnnBQRnZb7fLNrSWg
5VRq7KNqEKAfFLSeMADrlJ4zmnGcWlY54/KsFqBJZogVFOtNu5H/u2035C0rS8NV1pzr
0x8A==
X-Gm-Message-State: AOJu0YxnIz83MoglCJAbrV0Is8pcU79TnJZrG9rP1RcQdajrt6D9Q/Wy
Qdkp7VfznGiPwoTLtwKjPlmw5xiZ5fKbNVhUrZYvZwLUPu2Wy++jv9UMm3N0bg5dWPMNemQ8BF4
khrzd+X8/V90nkb5tPZ+wKermcvIAW9ZpuNI=
X-Google-Smtp-Source: AGHT+IFXwdhG7Kp2FV14FISywC0JrUD2AAreslZ4SP0YRmPTEXy9lTo4SJRV8jiHFi8nurV8N1usGbJP3SYEONnDE5k=
X-Received: by 2002:a0d:e888:0:b0:5ff:90e7:4730 with SMTP id
r130-20020a0de888000000b005ff90e74730mr2161099ywe.26.1707909343056; Wed, 14
Feb 2024 03:15:43 -0800 (PST)
MIME-Version: 1.0
References: <DB6P18901MB0055A6E430C4D3E891F6172AA44E2 AT DB6P18901MB0055 DOT EURP189 DOT PROD DOT OUTLOOK DOT COM>
In-Reply-To: <DB6P18901MB0055A6E430C4D3E891F6172AA44E2@DB6P18901MB0055.EURP189.PROD.OUTLOOK.COM>
Date: Wed, 14 Feb 2024 12:15:32 +0100
Message-ID: <CAB8Xom93QY26b9p4dsDjt3641rnjjdE0jf21zf-1S=8bGbNG6Q@mail.gmail.com>
Subject: Re: exit code 2 from /etc/preremove/python39-pip.sh
To: Fergus Daly <fergusd84 AT outlook DOT com>
Cc: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=ham 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-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: marco atzeri via Cygwin <cygwin AT cygwin DOT com>
Reply-To: marco atzeri <marco DOT atzeri AT gmail 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 41EBGpFA004348

On Wed, Feb 14, 2024 at 9:27 AM Fergus Daly via Cygwin
<cygwin AT cygwin DOT com> wrote:
>
> I don't think it matters much (or at all*) but while installing today's python39 update I got:
>       running: .. .. \bin\bash.exe --norc --noprofile "/etc/preremove/python39-pip.sh"
>       abnormal exit: exit code=2
> On inspection the .sh file contains the single command:
>       /usr/sbin/alternatives --remove pip3 /usr/bin/pip3.9
> This syntax with arguments and switches is duplicated frequently in /etc/preremove/ scripts
> so I cannot quite see where the problem resides .. ..
> Fergus
> (*) Nothing seems to be broken.
>

there was a typing mistake in the code of the previous variant.
The new version should be right (I hope)

You should see something like

$ /usr/sbin/alternatives --list
2to3                    auto    /usr/bin/2to3-3.9
automake-doc            auto    /usr/share/info/automake1.9.info.gz
gnuplot                 auto    /usr/bin/gnuplot-X11.exe
pip3                    auto    /usr/bin/pip3.9
pydoc3                  auto    /usr/bin/pydoc3.9
python                  auto    /usr/bin/python3.9
python3                 auto    /usr/bin/python3.9
python3-config          auto    /usr/bin/python3.9-config
sphinx-apidoc           auto    /usr/bin/sphinx-apidoc-3.9
sphinx-autogen          auto    /usr/bin/sphinx-autogen-3.9
sphinx-build            auto    /usr/bin/sphinx-build-3.9
sphinx-quickstart       auto    /usr/bin/sphinx-quickstart-3.9

with more variant if other python's are installed

$ /usr/sbin/alternatives --display pip3
pip3 - status is auto.
 link currently points to /usr/bin/pip3.9
/usr/bin/pip3.9 - priority 39
Current `best' version is /usr/bin/pip3.9.

Regards
Marco

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