LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 09-07-2005, 06:58 AM   #1
Whitesocks
Member
 
Registered: Sep 2005
Posts: 30

Rep: Reputation: 15
Adapting software for LFS


Hello everybody!

Its great that BLFS comes with instructions for installing lots of stuff that will probably be needed sooner or later by most people. But what if I want to install something that is not in this list?

I would have to figure out:

What dependencies does this specific package have? I have tried reading the README and checking the websites for some software, but usually this information is hard to come by. Is there some way to find out without digging through every include in the source files? I can run ./configure and see what is missing, but it will only tell me the first package that is missing, then exit. There is no way to know in advance exacly how many packages i would need to install without actually doing it, is there (if not listed on the BLFS web, of course)?

I have run gentoo before, and the emerge command solves these problems, but without letting me know how its done. I suppose the developers keep a list of dependencies manually for emerge? Or maybe there is some kind of a script I can run that passes through the source files, letting me know what other packages are needed (judging from the include files)...?

Christer, Sweden
 
Old 09-07-2005, 09:47 PM   #2
Yerp
Member
 
Registered: Jun 2004
Distribution: Turtle Kevux 0.8.8
Posts: 129

Rep: Reputation: 15
we could setup a wiki to handle this.
if somebody goes throught the step-by-step proccess of installing something without know its dependencies. they can list all of the packages that was installed.

Even if you had some dependencies, somebody else might find they dont have them, and then just add those extra dependencies that you failed to notice as a result of a pre-resolved dependancy.

And with the new linux from scratch site up, I believe there is a wiki that I never noticed before, perhaps they already have something like this.

We'll both have to take a look at: http://wiki.linuxfromscratch.org/
 
Old 09-08-2005, 06:09 AM   #3
Whitesocks
Member
 
Registered: Sep 2005
Posts: 30

Original Poster
Rep: Reputation: 15
Yes, thats a good idea.

But i wish there was a simpler way to find out about the dependencies though. A wiki is good, but the information may not be 100% accurate depending on software version, host system, etc. And there are often switches you can use during install, some of which will give you additional dependencies for the extra features.

It should be possible to write a script that:

1) For every source file, read the #includes
2) Check if the #include exists in the path on the local system

If it doesnt, it would use a database to look up the header file and check what package it is a part of. It would check if this new package has dependencies and tell the user about those as well.

Of course this requires a updated database and contribution by users to make it work. Maybe it would be simpler to just let the script read what dynamic libraries are used after the package has been installed and post this to a database. But this could vary between different host systems and installation switches used. And some packages are built with static libraries...

Maybe someone with more linux experience has a better solution....

Last edited by Whitesocks; 09-08-2005 at 06:14 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 01:31 AM
LFS-7.0-cross-lfs-20050902-x86_64-Multilib Basel Linux From Scratch 0 09-03-2005 06:03 AM
cannot login as user 'lfs' [su - lfs] mayasedai Linux From Scratch 2 07-26-2005 07:10 AM
LFS Questions using software from distros Nz_Boy_2004 Linux - Software 2 06-01-2004 09:39 PM
LFS 3.2 book, but LFS packages 3.0 CragStar Linux From Scratch 2 04-07-2002 04:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:17 PM.

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