Comment 13 for bug 287894

Revision history for this message
mnemonic (johnny.mnemonic) wrote :

_How to apply the patch and recompile dosbox_

Packages that are needed (install via synaptic, adept or apt-get):
build-essential devscripts fakeroot

Open up a terminal. Create a directory somewhere and change to the newly created directory.
Execute the following commands (don't type the Dollar sign!):
$ sudo apt-get build-dep dosbox
$ apt-get source dosbox

Get the patch from the link above or use the prepared one that is attached to this post. I assume that the file is named "dosbox-0.72-evdev.patch".
Execute:
$ patch -p0 < dosbox-0.72-evdev.patch

You just patched dosbox. Now on to the build.

Change to the subdirectory "dosbox-0.72".
Execute:
$ debchange --nmu
A command line editor should open up. You don't need to type something. Just save and exit (if the editor is vim, type ":wq" followed by return).

Execute:
$ sudo dpkg-buildpackage

The build process should now start. If it finished successfully, you will find the generated packed in the directory above (name should be "dosbox_0.72-1.1build1.1_amd64.deb" or something like that, depending on your architecture).

Install the package via
$ sudo dpkg -i dosbox_0.72-1.1build1.1_amd64.deb
Change the name of the .deb file in the command above to meet the name of the one you just built.

Hope that helps.

Regards