Latest LQ Deal: Linux Power User Bundle
Go Back > Blogs > igadoter
User Name


Rate this Entry

Resolving SBo packages dependencies

Posted 08-30-2018 at 06:28 AM by igadoter

When I started this thread I didn't realize it will grow up into something more complicated. Essentially at the end it should full package builder - based on bunch of scripts.

The first it was to realize how to build full file of dependencies (abbr. dep file) for package. Dep file is just text file - each line is link to web page for package. In time it is being created it has to satisfy simple assertion: all dependencies (abbr. deps) for package are in lines below the line which contains name of package. I think it better to make picture than said.

PACKAGE ---> DEP 1 ----> DEP 2 ----> ----- > DEP n'th
(---> means below)

Think a little: because assertion has to be true for every package, all deps for DEP 1 are below (!) DEP 1, the picture above doesn't mean (!) that DEP 2, etc, are deps for DEP 1. But there is assurance all deps for DEP 1 are below (!) DEP 1.

So to build such dep file it is required to keep this assertion to be true all the time. The only things here is to keep watch to remove duplicates.

This is essentially what my first script is doing

Because dep file contains links to web pages with description of package, I realized that I can just well grab all that information so: READMDE, *.info, slackbuild script, *.desc, etc. and put the in some directory - say with the name the same as the package name.

Now all this runs by this procedure:
build dep file ---> create directories ---> grab all information about package ---> grab all information from *.info files deps ---> make test comparing what was found all together in *.info with dep file (essentially all what is in *.info's should be in dep file).

There is another goal for this blog: to implement all this in Python, Perl or even C/C++, or instead of 'hashes' in my script to use bash arrays
Posted in Uncategorized
Views 549 Comments 0
« Prev     Main     Next »
Total Comments 0




All times are GMT -5. The time now is 08:37 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration