Fix patch application in mplayer

When using "patch -d <dir> -i <path>", the <path> relative to the
directory <dir>, not the directory where the patch command is
run. Using < instead of -i allows to use a path relative to where
the command is run.
This commit is contained in:
Pierre Labastie 2023-09-16 11:36:42 +02:00
parent 665150acb4
commit 840030beaa

View File

@ -252,8 +252,10 @@
that need to be applied. Do that now:
</para>
<!-- if using "patch -d", the change of directory is done before
applying -i, so that the patch is not in "..". Use "<" in this case. -->
<screen><userinput>patch -Np1 -i ../MPlayer-1.5-upstream_ffmpg6_fixes-1.patch &amp;&amp;
patch -Np1 -d ffmpeg -i ../ffmpeg-6.0-binutils_2.41-1.patch</userinput></screen>
patch -Np1 -d ffmpeg &lt; ../ffmpeg-6.0-binutils_2.41-1.patch</userinput></screen>
<note>
<para>