www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/07/15/12:05:38

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 419353989091
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1626365137;
bh=OQEjGzaUZyAIQ1spNpkaO/WyXHI4+SLMrsQldJjlgM8=;
h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=VobThL5x52sFqVJTOiLxBDZU8IaR3AVMP73y/GHtRErj4YnPEB8kgPeer1F+pTacm
Q6/K267KAZ6P36jf+RIyY5toTz0rTZsPl6HUkUaeHEPAe+oqMemyX615qz4DfvEuVb
mHysuyXBK0uA+HCuSHiqAJFkuF8CQxsRqKDz1FZs=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 345823AAB49F
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to;
bh=tp9ui87QVJE7guVgS1JeNXjXj6fHmAd0QMkk+NjJ0QI=;
b=bOGxFtP68z+nKy8fT8Hea9SkUa27C1P7R4y34/9xlUXHBB8uhUT/Wwm+VH+TkGHi1i
zDFeTOTrhDdmMv4k6XQFb8bcNsb9OtKNWftrVgrmSTPusfsaAm5oVZd/HPqyyV5EIDoo
GUDpjHxnFVPGNxrOu0nrTcZswTEcikx7auPgqwZsgNZG0t1THZZpxdqFqaJ0OophPirl
c8y0Cn1JGX0JiN1MunkFbmazDNZFOARnAZe+wCRo7TcOrKIoxCoaAZ5/X5l0+fy2vPER
W6MnyH8MTpTJZAEYSZb7NjFcgHESsZMs/qW7of+HA8tVcGHqI7tbB+lv21KkRfCAXYid
tRXA==
X-Gm-Message-State: AOAM531/fwVfG5O7pVCbOgjuHuvC2p7mk9h9J+XiYR0un8a42h7HNc34
OefBl3SdhSv/n6wDubLI22TKOjIjmkSKlC0JyeLctuzMwRw=
X-Google-Smtp-Source: ABdhPJxoj5e09xBT4tvXA0P0uRP5HpaT3VIa5p8FSTTkqYagHiOzUMreUmLBWCvq+Ds/KCcObciaxQfxHESxNN/9EbE=
X-Received: by 2002:a37:6409:: with SMTP id y9mr1523243qkb.87.1626365102565;
Thu, 15 Jul 2021 09:05:02 -0700 (PDT)
MIME-Version: 1.0
References: <CAJ1FpuODg29bqjrip0gTmXP8ua4EM2KbxBF9fycs+V=tDQx2dg AT mail DOT gmail DOT com>
<87sg0g67o7 DOT fsf AT Rainer DOT invalid>
<CAJ1FpuMLQjhM9-Sqz4sgu-dYd5qiiZsp89SnbnKPFFGvQJa=rQ AT mail DOT gmail DOT com>
<b6ccba69-1aca-fe68-a05c-6e1333228001 AT cornell DOT edu>
<CAJ1FpuMad9ASSqKXCfJk0xuJVhpFKuCFwKDv2CDYf4uLiPUbYQ AT mail DOT gmail DOT com>
<56b09345-e2a9-ed55-1627-421261ecd756 AT cornell DOT edu>
In-Reply-To: <56b09345-e2a9-ed55-1627-421261ecd756@cornell.edu>
Date: Thu, 15 Jul 2021 10:04:13 -0600
Message-ID: <CAJ1FpuPt2Aa9JzYmoO2TmB31JnonGi9xtSkxrh7pgUjvvrWndw@mail.gmail.com>
Subject: Re: Setup shows errors from gnuplot-base.dash and python38-devel.sh
To: cygwin <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, FROM_LOCAL_NOVOWEL,
HK_RANDOM_ENVFROM, HK_RANDOM_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=no autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
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: Doug Henderson via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Doug Henderson <djndnbvg AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

