How to compile Ubuntu packages (patching?) ???

Vincent Trouilliez vincent.trouilliez at modulonet.fr
Sun Feb 19 06:01:16 UTC 2006


On Sun, 2006-02-19 at 00:45 -0500, Phillip Susi wrote:
> Yuki Cuss wrote:
> > Actually, apt-get source applies them for you! Note when you download:
> > 
> > dpkg-source: extracting gqview in gqview-2.0.1
> > dpkg-source: unpacking gqview_2.0.1.orig.tar.gz
> > dpkg-source: applying ./gqview_2.0.1-1ubuntu1.diff.gz
> > celtic at xyrias:~/as$
> > 
> > It tells you where it will extract it, actually goes ahead and does it, 
> > then applies the diff patch.
> > 
> 
> Aye, apt-get source fetches the original tarball, the diff, extracts the 
> tarball, and applies the diff to it for you.  If you really wanted to do 
> that by hand, the typical way to do so is to extract the original 
> tarball, cd into the extracted directory, then patch -p1 < ../foo.diff.


Thanks Phillip, thanks Yuki ! 

Apt-get does indeed say that the patch is applied. Being reassured, I
re-downloaded a fresh copy of the source, and tried to compile it
straight away, without any of my modifications... it worked !
So I replaced the 4 icons that I wanted to change, and tried again... it
failed again ! It was complaining about one of the 4 icons, I removed it
(put the original back in place ie), leaving the other 3 icons though,
and it compiled ! so it's quite straight-forward really, but I don't
have any idea why it is having problems with that other icon. It's the
one called "icon.xpm" in the /src/icon directory. I replaced it with the
icon "gqview.png", found at the root of the source directory. I used
Gimp to convert from png to xpm. Maybe there was a problem with the
conversion, no idea ! :o(

--
Vince





More information about the ubuntu-users mailing list