HowTo: apply a "patch" ?!

Magnus Therning magnus at
Tue May 17 05:01:15 UTC 2005

On Tue, May 17, 2005 at 06:26:31AM +0200, Vincent Trouilliez wrote:
>On Tue, 2005-05-17 at 04:56 +0200, Vincent Trouilliez wrote:
>> I went to file a bug for the "file-roller" in Hoary, but I found a bug
>> report already about it. Nice thing is that someone there offered a
>> "patch" to cure the problem :
>> Newb question, of course... how the hell does one apply "patches".
>Okay, I made some progress. Seems that the "patch" is intended to be
>used by the "patch" command, which will be in charge of updating the C
>source file. Problem... I searched Synaptic for "roller". I found the
>file-roller program, but not the the source code ! :o( I do have the
>"source" repositories enabled, but still can't find it.  I thought I
>could maybe just get some source from the programs website, but
>shocking, can't find it anywhere at  nor
> , can't believe it :-/

I don't know if synaic can handle sources (personally I think it'd be a
good idea if it didn't). Use 'apt-get' directly from a command line like

 $ apt-get source file-roller

It will download a few files and create a directory with the sources and
control files.

You are corrct about the patch program. Read the man page so you
understand the -p command line argument, you'll probably need it.

Then skim through the Debian New Maintainer's Guide to find out how to
build a package. I don't think you need to worry too much about the
first parts of that document, since you're only interested in applying a
patch and building, not in packaging software from scratch. Basically
the following command executed in the package's top directory (the dir
where 'debian' lives) should set you off in the right direction:

 $ dpkg-buildpackage -rfakeroot

Hope it helps...


Magnus Therning                    (OpenPGP: 0xAB4DFBA4)
magnus at

Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.

I have steadily endeavored to keep my mind free, so as to give up any
hypothesis, however much beloved -- and I cannot resist forming one
on every subject -- as soon as facts are shown to be opposed to it.
     -- Charles Darwin (1809-1882)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <>

More information about the ubuntu-users mailing list