From owner-freebsd-questions@FreeBSD.ORG Fri Oct 29 19:29:45 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C89316A4CE for ; Fri, 29 Oct 2004 19:29:45 +0000 (GMT) Received: from pd2mo2so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4432643D49 for ; Fri, 29 Oct 2004 19:29:45 +0000 (GMT) (envelope-from flowers@nekulturny.org) Received: from pd2mr8so.prod.shaw.ca (pd2mr8so-qfe3.prod.shaw.ca [10.0.141.11])2004)) with ESMTP id <0I6D00K1F25L0560@l-daemon> for questions@freebsd.org; Fri, 29 Oct 2004 13:29:45 -0600 (MDT) Received: from pn2ml5so.prod.shaw.ca ([10.0.121.149]) by pd2mr8so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0I6D0058M25K5M10@pd2mr8so.prod.shaw.ca> for questions@freebsd.org; Fri, 29 Oct 2004 13:29:45 -0600 (MDT) Received: from procyon.nekulturny.org (S0106000c41b2b9a3.cg.shawcable.net [68.144.45.143]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0I6D00GF825KRL@l-daemon> for questions@freebsd.org; Fri, 29 Oct 2004 13:29:44 -0600 (MDT) Received: from procyon.nekulturny.org (localhost.nekulturny.org [127.0.0.1]) i9TJTiE1004268; Fri, 29 Oct 2004 13:29:44 -0600 (MDT envelope-from flowers@nekulturny.org) Received: (from flowers@localhost) by procyon.nekulturny.org (8.12.10/8.12.10/Submit) id i9TJThBV004267; Fri, 29 Oct 2004 13:29:43 -0600 (MDT envelope-from flowers) Date: Fri, 29 Oct 2004 13:29:43 -0600 From: Danny MacMillan In-reply-to: <8292450b041029074678893664@mail.gmail.com> To: CHris Rich Message-id: <20041029192943.GA741@procyon.nekulturny.org> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline References: <8292450b041029074678893664@mail.gmail.com> User-Agent: Mutt/1.4.2.1i cc: questions@freebsd.org Subject: Re: Using extra patches with the ports collection and qmail-mysql X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Oct 2004 19:29:45 -0000 On Fri, Oct 29, 2004 at 08:46:18AM -0600, CHris Rich wrote: > Here's the story... > > I'm trying to compile qmail-mysql with a new patch that I have found. > We've got a test mail server set up explicitly for trying this. Did > some googling and asked a question on here earlier about how exactly > you get a patch to compile with the ports collection. The answer was > to put into the files folder of the port you are trying to install. > Well qmail-mysql did not have the particular directory but after > looking into the qmail directory I found such a folder. (This is after > doing a make fetch WITH_BIG_CONCURRENCY=yes and make extract in the > qmail-mysql port). We put our patch into the > /usr/ports/mail/qmail/files directory and then did a make install. > Once that was finished and finishing the other tasks of getting qmail > to work we find that the patch didn't compile. It didn't do what we > thought it would do. > > So my question is this...what did we do wrong? Should the patch have > been somewhere else? This is the patch we were trying to use: > http://www3.sympatico.ca/humungusfungus/code/validrcptto.html > Version of FreeBSD is 5.2.1. > > Thanks in advance I'm no expert on this, but I'll give it a go... I believe the name of the patch is significant. It =must= be called patch-somethingorother. I would follow the naming conventions of the patches already present. (I believe the patches are applied in lexical filename order). I don't know if you've named the patch correctly or not. Also, it seems that the patch needs to be adjusted to work within the context of its location in the ports tree. The very first things I see when I look at the patch are references to files in the relative path ../qmail-1.03-patched/ Since it would seem that neither that directory nor the files within exist when FreeBSD applies the patches, I doubt the patch is properly applied. :) As long as all other things are equal (but remember, Spock said "Things are not equal,") you should just be able to adjust the paths to the patched files to match their actual location. If things are not equal, you might have to make other changes to the Makefile patch (in particular) to get it to play nicely in the FreeBSD environment. It shouldn't be too hard, the patch looks quite compact. Disclaimer: This could all be complete nonsense, and probably is. -- Danny