Call for Help: need script for patching ports tree, building with poudriere

Torsten Zühlsdorff mailinglists at
Fri Nov 20 17:50:14 UTC 2015

Hello Ricky,

> Hello, Decided to not add a config file to keep it simpler, so you'll
> need to edit the variables to your needs below the options. The only
> packages that it may need is portlint, porttools and/or poudriere.
> Let me know what you think or needs improvement.

Thank you very much for your script!

I took a short look at it and have some questions/suggestions:

Line 119/120:
There you're burning an if. I have more skill in bash than in sh - but 
is there no negation possible?

Line 162:
BUILD_LIST="`(cat ${PATCH_FILE} | grep -o '^Index:[ ].*' | sed 's/Index: 
// ; s/Mk.*// ; s/Tools.*// ; s/Templates.*// ; s/Keywords.*//' | grep 
-o -e '.*\/.*\/' | sed 's/.*\/.*\/files\/$// ; s/\/$//' | sort | awk 

This line is relative complicated. Is there any reason not to let svn do 
the work? Like:
BUILD_LIST="`${SVN} status | grep -o -e '.*\/.*\/' | awk '{ print $2 }'`

Your way is faster (and more accurate, since i'm currently too short on 
time), but the other way would allow applying multiple patches and 
manual changes without any problems. But i'm not sure if this is really 

Line 201:
svn revert -R would do the same, both of our approaches have a problem: 
the ignore for example added files.


More information about the freebsd-testing mailing list