How does one apply mediawiki-1.14.0.patch.gz and mediawiki-i18n-1.14.0.patch.gz to mediawiki-1.14.0rc1 to produce mediawiki-1.14.0?
# ls mediawiki-1.14.0rc1 # zcat mediawiki-1.14.0.patch.gz | patch can't find file to patch at input line 4 Perhaps you should have used the -p or --strip option? The text leading up to this was: -------------------------- |diff -Nru -x messages mediawiki-1.14.0rc1/config/index.php mediawiki-1.14.0/config/index.php |--- mediawiki-1.14.0rc1/config/index.php 2009-02-05 23:44:11.000000000 -0600 |+++ mediawiki-1.14.0/config/index.php 2009-02-20 08:17:47.000000000 -0600 -------------------------- File to patch:
Maybe the instruction on how to apply the patches should be included in the comments at the top of each patch file.
jidanni@jidanni.org schreef:
How does one apply mediawiki-1.14.0.patch.gz and mediawiki-i18n-1.14.0.patch.gz to mediawiki-1.14.0rc1 to produce mediawiki-1.14.0?
# ls mediawiki-1.14.0rc1 # zcat mediawiki-1.14.0.patch.gz | patch can't find file to patch at input line 4 Perhaps you should have used the -p or --strip option?
I think you have to use -p1 here.
Roan Kattouw (Catrope)
"RK" == Roan Kattouw roan.kattouw@home.nl writes:
RK> jidanni@jidanni.org schreef:
How does one apply mediawiki-1.14.0.patch.gz and mediawiki-i18n-1.14.0.patch.gz to mediawiki-1.14.0rc1 to produce mediawiki-1.14.0?
# ls mediawiki-1.14.0rc1 # zcat mediawiki-1.14.0.patch.gz | patch can't find file to patch at input line 4 Perhaps you should have used the -p or --strip option?
RK> I think you have to use -p1 here.
Doesn't work. As I'm not sure what does, I'm filing https://bugzilla.wikimedia.org/show_bug.cgi?id=17724 "add patch instructions to a comment at the top of each patch file"
In https://bugzilla.wikimedia.org/show_bug.cgi?id=17724 they say I should instead submit a bug that the patch is broken.
But how do I know that is the case. All I know is I read the patch man page and tried some combinations and they all didn't work.
So that's is why I thought adding instructions to the top of the patch might be a good idea.
But they closed the bug because it is supposed to be obvious how to apply the patch.
But I tried all the obvious patch methods that I found documented.
jidanni@jidanni.org schreef:
In https://bugzilla.wikimedia.org/show_bug.cgi?id=17724 they say I should instead submit a bug that the patch is broken.
But how do I know that is the case. All I know is I read the patch man page and tried some combinations and they all didn't work.
So that's is why I thought adding instructions to the top of the patch might be a good idea.
But they closed the bug because it is supposed to be obvious how to apply the patch.
But I tried all the obvious patch methods that I found documented.
The error message patch gives you explicitly says that you may need to use the -p or --strip option, which is exactly the solution to your problem. I don't see how that's terribly hard to find.
Roan Kattouw (Catrope)
OK, now the answer is in https://bugzilla.wikimedia.org/show_bug.cgi?id=17724
I don't see how that's terribly hard to find.
Trust me. As very few of you will actually try these patches.
Perhaps only I, with my measly Internet connection has.
A tiny instruction at the top of the patch would not hurt.
Else cd ..; cd -; patch --this; patch --that; give up.
Oh well, I tried (to urge people to document it.)
wikitech-l@lists.wikimedia.org