From owner-freebsd-doc@FreeBSD.ORG Tue Jun 1 04:40:03 2010 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B86DB106564A for ; Tue, 1 Jun 2010 04:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7AFE68FC1C for ; Tue, 1 Jun 2010 04:40:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o514e3TM053793 for ; Tue, 1 Jun 2010 04:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o514e33p053792; Tue, 1 Jun 2010 04:40:03 GMT (envelope-from gnats) Resent-Date: Tue, 1 Jun 2010 04:40:03 GMT Resent-Message-Id: <201006010440.o514e33p053792@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Aldis Berjoza Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C7FF01065673 for ; Tue, 1 Jun 2010 04:34:45 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id B6C728FC14 for ; Tue, 1 Jun 2010 04:34:45 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o514YjuP073667 for ; Tue, 1 Jun 2010 04:34:45 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o514YjYs073666; Tue, 1 Jun 2010 04:34:45 GMT (envelope-from nobody) Message-Id: <201006010434.o514YjYs073666@www.freebsd.org> Date: Tue, 1 Jun 2010 04:34:45 GMT From: Aldis Berjoza To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: docs/147268: Imporve Porters Handbook section 4.4 - Patching X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jun 2010 04:40:03 -0000 >Number: 147268 >Category: docs >Synopsis: Imporve Porters Handbook section 4.4 - Patching >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Jun 01 04:40:03 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Aldis Berjoza >Release: >Organization: >Environment: >Description: While original Porters Handbooks is good, I faced 1 problem yesterday, when I was creating patch (4.4 Patching) for freeglut 2.6 and couldn't solve this for few hours. The problem is that if file name that I want to patch contains underscore (_) patch needs to have two underscores instead. For example I want to patch src/freeglut_joystick.c patch should be named patch-src-freeglut__joustick.c I'm sure that if such info was available on porters handbook, it would help many other porters :) Also It would be very nice if Section 4.4 would contain info about make makepatch :) porter can copy original files, that he wants to patch to same filename with .orig file extension, modify original file and then in ports directory run make make patch. This will create patch files for all *.orig files :) I think such information would be super helpful. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: