News for hackers. Stuff that matters.
Re:Libtree: Turns ldd into a tree; explains why shared libra... by evol262 on Saturday December 04, 2021 @05:58AM (#29440081)
This is fine. It's a great beginner project -- C++ is probably painful even statically compiled, and Go/Rust would be better.

But you may as well make it a little smarter. Over a decade ago, this utility could be done ad-hoc in 100 lines of Perl (including spacing and comments), and that includes "try to see if yum on RHEL6 knows where to find the missing dep, build a list, and prompt to install": https://gist.github.com/evol262/3d67c4295bbe78135a4927bd1d82...

It would be a fun project for you to try to do this with dpkg/pacman/dnf (which is basically the same as yum for syntax, just that you're not gonna be a sysadmin hacking out Perl to solve a problem)

Re:Libtree: Turns ldd into a tree; explains why shared libra... by nor-and-or-not on Saturday December 04, 2021 @07:20AM (#29440393)
> C++ is probably painful even statically compiled, and Go/Rust would be better

What does that even mean?

Re:Libtree: Turns ldd into a tree; explains why shared libra... by bmn__ on Saturday December 04, 2021 @09:31AM (#29441036)
That code does not work, it won't even compile with `-Mstrict`.