LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 03-28-2015, 04:37 AM   #1
CollieJim
Member
 
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 582

Rep: Reputation: 28
Why such large download for patches?


Hi,

I'm setting up a cross development environment for the Beaglebone Black.

I'm following the instructions at http://dev.gentoo.org/~armin76/arm/b...k/install.xml:
Code:
Code Listing 3.6: Obtaining the kernel

# git clone https://github.com/beagleboard/kernel.git

(Change to the directory)
# cd kernel

(Switch to an up-to-date branch)
# git checkout origin/3.8 -b 3.8

(Download a kernel.org and patch it, may take a while)
# ./patch.sh
What I'm seeing:
Code:
/data/devel/CrossDev # git clone https://github.com/beagleboard/kernel.git
Cloning into 'kernel'...
remote: Counting objects: 31953, done.        
remote: Total 31953 (delta 0), reused 0 (delta 0), pack-reused 31953        
Receiving objects: 100% (31953/31953), 17.52 MiB | 182.00 KiB/s, done.
Resolving deltas: 100% (21508/21508), done.
Checking connectivity... done.
/data/devel/CrossDev # cd kernel/
/data/devel/CrossDev/kernel # git checkout origin/3.8 -b 3.8
Branch 3.8 set up to track remote branch 3.8 from origin.
Switched to a new branch '3.8'
/data/devel/CrossDev/kernel # ./patch.sh
Cloning into '.'...
remote: Counting objects: 4051665, done.        
remote: Compressing objects: 100% (7516/7516), done.        
Receiving objects:  22% (914610/4051665), 373.13 MiB | 283.00 KiB/s
At the rate the download is going, .patch.sh is going to fetch 1.6GB !!!

Why is such a huge download needed to patch the kernel?

Puzzled,
Jim
 
Old 03-28-2015, 11:13 PM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Your patch script is using git to clone the whole repository of software perhaps a master branch plus a required branch. Usually a patch is just diff output of two directories so it has only changes. But in your case it's downloading the whole of source/ plus all of the intra changes. And then perhaps it may be using git diff to get patches or something else. You should read about git. Also see your patch.sh file to know what it is doing.
 
1 members found this post helpful.
  


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
[SOLVED] how to download or copy patches EDDY1 Linux From Scratch 12 10-01-2012 04:53 AM
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
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 11:34 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