delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/10/22/09:47:32

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0EA0A3858C2D
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1697982451;
bh=Z9pErjt9jZLYY36YF2OskCK+wOuYcOPu8G0o5MwyAeg=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=B99nEKlEXlnUpXGonzmaKcWYYD4B8Oe22TeVyTMILyuASSqnaZmrSGPPZgCVmLnjB
LQDWZi51QGupmf6mdCv0y2peR/3XpRDV2DPOiLgZKBTfs7UpmuO82kZKd0RWuxsZX0
vd/nWI493LuhnBbIZJeiObgn7Yow2eCNpBG1jleM=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 921133858D37
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 921133858D37
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697982437; cv=none;
b=ahPK+wZYSjnZY1/3uV4qqy8aaxo+FNZ3JHUTYOHi+0gwP7ZaRwHp45xG5gTeOS5u1Wbm+DcFatI9Ammry488APcNuKCh/H6z95+FVhWTANISYY5cISTULicOinN+GjZNz6agLO833Mtwbe+CVDJ//r7jhaQekJz/thpMhLgcUkE=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1697982437; c=relaxed/simple;
bh=1fI1BdS41rwz8Tc8HSfHqRx38wy4VH5fKgj9gtSWF3o=;
h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From;
b=DlK3jad77U2E3tb1CTpAj/ONN9jObqaig1TjPOt40hhw91/nBGen6Gn+rqWDnDcLuh2i2oHHhamWVqIsI7P65aGlKliBrdIK8hZcS1qDg+ZY18kf9atJUdjrmuncDmtoXwCxZyfjjJPKuLtMxZDeDyoe0hVUq324nelN8jeiOu8=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Authority-Analysis: v=2.4 cv=AOzxY27A c=1 sm=1 tr=0 ts=653527e2
a=DxHlV3/gbUaP7LOF0QAmaA==:117 a=DxHlV3/gbUaP7LOF0QAmaA==:17
a=IkcTkHD0fZMA:10 a=X1Qocp3WLYfb8PDYONUA:9 a=QEXdDO2ut3YA:10
Message-ID: <e6d05354-e018-4690-b4a7-fe639077ac6b@Shaw.ca>
Date: Sun, 22 Oct 2023 07:47:14 -0600
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: New installation of Cygwin64: xinit.sh exit code 3
To: cygwin AT cygwin DOT com
References: <DB6P18901MB0055D34BA4A0E7B5DE8D037CA4DAA AT DB6P18901MB0055 DOT EURP189 DOT PROD DOT OUTLOOK DOT COM>
<DB6P18901MB0055F5110CCE7CBF18CC7A24A4DAA AT DB6P18901MB0055 DOT EURP189 DOT PROD DOT OUTLOOK DOT COM>
<DB6P18901MB0055E435F5153FEA53D7781AA4D9A AT DB6P18901MB0055 DOT EURP189 DOT PROD DOT OUTLOOK DOT COM>
Organization: Inglis
In-Reply-To: <DB6P18901MB0055E435F5153FEA53D7781AA4D9A@DB6P18901MB0055.EURP189.PROD.OUTLOOK.COM>
X-CMAE-Envelope: MS4xfKUry5urYft+oY6/kW1mgOEDt6f1X2LeosIBmrZdVhRPXKWZRFlHjyOOOpn3nL/wsLCz+o+clCRPTkXtWrb3HYIIZjZh3iL+X0Lg20ihegAdzDjPtYjj
o6tDDy42JDIb4Me1RWQhyG7+W3wDumBUGaBPL8AId0GoAafbRW+FdJEdpEsYzj9rGUodJb7pwI8iaQ==
X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_NUMSUBJECT, RCVD_IN_DNSWL_LOW,
SPF_HELO_NONE, SPF_PASS, TXREP 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-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: Brian Inglis via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Brian Inglis <Brian DOT Inglis AT Shaw DOT ca>
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 39MDlV07001560

