public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowitz@cygwin.com>
To: cygwin-apps@cygwin.com
Subject: Perl layout for 5.26+
Date: Thu, 18 May 2017 20:39:00 -0000	[thread overview]
Message-ID: <cfeb4339-6f91-69b4-d135-08f5a97bf25a@cygwin.com> (raw)

With the upgrade to 5.26, we will need to rebuild every single Perl 
module package again.  While we have no choice for 5.26, I would like to 
implement a method of minimizing the effort that will be needed in 
future upgrades.

For 5.22 we had:

prefix=/usr
privlib=/usr/lib/perl5/$slot
archlib=/usr/lib/perl5/5.22/$archname
vendorlib=/usr/lib/perl5/vendor_perl/5.22
vendorarch=/usr/lib/perl5/vendor_perl/5.22/$archname
sitelib=/usr/lib/perl5/site_perl/5.22
sitearch=/usr/lib/perl5/site_perl/5.22/$archname

Instead, we should switch to:

prefix=/usr
privlib=/usr/share/perl5/5.26
archlib=/usr/lib/perl5/5.26
vendorprefix=/usr
vendorlib=/usr/share/perl5/vendor_perl
vendorarch=/usr/lib/perl5/vendor_perl/5.26
siteprefix=/usr/local
sitelib=/usr/local/share/perl5
sitearch=/usr/local/lib/perl5/5.26

By un-versioning privlib/vendorlib/sitelib, it will no longer be 
necessary to rebuild noarch Perl module packages -- which are the large 
majority (~70%) -- with every single 5.Y release of Perl.  In other 
words, if we do this for 5.26, then for 5.28+ only ~110 packages will 
need to be rebuilt instead of ~350 (besides those which link against 
libperl but do not install anything into any of those locations).

Using lib for archful things vs. share for noarch, and /usr/local for 
site*, is for compliance with FHS, and the latter avoids a lot of 
confusion over which should be used by packages.

I implemented a similar scheme for Ruby, which makes it *much* easier to 
upgrade to new versions thereof.  Fedora does something similar, so 
there is plenty of precedent for such a move.

-- 
Yaakov

             reply	other threads:[~2017-05-18 20:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-18 20:39 Yaakov Selkowitz [this message]
2017-05-19 18:36 ` Achim Gratz
2017-05-31 19:18 ` Achim Gratz

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=cfeb4339-6f91-69b4-d135-08f5a97bf25a@cygwin.com \
    --to=yselkowitz@cygwin.com \
    --cc=cygwin-apps@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).