[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to apply patches without a full source tree?
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: How to apply patches without a full source tree?
- From: "Damon McMahon" <inst_karma_(_at_)_hotmail_(_dot_)_com>
- Date: Mon, 21 Jun 2004 23:47:02 +1000
I'm wondering if there is a reliable way for a non-developer such as I to
figure out what parts of the source are required to recompile userland code
after applying a patch?
My situation is an old Pentium-75 box acting as a firewall for a small
workgroup. Due to lack of HDD space and the general bad-ideaness of having a
complete source tree sitting on such a box, I want to be able to extract
only the necessary parts of the source in order to patch and rebuild.
With most patches I can do this, but every 1 in 6 or so seems to have
dependencies which I can't work out. In this case it was one of the cvs
patches [eventually compiled by progressivley extracting more and more of
the source until it built] and the 009_kerberos.patch [still no luck].
From my reading of the anoncvs FAQ the only workaround seems to be to
extract the complete source from src.tar.gz to a CD-R and then perform a
% mount -t union -o -b /mnt/cdrom /usr/src
I guess if I have to do this then I will, but is there an easy way to
predict the dependencies from a cursory examination of the contents of the
Many thanks in advance for any wisdom provided.
Get a Virgin Credit Card and win an adventure:
Visit your host, monkey.org