From owner-freebsd-ports@FreeBSD.ORG Sun Dec 18 18:06:49 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F1F911065672 for ; Sun, 18 Dec 2011 18:06:49 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 8301A8FC14 for ; Sun, 18 Dec 2011 18:06:49 +0000 (UTC) Received: by wgbdr11 with SMTP id dr11so9330813wgb.31 for ; Sun, 18 Dec 2011 10:06:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=gRfX5YOXwWjf8OHf9axX4T16Cc6xygr9pZ29DZFr7Ho=; b=khYwrEpr5lhMF4x1Ebt+B3ixF+yDGZr9Ga/Oli0/QGgmizy3xpAE4RrygxhM/fotlE s4wo2jffknqjSAgAhsGZ3FiMz0UgSk++rXxBrNdoonTPKwkCN9+JogrgWvPEkTIdJrLG dURUPJnP7xfqOmEx0xQT1DRsQHaOrYExDkQxg= MIME-Version: 1.0 Received: by 10.227.206.66 with SMTP id ft2mr10261548wbb.8.1324231608476; Sun, 18 Dec 2011 10:06:48 -0800 (PST) Received: by 10.223.158.129 with HTTP; Sun, 18 Dec 2011 10:06:48 -0800 (PST) In-Reply-To: <20111218104318.7157327c@cox.net> References: <20111218104318.7157327c@cox.net> Date: Sun, 18 Dec 2011 10:06:48 -0800 Message-ID: From: Kevin Oberman To: "Conrad J. Sabatier" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-ports@freebsd.org Subject: Re: pkg_version and portversion: ports version comparison weirdness X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Dec 2011 18:06:50 -0000 On Sun, Dec 18, 2011 at 8:43 AM, Conrad J. Sabatier wrote= : > Can anyone explain why I'm seeing the following? > > libX11-1.4.99.1 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 < =A0 needs updat= ing (index has > 1.4.4,1) > > How is it that version 1.4.99.1 compares as "less than" 1.4.4,1? > Since when is 99 < 4? > > Is it the PORTEPOCH in 1.4.4,1 that's throwing a monkey wrench into the > works? > > This makes no sense to me. =A0What is the logic being applied here? > Yes. When epoch increments it starts the versioning all over. Largest epoch value ALWAYS is considered "newer" that any smaller epoch value, regardless of the rest of the version number. Epoch is normally used when a port needs to be rolled back to an older version due to a serious problem caused by the newer version. E.g. xcb-utils-3.6 broke a LOT of stuff, so the epoch was bumped to 1 and the version was set back to 3.6. Once a port has an epoch applied, it will never be removed. --=20 R. Kevin Oberman, Network Engineer E-mail: kob6558@gmail.com