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 1HATDk-0001iU-5z for garchives@archives.gentoo.org; Fri, 26 Jan 2007 15:42:32 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.8) with SMTP id l0QFeoAH023484; Fri, 26 Jan 2007 15:40:50 GMT Received: from ipmail02.adl2.internode.on.net (ipmail02.adl2.internode.on.net [203.16.214.141]) by robin.gentoo.org (8.13.8/8.13.8) with ESMTP id l0QFWsb0010654 for ; Fri, 26 Jan 2007 15:32:55 GMT Received: from ppp208-44.lns1.hba1.internode.on.net (HELO [192.168.0.233]) ([121.44.208.44]) by ipmail02.adl2.internode.on.net with ESMTP; 27 Jan 2007 01:59:52 +1030 X-IronPort-AV: i="4.13,243,1167571800"; d="scan'208"; a="76530231:sNHT22254379" Message-ID: <45BA1F89.6070906@internode.on.net> Date: Sat, 27 Jan 2007 02:34:33 +1100 From: Eugene Rosenzweig User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] xorg-x11-7.2 and portage References: <200701251650.03825.gentoo@matthewlee.org> In-Reply-To: <200701251650.03825.gentoo@matthewlee.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 2f837707-ceb0-4667-8fc1-d18a59434eef X-Archives-Hash: 46bc3ec81c8592537a52954db88c4e16 Matthew R. Lee wrote: > I've just been doing my regular emerge -pvu world and the system wants to > update xorg-x11 to 7.2, fine. To do this I needed to add some packages to > the packages.keywords file, again fine. > My problem is I had to go through the cycle emerge -pvu world add a package to > package.keywords 11 times, to deal with the 11 masked packages that > xorg-x11-7.2 required. > So the question is, is there anyway to get emerge to list all the masked > dependencies required all at once? (i.e. when I run emerge -pvu world the > first time). I've looked at the man page but didn't see an obvious solution. > Thanks > Matt > It is a mini-repeat of what one had to do to get 7.0 installed. There were a lot more masked packages to add at that time. I still have a script I wrote for that purpose, it adds any encountered unstable ebuilds to the /etc/portage/portage.keywords file and masked ebuilds to /etc/portage/portage.unmask file: ------------------ #!/bin/sh LASTADD='' UNMASK='' if [ -z "$*" ]; then echo Need package name to emerge exit fi until emerge --deep --nocolor --verbose --pretend $* >/tmp/autokw$$; do if egrep "All ebuilds that could satisfy \".*\" have been masked." /tmp/autokw$$; then #echo error from portage looking at output EBUILD=`grep "^- " /tmp/autokw$$ | head -n 1 |\ sed -e 's/^- \(.*\)-[0-9].*$/\1/'` if [ "$EBUILD" == "$LASTADD" -o -z "$EBUILD" ]; then echo oops same as last time or null: [$EBUILD] if [ ! -z "$UNMASK" ]; then echo already tried to unmask package rm /tmp/autokw$$ exit fi echo trying to add to unmask if grep "All ebuilds that could satisfy" /tmp/autokw$$; then EBUILD=`grep "All ebuilds that " /tmp/autokw$$ | head -n 1 |\ sed -e 's/.*"\([^"]*\).*$/\1/'` echo $EBUILD >> /etc/portage/package.unmask UNMASK="yes" LASTADD='' fi else echo adding [$EBUILD] to keywords file echo -e "$EBUILD\t~x86" >>/etc/portage/package.keywords; LASTADD=$EBUILD UNMASK='' fi else echo could not parse output cat /tmp/autokw$$ break fi done [ -e "/tmp/autokw$$" ] && rm /tmp/autokw$$ ------------------ It's just a hack but it has worked for me a couple of days ago for 7.2 ebuild. On that note, I have also found the etcportclean script useful (just google for it). It scans your /etc/portage files and tells you if you have any redundant entries there. The script might be broken a little from memory but it has worked quite well for me over a long time. Eugene. -- gentoo-user@gentoo.org mailing list