Created attachment 178469 [details]
diff against current ports
The reason for this is to allow a complete set of patches for a project to be held in a 3rd party repository on some unnamed source control system and applied as a single set. Possibly within poudriere. (I have not looked at synth but it should wok the same)
Having to apply the .local patches by hand in different directories gets too complex too fast.
Being able to set an environment variable to specify the patche set to apply simplifies incorporating the ports and packages into a 3rd party product.
to quote the patch:
+# EXTRA_PATCH_TREE - where to find extra 'out-of-tree' patches
+# Points to a directory hierarchy with the same layout
+# as the ports tree, where local patches can be found.
+# This allows a third party to keep their patches in
+# some other source control system if needed.
Does nothing if not defined.
See the attached patch which had not changed in several years. (except line numbers).
I personally do like this idea it.
Actually I would even prefer an overlay system but that can be separated and come later (but I'm not portmgr so I let them decide :))
Note that I haven't reviewed the actually code, just the idea.
I started rewriting the patch code during the holidays, I'll try to factor this in.
let me know when you have a diff to see..
for what it's worth the patch included worked for a couple of years but is currently not being used because we tried to do it 'port-by-port' but that is turning out to be a bad idea so we are turning back to this one, and would love to have it upstream.
Mmmm, I assumed as a subscriber to the review you'd have received an email, https://reviews.freebsd.org/D9029
I need to merge in some stuff from freebsd ports this week, so if you are going to replace my version with another, it would be a good time for me to take it in and reduce the number of diffs I have to carry.
I am also considering a way to generate new local diffs in terms of a ports target
1 first apply standard diffs (make patch)
2 make patch-snapshot
3 apply local diffs by hand
4 make local-patches
5 make remove-snapshot
patch-snapshot would copy the whole patch directory to one side in unpackacked and patched form. make local-patches would diff them
A commit references this bug:
Date: Mon Jan 16 16:47:06 UTC 2017
New revision: 431681
Reported by: julian