public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Rolf Eike Beer <eike-kernel@sf-tec.de>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Cc: Jesper Juhl <jesper.juhl@gmail.com>,
	Andrew Morton <akpm@osdl.org>, Linus Torvalds <torvalds@osdl.org>,
	Steven Rostedt <rostedt@goodmis.org>,
	Sean Bruno <sean.bruno@dsl-only.net>,
	Lee Revell <rlrevell@joe-job.com>
Subject: Re: Documentation - how to apply patches for various trees
Date: Wed, 3 Aug 2005 08:40:30 +0200	[thread overview]
Message-ID: <200508030840.39852@bilbo.math.uni-mannheim.de> (raw)
In-Reply-To: <200508022332.21380.jesper.juhl@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1728 bytes --]

Jesper Juhl wrote:

>+Where can I download the patches?

Maybe it would be useful to once again mention that local mirrors should be 
used at least for stable releases and */testing/*.

>+The 2.6.x kernels
[...]
>+# moving from 2.6.11 to 2.6.12
>+$ cd ~/linux-2.6.11			# change to kernel source dir
>+$ patch -p1 < ../patch-2.6.12		# apply the 2.6.12 patch

patch also nows "-i": patch -p1 -i ../patch-2.6.12

More likely the user will get the patch compressed either with bzip2 or gzip, 
so I think it would be useful to tell once more how to apply such a patch:

bzcat ../patch-2.6.12.bz2 | patch -p1

>+The 2.6.x.y kernels

>+$ cd ~/linux-2.6.12.2			# change into the kernel source dir
>+$ patch -p1 -R < ../patch-2.6.12.2	# revert the 2.6.12.2 patch
>+$ patch -p1 < ../patch-2.6.12.3		# apply the new 2.6.12.3 patch
>+$ cd ..
>+$ mv linux-2.6.12.2 linux-2.6.12.3	# rename the kernel source dir

The better way would probably be to use interdiff. Another goodie is that 
interdiff knows about -z:

cd ~/linux-2.6.12.2
interdiff -z ../patch-2.6.12.2.bz2 ../patch-2.6.12.3.gz | patch -p1

This should only be shown as "another way" to do so. Sometimes interdiff get's 
confused and breaks things, although this is very unlikely for the stable 
diffs.

>+The -mm kernels

>+ These kernels in 
>+ addition to all the other experimental patches they contain usually also
>+ contain any changes in the mainline -git kernels available at the time of
>+ release. 

These two "contain"'s that close to each user are likely to confuse. In a 
German text I would but a comma before "in addition" and behind the first 
"contain", don't know what the rules for this are in English.

Eike

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2005-08-03  6:34 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-02 21:32 Documentation - how to apply patches for various trees Jesper Juhl
2005-08-02 22:38 ` Randy.Dunlap
2005-08-03  1:05 ` Richard Hubbell
2005-08-03  2:00 ` Puneet Vyas
2005-08-03  6:40 ` Rolf Eike Beer [this message]
2005-08-03 14:44   ` Randy.Dunlap
     [not found]     ` <200508032251.07996.jesper.juhl@gmail.com>
2005-08-03 21:08       ` Linus Torvalds
2005-08-03 21:28         ` Jesper Juhl
2005-08-03 23:56           ` Johannes Stezenbach
2005-08-04  0:33           ` Grant Coady
2005-08-04  7:44           ` Rolf Eike Beer
2005-08-05 22:52         ` Jesper Juhl
2005-08-03 21:46       ` Bodo Eggert
2005-08-03 23:19         ` Jesper Juhl
2005-08-03 11:50 ` Pavel Machek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200508030840.39852@bilbo.math.uni-mannheim.de \
    --to=eike-kernel@sf-tec.de \
    --cc=akpm@osdl.org \
    --cc=jesper.juhl@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rlrevell@joe-job.com \
    --cc=rostedt@goodmis.org \
    --cc=sean.bruno@dsl-only.net \
    --cc=torvalds@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox