From owner-freebsd-ruby@freebsd.org Wed Sep 28 10:29:12 2016 Return-Path: Delivered-To: freebsd-ruby@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C3CEDBE8E36 for ; Wed, 28 Sep 2016 10:29:12 +0000 (UTC) (envelope-from tz@FreeBSD.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id B3684AB9 for ; Wed, 28 Sep 2016 10:29:12 +0000 (UTC) (envelope-from tz@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id AF519BE8E35; Wed, 28 Sep 2016 10:29:12 +0000 (UTC) Delivered-To: ruby@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ACCB3BE8E34 for ; Wed, 28 Sep 2016 10:29:12 +0000 (UTC) (envelope-from tz@FreeBSD.org) Received: from toco-domains.de (mail.toco-domains.de [IPv6:2a01:4f8:150:50a5::6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6D7EFAB8 for ; Wed, 28 Sep 2016 10:29:12 +0000 (UTC) (envelope-from tz@FreeBSD.org) Received: from [192.168.0.120] (port-212-202-156-99.static.qsc.de [212.202.156.99]) by toco-domains.de (Postfix) with ESMTPA id C44E31AAF05C for ; Wed, 28 Sep 2016 12:29:08 +0200 (CEST) To: ruby@FreeBSD.org From: Torsten Zuehlsdorff Subject: Feature-Request: pessimistic operator in ports-tree Message-ID: <3434c19e-59b3-261a-ef18-6911bba0e072@FreeBSD.org> Date: Wed, 28 Sep 2016 09:04:16 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2016 10:29:12 -0000 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. 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. 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. Greetings, Torsten