pkgsrc tips (Was Re: Proper choice of package management strategy)

Zeb Packard cyphercell4 at
Sun Jan 21 00:41:28 PST 2007

On 1/20/07, Nadav Vinik <nadavvin at> wrote:
> Do you have script like that?
> since It user readable but it harder to parse in simple regular expression:
> $ ldd /bin/bash
> =>  (0xffffe000)
> => /lib/ (0xb7f6c000)
> => /lib/ (0xb7f64000)
> => /lib/ (0xb7f22000)
> => /lib/ (0xb7f1e000)
> => /lib/ (0xb7df4000)
>        /lib/ (0xb7fb7000)

No I don't but,
I'm thinking you can grab everything between "/" and the first " ("
assign it to a variable (add the first slash back in), then if the
variable is "   " you can grab everything up until the first " =". If
after this you still have a value that doesn't work you can spit out
an error. This is pretty rough and requires reading the output line by
line, but I think a dynamic dependency tree sounds pretty cool.

Output would look like this:  ( I don't know what this one is, maybe a dep in the
source? If so, we wouldn't need it anyway.)

More information about the lfs-support mailing list