From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1I7L3Z-0007kJ-OT for garchives@archives.gentoo.org; Sun, 08 Jul 2007 00:55:22 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l680sO4V025861; Sun, 8 Jul 2007 00:54:24 GMT Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.178]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l680qUJE023602 for ; Sun, 8 Jul 2007 00:52:31 GMT Received: by py-out-1112.google.com with SMTP id d32so1342574pye for ; Sat, 07 Jul 2007 17:52:30 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=dOyky/nKMPP9myE18b4F/83TkIUKlDLltINSACD4xau6JQ84wokCa0DJy57CN4guxU1vwEsabYEhwX5f/EiLupiEIRwS0ObFfV9vQ/Fa1WcpvvMdGrT9Aaagt6sAbXPXj89uhzhCY2ua+ZIGXTkyw4mkfWkSeh32r2qn4H8wJFk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SLUOaBuXyx31EZq37MwRL4bW2asFx2/LMNPwYbw7dpS/lZ7F8Zx38Nrgpp8jM9WlSLXgPOWafGNHY7Gdq50gdZGmVhrzMFNKQNeTelosXl99zhncyrMqIAgMyo/Ki+ewYcUzE0m1VMFH0i6LuWOylx7pY0CqJfs5HN6SG0hv6n0= Received: by 10.64.76.15 with SMTP id y15mr837981qba.1183855950271; Sat, 07 Jul 2007 17:52:30 -0700 (PDT) Received: by 10.64.251.15 with HTTP; Sat, 7 Jul 2007 17:52:30 -0700 (PDT) Message-ID: <8cd1ed20707071752w57533b72j8aa74fdeb0e51438@mail.gmail.com> Date: Sun, 8 Jul 2007 12:52:30 +1200 From: "Kent Fredric" To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] automated extended information gathering In-Reply-To: <469020C4.8060003@lacqui.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200707071743.44605.vapier@gentoo.org> <20070708011015.cfaa28c5.genone@gentoo.org> <469020C4.8060003@lacqui.com> X-Archives-Salt: 31245e18-af5e-4d6f-9228-b4d57e47385a X-Archives-Hash: 19c22dd03ce6d5d889c30c65a9d549ef On 7/8/07, Kevin Lacquement wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Marius Mauch wrote: > > > > 5) considering 3), I'd rather see such information be specified by > > ebuilds somehow, not a global file (think about overlays). Maybe by > > installing a script in a specific location or so. > > > > Marius > How about adding another function to the ebuild format? pkg_getinfo()? > > Kevin > > Implementation details wise, I would like to see packages have possibly 2 functions, 1: Info, and 2: Check. Reason Being that you wont be able to fetch installation status info on a package thats not installed, and if a package is failing to install, you're more likely wanting to check the status of the things it depends on, not the package itself. Check would contain manual tests for a given package, thats either installed or not installed ,as well as names of packages to run info on. Info would be more usefull in diagnosing mis-installed packages or packages that failed to run properly despite being compiled and installed without a hitch ( it happens ) ( These could even be good enough to help the user self-diagnose the problem, a feature I consider wonderfully intuitive and not in any other distribution yet ;) ) pkg_check() { if ( uses blah ) { some_basic_check(); pkg_getinfo_installed( x11-wm/blah ); } } I may be on to a good thing, I may be retarded, but I'd rather provide something that could be a potentially good thing with the risk of being retarded than to have hidden that good thing. ;) -- Kent ruby -e '[1, 2, 4, 7, 0, 9, 5, 8, 3, 10, 11, 6, 12, 13].each{|x| print "enNOSPicAMreil kdrtf@gma.com"[(2*x)..(2*x+1)]}' -- gentoo-dev@gentoo.org mailing list