On 2023-10-21 22:46, Fergus Daly via Cygwin wrote:
>>> Should have added: the file /var/log/setup.log shows no detail beyond
>>> 2023/10/21 09:29:46 running: G:\console64\bin\bash.exe --norc --noprofile "/etc/postinstall/xinit.sh"
>>> 2023/10/21 09:29:49 abnormal exit: exit code=3
>>>
>>> -----Original Message-----
>>>
>>> I made a new installation of Cygwin 64 on a new USB stick, including the package xinit.
>>> (I use setup -P followed by a longish but far from complete list of required packages ..,..,xinit,..,..)
>>> At this first use of setup I got a single error message:
>>>         Package: _/xinit xinit.sh exit code 3
>>> At 2nd and all subsequent uses of setup (i.e. as update) I get the slightly altered error message:
>>>         Package: _/Unknown package xinit.sh exit code 3
>>> In practice, any usage of xinit (e.g. to launch xterm) seems to work perfectly well, but the repeated
>>> error message at any update transaction (including when empty) is disconcerting.
>>> I have not tried an explicit command "bash (or dash) /etc/postinstall/xinit.sh" as - even if this worked -
>>> I would prefer to canvass opinion on this minor glitch.
>>> All the same - the glitch is recent, despite being minor .. ..
> 
>> What filesystem is the drive formatted as: NTFS, ExFAT, FAT32, or other?
>> Try rerunning the xinit postinstall script as follows and report the failing
>> command(s) and error messages:
>> 	$ CYGWINFORALL=-A /bin/sh -vx /etc/postinstall/xinit.sh
> 
> Thank you!
> 1. The identical error msg occurs on all of NTFS, FAT32, exFAT file systems.
> 2. The output from your test command is identical on all file systems,
> 3. The failing commands are the two separate "case .. mkdir .. mkshortcut" sequences that occur
> at the end of the xinit.sh script, with consequent error notification as follows:
> 
> case $(uname -s) in *-WOW*) wow64=" (32-bit)" ;; esac
> + case $(uname -s) in
> ++ uname -s
> /usr/bin/mkdir -p "$(/usr/bin/cygpath $CYGWINFORALL -P)/Cygwin-X${wow64}"
> ++ /usr/bin/cygpath -A -P
> + /usr/bin/mkdir -p '/cygdrive/c/ProgramData/Microsoft/Windows/Start Menu/Programs/Cygwin-X'
> /usr/bin/mkshortcut $CYGWINFORALL -P -w / -i /usr/bin/xwin-xdg-menu.exe -n "Cygwin-X${wow64}/XWin Server" -a "--quote /usr/bin/bash.exe
>   -l -c \"cd; exec /usr/bin/startxwin\"" /usr/bin/run.exe
> + /usr/bin/mkshortcut -A -P -w / -i /usr/bin/xwin-xdg-menu.exe -n 'Cygwin-X/XWin Server' -a '--quote /usr/bin/bash.exe
>   -l -c "cd; exec /usr/bin/startxwin"' /usr/bin/run.exe
> mkshortcut: Saving "/cygdrive/c/ProgramData/Microsoft/Windows/Start Menu/Programs/Cygwin-X/XWin Server.lnk" failed;
> does the target directory exist?
> 
> case $(uname -s) in *-WOW*) wow64=" (32-bit)" ;; esac
> + case $(uname -s) in
> ++ uname -s
> /usr/bin/mkdir -p "$(/usr/bin/cygpath $CYGWINFORALL -P)/Cygwin-X${wow64}"
> ++ /usr/bin/cygpath -A -P
> + /usr/bin/mkdir -p '/cygdrive/c/ProgramData/Microsoft/Windows/Start Menu/Programs/Cygwin-X'
> /usr/bin/mkshortcut $CYGWINFORALL -P -w / -i /usr/bin/XWin.exe -n "Cygwin-X${wow64}/User script" -a "--quote /usr/bin/bash.exe
>   -l -c \"cd; XSESSION_ICON= exec /usr/bin/startx /etc/X11/xinit/Xsession xinit-compat\"" /usr/bin/run.exe
> + /usr/bin/mkshortcut -A -P -w / -i /usr/bin/XWin.exe -n 'Cygwin-X/User script' -a '--quote /usr/bin/bash.exe
>   -l -c "cd; XSESSION_ICON= exec /usr/bin/startx /etc/X11/xinit/Xsession xinit-compat"' /usr/bin/run.exe
> mkshortcut: Saving "/cygdrive/c/ProgramData/Microsoft/Windows/Start Menu/Programs/Cygwin-X/User script.lnk" failed;
>   does the target directory exist?
> 
> When I used Explorer to visit C:\ProgramData\Microsoft\Windows\Start Menu\Cygwin-X I was told:
> "You don't currently have permission to access this folder"
> and clicking on Continue to get access I was told:
> "You have been denied permission to access this folder"
> There was then offered an option to edit Permissions which I didn't feel like pursuing.
> 
> (I am the Administrator on my own standalone Windows machine. The denial of access to Cygwin-X feels odd.
> PS I also have Cygwin32 installed and running. I _am_ permitted access to the equivalent folder Cygwin-X (32-bit).)

Please try running the following command/s, under Cygwin 32 and 64, and posting 
the outputs:

$ for p in "`cygpath -A -P -U`"{,/Cygwin-X}; do for c in 'lsattr -d' 'ls -dl' 
getfacl; do $c "$p"; echo; done; icacls "`cygpath -m "$p"`"; done

[I just typoed Cygwin 23 and thought - could that be a package of Cygwin, Perl, 
Python, etc. for DNA analysis? ;^> ]

-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer     but when there is no more to cut
                                 -- Antoine de Saint-Exupéry

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