From owner-freebsd-ruby@freebsd.org Wed Sep 28 14:55:16 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 72918C01DD2 for ; Wed, 28 Sep 2016 14:55:16 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 54852BCC for ; Wed, 28 Sep 2016 14:55:16 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 53E5FC01DD1; Wed, 28 Sep 2016 14:55:16 +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 53897C01DD0 for ; Wed, 28 Sep 2016 14:55:16 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from mouf.net (mouf.net [IPv6:2607:fc50:0:4400:216:3eff:fe69:33b3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mouf.net", Issuer "mouf.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 07BFABCA; Wed, 28 Sep 2016 14:55:15 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from [10.0.1.69] (cpe-071-065-239-148.nc.res.rr.com [71.65.239.148] (may be forged)) (authenticated bits=0) by mouf.net (8.14.9/8.14.9) with ESMTP id u8SEsqX9025786 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Wed, 28 Sep 2016 14:55:09 GMT (envelope-from swills@FreeBSD.org) Subject: Re: Feature-Request: pessimistic operator in ports-tree To: Torsten Zuehlsdorff , ruby@FreeBSD.org References: <3434c19e-59b3-261a-ef18-6911bba0e072@FreeBSD.org> From: Steve Wills Message-ID: <24d2a341-88a7-c99e-1058-6d351014930e@FreeBSD.org> Date: Wed, 28 Sep 2016 10:54:50 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <3434c19e-59b3-261a-ef18-6911bba0e072@FreeBSD.org> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="mX8go5vhQm7TGUgEPs868Ae2Hn5mSjEAt" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mouf.net [199.48.129.64]); Wed, 28 Sep 2016 14:55:10 +0000 (UTC) X-Spam-Status: No, score=-1.0 required=4.5 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mouf.net X-Virus-Scanned: clamav-milter 0.99.1 at mouf.net X-Virus-Status: Clean 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 14:55:16 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --mX8go5vhQm7TGUgEPs868Ae2Hn5mSjEAt Content-Type: multipart/mixed; boundary="T0nGbV7RdK90W1rNu0b2TjGp4E0DNv6iu"; protected-headers="v1" From: Steve Wills To: Torsten Zuehlsdorff , ruby@FreeBSD.org Message-ID: <24d2a341-88a7-c99e-1058-6d351014930e@FreeBSD.org> Subject: Re: Feature-Request: pessimistic operator in ports-tree References: <3434c19e-59b3-261a-ef18-6911bba0e072@FreeBSD.org> In-Reply-To: <3434c19e-59b3-261a-ef18-6911bba0e072@FreeBSD.org> --T0nGbV7RdK90W1rNu0b2TjGp4E0DNv6iu Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi, On 09/28/2016 03:04, Torsten Zuehlsdorff wrote: > Aloha, >=20 > 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 t= o > all helpers!) its totally normal, that thinks break. >=20 > 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 >=3D 1.5.2 says everything is fine= =2E 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 easie= r > 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? >=20 > 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 --T0nGbV7RdK90W1rNu0b2TjGp4E0DNv6iu-- --mX8go5vhQm7TGUgEPs868Ae2Hn5mSjEAt Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQGQBAEBCgB6BQJX69m6XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ5OEZBNDE0QTVDMkEwRUY5Q0ZEMEFEMERG NUNGNjJCMzIwN0IxQkExExxzd2lsbHNAZnJlZWJzZC5vcmcACgkQ9c9isyB7G6Eq 1wgAgaj4F610sEwVBw81CfqQTYxVAjYfkHeDcOigJ0/X7MpDKbHWdg942W9H4G5p o7Pqoon6QDfeg9BDH6Hwpb1Cjhm3e9P/5c/eD4aPpVSdMvG1LzjcJyLqDiDZv4mr PrCnv2CkoroPjhaNkLRXVnbzbBcSg+OQRbm3/H20ObPlbK0tDxdfieK3vuuQ+yt/ 6rYsRDFlf2zjdY2UZ/LhLiVsamALRm9qNlhYmovoXwIk/PlTI6suOujT2e6qchAs 4yAa0xh3Cf3bkSLZ1FERhudaYSkx9WXWN4VkCG01AyJSypjJQaBS3O3OwcJj7mZi +mI+YQBKa6ojJz91vkjK0H8Iuw== =f0dp -----END PGP SIGNATURE----- --mX8go5vhQm7TGUgEPs868Ae2Hn5mSjEAt--