Bug 99173 - [patch] replace gnu patch with a bsd-licensed one.
Summary: [patch] replace gnu patch with a bsd-licensed one.
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: gnu (show other bugs)
Version: 7.0-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-19 10:20 UTC by Andreas Kohn
Modified: 2014-09-19 16:24 UTC (History)
1 user (show)

See Also:


Attachments
freebsd-lw-patch.diff (135.89 KB, patch)
2006-06-19 10:20 UTC, Andreas Kohn
no flags Details | Diff
file.diff (637 bytes, patch)
2006-06-19 10:20 UTC, Andreas Kohn
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kohn 2006-06-19 10:20:13 UTC

FreeBSD still uses GNU's version of patch, while other *BSD have alrerady switched to using larry walls version that is available under a BSD-license. 

The attached patch uses the version of lwpatch that dragonfly uses, as there were no code changes necessary I did not update or add $FreeBSD$ lines. (Wasn't sure if there are needed in this case)

GNU patch still gets installed as gpatch, with the man page renamed accordingly.

The second patch attached changes how usr.bin/awk is calling patch. The chosen solution works for both GNU and lwpatch.
Note that I think patch should be made a build tool, as you cannot build a world with !GNU patch currently. Another, possibly better solution would be to remove the patching in usr.bin/awk/Makefile.
Comment 1 Pedro F. Giffuni freebsd_committer freebsd_triage 2014-09-19 16:24:28 UTC
This was done in r253689 and preceding commits.
BSD-licensed patch is shipping since FreeBSD 10.

The awk patching change is not required anymore either.

Thanks for keeping the hope and pushing this all this time!.