From owner-freebsd-questions@FreeBSD.ORG Mon Oct 20 05:39:13 2003 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 7C84C16A4B3 for ; Mon, 20 Oct 2003 05:39:13 -0700 (PDT) Received: from zim.0x7e.net (zim.0x7e.net [203.38.184.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 930A143F75 for ; Mon, 20 Oct 2003 05:39:12 -0700 (PDT) (envelope-from listone@deathbeforedecaf.net) Received: from goo.0x7e.net ([203.38.184.164] helo=goo) by zim.0x7e.net with smtp (Exim 3.36 #1) id 1ABZIH-0004Dq-00; Mon, 20 Oct 2003 22:07:53 +0930 Message-ID: <005801c39706$fb66eb90$a4b826cb@goo> From: "Rob" To: "Jamie" , References: <20030918003419.I20651-100000@floyd.gnulife.org> Date: Mon, 20 Oct 2003 22:07:52 +0930 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4927.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 Subject: Re: Patching source in a port 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: Mon, 20 Oct 2003 12:39:13 -0000 Any patches named files/patch-* in the port's directory will be applied as the port is built. So you should be able to add your patch and do a 'make clean build' to create patched binaries. You can also 'make patch' to just apply the patches, then inspect the results under the work directory. Have a look at file:/usr/share/doc/en/books/porters-handbook/index.html for all the details. ----- Original Message ----- From: "Jamie" Subject: Patching source in a port > > > Is it possible to patch the source code in a port, and then make, make > install again to get it to install the patched code? I tried applying the > sendmail patch. I had previously installed 8.12.9 from ports. > > This is basically what I did: > > cd /usr/ports/mail/sendmail-sasl/work/sendmail-8.9.12/sendmail > > patch < /path/to/patch > > -patch confirms that it went successfully. > > -I also edited version.c and changed the version number. > > cd ../../../ > > make PREFIX=/usr > make PREFIX=/usr install > > But the patch doesn't seem to be taking effect. After restarting > sendmail I: > > sendmail -bt -d0.11 < /dev/null > > and it tells me that it is still version 8.12.9. > > Am I doing something obviously wrong? The compilation seemed to run > successfully. > > > - Jamie > > > > > > "A friend is someone who lets you have total freedom to be yourself." > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >