LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-16-2011, 01:55 PM   #1
fransdb
LQ Newbie
 
Registered: Apr 2010
Posts: 9

Rep: Reputation: 0
Display of dependency tree


Hello all,

I am rebuilding software for years now and found myself always involved in the dependency issues. There are a lot of circulair dependencies too in most basic packages. I have a text file where I have the basic package listed, followed by dependencies.
This worked fine sofar, but dependencies are shifting so maintaining this file becomes a burden because I want to produce things, not chase after a moving target.

So, I have search the Internet but can't find Linux software to read my source files and create a tree of dependencies.

So, any suggestion to get rid of this hassel are more than welcome.
Regards, Frans.
 
Old 05-16-2011, 02:58 PM   #2
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by fransdb View Post
So, I have search the Internet but can't find Linux software to read my source files and create a tree of dependencies.
I have always used a modified version of the technique described here
Automatic Prerequisites
 
1 members found this post helpful.
Old 05-16-2011, 03:23 PM   #3
fransdb
LQ Newbie
 
Registered: Apr 2010
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks, however that's not what I am looking for. I found the program debtree which visualizes dependencies. Alas, it works only on Debian repositories and not on the sources I use.

Of course, given your pointer, I could build a script to generate eventually some (text) output. But since my time is limited I hope someone can pint me towards some software which allows dependency visualization.

The current text file is just cumbersome. A small extract around CAIRO:

### name - dependencies
cairo - png jpeg directfb poppler libspectre librsvg libxml2 glew
ghostscript - cairo jasper png jpeg
openjpeg - png lcms2 tiff
poppler - png jpeg libxml2 openjpeg qt4 tiff cairo libcurl freetype gdk
poppler-data
libspectre - cairo libgs
libcroco - libxml2
librsvg - png libxml2 libcroco gdk-pixbuf
cairo
poppler
libspectre
cairo

which indicates that I have to compile cairo three times to get the final result.

Hope for some help.
Frans.
 
Old 05-16-2011, 08:55 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
Alas, it works only on Debian repositories and not on the sources I use.
so are you running debain ????

if so then rpm-build will not help
 
Old 05-17-2011, 11:14 AM   #5
fransdb
LQ Newbie
 
Registered: Apr 2010
Posts: 9

Original Poster
Rep: Reputation: 0
No, I do not use Debian. I use a minimalistic OpenSuse 11.x as base and build all kind of packages from scratch.
 
Old 05-17-2011, 03:47 PM   #6
fransdb
LQ Newbie
 
Registered: Apr 2010
Posts: 9

Original Poster
Rep: Reputation: 0
Update: I found the combination doxygen and graphviz to produce some usefull pictures.
However, I then realized that I still have no overview of dependencies outside the package processed.
So visualization of dependencies between libraries themself and/or other software is still the question.

Regards,
Frans.
 
Old 05-18-2011, 04:21 PM   #7
fransdb
LQ Newbie
 
Registered: Apr 2010
Posts: 9

Original Poster
Rep: Reputation: 0
Oh well, I keep on talking to myself

No, the combination doxygen and graphviz is great for projects itself. It does not give insight of external dependencies, unless I invest a lot of time. In that case I can better inspect the Makefile and/or configure files to get some answers.

It is a suggestion if I look at the LFS project? It's been a long time I've been there but I seem to remember that some advanced projects did go beyound a basic system.

Still open for suggestions!
Regards, Frans.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
print make dependency tree? chadwick Programming 1 05-14-2009 03:34 PM
Huge dependency tree for xine nonfree codecs in fc8 linuxpokernut Linux - Software 9 03-12-2008 08:08 PM
Dependency tree drawing software? BuilderQ Linux - Software 6 12-06-2007 10:02 AM
LXer: Linux Dependency tree LXer Syndicated Linux News 0 05-02-2006 06:54 AM
the bible = the tree of the knowledge of good and evil () Jesus = the tree of life Michael111 General 2 04-14-2004 04:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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