From owner-freebsd-questions@FreeBSD.ORG Wed May 5 16:30:28 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 DF62716A4D1 for ; Wed, 5 May 2004 16:30:28 -0700 (PDT) Received: from mailout1.informatik.tu-muenchen.de (mailout1.informatik.tu-muenchen.de [131.159.0.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4BC2E43D3F for ; Wed, 5 May 2004 16:30:12 -0700 (PDT) (envelope-from barner@in.tum.de) Received: by zi025.glhnet.mhn.de (Postfix, from userid 1000) id CEC65479C; Thu, 6 May 2004 01:30:53 +0200 (CEST) Date: Thu, 6 May 2004 01:30:53 +0200 From: Simon Barner To: Mikkel Christensen Message-ID: <20040505233053.GG25458@zi025.glhnet.mhn.de> References: <200405051211.22184.mikkel@talkactive.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="XaUbO9McV5wPQijU" Content-Disposition: inline In-Reply-To: <200405051211.22184.mikkel@talkactive.net> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at informatik.tu-muenchen.de cc: freebsd-questions@freebsd.org Subject: Re: Patching ports 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: Wed, 05 May 2004 23:30:29 -0000 --XaUbO9McV5wPQijU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, > How do I add a patch to a certain port? Usually I would use the "patch" > program to add the patch to the source code. But when using ports the > system begins compiling right after rewtrieving the source. Thus not > giving me a change to apply the patch. I've seen a folder named "files" > in which patches part of the port seem to be located. But just adding > the patchfile here apperently wont do much good. I've tried using the > "PATCHFILES" variable in the Makefile but then the system complains the > my patchfile does not have a matching MD5 hash. Does anyone know how to > handle this issue? You can use ``make patch'' to extract the port and apply existing FreeBSD patches to it. Now you can create your own local patches (relative to ${WRKDIR} which is /usr/ports///work/ by default), and put them into into the files subdirectory of your port. Please note, that the FreeBSD port system will ignore patches that do not start with the ``patch-'' prefix (you could use the EXTRA_PATCHES macro to work around or exploit that fact) (``grep'' the ports tree for examples) You can find more information on how to work on the ports collection in the porters handbook: http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/index.html file:///usr/share/doc/en_US.ISO8859-1/books/porters-handbook/index.html One last side remark: If you think that your patches are useful for either the FreeBSD or the whole open source community, it would be really nice if you sent them as a problem report (send-pr(1), see the porter's handbook) or to the author of the software. Regards, Simon --XaUbO9McV5wPQijU Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAmXktCkn+/eutqCoRAjIGAJ9Wd/6Dcaid+MMUe6GI1An3ZimYUgCeNqIf ycPJSwt2Saka+fdyfWYIqkM= =cQVU -----END PGP SIGNATURE----- --XaUbO9McV5wPQijU--