Skip to content

Commit

Permalink
perl: install libraries to sensible location
Browse files Browse the repository at this point in the history
Perl's configure script, attempting to be helpful, uses shorter installation
prefixes if it detects the top-level prefix argument contains the word "Perl"
in it.

Sadly, this doesn't really work for Homebrew because whilst the installation
is actually within the Cellar containing the word "Perl" everything is symlinked
into `/usr/local` (Presuming that's where your Homebrew is), which means instead
of Perl being available in i.e. `/usr/local/lib/perl5/site_perl/5.24.0` the libraries
get symlinked into `/usr/local/lib/5.24.0` which is completely opaque to end-users
and opens up the risk of conflict with anything else which behaves in the same
way.

This tweak shoves it back into the expected sort of installation structure.
  • Loading branch information
DomT4 committed Jun 4, 2016
1 parent 56c928d commit 78c03c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Formula/perl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def install
args = %W[
-des
-Dprefix=#{prefix}
-Dprivlib=#{lib}/perl5/#{version}
-Dman1dir=#{man1}
-Dman3dir=#{man3}
-Duseshrplib
Expand Down

0 comments on commit 78c03c5

Please sign in to comment.