The problem here is that when building the repository from scratch,
there is no way for the build scripts to know that tcl and tk needs to
be built before git. The tcl and tk must be built before git because if
other package would have makedepends="git-gui" the would the build fail
if tcl and tk is not built at that point.

The problem is not the patch itself but the problem is in APKBUILD. We
need a way to say that subpackage git-gui has depends of tcl and tk.