From owner-freebsd-ports@freebsd.org Sat Jan 6 22:17:25 2018 Return-Path: Delivered-To: freebsd-ports@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 786E8DF5D88 for ; Sat, 6 Jan 2018 22:17:25 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 54E881D08 for ; Sat, 6 Jan 2018 22:17:25 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 511A3DF5D86; Sat, 6 Jan 2018 22:17:25 +0000 (UTC) Delivered-To: ports@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 50B23DF5D84 for ; Sat, 6 Jan 2018 22:17:25 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-vk0-x22c.google.com (mail-vk0-x22c.google.com [IPv6:2607:f8b0:400c:c05::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0813A1D07 for ; Sat, 6 Jan 2018 22:17:25 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-vk0-x22c.google.com with SMTP id o73so5434547vkd.2 for ; Sat, 06 Jan 2018 14:17:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=/A/0rbcjhzdKX4YZhAsyTckBK9B/fcaDRiJ6+5vME9Y=; b=E2USSqYG+ApIeUnQvPATkFpMSR4NwjW0aFpl51jEA/SC83+jB8OI3SSesnpYFNXe/O 4e9DD4XcbVA1kWJhKtLEOFNzUZuBAFCft7O2l1W9snEzQk1APHs9MtazbEPfgARabGYX lfoDmZPIORphhaxTNIeGC0y8hcG26gbO332Zw6XdzZCHfE7m14/H9ynsVVg/CHFg3O7+ nXN1E+Zq4dIikwvgnFr5B5zfLujWkZlhiql8eqLvkQr9n/QDVV2PIGBVAdCz3lPvzyJP avt1G0TKTbQcDnD4jhhDbJVFF4pHjz+ePviAybT9TpjvLbtcxDrShXRQKK5XnNH6lC8t sNPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=/A/0rbcjhzdKX4YZhAsyTckBK9B/fcaDRiJ6+5vME9Y=; b=uenpj7+DqorKQFBX6gp70Lua0MaY3LUAoqbiFvrWYSGUjdva2ipCnR8iVm4MPdCWjX Vs3AElAMdU/VOUU8behD9pr6yay7I5Q8aihj4xrQ04num1P5LIE4egSjGNYH8uPmssAr 2ZbJcp7Pgx6LlOZbRMJ1oxJKMJMQkBTQY3IWLwbZBo4puFgoA1qmYpD1EIfUppXIUUtW Z2SxZbADD46vr5es39KRtWG6ZmHcJfMYiKOdD3adnHaFAWbrOVtQ4DdI4CexfE6aNXHk 8xKUSMdo7gLZAmvtDFo+FrE7npYsMIoKZ6OrKglQ8Ydne5t3O+HPgb3jmFipGd20DFCE STow== X-Gm-Message-State: AKwxytfMGwaGL9GN+c6199JynaJpR42HBdKKz1K6siraWjygEVdvIkyq p3YloK6bxDDy7tTXjKmBqf1X+4hl2zmkayERZzZDoDCm X-Google-Smtp-Source: ACJfBos2VJWJyNpMSUGnu+xgrTWcBrDdtl5PDSITg/DpncPfRqBSVLB1baKB79CxMOVkyubRytnerO3hUlY21K4BI50= X-Received: by 10.31.237.195 with SMTP id l186mr6474769vkh.30.1515277043764; Sat, 06 Jan 2018 14:17:23 -0800 (PST) MIME-Version: 1.0 Sender: kob6558@gmail.com Received: by 10.103.147.156 with HTTP; Sat, 6 Jan 2018 14:17:23 -0800 (PST) In-Reply-To: References: From: Kevin Oberman Date: Sat, 6 Jan 2018 14:17:23 -0800 X-Google-Sender-Auth: IYRK5xFU1JhkUwslBngwPaSVHLQ Message-ID: Subject: Re: Ruby version question To: Yuri Cc: "ports@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Jan 2018 22:17:25 -0000 On Sat, Jan 6, 2018 at 1:41 PM, Yuri wrote: > In order to get a Ruby version, I run this command: > > > $ ruby -r rbconfig -e 'C = RbConfig::CONFIG' -e 'puts C["ruby_version"]' > > > 2.4 > > > However, on Ubuntu 17.10 the same command returns 2.3.0 (with the minor > version of zero). > > > My question is which one is correct, or "more correct"? Should it rather > be 2.4.0? Or both are correct? > > > I recommended one upstream maintainer to get the current ruby version > using this command, and then to use 'pkg-config ruby-${THIS_VERSION} > --libs', but he says that Ubuntu prints it in a different format. > > > 2.4 matches .pc file on FreeBSD, and doesn't on Ubuntu. > > Is this a bug on Ubuntu? On FreeBSD? > > > Yuri > You seem to assume that Ubuntu and FreeBSD both have the same version of Ruby installed. The current version in FreeBSD is 2.4.3. 2.3 is still available as lang/ruby23, but should only be used when some code won't work with 2.4. The Ubuntu system is still running 2.3. Have you checked for available upgrades? On FreeBSD you can get the current version of an installed package with the command "pkg info -E ruby". The trailing ",1" indicates that at some point ruby was rolled back for some reason, but it is not really a part of the version number. -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683