You are not logged in.

#1 2002-11-09 15:23:34

jk
Member
From: Groningen, The Netherlands
Registered: 2002-10-24
Posts: 66
Website

small script to help find dependencies

Hi, here's a small bash script to help packagers a bit with checking dependencies of dynamically linked executables. Maybe someone can find a use for it :-)

-----------------------------------------
#!/bin/bash
LIBS=`ldd $1 |awk '{print $3}'`

(for lib in $LIBS; do
        pacman -Qo $lib
done) | sort | uniq
-----------------------------------------

Output is as follows:

[jochem@lisa jochem]$ archdep /usr/bin/fluxconf
atk 1.0.3-2
freetype2 2.0.9-2
glib2 2.0.7-1
glibc 2.3.1-1
gtk2 2.0.7-2
pango 1.0.4-4
xfree86 4.2.1-2
[jochem@lisa jochem]$

Offline

#2 2002-11-09 18:52:54

Arielext
Member
From: Amersfoort, the Netherlands
Registered: 2002-08-12
Posts: 362
Website

Re: small script to help find dependencies

2 thumbs up!

this can be very usefull for people who make their own packages.
thank you


apt-get install arch

Offline

#3 2002-12-13 18:32:16

jk
Member
From: Groningen, The Netherlands
Registered: 2002-10-24
Posts: 66
Website

Re: small script to help find dependencies

Couldn't live with the slowness of pacman -Qo, so i rewrote archdep a bit and a new script called archown, get them at:

http://jk.yazzy.org/resources/ArchLinux/scripts/archdep
http://jk.yazzy.org/resources/ArchLinux/scripts/archown

It makes archdep _much_ _much_ faster...

Now working on a small script which shows dependencies of a package instead of a file...  8)

(yes, i absolutely hate dependency hells)

Offline

#4 2002-12-13 19:29:31

jk
Member
From: Groningen, The Netherlands
Registered: 2002-10-24
Posts: 66
Website

Re: small script to help find dependencies

And here it is:

http://jk.yazzy.org/resources/ArchLinux … s/archpdep

usage:          archpdep packagename
for example:    archpdep fluxbox

Remember, this only checks dynamically linked
executables and shared libraries. For example, this is useless for packages that
install scripts.

Offline

Board footer

Powered by FluxBB