[ANN]sbbdep 0.0.9

Other talk about Salix
Post Reply
User avatar
a4z
Posts: 8
Joined: 26. Oct 2009, 16:01

[ANN]sbbdep 0.0.9

Post by a4z »

sbbdep, slack build binary dependencies, update is avialable

sbbdep can be used to produce dependencies files for slapt-get or just show dependency information, but not only for installed packages but also for single binary/library files.
beside that sbbdep can be used for the make install DESTDIRs.

sbbdep produces either short lists with package names only or with version info appended.

sbbdep will also show missing libraries.

sbbdep is currently the fastest way to produce dependency information because it holds the package information in a sqlite database which is kept in sync.

sbbdep works very exact because it directly reads the elf headers of dynamic linked binaries and libraries.


sbbdep can also show what binaries/packages an installed package or binary/library requires

a small sample of usage for sbbdep can be found here
http://www.linuxquestions.org/questions ... ost4426274


download of the source distribution:
https://bitbucket.org/a4z/sbbdep_slk/do ... 0.9.tar.gz

download and extract,
cd into sbbdep_slk
cmake .
make -DCMAKE_INSTALL_PREFIX:PATH="/usr"

make install , or use the binary from the bin directory


all source repositories can be found here:
https://bitbucket.org/a4z


for building sbbdep on salix < 13.37 libelf is required.


this may be the last version that may build on older salix versions because I will start to use c++11 features for my projects soon
User avatar
JRD
Salix Warrior
Posts: 950
Joined: 7. Jun 2009, 22:52
Location: Lyon, France

Re: [ANN]sbbdep 0.0.9

Post by JRD »

depcheck and depfinder can already do all that, doesn't it ?
Image
User avatar
a4z
Posts: 8
Joined: 26. Oct 2009, 16:01

Re: [ANN]sbbdep 0.0.9

Post by a4z »

they are partial similar, but if sbbdep would be just the same I would not have written it

check sample 2 and 3 from the link to lq in the op.
the --whoneeds option is unique, mentioned programs do not tell you which installed packages do need package xy / file xy

sbbdep works also for single binaries/libraries, also unique, and about the sqlitedb, also unique, some notes on the end of this post

as mentioned in the op, sbbdep works faster and more exact through reading elf header, respect different link pathes ld.so.conf/rpath on the system
(and optionally user defined ones that you may have as developer but that I currently do not mention to not make things complicated. I have created sbbdep primary as a tool for me as developer with specified needs, but the result may also have interesting functions/options for others )

an interesting task that also respects the speed is applying sbbdep in nosync mode to all packages in /var/adm/packges and grep for 'not foud'

and beside all, the created sqlite database gives interesting options to user defined queries, or even reporting, for various dependency information that may be interested for developers
you can do this with any scripting language or even the sqlite3 cli and sql
possible use case e.g.: you want to make a grafik report about the binary package dependencies,.. no problem ...

so I do not think that existing tools can do what sbbdep does
Post Reply