[OpenAFS-devel] patch format?
Roland Kuhn
rkuhn@e18.physik.tu-muenchen.de
Wed, 31 Jan 2007 14:30:39 +0100
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--Apple-Mail-77-816995448
Content-Type: multipart/signed; micalg=sha1; boundary=Apple-Mail-76-816995428; protocol="application/pkcs7-signature"
--Apple-Mail-76-816995428
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
delsp=yes;
format=flowed
Hi Jeffrey!
On 30 Jan 2007, at 19:40, Jeffrey Hutzelman wrote:
> On Tuesday, January 30, 2007 11:44:35 AM +0100 Roland Kuhn
> <rkuhn@e18.physik.tu-muenchen.de> wrote:
>
>> Hi!
>>
>> Maybe I'm missing something way too obvious, but I can't apply the
>> 1.4.3rc1 patch:
>>
>> rkuhn@othello:/afs/e18/sw/compile/kernel/linux-2.6.19.2-modules/
>> openafs$
>> patch -u -p1 <../../PATCHES/openafs-1.4.3rc1-src.diff
>> patch: **** Only garbage was found in the patch input.
>> rkuhn@othello:/afs/e18/sw/compile/kernel/linux-2.6.19.2-modules/
>> openafs$
>> patch -n -p1 <../../PATCHES/openafs-1.4.3rc1-src.diff
>> patch: **** Only garbage was found in the patch input.
>> rkuhn@othello:/afs/e18/sw/compile/kernel/linux-2.6.19.2-modules/
>> openafs$
>> patch -c -p1 <../../PATCHES/openafs-1.4.3rc1-src.diff
>> can't find file to patch at input line 5
>
> If you don't give any of the -u, -n, or -c options, then patch will
> virtually always figure out what kind of patch you have. I believe
> it's possible to construct a case where it gets it wrong, but such
> things generally do not occur in nature.
>
Okay, that's also what I expected.
> If you say -p1, then the current directory should be the top-level
> OpenAFS source directory; that is, the one where configure and the
> top-level Makefile live. Otherwise patch will not be able to find
> the files to patch.
>
Yep.
> The incremental version patches distributed by the OpenAFS project
> apply to the entire tree. If you are applying the patch to a
> directory tree which contains only a subset of the distributed
> source, such as that included in the openafs-modules-source or
> openafs-kernel-source packages, then you will need to modify the
> patch to elide the parts that modify files you don't have.
>
Okay, didn't know that one. Adding a -f solved the problem without
editing the patch (the WINNT directory was missing). But alas, now it
doesn't build... (something with INIT_WORK expecting 3 arguments and
getting only 2). I suspect that I'll simply wait until a 1.4.3 Debian
package is out, don't have too much time to spend for this.
Thanks for your help.
Ciao,
Roland
--
TU Muenchen, Physik-Department E18, James-Franck-Str., 85748 Garching
Telefon 089/289-12575; Telefax 089/289-12570
--
CERN office: 892-1-D23 phone: +41 22 7676540 mobile: +41 76 487 4482
--
Any society that would give up a little liberty to gain a little
security will deserve neither and lose both. - Benjamin Franklin
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GS/CS/M/MU d-(++) s:+ a-> C+++ UL++++ P+++ L+++ E(+) W+ !N K- w--- M
+ !V Y+
PGP++ t+(++) 5 R+ tv-- b+ DI++ e+++>++++ h---- y+++
------END GEEK CODE BLOCK------
--Apple-Mail-76-816995428
Content-Transfer-Encoding: base64
Content-Type: application/pkcs7-signature;
name=smime.p7s
Content-Disposition: attachment;
filename=smime.p7s
MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIINxTCCBi4w
ggUWoAMCAQICCmEPqkwAAAAAAAMwDQYJKoZIhvcNAQEFBQAwQTESMBAGCgmSJomT8ixkARkWAmNo
MRQwEgYKCZImiZPyLGQBGRYEY2VybjEVMBMGA1UEAxMMQ0VSTiBSb290IENBMB4XDTA2MTAwMzA5
MzYxM1oXDTE2MTAwMzA5NDYxM1owWTESMBAGCgmSJomT8ixkARkWAmNoMRQwEgYKCZImiZPyLGQB
GRYEY2VybjEtMCsGA1UEAxMkQ0VSTiBUcnVzdGVkIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIIB
IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwdFGqthhWlgUOSZ6C6hReNEVGzbjf2IQgxo7
/rOfOQHZH3krQPQ37fqFroEr46PrruymZ/U+QAzmESZQ4Z+nCfBhm7cEi0TIhihHd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--Apple-Mail-77-816995448
content-type: application/pgp-signature; x-mac-type=70674453;
name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)
iD8DBQFFwJoDI4MWO8QIRP0RAruWAJ0dotdpY6aPGGF1ycRHKHfPNcqXQQCgmCou
wLbCJjmpu4sWHfbbKR6lwKY=
=KsA4
-----END PGP SIGNATURE-----
--Apple-Mail-77-816995448--