LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-26-2012, 03:08 AM   #1
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,633

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
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?
 
Old 09-26-2012, 03:22 AM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,643
Blog Entries: 1

Rep: Reputation: 229Reputation: 229Reputation: 229
Hi

Thats all I do then name it as the patch you need. Place it in the sources dir
 
1 members found this post helpful.
Old 09-26-2012, 04:56 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Quote:
Originally Posted by EDDY1 View Post
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/)

Last edited by druuna; 09-26-2012 at 04:59 AM. Reason: corrected spelling
 
1 members found this post helpful.
Old 09-26-2012, 10:52 AM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,633

Original Poster
Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
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.
 
Old 09-26-2012, 02:14 PM   #5
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,633

Original Poster
Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
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.
 
Old 09-26-2012, 11:48 PM   #6
ReaperX7
Senior Member
 
Registered: Jul 2011
Distribution: LFS-SVN, FreeBSD 10.0
Posts: 3,221
Blog Entries: 15

Rep: Reputation: 833Reputation: 833Reputation: 833Reputation: 833Reputation: 833Reputation: 833Reputation: 833
If you use the wget script, it will download all the LFS packages, including the script package and patches when ran.
 
1 members found this post helpful.
Old 09-27-2012, 10:16 PM   #7
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,633

Original Poster
Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
Quote:
Originally Posted by ReaperX7 View Post
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.

Last edited by EDDY1; 09-27-2012 at 11:40 PM.
 
Old 09-27-2012, 11:25 PM   #8
ReaperX7
Senior Member
 
Registered: Jul 2011
Distribution: LFS-SVN, FreeBSD 10.0
Posts: 3,221
Blog Entries: 15

Rep: Reputation: 833Reputation: 833Reputation: 833Reputation: 833Reputation: 833Reputation: 833Reputation: 833
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.
 
1 members found this post helpful.
Old 09-27-2012, 11:44 PM   #9
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,633

Original Poster
Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
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

Last edited by EDDY1; 09-27-2012 at 11:48 PM.
 
Old 09-28-2012, 01:21 AM   #10
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Quote:
Originally Posted by EDDY1 View Post
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.
 
1 members found this post helpful.
Old 09-28-2012, 02:07 AM   #11
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,633

Original Poster
Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
Thank you< it's a good thing it's only a VM I can start over & try it again
 
Old 09-28-2012, 03:32 AM   #12
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,633

Original Poster
Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
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'
 
Old 10-01-2012, 04:53 AM   #13
ReaperX7
Senior Member
 
Registered: Jul 2011
Distribution: LFS-SVN, FreeBSD 10.0
Posts: 3,221
Blog Entries: 15

Rep: Reputation: 833Reputation: 833Reputation: 833Reputation: 833Reputation: 833Reputation: 833Reputation: 833
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.
 
1 members found this post helpful.
  


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
where to download Oralce linux patches maliks74 Linux - Enterprise 1 06-20-2009 04:19 AM
can't download patches cluelessme Linux - Software 1 03-22-2009 01:02 PM
yast won't show patches to download bhert Suse/Novell 3 08-29-2007 03:59 PM
How to download Patches garbo73 Linux - Newbie 2 12-20-2005 06:53 AM
How to download security patches for 10.0? eje4 Linux - Security 1 08-11-2005 08:59 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration