Skip to content
Permalink
Browse files

Ignore shared library versions on OpenBSD.

Shared library version numbers in OpenBSD rarely match those provided by
upstream, breaking many packages which specify them.
  • Loading branch information...
Petr Rockai
Petr Rockai committed Dec 2, 2018
1 parent e32ff7e commit 5603128e019a9d40df55e718196cb10aa13b02b4
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/core/VM.pm6
@@ -55,6 +55,7 @@ class VM does Systemic {
method platform-library-name(IO::Path $library, Version :$version) {
my int $is-win = Rakudo::Internals.IS-WIN;
my int $is-darwin = self.osname eq 'darwin';
my int $is-openbsd = self.osname eq 'openbsd';

my $basename = $library.basename;
my int $full-path = $library ne $basename;
@@ -73,7 +74,7 @@ class VM does Systemic {
#?endif

$platform-name ~= '.' ~ $version
if $version.defined and nqp::iseq_i(nqp::add_i($is-darwin,$is-win),0);
if $version.defined and nqp::iseq_i(nqp::add_i(nqp::add_i($is-darwin,$is-win),$is-openbsd),0);

$full-path
?? $dirname.IO.add($platform-name).absolute

0 comments on commit 5603128

Please sign in to comment.
You can’t perform that action at this time.