From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id F3DBD1393F1 for ; Mon, 14 Sep 2015 06:44:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A760121C0D1; Mon, 14 Sep 2015 06:43:54 +0000 (UTC) Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BBA5A21C013 for ; Mon, 14 Sep 2015 06:43:53 +0000 (UTC) Received: by wicgb1 with SMTP id gb1so127287915wic.1 for ; Sun, 13 Sep 2015 23:43:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=jmk+ibQ4seVTRtk5IKCLbqZpYWViyKIEpW5ojLEsFVA=; b=rbJLZ9kmwANYV93FezyYHVBPUYZUkK8dgSBOTsysjJ5BpCp67+kVmhrZR7Ge6NbKzx LyUf4nUYehjWpCqOYaQhsV8kSiw9mM+GpWMsONMBzdB3qElAGhP4df7Lh72CuBOVgwDD QpZyctdOAE6E1aggfKwVvycL4eWHktNcrEaw+TXMnrbi3QrmeOqJ+LiixtE7uYownkPF 2uLl/EeZZrlyBAIQZ+AffdCmENXyMkhyBcyjf0HGx/STJQEVdLfOERjzE7xyCVHU4UFR ZDEvLyIsEqbbSaGUAToH2itCAZo/SVQoE4VnDnuqCdW5JwzTYPaA0XLtsT5bY0nPcVC/ x9nw== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.194.190.75 with SMTP id go11mr17143042wjc.80.1442213032417; Sun, 13 Sep 2015 23:43:52 -0700 (PDT) Received: by 10.28.212.138 with HTTP; Sun, 13 Sep 2015 23:43:52 -0700 (PDT) In-Reply-To: References: <22006.24676.585145.935143@a1i15.kph.uni-mainz.de> Date: Mon, 14 Sep 2015 14:43:52 +0800 Message-ID: Subject: Re: [gentoo-dev] Request to add ~> atom prefix operator on Portage. From: konsolebox To: gentoo-dev@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: 7c8c8402-2360-4c15-b42c-9bdff4ec2aeb X-Archives-Hash: 4ae9aeb25835539d578e681d1d3badc9 On Mon, Sep 14, 2015 at 2:19 PM, Kent Fredric wrote: > On 14 September 2015 at 18:09, konsolebox wrote: >> Because they could also match pkg-1.0.2aa > > That would imply > > =pkg-1.0.2* would match 1.0.20 > > When it only matches 1.0.2 and 1.0.2.* > > You're reading it in shell glob notation and not the portage notation, > that the trailing dot is *implied*, which is why explictly stating it > is illegal. Test shows that it doesn't work that way. Here I created a dummy bash-4.30: # emerge -pvO =app-shells/bash-4.3_p42 These are the packages that would be merged, in order: [ebuild U ~] app-shells/bash-4.3_p42::gentoo [4.3_p39::gentoo] USE="net nls (readline) -afs -bashlogger -examples -mem-scramble -plugins -vanilla" 6 KiB Total: 1 package (1 upgrade), Size of downloads: 6 KiB # emerge -pvO '=app-shells/bash-4.3*' These are the packages that would be merged, in order: [ebuild U ~] app-shells/bash-4.30::local [4.3_p39::gentoo] USE="net nls (readline) -afs -bashlogger -examples -mem-scramble -plugins -vanilla" 0 KiB Total: 1 package (1 upgrade), Size of downloads: 0 KiB # ls /var/db/pkg/sys-apps/portage-2.2.20.1/ > https://devmanual.gentoo.org/general-concepts/dependencies/index.html#ranged-dependencies > >> To specify "version 2.x (not 1.x or 3.x)" of a package, it is necessary to use the asterisk postfix. >> Note that the equals sign is mandatory, and that there is no dot before the asterisk. The provided example was `DEPEND="gtk? ( =x11-libs/gtk+-1.2* )"`. I'm not sure if that was accurately implying "version 1.2.x (not 1.1.x or 1.3.x)".