On Mon, Mar 06, 2000 at 06:24:50PM -0800, Brian Lavender wrote: > I posted this to the list once already, but I don't know if it made it. > > I am trying to compile a debian package from source. I can go to the > package's > web page and get the original source along with the diff. How do I apply the > patch?
The easiest way is to add a deb-src line to your apt sources.list, something like this: deb-src http://http.us.debian.org/debian unstable main contrib non-free Of course, adjust to suit your preferences. Then you can just "apt-get source wu-ftpd" with a reasonably recent version of apt and it'll download, unpack, and patch the sources for you. The second easiest way is to download the wu-ftpd_2.6.0-4.dsc file in addition to the other two, and then use the command "dpkg-source -x wu-ftpd_2.6.0-4.dsc". dpkg-source is in the dpkg-dev package. > If I do a > > $ tar zxf wu-ftpd_2.6.0.orig.tar.gz You forgot to change directories here: $ cd wu-ftpd-2.6.0 > $ zcat wu-ftpd_2.6.0-4.diff.gz | patch -p1 This'll have to change trivially because of the above: $ zcat ../wu-ftpd_2.6.0-4.diff.gz | patch -p1 -- finger for GPG public key.
pgpLxjJFSbSaC.pgp
Description: PGP signature