LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   LFS - about 30 Autoconf files and how to do the patches (https://www.linuxquestions.org/questions/linux-from-scratch-13/lfs-about-30-autoconf-files-and-how-to-do-the-patches-934440/)

Sjors-rw 03-14-2012 12:00 PM

LFS - about 30 Autoconf files and how to do the patches
 
Hey,

First of all, I'm Sjors Snoeren, a 16 year old webdeveloper, I got my own company called Rockweb, see http://www.rockweb.nl, I'm from holland as you may see on my web URL. I'm a big Mac OSX and Linux fan, I know Strange combination. I'm wanting to create my own OS so,

I'm using LFS, but struggling yet,
I've installed the WGET-list, but when I cd to the $LFS I see much .tar.gz files like it have to, but I see also about 30 Autconf.tar.gz.1 and tar.gz.2 and so on, is it meant so or did I do sth wrong?

Also the patches, need they be to installed manually? Or is there a program or a patch-list like the wget-list?

Thnx for reading, and I hope someone can help me out!

druuna 03-14-2012 12:27 PM

Hi/Hoi Sjors-rw,

Welcome to LQ!

Quote:

Originally Posted by Sjors-rw (Post 4626703)
I've installed the WGET-list, but when I cd to the $LFS I see much .tar.gz files like it have to, but I see also about 30 Autconf.tar.gz.1 and tar.gz.2 and so on, is it meant so or did I do sth wrong?

Something must have gone wrong. Have a look at the content of the wget-list file, all packages/patches should be mentioned just once.

The command given in the book to get the files (wget -i wget-list -P $LFS/sources) also works as it supposed to.

You did follow the instructions in the book?

Quote:

Also the patches, need they be to installed manually?
When a patch needs installing it is explained on the page (Example: 5.5 GCC - Pass 1).

BTW: Links provided assume latest stable LFS (7.1 at this moment).

Hope this helps.

EDIT: Just asked a moderator to move this to the LFS sub-forum.

business_kid 03-14-2012 12:34 PM

Welcome to LQ.
Quote:

but I see also about 30 Autconf.tar.gz.1 and tar.gz.2 and so on, is it meant so or did I do sth wrong?
Something is probably wrong.
run
Code:

diff Autoconf.tar.gz.1 Autoconf.tar.gz.2
It will either throw up loads of crap, or nothing. If it throws up nothing, you can probably delete most of them. But check the length
Code:

ls -lh Autoconf.*
wget could have been retrying if that was set. I don't know the script. Make sure the one you keep has the right md5sum.

Quote:

Also the patches, need they be to installed manually? Or is there a program or a patch-list like the wget-list?
I think not. I think they are done one at a time. If you're doing manual (Best way to learn) the commands are in the book. If you are using the build script on the cd, it patches them before the compile.

Sjors-rw 03-14-2012 12:40 PM

What I did I copied the url with the wget's to the command instead of wget-list.

for the patches, I don't have to do anything right now? If I understand you correctly.

druuna 03-14-2012 12:44 PM

Hi,
Quote:

Originally Posted by Sjors-rw (Post 4626725)
What I did I copied the url with the wget's to the command instead of wget-list.

Follow the book, it works :)

Quote:

for the patches, I don't have to do anything right now? If I understand you correctly.
Nope, when the time comes you will notice.

Sjors-rw 03-14-2012 01:01 PM

Look, this is my problem:

http://cl.ly/F0UI

Any ideas, the rest seams OK.

druuna 03-14-2012 01:18 PM

Hi,

Well, if you do not follow the book (why not?? problem would be solved....) and don't tell us which commands you actually used we cannot help you.

What does this mean:
Quote:

Originally Posted by Sjors-rw
What I did I copied the url with the wget's to the command instead of wget-list.

Please post the exact commands you used, only that way we might be able to explain why it behaves the way it does.

Sjors-rw 03-14-2012 01:22 PM

I followed the book, it says:

Code:

wget -i wget-list -P $LFS/sources
Wget-list was not found so I used:

Code:

wget -i http://www.linuxfromscratch.org/bblalalala/wget-list.html -P $LFS/sources
That's the right way to do it? I think the book is not explaining enough detail about that kind of things.

druuna 03-14-2012 01:26 PM

Hi,
Quote:

Originally Posted by Sjors-rw (Post 4626749)
I followed the book, it says:

Code:

wget -i wget-list -P $LFS/sources
Wget-list was not found so I used:

Code:

wget -i http://www.linuxfromscratch.org/bblalalala/wget-list.html -P $LFS/sources
That's the right way to do it? I think the book is not explaining enough detail about that kind of things.

Nope.

Download and store the wget-list file. From the location you stored the wget-list file issue the wget -i wget-list -P $LFS/sources command.

Hope this helps.

Sjors-rw 03-14-2012 02:55 PM

How can I remove multiple files easy? Can I get in filemanager to do so? With Terminal it takes a alot of time...

druuna 03-14-2012 03:08 PM

Hi,
Quote:

Originally Posted by Sjors-rw (Post 4626807)
How can I remove multiple files easy? Can I get in filemanager to do so? With Terminal it takes a alot of time...

LFS is meant to be build from a console/terminal.

Assuming you want to remove all (!!) the files in $LFS/sources (as root user):
Code:

$ cd $LFS/sources
$ rm -f *

A little warning: If you are not familiar enough with the CLI to know this you will have a real hard time building a LFS system.

Hope this helps.

Sjors-rw 03-14-2012 03:13 PM

But that's why I wanted to build one, to learn.

Sjors-rw 03-15-2012 02:56 AM

So, struggled upon another problem, In chapter 4 you have to Export $LFS to /mnt/lfs, I did that but the pakages are still on $LFS... Is that a problem?

druuna 03-15-2012 03:14 AM

Hi,

The packages you downloaded should reside in $LFS/sources, not $LFS (as mentioned in chapter 3). During chapter 4 and 5 the base you are building from is stored in the LFS variable (for most people this variable will contain /mnt/lfs).

The export command doesn't have anything to do with that. The export part of the command makes sure that this variable (LFS) is also present in the sub-shells that are used during the build.

Hope this helps.

Sjors-rw 03-15-2012 03:22 AM

Thanks, I've managed to do it correcly, now I'm inn chapter 5.

Now I'm seeing:
This kinda commands:

mkdir -v ../binutils-build
cd ../binutils-build

but which directory the book is using to fill that in because ../ means two directorys back in HTML/CSS I think here is the same?

So do I have to be in $LFS/sources or what?


All times are GMT -5. The time now is 06:56 AM.