From owner-freebsd-questions@FreeBSD.ORG Tue Sep 9 20:00:58 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 732971065678 for ; Tue, 9 Sep 2008 20:00:58 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from be-well.ilk.org (dsl092-078-145.bos1.dsl.speakeasy.net [66.92.78.145]) by mx1.freebsd.org (Postfix) with ESMTP id 3B4868FC1A for ; Tue, 9 Sep 2008 20:00:58 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: by be-well.ilk.org (Postfix, from userid 1147) id 454F428440; Tue, 9 Sep 2008 16:00:57 -0400 (EDT) To: "Linda Messerschmidt" References: <237c27100809091212t3d840b02k4e64e8d718f7ff8d@mail.gmail.com> From: Lowell Gilbert Date: Tue, 09 Sep 2008 16:00:57 -0400 In-Reply-To: <237c27100809091212t3d840b02k4e64e8d718f7ff8d@mail.gmail.com> (Linda Messerschmidt's message of "Tue\, 9 Sep 2008 15\:12\:48 -0400") Message-ID: <44tzcphyx2.fsf@be-well.ilk.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: Local patches to ports? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2008 20:00:58 -0000 "Linda Messerschmidt" writes: > Hello, > We use Apache 1.3 on FreeBSD and for a long time, we have maintained our own > build process separate from the ports collection because we have some local > patches. > > These are accounting patches, of interest to no one but us, so I have no > chance of getting anyone upstream to ever adopt them, but they are very > important to us. > > After our last upgrade to 7-STABLE (7.1-PRERELEASE) our local build process > started producing broken binaries but the port has patches and one of them > makes it work. So, this seems like a good time to replace our build process > with the ports collection. > > What's the best way to preserve our local patches and our custom > configuration flags, and get them to apply to each new update of the port? You can drop patches into the "files" subdirectory of the port, and they will get applied when the port is built. They will not get overwritten by cvsup or csup. I believe that in most usages portsnap won't touch them anyway. There are two ways to handle the configuration flags. One is to make up patches that modify the makefile (or configure script, or auto-whatever script, etc.). The other is to put in a Makefile.local in the directory, which will get included by the ports makefiles. The latter is usually easier. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/