public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Anthony Heading" <anthony@ajrh.net>
To: "Marco Atzeri via Cygwin" <cygwin@cygwin.com>
Subject: Re: missing perl directories
Date: Fri, 22 Jan 2021 17:53:32 +0000	[thread overview]
Message-ID: <62b9ab58-2bed-4b7f-b16b-a89535e13cd5@www.fastmail.com> (raw)
In-Reply-To: <715211bd-ed66-2537-9817-fe17eb6934d5@gmail.com>

On Fri, Jan 22, 2021, at 4:36 PM, Marco Atzeri via Cygwin wrote:
> 
> not on usr/local
> 
> perl-Stow: Perl library for stow
> 
>      2020-02-04 19:14           0 usr/share/perl5/
>      2020-02-04 19:14           0 usr/share/perl5/site_perl/
>      2020-02-04 19:14           0 usr/share/perl5/site_perl/5.30/
>      2020-02-04 19:14           0 usr/share/perl5/site_perl/5.30/Stow/
>      2020-02-04 19:14        5559 
> usr/share/perl5/site_perl/5.30/Stow/Util.pm
>      2020-02-04 19:14       70081 usr/share/perl5/site_perl/5.30/Stow.pm
> 

Correct.   And of course that means this Stow package doesn't actually work:

% perl -MStow -e ''
Can't locate Stow.pm in @INC (you may need to install the Stow module) (@INC contains: /usr/local/lib/perl5/site_perl/5.30/x86_64-cygwin-threads /usr/local/share/perl5/site_perl/5.30 /usr/lib/perl5/vendor_perl/5.30/x86_64-cygwin-threads /usr/share/perl5/vendor_perl/5.30 /usr/lib/perl5/5.30/x86_64-cygwin-threads /usr/share/perl5/5.30).

Similar to your reference to the FHS,  the corresponding Perl policy intends that "site_perl" is to be used by the local SA.  There is a "vendor_perl" concept instead to support this kind of cygwin packaging, as you can see referenced in the default path above.

But the Stow example is a distraction which compounds two problems, so let's leave that aside.

At core, this is catch 22.
  -  The perl build reserves, creates, and expects to exist,  an empty directory for the sole use of the SA:   "site_perl".   
  -  Cygwin perl assigns that directory location into the tree similarly intended for the SA:   "/usr/local"
  -  Your strict interpretation of the FHS disallows the empty site_perl directory to be created for use by the SA because it's positioned within a tree reserved for use by the SA

I dunno,  Marco,  I'm not so dogmatic, and I can fix my own installation.  I just thought this would be a helpful bug report for others.   It sounds like we can find enough conflicting Cygwin policy documents to ensure that there is no solution,  so that's delightful.






  reply	other threads:[~2021-01-22 17:54 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-21 16:09 Anthony Heading
2021-01-21 16:22 ` Marco Atzeri
2021-01-22  7:33 ` Brian Inglis
2021-01-22 16:15   ` Anthony Heading
2021-01-22 16:36     ` Marco Atzeri
2021-01-22 17:53       ` Anthony Heading [this message]
2021-01-22 19:43         ` Ken Brown
2021-01-22 20:29         ` Achim Gratz
2021-01-22 19:35 ` Achim Gratz
2021-01-22 21:05   ` Anthony Heading
2021-01-23 19:08     ` Achim Gratz
2021-01-24 16:14       ` Anthony Heading

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=62b9ab58-2bed-4b7f-b16b-a89535e13cd5@www.fastmail.com \
    --to=anthony@ajrh.net \
    --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).