Re: simple question about patches

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sat, 3 Mar 2001 19:24:32 +0000 (GMT)


> Long ago, pre* and ac* patches were rare. Patches went from one

Umm wrong. -ac patches for 2.2 regularly did one a day

> line-by-line before the next one came out. Patches always applied
> easily with the (pre-POSIX?) patch command. Version numbers made

patch is Larry Wall

> Pre-patches go like this:
>
> 200 kB (great: read the patch)
> 200 kB + 200 kB of old stuff you already read (ugh, read 1/2 of it)
> 200 kB + 400 kB of old stuff you already read (too boring)

Of course people with at least one functioning braincell read the differences
between the two patches, or pick up the patch between the two (handily
maintained on www.bzimage.org for the Linux 2.4ac series)

> So you just want to apply a patch. Well, good luck. The patch command
> has changed over the years. It has some ugly heuristics it uses to
> find the most destructive way to misinterpret your command. Typically

You must be using a faulty version fo patch

> Get the old and new directory names to be the same length, so that
> POSIX and non-POSIX patch commands are more likely to behave the same.

You need at least patch 2.5 for anything. And since patch 2.5 has been out
for rather a few years now this is all ancient ancient history (and was never
relevant in the real world anyway)

Alan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/