LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Patching xcdroast with a wav patch (https://www.linuxquestions.org/questions/linux-software-2/patching-xcdroast-with-a-wav-patch-625714/)

fof3 03-04-2008 05:19 PM

Patching xcdroast with a wav patch
 
I ripped and burned audio files, using xcdroast, but there is no audio playback on my portable cd player.
I was advised to do a wav patch, which I found at
http://www.xcdroast.org/xcdr098/patches/wav.patch
However, after looking at the man pages for diff and patch, I still don't know how to do this patch.

bigrigdriver 03-04-2008 07:28 PM

This is about the shortest set of instructions I've found on how to apply a patch:
Quote:How to apply a patch in linux

Quote:

A patch can be applied by issuing the following command:

patch -p0 < patch-file

This has to be done in the correct directory. Simply look at the patch file, in the first few lines you should see something like this:
--- pixman-remap.h 22 Aug 2005 04:02:33 -0000 1.5
+++ pixman-remap.h 21 Nov 2005 19:46:40 -0000 1.7

This tells you that you will need to find the file pixman-remap.h and change to the directory containing this file before you apply the patch.
I'm assuming the patch file you have has a .gz extension. Run 'zcat <patch file name> | head' to see the top few lines of the file. As the example above says, it should tell you which file it proposes to patch.

Then run 'locate <filename>' using the filename from zcat, and that should give you the entire path to that file. Put the patch file in the same folder, cd into that folder, and as root run the patch command as given above, substituting the patch file name in place of patch-file.


All times are GMT -5. The time now is 05:37 AM.