On Fri, Apr 17, 2020 at 03:02:24AM +0200, Thomas L. wrote: > Hi, > > I noted while playing around with portgen, that it chokes on gems which > specify an exact version requirement. Patch below allows it to continue.
Committed, thanks! Would have been nice if you had included a gem that wouldn't portgen before but will now, but I believe this is correct. > > Kind regards, > > Thomas > > diff --git infrastructure/lib/OpenBSD/PortGen/Port/Ruby.pm > infrastructure/lib/OpenBSD/PortGen/Port/Ruby.pm > index 2cacf932323..1e8d2ee95d5 100644 > --- infrastructure/lib/OpenBSD/PortGen/Port/Ruby.pm > +++ infrastructure/lib/OpenBSD/PortGen/Port/Ruby.pm > @@ -111,6 +111,8 @@ sub get_deps > $ver =~ s/(\d)\.\d$/($1+1).".0"/e; > $req .= ",<$ver"; > } > + # turn =6.0.2.2 into ==6.0.2.2 > + $req =~ s/^=/==/; > > $deps->add_run( $port . ',${MODRUBY_FLAVOR}', $req ); > -- andrew - http://afresh1.com ($do || !$do) && undef($try) ; # Master of Perl, Yoda is. Hmmmm?