public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Brian Inglis <Brian.Inglis@SystematicSw.ab.ca>
To: cygwin@cygwin.com
Subject: Re: cygwin-doc post install script failures
Date: Tue, 15 Dec 2020 13:03:14 -0700	[thread overview]
Message-ID: <95dbf69b-97ff-f465-477b-856bae857179@SystematicSw.ab.ca> (raw)
In-Reply-To: <1def9bc2-8e19-575d-547c-fa44a5c61f26@gmail.com>

On 2020-12-15 01:43, Marco Atzeri via Cygwin wrote:
> Not a recent bug but annoying anyway
> 
> It seems the post-install script is not considering that the
> installation can be in a disk different from C: , properly
> in this case D:

The post-install script does not care as mkshortcut uses POSIX paths.
Could you please check your paths with:

	$ which -a mkshortcut
	/usr/bin/mkshortcut
	$ cygcheck mkshortcut
	Found: C:\...\cygwin64\bin\mkshortcut.exe
	C:\...\cygwin64\bin\mkshortcut.exe
	  C:\...\cygwin64\bin\cygwin1.dll
	    C:\Windows\system32\KERNEL32.dll
	      C:\Windows\system32\ntdll.dll
	      C:\Windows\system32\KERNELBASE.dll
	  C:\...\cygwin64\bin\cygpopt-0.dll
	    C:\...\cygwin64\bin\cygiconv-2.dll
	    C:\...\cygwin64\bin\cygintl-8.dll
	  C:\Windows\system32\ole32.dll
	    C:\Windows\system32\RPCRT4.dll
	    C:\Windows\system32\GDI32.dll
	      C:\Windows\system32\win32u.dll
	    C:\Windows\system32\USER32.dll
	    C:\Windows\system32\combase.dll
	      C:\Windows\system32\bcryptPrimitives.dll
	  C:\Windows\system32\SHELL32.dll
	$ cygcheck -f /usr/bin/mkshortcut
	cygutils-1.4.16-2
	$ cygcheck -c cygutils
	Cygwin Package Information
	Package              Version        Status
	cygutils             1.4.16-2       OK
	
> 2020/12/15 08:40:13 running: d:\cygwin32\bin\bash.exe --norc --noprofile 
> "/etc/postinstall/cygwin-doc.sh"
> mkshortcut: Saving "/cygdrive/c/ProgramData/Microsoft/Windows/Start 
> Menu/Programs/D:/cygwin32/Cygwin (32-bit)/User Guide (PDF).lnk" failed; does the 
> target directory exist?
> mkshortcut: Saving "/cygdrive/c/ProgramData/Microsoft/Windows/Start 
> Menu/Programs/D:/cygwin32/Cygwin (32-bit)/User Guide (HTML).lnk" failed; does 
> the target directory exist?

Please try:

	$ sh --version
	GNU bash, version 4.4.12(3)-release (x86_64-unknown-cygwin)
	...

Could you please try rerunning the p-i script under sh -vx and post the output, 
as I can not see any way to rearrange the inputs and outputs to get that result, 
unless read or mkshortcut are damaged!

> $ ls "/cygdrive/c/ProgramData/Microsoft/Windows/Start Menu/Programs/" | grep Cygwin
> Cygwin
> Cygwin (32-bit)

$ ll "$(cygpath -A -P -U)"/Cygwin*

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

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]



  reply	other threads:[~2020-12-15 20:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-15  8:43 Marco Atzeri
2020-12-15 20:03 ` Brian Inglis [this message]
2020-12-15 20:51   ` Marco Atzeri
2020-12-16 22:53     ` Brian Inglis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=95dbf69b-97ff-f465-477b-856bae857179@SystematicSw.ab.ca \
    --to=brian.inglis@systematicsw.ab.ca \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).