Gentoo Archives: gentoo-portage-dev

From: Ned Ludd <solar@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] Making pax-utils a depend
Date: Sun, 20 Nov 2005 04:16:31
Message-Id: 1132460150.11765.28.camel@localhost
In Reply to: Re: [gentoo-portage-dev] Making pax-utils a depend by Brian Harring
1 On Sat, 2005-11-19 at 21:46 -0600, Brian Harring wrote:
2 > On Sat, Nov 19, 2005 at 10:39:29PM -0500, Ned Ludd wrote:
3 > > On Fri, 2005-11-18 at 10:16 -0600, Brian Harring wrote:
4 > > [snip]
5 > >
6 > > > Still have issues with it- revdep-rebuild for example can't rely on
7 > > > NEEDED until a repository regen script is written.
8 > >
9 > >
10 > > # How about something like this then?
11 > >
12 > > cd ${ROOT}/var/db/pkg || exit 1
13 > >
14 > > for f in *-*/*/CONTENTS ; do
15 > > NEEDED="${f%/*}/NEEDED"
16 > > if [[ ! -e $NEEDED ]]; then
17 > > grep ^obj $f | awk '{print $2}' | scanelf -BF"%F %n" -f - > $NEEDED
18 > > fi
19 > > done
20 > Aside from my inherint dislike of awk, algo is there.
21 > Should be schlopped into emaint though imo; you game, or want someone
22 > to do the python bits?
23
24 If you want it in python it would be faster for you to code that vs me
25 sitting in #-portage asking you bash+python hybrid questions.
26
27 Honestly I've been re-running the above command via my bashrc in the
28 postinst phase for the past few months without any notice.
29
30 Where I'm going with the NEEDED in general is I want those resolved to
31 the packages that provide the the elfs basenames and save those into
32 what I'm declaring as RRDEPEND; I use qfile from portage-utils todo
33 this on my local development box. The RRDEPEND is more or less
34 instant revdep data that revdep-rebuild could use. More than that I'm
35 after seeing an option to emerge to select the type of deps use for
36 depgraph creation. (python part I'd need help with)
37
38
39 --
40 Ned Ludd <solar@g.o>
41 Gentoo Linux
42
43 --
44 gentoo-portage-dev@g.o mailing list