Feature-Request: pessimistic operator in ports-tree

Steve Wills swills at FreeBSD.org
Wed Sep 28 14:55:16 UTC 2016


Hi,

On 09/28/2016 03:04, Torsten Zuehlsdorff wrote:
> Aloha,
> 
> i'm working quite a while on the ruby-ports and it is often annoying.
> Even after excessive testing and some more real-world testing (thanks to
> all helpers!) its totally normal, that thinks break.
> 
> I found one of the main problems is the pessimistic operator in the
> gemspecs/Gemfiles. Buildtests of all dependencies run fine, we commit
> the update and than some Gem break, because it defined ~> 1.5.2 and you
> just updated to 1.6. In the Makefile >= 1.5.2 says everything is fine.

To me it seem rather that the problem is gemspecs over-using or
mis-using the pessimistic operator. If the gemspec correctly specified
what actually worked, this wouldn't be an issue.

> I personally think most of the rubygem breakage can be prevented by
> teaching the ports-tree about the pessimistic operator. It is far easier
> to build-test 300 dependencies than to really check if they are able to
> start. Or even if they run correctly.

How would this help exactly? It seems to me it would make it easier to
figure out where the mismatch is but wouldn't actually solve the
problem. And this isn't even the hard part, building all the packages
doesn't really take much time. But you would still have to correct the
gemspec or create multiple ports/pkgs for each version needed. What am I
missing?

> What do you think about this?
> 
> Also i believe its not a rubygem only feature. I stumbled across
> multiple software which expect an explicit version or an version range
> or even disallow a single version and accept all other.

I think a patch would help discussion. I'm not unsympathetic, it is a
pain. But I just don't understand how this would fix anything. Perhaps
some sort of tool that would check these things would be helpful?

Steve

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 632 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ruby/attachments/20160928/874826c3/attachment.sig>


More information about the freebsd-ruby mailing list