Hi,
as noted yesterday, portgen fails to find ruby dependencies which are
already ported. This is because module_in_ports() searches the pkgstem,
which contains the ruby version. Patch below lets portgen search for
the right prefixes and portgen of the activerecord gem works correctly
with this. Note that the case of just a "ruby-" prefix (which only
happens with the ruby-shims package) is already covered by the search
with ecosystem_prefix in name_new_port in Port.pm.
Kind regards,
Thomas
diff --git infrastructure/lib/OpenBSD/PortGen/Port/Ruby.pm
infrastructure/lib/OpenBSD/PortGen/Port/Ruby.pm
index 1703fba5b89..85a5b11c513 100644
--- infrastructure/lib/OpenBSD/PortGen/Port/Ruby.pm
+++ infrastructure/lib/OpenBSD/PortGen/Port/Ruby.pm
@@ -97,7 +97,9 @@ sub get_deps
next if $self->is_standard_module($name);
- my $port = module_in_ports( $name, 'ruby-' )
+ my $port = module_in_ports( $name, 'ruby27-' )
+ || module_in_ports( $name, 'ruby26-' )
+ || module_in_ports( $name, 'ruby25-' )
|| $self->name_new_port($name);
$req =~ s/ //g;