From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Nx4De-0005Pb-N5 for garchives@archives.gentoo.org; Wed, 31 Mar 2010 20:08:54 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3FF0EE0761; Wed, 31 Mar 2010 20:08:51 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 462D6E073F for ; Wed, 31 Mar 2010 20:08:44 +0000 (UTC) Received: from [192.168.0.3] (e179018081.adsl.alicedsl.de [85.179.18.81]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 8B66E1B408C for ; Wed, 31 Mar 2010 20:08:43 +0000 (UTC) Message-ID: <4BB3ABC8.7050207@gentoo.org> Date: Wed, 31 Mar 2010 22:08:40 +0200 From: Sebastian Pipping User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100310 Thunderbird/3.0.3 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 To: gentoo-dev@lists.gentoo.org Subject: [gentoo-dev] Unnecessary logs: has_version to the rescue? X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 3b33190f-e35a-4b25-bde6-5b5383407af1 X-Archives-Hash: 990d80deb3a4aec5097025a3370e4df6 Hello! When browsing through emerge logs (using elogv) I often come across stuff that doesn't affect me. Two examples: x11-base/xorg-server-1.7.6 warns: You must rebuild all drivers if upgrading from xorg-server 1.6 or earlier, because the ABI changed. dev-db/mysql-5.1.45-r1 logs: You might want to run: "emerge --config =dev-db/mysql-1.45-r1" if this is a new install. I had xorg 1.7.x running before so that's pure noise in my case. Same with mysql - I had it installed before. So I am wondering: Why aren't people using has_version to catch such cases and omit things that we have seen before or that don't affect us? has_version -- "Returns 1 if the system has the requested version of a certain package. For instance has_version >=sys-libs/glibc-2.3.0." Is it lazyness? Is it unawareness? Is there some kind of evilness in this usage of has_version that I am not aware of? Do we need a better framework for this? If so what could it look like? What do you think? Sebastian