make makepatch

Jason E. Hale jhale at
Fri Oct 28 02:07:55 UTC 2016

On Thu, Oct 27, 2016 at 2:28 AM, Jochen Neumeister <joneum at> wrote:
> On 27.10.2016 08:08, Franco Fichtner wrote:
>>> On 27 Oct 2016, at 7:53 AM, Jochen Neumeister <joneum at> wrote:
>>> No, make makepatch delete the patches into /files and:
>> If there are no patches in files/ maybe you have no patches applied
>> in the work/ dir?  Does running "make patch" before makepatch help?
> Hm that is interesting.
> make patch: there are 3 patches into /file
> make makepatch: now the 3 files are removed, but:
> make makepatch
> Generated patch-wpagui.cpp
> The previous patches have been placed here:
> /usr/home/joneum/dev/ports/net/wpa_gui/work/.makepatch-tmp/archived-patches
> Now I'm confused. After "make patch" and "make makepatch", there is only
> one "new" patch in files:
> /home/joneum/dev/ports/net/wpa_gui/files # ls
> patch-wpagui.cpp
> and in work/.makepatch-tmp/archived-patches: # ls
> patch-os_unix.c  patch-wpa_ctrl.c patch-wpagui.cpp
> Is this now right, that i can only use the new patch in /files? With
> "make clean" i delete the work folder and the old patches.

Here is the problem:

The port redefines WRKSRC by setting WRKSRC_SUBDIR=
wpa_supplicant/wpa_gui-qt4, but the two patches that did not get
generated are outside of WRKSRC.  The easiest thing to do is:

1) clean everything up
2) run "make patch"
3) add PATCH_WRKSRC= ${WRKDIR}/${DISTNAME} to the port Makefile
4) run "make makepatch"

That should regenerate the patches and subsequently rename them.
Remind the committer to do "svn mv" to rename the patches instead of
deleting and re-adding them.


More information about the freebsd-ports mailing list