docs/147268: Imporve Porters Handbook section 4.4 - Patching

Aldis Berjoza aldis at bsdroot.lv
Tue Jun 1 04:40:03 UTC 2010


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



More information about the freebsd-doc mailing list