Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Jun 2010 04:34:45 GMT
From:      Aldis Berjoza <aldis@bsdroot.lv>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   docs/147268: Imporve Porters Handbook section 4.4 - Patching
Message-ID:  <201006010434.o514YjYs073666@www.freebsd.org>
Resent-Message-ID: <201006010440.o514e33p053792@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006010434.o514YjYs073666>