mattisking
July 28th, 2006, 04:10 PM
I'm playing around trying to get the latest version of libipoddevice from cvs (0.4.6 - not released yet) but I can't get anywhere in building it. It always fails somewhat cryptically in the ./autogen.sh. I thought maybe there are patches involved... maybe something our developers have done to get things working for Ubuntu. So, using this as an example (but I'd like to know generally as well), how do I apply patches?
$ sudo apt-get build-dep libipoddevice0
$ sudo apt-get source libipoddevice0
At this point I can usually just:
$ ./autogen.sh --prefix=/usr
$ make
$ sudo make install
I can certainly do it with this package, but not from cvs. So, in general, I see there is always (in the apt-get source) directories a "debian" directory that contains a patches directory and a bunch of files like compat, changelog, control, ... etc.
Does following the build process ./configure && make && sudo make install for a package obtained from apt-get source with a debian subdirectory as described apply the patches automatically as part of the configure or make or are the steps to apply the patches done separately before or during the build process? If they aren't done for you using the general process, how do you apply patches? Can they all be applied (there are multiple .patch files in the patches directory) at once or one at a time?
Let's say I got libipodevice0 from apt-get source and then also from CVS... How could I merge the patches from source (assuming they weren't applied upstream) with what I got from CVS? Of course I realize I could manually do it but is there a better/standard way? What utilities need to be used?
Thanks!
Update: I'm finding this thread to be very helpful: http://www.ubuntuforums.org/showthread.php?t=200762&highlight=applying+patches
$ sudo apt-get build-dep libipoddevice0
$ sudo apt-get source libipoddevice0
At this point I can usually just:
$ ./autogen.sh --prefix=/usr
$ make
$ sudo make install
I can certainly do it with this package, but not from cvs. So, in general, I see there is always (in the apt-get source) directories a "debian" directory that contains a patches directory and a bunch of files like compat, changelog, control, ... etc.
Does following the build process ./configure && make && sudo make install for a package obtained from apt-get source with a debian subdirectory as described apply the patches automatically as part of the configure or make or are the steps to apply the patches done separately before or during the build process? If they aren't done for you using the general process, how do you apply patches? Can they all be applied (there are multiple .patch files in the patches directory) at once or one at a time?
Let's say I got libipodevice0 from apt-get source and then also from CVS... How could I merge the patches from source (assuming they weren't applied upstream) with what I got from CVS? Of course I realize I could manually do it but is there a better/standard way? What utilities need to be used?
Thanks!
Update: I'm finding this thread to be very helpful: http://www.ubuntuforums.org/showthread.php?t=200762&highlight=applying+patches