From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1IjYRs-00089X-ID for garchives@archives.gentoo.org; Sun, 21 Oct 2007 10:54:25 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.1/8.14.0) with SMTP id l9LAgj86016676; Sun, 21 Oct 2007 10:42:45 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by robin.gentoo.org (8.14.1/8.14.0) with ESMTP id l9LAes9f014407 for ; Sun, 21 Oct 2007 10:40:54 GMT Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id EDF5E64A7F for ; Sun, 21 Oct 2007 10:40:53 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -0.021 X-Spam-Level: X-Spam-Status: No, score=-0.021 required=5.5 tests=[AWL=0.511, BAYES_00=-2.599, RCVD_NUMERIC_HELO=2.067] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TQ5hO0jQsC+a for ; Sun, 21 Oct 2007 10:40:47 +0000 (UTC) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 2792464FDC for ; Sun, 21 Oct 2007 10:40:46 +0000 (UTC) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IjYEW-0003XL-32 for gentoo-dev@gentoo.org; Sun, 21 Oct 2007 10:40:36 +0000 Received: from 82.153.64.173 ([82.153.64.173]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 21 Oct 2007 10:40:36 +0000 Received: from slong by 82.153.64.173 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 21 Oct 2007 10:40:36 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-dev@lists.gentoo.org From: Steve Long Subject: [gentoo-dev] Re: repoman - I cannot handle it... Date: Sun, 21 Oct 2007 11:44:46 +0100 Message-ID: References: <200710201445.56961.corsair@gentoo.org> 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=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 82.153.64.173 User-Agent: KNode/0.10.4 Sender: news X-Archives-Salt: 88007664-ba9b-45fc-a3da-2f6485c85672 X-Archives-Hash: 02e8089b3e2f0a863437f1b569a617bd Markus Rothe wrote: > Attached are the scripts I use to commit packages stable/unstable. > Somewhere must be a bug! > > 'name_split.cpp' splits a package name like sys-devel/gcc-4.1.2 into > category, package name and version number. It's done in c++ as that's the > only language I do more with than 'hello world' programms. Not much more, > just more. ;-) > You can do this quite easily with a shell function. Here's a slightly modded version of the one we use in update: # returns true if there was a version getPkgNameVer() { case "$1" in *-cvs[0-9]*) pName=${1%-cvs[0-9]*} pVer=${1#$pName-} ;; *-[0-9]*) pName=${1%%-[0-9]*} # from first -N pVer=${1#$pName-} ;; *) pName=$1 pVer= ;; esac pCat=${pName%/*}; pN=${pName#*/} [ "$pVer" ] && return 0 return 1 } ..which leaves the results in globals pName (which includes cat) pVer, pCat and pN (no category.) It handles cvs ebuilds as well, and is in sh. > 'mp.sh' is the script which calls name_split, repoman etc. It's pretty > straight forward and only does the things I would also do by hand. > > So if I want to mark for example sys-devel/gcc-4.1.2 stable on ppc64 I > call mp.sh like this: mp.sh ppc64 sys-devel/gcc-4.1.2 "Stable on ppc64" > > If someone has a hint where the problem is, I would really appreciate > that. > >>From the bugs, it appears that, while you are keywording the packages themselves, the dependencies are not being so marked. This is very similar to the problem autounmask solves, unmasking all deps of a packages. I'd suggest taking a look at it/asking ian about it; I never got into it as it's in Perl, but we do use it as an external for update. -- gentoo-dev@gentoo.org mailing list