From owner-freebsd-questions Mon Nov 16 15:49:57 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA07221 for freebsd-questions-outgoing; Mon, 16 Nov 1998 15:49:57 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.144.32]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA07214 for ; Mon, 16 Nov 1998 15:49:53 -0800 (PST) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.8.8/8.8.8) with ESMTP id PAA07576; Mon, 16 Nov 1998 15:49:11 -0800 (PST) (envelope-from dwhite@resnet.uoregon.edu) Date: Mon, 16 Nov 1998 15:49:10 -0800 (PST) From: Doug White To: Bootsrapa Limanond cc: freebsd-questions@FreeBSD.ORG Subject: Re: patch and re-build In-Reply-To: <364CB2BC.20EC@agen.tamu.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 13 Nov 1998, Bootsrapa Limanond wrote: > I would like to apply a patch to a source tree and rebuild a port. > The patch is only for a file in the source tree. What I did was I > applied the patch, using `patch' command and ran `make'. It looked like > `make' removed my source tree, created a new one based on the .tar.gz > file in the `distfiles' directory, and spent a couple of hours building > the `old' port from scratch. > > Does `make' always unpack the `.tar.gz' file every time? Is there a way > around this? Better yet, what is a correct way to build from a patched > source tree? No, the ports system will preserve the work/ directory, unless the dot files in work (.install_done, .build_done, etc.) are missing, in which case the Makefile may clean up. If you're going to modify ports by hand, do 'make patch' to extract and patch the portinitially, then apply your changes, then do 'make build' and/or 'make install'. Doug White Internet: dwhite@resnet.uoregon.edu | FreeBSD: The Power to Serve http://gladstone.uoregon.edu/~dwhite | www.freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message