From owner-svn-ports-head@freebsd.org Fri Apr 13 14:27:51 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3DE53F8D153; Fri, 13 Apr 2018 14:27:51 +0000 (UTC) (envelope-from idefix@fechner.net) Received: from anny.lostinspace.de (anny.lostinspace.de [195.30.95.33]) (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 C88646D81A; Fri, 13 Apr 2018 14:27:50 +0000 (UTC) (envelope-from idefix@fechner.net) Received: from server.idefix.lan (143-058-210-188.ip-addr.inexio.net [188.210.58.143]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: idefix@fechner.net) by anny.lostinspace.de (Postfix) with ESMTPSA id 056BC114593E; Fri, 13 Apr 2018 16:27:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=fechner.net; s=default; t=1523629663; bh=FvaXubaBuaxFc5H3WGwOYZNbTdfdMQIJUHDYy86I9nQ=; h=Subject:To:Cc:References:From:Date:In-Reply-To; b=oItYC8CzkJT/l7Js6+u/Uu5LC8eY3G8UMzwirAWE+lKvbXNVodipidcyaSMxCNxFD Gl1MLZZzOc2l59gQvcBCZdVp014+w0nep7fehiYMrsPt6LteWSZKDVqrV3YXw6pWHO W37GyhQdqRG5uSfu2m8wzHYTQKiK6sbuoPO3+rRs= Received: from [192.168.0.151] (143-058-210-188.ip-addr.inexio.net [188.210.58.143]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by server.idefix.lan (Postfix) with ESMTPSA id 991B11515884; Fri, 13 Apr 2018 16:27:40 +0200 (CEST) Subject: Re: svn commit: r467193 - in head/www/gitlab: . files To: Alexey Dokuchaev Cc: Sunpoet Po-Chuan Hsieh , ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org References: <201804121833.w3CIXtgW077267@repo.freebsd.org> <431aaec9-51c2-c0c9-7a1f-2f29f79edb5d@fechner.net> <20180413100736.GA32041@FreeBSD.org> From: Matthias Fechner Openpgp: preference=signencrypt Message-ID: <020dce99-1b72-3db3-5105-2acd6ad4a228@fechner.net> Date: Fri, 13 Apr 2018 16:27:38 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180413100736.GA32041@FreeBSD.org> Content-Language: en-US Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Apr 2018 14:27:51 -0000 Dear Alexey, Am 13.04.2018 um 12:07 schrieb Alexey Dokuchaev: > I don't quite understand how/why would anyone in their right mind write= > software than breaks when one of its dependencies have *minor* version > bump? Is this specific to Gitlab, or the nature of Gemfiles is really > that broken? this is not the case. Gitlab defined the dependency with 'default_value_for', '~> 3.0.0'. This means minimum version >=3D 3.0.0 but not higher than 3.0.x. So 3.0.15 or 3.0.80 is fine, but not 3.1.0 as this is seen as major upgrade that will not work anymore. And that is exactly what happens. The Gemfile was modified by a not approved patch to use another major version of this dependency. I think the risk that you break it now is very high. The gitlab developers have a reason why they defined ~> 3.0.0 and not ~> 3.0. The problem with FreeBSD ports is (if I'm wrong please correct me), you cannot define such a ranges like with ~>, but FreeBSD can only do very simple checks like > or >=3D. Sry for the long answer, but hopefully everyone interested in does now know what ~> 3.0.0, ~> 3.0 and ~> 3.0.2 means. I have here really only one wish for gitlab, do not modify the Gemfile if you have not really tested it very carefully. If the Gemfile is modified, it is the responsibility of the person that patches a file to make sure to not break the port. And it is not the task for the maintainer of the port to test if an unasked patch will not break the port. Gru=C3=9F Matthias --=20 "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning." -- Rich Cook