Patching a source package
Anyone have a pointer or notes on patching a debian source package and
rebuiding?
I want to fix a broken package. I have notes from patching a source
package in the past, but they don't agree with what I'm seeing when I
try it now or from what I can find on google.
Can my google skills be that bad? All I could find was this:
http://lists.fivecolleges.net/pipermail/fclug/2003-August/003699.html
And here's my notes, which seem incomplete now:
apt-get source will download a few files, so it's nice to start in a new dir
$ mkdir <package> && cd <package>
$ apt-get source <package>
$ cd <package>-<version)
(Modify the source as you like.)
now update the package's version and build
$ dch -v 0.9.3-2+local.1
$ debuild -rfakeroot -uc -us
$ cd ..
# dpkg -i <package>-0.9.3-2+local.1_i386.deb
very simple.
But when I try it now I don't see the sources uncompressed.
moseley@bumby:~/libquicktime$ apt-get source libquicktime1
Reading Package Lists... Done
Building Dependency Tree... Done
Need to get 673kB of source archives.
Get:1 http://http.us.debian.org unstable/main libquicktime 0.9.2release-5 (dsc) [883B]
Get:2 http://http.us.debian.org unstable/main libquicktime 0.9.2release-5 (tar) [664kB]
Get:3 http://http.us.debian.org unstable/main libquicktime 0.9.2release-5 (diff) [7734B]
Fetched 673kB in 8s (77.1kB/s)
dpkg-source: extracting libquicktime in libquicktime-0.9.2release
moseley@bumby:~/libquicktime$ ls
libquicktime-0.9.2release libquicktime_0.9.2release-5.dsc
libquicktime_0.9.2release-5.diff.gz libquicktime_0.9.2release.orig.tar.gz
moseley@bumby:~/libquicktime$ ls libquicktime-0.9.2release/dist
fps-fix.diff libquicktime-lib64.diff optimize.diff
libdv-fix.diff libquicktime-rtjpeg.diff rtjpeg-fix.diff.off
libquicktime-0.9.2.tar.gz mmx-fix.diff shlib-ver.diff
Anyway, that pipermail archvie I found talks about editing the .orig
file. Won't that avoid the patches in the Debian source package?
What I need to fix is just the configure script, I think. Here's the
bug report <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=252446>.
The library is reporting:
Cannot open plugin directory ${exec_prefix}/lib/libquicktime
which seems like a compile time problem -- perhaps a quoting issue in
Makefile.am.
--
Bill Moseley
moseley@hank.org
Reply to: