LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   how to download or copy patches (http://www.linuxquestions.org/questions/linux-from-scratch-13/how-to-download-or-copy-patches-4175429067/)

EDDY1 09-26-2012 03:08 AM

how to download or copy patches
 
I recently started trying to use LFS from within virtualbox & when I come to patches it is not a downloadable file so I copy & paste the patch.
I just want to know what is the correct way to copy the patch?
Am I supposed to copy the patch as a document?

spiky0011 09-26-2012 03:22 AM

Hi

Thats all I do then name it as the patch you need. Place it in the sources dir

druuna 09-26-2012 04:56 AM

Quote:

Originally Posted by EDDY1 (Post 4789517)
I recently started trying to use LFS from within virtualbox & when I come to patches it is not a downloadable file so I copy & paste the patch.
I just want to know what is the correct way to copy the patch?
Am I supposed to copy the patch as a document?

Can't you just right-click and select save link as (firefox/iceweasel) or save linked content as (opera)?

As an alternative you can download the lfs packages tarbal, which also includes all the patches. (ftp://ftp.lfs-matrix.net/pub/lfs/lfs-packages/)

EDDY1 09-26-2012 10:52 AM

Quote:

Thats all I do then name it as the patch you need. Place it in the sources dir
Thank you thats what I did for binutils & a few others, then I got a copy error on 1 so thought I was doing it wrong.
Quote:

As an alternative you can download the lfs packages tarbal, which also includes all the patches. (ftp://ftp.lfs-matrix.net/pub/lfs/lfs-packages/)
I'm going to try it this way.

EDDY1 09-26-2012 02:14 PM

Thank both of you for your input I'm finally compiling Binutils.
Btw it's a good thing I'm doing it in VM I wiped out 1 last night trying to remove a symlink to lfs, that 1 is no longer bootable drops to grub rescue.
Not only that, the VM I destroyed was 1 that I built using debootstrap.

ReaperX7 09-26-2012 11:48 PM

If you use the wget script, it will download all the LFS packages, including the script package and patches when ran.

EDDY1 09-27-2012 10:16 PM

Quote:

Originally Posted by ReaperX7 (Post 4790358)
If you use the wget script, it will download all the LFS packages, including the script package and patches when ran.

I never got the wget-list script to work, either that or just didn't do it right.
Any way after destroying 1 VM & 3 failed attempts, I made it to compiling glibc 2x's both times failing at "make install", I finally realized that glibc required a patch, of course only after manually downloading all of the files 3x's to sources directory.
Now it's finally doing "make install"
Iactually think that my install failed on 2nd pass of binutils.
So I guess I will find out if glibc was the cause of it.

ReaperX7 09-27-2012 11:25 PM

You download the wget-list into your /root or /home/%user% directory and then execute it. Then you download and copy the md5sum file into the /mnt/lfs/source directory and run it.

EDDY1 09-27-2012 11:44 PM

I was just looking back at LFS guide & it doesn't show that the glibc patch is applied until chapter 6.
Putting the patch in chapter 5 allowed glibc-build to complete & "make install". Should I have waited until chapter 6 to apply patch?

Another change I made was to do
Quote:

export MAKEFLAGS='-j 2'
at chapter 4.5

druuna 09-28-2012 01:21 AM

Quote:

Originally Posted by EDDY1 (Post 4791252)
I was just looking back at LFS guide & it doesn't show that the glibc patch is applied until chapter 6.

That is correct.

Quote:

Putting the patch in chapter 5 allowed glibc-build to complete & "make install". Should I have waited until chapter 6 to apply patch?
Yes, you should have.

2 errors have been found in the LFS 7.2 book and these are mentioned here: http://www.linuxfromscratch.org/lfs/errata/7.2/ Glibc is too important and a possible error in the book would have surfaced by now.

Quote:

Another change I made was to do
Quote:

export MAKEFLAGS='-j 2'
at chapter 4.5
In general: That shouldn't be a problem. I have seen make check steps go wrong due to this, but that isn't relevant in chapter 5.

EDDY1 09-28-2012 02:07 AM

Thank you< it's a good thing it's only a VM I can start over & try it again

EDDY1 09-28-2012 03:32 AM

Well after hours of compiling I think that I'll go ahead & redo everything although I haven't recieved any errors even when running this command after "make install" glibc.
Quote:

echo 'main(){}' > dummy.c
$LFS_TGT-gcc dummy.c
readelf -l a.out | grep ': /tools'

ReaperX7 10-01-2012 04:53 AM

The good thing about using a VM is now, you can create a VHD which is compatible with Windows7/2008R2 and use it as an actual attached boot device, then if you need to work on it, you can use VirtualBox or another compatible VM to work on the VHD OS through chroot.


All times are GMT -5. The time now is 03:21 AM.