Gentoo Archives: gentoo-portage-dev

From: Brian Harring <ferringb@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] Making pax-utils a depend
Date: Sun, 20 Nov 2005 03:48:00
Message-Id: 20051120034643.GA10728@nightcrawler
In Reply to: Re: [gentoo-portage-dev] Making pax-utils a depend by Ned Ludd
1 On Sat, Nov 19, 2005 at 10:39:29PM -0500, Ned Ludd wrote:
2 > On Fri, 2005-11-18 at 10:16 -0600, Brian Harring wrote:
3 > [snip]
4 >
5 > > Still have issues with it- revdep-rebuild for example can't rely on
6 > > NEEDED until a repository regen script is written.
7 >
8 >
9 > # How about something like this then?
10 >
11 > cd ${ROOT}/var/db/pkg || exit 1
12 >
13 > for f in *-*/*/CONTENTS ; do
14 > NEEDED="${f%/*}/NEEDED"
15 > if [[ ! -e $NEEDED ]]; then
16 > grep ^obj $f | awk '{print $2}' | scanelf -BF"%F %n" -f - > $NEEDED
17 > fi
18 > done
19 Aside from my inherint dislike of awk, algo is there.
20 Should be schlopped into emaint though imo; you game, or want someone
21 to do the python bits?
22 ~harring

Replies