From owner-freebsd-doc@FreeBSD.ORG Fri Jul 15 07:35:23 2005 Return-Path: X-Original-To: doc@FreeBSD.org Delivered-To: freebsd-doc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 65E7D16A41C for ; Fri, 15 Jul 2005 07:35:23 +0000 (GMT) (envelope-from pav@FreeBSD.org) Received: from e0-a11.b1.lan.prg.vol.cz (e0-a11.b1.lan.prg.vol.cz [195.122.204.152]) by mx1.FreeBSD.org (Postfix) with ESMTP id B912343D45 for ; Fri, 15 Jul 2005 07:35:22 +0000 (GMT) (envelope-from pav@FreeBSD.org) Received: from pav.hide.vol.cz (localhost [127.0.0.1]) by e0-a11.b1.lan.prg.vol.cz (8.13.3/8.13.1) with ESMTP id j6F7ZK3P092859; Fri, 15 Jul 2005 09:35:20 +0200 (CEST) (envelope-from pav@FreeBSD.org) Received: (from pav@localhost) by pav.hide.vol.cz (8.13.3/8.13.1/Submit) id j6F7ZKUM092858; Fri, 15 Jul 2005 09:35:20 +0200 (CEST) (envelope-from pav@FreeBSD.org) X-Authentication-Warning: pav.hide.vol.cz: pav set sender to pav@FreeBSD.org using -f From: Pav Lucistnik To: Woody Carey In-Reply-To: References: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-JIAXK63D94IsXYRf7R2y" Date: Fri, 15 Jul 2005 09:35:19 +0200 Message-Id: <1121412919.92732.2.camel@pav.hide.vol.cz> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 FreeBSD GNOME Team Port Cc: doc@FreeBSD.org Subject: Re: docs/82705: [PATCH] porters handbook - 4.6 patching - add note for context l X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pav@FreeBSD.org List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jul 2005 07:35:23 -0000 --=-JIAXK63D94IsXYRf7R2y Content-Type: text/plain; charset=ISO8859-2 Content-Transfer-Encoding: quoted-printable Woody Carey p=ED=B9e v =E8t 14. 07. 2005 v 22:10 -0700: > Key words: "if you generate your patch from WRKDIR". To do this is not=20 > explicitly stated > in the porters handbook. Maybe add it? Section 4.4 Patching have this sentence: All patches should be relative to WRKSRC (generally the directory your port's tarball unpacks itself into, that being where the build is done). That's exactly what I had on mind. Maybe I'll change "should" to "must". > Slow Porting: >=20 > Write your port makefile in stages: > 1) write it to 'make fetch' the tarball > 2) write the part that does the 'extract' > 3) Now hack on it in WRKDIR and generate your diffs from their, so that y= our=20 > patches will apply cleanly. Write your 'patch' target. (or do-patch or=20 > $PATCH or whatever) > 4) Now add your 'configure', 'build' and 'install' stages incrementally. That's how every sane people do it, yes. But we're not writing How-To, but a comprehensive Handbook which documents all possible aspect of ports infrastructure. So this does not fit much in now. --=20 Pav Lucistnik On real UNIX, /usr/bin/more prints -More-. --=-JIAXK63D94IsXYRf7R2y Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQBC12c3ntdYP8FOsoIRApOVAKCQW3pV2j1Zj7+oNFqwDSUkEniykACgs4jU MaX2DhUvLYTX8rq5R2RZEkQ= =Ze5v -----END PGP SIGNATURE----- --=-JIAXK63D94IsXYRf7R2y--