"On Thu, 15 Jul 2021 at 05:59, Ken Brown via Cygwin <cygwin AT cygwin DOT com> wrote:
>
> On 7/14/2021 9:20 PM, Doug Henderson via Cygwin wrote:
> > On Wed, 14 Jul 2021 at 16:33, Ken Brown via Cygwin <cygwin AT cygwin DOT com> wrote:
> >>
> >> On 7/14/2021 5:08 PM, Doug Henderson via Cygwin wrote:
> >>> On Wed, 14 Jul 2021 at 13:03, Achim Gratz <Stromeko AT nexgo DOT de> wrote:
> >>>>
> >>>> Doug Henderson via Cygwin writes:
> >>>>> The first error message occurred when I installed all pending packages
> >>>>> this morning. I hoped to heal the problem by reinstalling the
> >>>>> installed gnuplot packages. Now I get both the messages.
> >>>>
> >>>> If you look in /var7Log/setup.log.full you should be able to see what
> >>>> error messages, if any, were recorded.
> >>>>
> >>>> The gnuplot related script should just set up the current alternative
> >>>> for "gnuplot" to use, but something on your system seems to prevent
> >>>> that from happening.  You can also run the script in sh (you must tell
> >>>> the shell to source it) and should get the same error (most likely).
> >>>
> >>> When I do that in an elevated shell:
> >>>
> >>> $ cd /etc/postinstall/
> >>>
> >>> $ cat gnuplot-base.dash
> >>> /usr/sbin/alternatives --install /usr/bin/gnuplot gnuplot
> >>> /usr/bin/gnuplot-base.exe 10
> >>>
> >>> $ . gnuplot-base.dash
> >>> failed to read link /usr/bin/gnuplot: No such file or directory
> >>> failed to link /usr/bin/gnuplot -> /etc/alternatives/gnuplot: No such
> >>> file or directory
> >>
> >> Something seems to be confusing 'alternatives'.  Can you show a listing of
> >> /etc/alternatives?
> >
> > $ cd /etc/alternatives/
> >
> > $ ls -l
> > total 2.0K
> > lrwxrwxrwx 1 Admin None  35 Oct  3  2017 automake-doc ->
> > /usr/share/info/automake1.9.info.gz
> > lrwxrwxrwx 1 Admin None  19 Jun 16 17:48 lua -> /usr/bin/lua5.3.exe*
> > lrwxrwxrwx 1 Admin None  31 Jun 16 17:48 lua.1.gz ->
> > /usr/share/man/man1/lua5.3.1.gz
> > lrwxrwxrwx 1 Admin None  20 Jun 16 17:48 luac -> /usr/bin/luac5.3.exe*
> > lrwxrwxrwx 1 Admin None  32 Jun 16 17:48 luac.1.gz ->
> > /usr/share/man/man1/luac5.3.1.gz
> > lrwxrwxrwx 1 Admin None  15 Jun  5 08:46 pip3 -> /usr/bin/pip3.8*
> > lrwxrwxrwx 1 Admin None  22 Jun 16 07:34 python -> /usr/bin/python3.8.exe*
> > -rw-r--r-- 1 Admin None 163 Apr  4  2013 README
>
> This shows that alternatives worked in June.  Have you changed anything since
> then that might be related to symlinks (e.g., the CYGWIN environment variable)?
>
> Here are a few other things you could try:
>
> 1. Attach cygcheck output as requested in https://cygwin.com/problems.html
>
> 2. Add --verbose to the alternatives call.
>
> 3. Run the alternatives call under strace and look for errors involving
> symlinks.  Or post the output somewhere so that we can look at it.

Now using setup-x86_64.exe version 2.909 (64 bit)
Postinstall script errors:
Package: _/Unknown package
    gnuplot-base.dash exit code 2
    python38-devel.sh exit code 2

Here's what I did in an elevated shell.

$ cd /etc/alternatives

$ cat /etc/postinstall/gnuplot-base.dash
/usr/sbin/alternatives --install /usr/bin/gnuplot gnuplot
/usr/bin/gnuplot-base.exe 10

$ /usr/sbin/alternatives --verbose --install /usr/bin/gnuplot gnuplot
/usr/bin/gnuplot-base.exe 10
reading /var/lib/alternatives/gnuplot
failed to read link /usr/bin/gnuplot: No such file or directory
failed to link /usr/bin/gnuplot -> /etc/alternatives/gnuplot: No such
file or directory

$ echo $CYGWIN
winsymlinks:nativestrict

*** changed system environment
$ echo $CYGWIN
winsymlinks:native

$ /usr/sbin/alternatives --verbose --install /usr/bin/gnuplot gnuplot
/usr/bin/gnuplot-base.exe 10
reading /var/lib/alternatives/gnuplot


*** Success
Alternatives does not work correctly when CYGWIN=nativestrict. Perhaps
it is trying to create a link before the link target exists. Unlike
Linux, Windows does not allow creating symbolic links to non-existent
targets.

The /etc/postinstall/python38-devel.sh also works now.

Also after changing env back to CYGWIN=winsymlinks:nativestrict the
erroring postinstall scripts continue to work. This supports my
suspicion that /usr/sbin/alternatives is trying to create a symbolic
link to a target before it creates the target when it is performing
the first install for an alternative. On subsequent runs, the target
already exists.

I have unattached the output from cygcheck, as I do not believe it
will help now.

Am I the only person that uses "CYGWIN=winsymlinks:nativestrict" ???
Sorry for all the bother. My aging brain forgot how I made
alternatives work for Lua last month.

HTH
Doug

-- 
Doug Henderson, Calgary, Alberta, Canada - from gmail.com

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