All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] git-gui (MinGW): make use of MSys2's msgfmt
@ 2017-07-25  8:35 Johannes Schindelin
  2017-07-25 19:20 ` Junio C Hamano
  2017-07-26 16:45 ` Lars Schneider
  0 siblings, 2 replies; 3+ messages in thread
From: Johannes Schindelin @ 2017-07-25  8:35 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano, Pat Thoyts, Lars Schneider

When Git for Windows was still based on MSys1, we had no gettext, ergo
no msgfmt, either. Therefore, we introduced a small and simple Tcl
script to perform the same task.

However, with MSys2, we no longer need that because we have a proper
msgfmt executable. Plus, the po2msg.sh script somehow manages to hang
when run in parallel in Git for Windows' SDK (symptom: the Continuous
Testing tasks timing out).

Two reasons to use real msgfmt.exe instead.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
---

	This hopefully fixes the hangs with the Windows builds triggered
	by Travis. It was a tough one to figure out originally, and it is
	my fault for prioritizing other patch contributions of this one;
	Git for Windows has been carrying this patch since April 6th, 2015.

	Pat, I still have a couple of Pull Request open in your repository
	at https://github.com/patthoyts/git-gui/pulls/dscho that await any
	reaction since October 14th last year. Please let me know when you
	are ready to accept code contributions again. In the meantime, I
	will send git-gui patches to this here mailing list, Cc:ing you,
	and hoping that Junio will take the patches.

Published-As: https://github.com/dscho/git/releases/tag/git-gui-msgfmt-on-windows-v1
Fetch-It-Via: git fetch https://github.com/dscho/git git-gui-msgfmt-on-windows-v1

 git-gui/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/git-gui/Makefile b/git-gui/Makefile
index fe30be38dc8..918a8de3691 100644
--- a/git-gui/Makefile
+++ b/git-gui/Makefile
@@ -161,7 +161,9 @@ ifeq ($(uname_S),Darwin)
 	endif
 endif
 ifneq (,$(findstring MINGW,$(uname_S)))
+ifeq ($(shell expr "$(uname_R)" : '1\.'),2)
 	NO_MSGFMT=1
+endif
 	GITGUI_WINDOWS_WRAPPER := YesPlease
 	GITGUI_RELATIVE := 1
 endif

base-commit: 5eada8987e79f216f2002a3cd991360a50cd577c
-- 
2.13.3.windows.1.13.gaf0c2223da0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] git-gui (MinGW): make use of MSys2's msgfmt
  2017-07-25  8:35 [PATCH] git-gui (MinGW): make use of MSys2's msgfmt Johannes Schindelin
@ 2017-07-25 19:20 ` Junio C Hamano
  2017-07-26 16:45 ` Lars Schneider
  1 sibling, 0 replies; 3+ messages in thread
From: Junio C Hamano @ 2017-07-25 19:20 UTC (permalink / raw)
  To: Johannes Schindelin; +Cc: git, Pat Thoyts, Lars Schneider

Johannes Schindelin <johannes.schindelin@gmx.de> writes:

> 	Pat, I still have a couple of Pull Request open in your repository
> 	at https://github.com/patthoyts/git-gui/pulls/dscho that await any
> 	reaction since October 14th last year. Please let me know when you
> 	are ready to accept code contributions again. In the meantime, I
> 	will send git-gui patches to this here mailing list, Cc:ing you,
> 	and hoping that Junio will take the patches.

I'll try to fetch the latest from Pat, apply this on top and queue
it in my tree in the meantime, but that is a lot more involved than
simply applying a single patch to a new branch and merging it to
'pu', so it will be done later in today's integration cycle after I
handle other topics.

Thanks for working on this.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] git-gui (MinGW): make use of MSys2's msgfmt
  2017-07-25  8:35 [PATCH] git-gui (MinGW): make use of MSys2's msgfmt Johannes Schindelin
  2017-07-25 19:20 ` Junio C Hamano
@ 2017-07-26 16:45 ` Lars Schneider
  1 sibling, 0 replies; 3+ messages in thread
From: Lars Schneider @ 2017-07-26 16:45 UTC (permalink / raw)
  To: Johannes Schindelin; +Cc: git, Junio C Hamano, Pat Thoyts


> On 25 Jul 2017, at 10:35, Johannes Schindelin <johannes.schindelin@gmx.de> wrote:
> 
> When Git for Windows was still based on MSys1, we had no gettext, ergo
> no msgfmt, either. Therefore, we introduced a small and simple Tcl
> script to perform the same task.
> 
> However, with MSys2, we no longer need that because we have a proper
> msgfmt executable. Plus, the po2msg.sh script somehow manages to hang
> when run in parallel in Git for Windows' SDK (symptom: the Continuous
> Testing tasks timing out).
> 
> Two reasons to use real msgfmt.exe instead.
> 
> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
> ---
> 
> 	This hopefully fixes the hangs with the Windows builds triggered
> 	by Travis. It was a tough one to figure out originally, and it is

Awesome :-) Thanks for digging into this problem!

- Lars


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-07-26 16:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-25  8:35 [PATCH] git-gui (MinGW): make use of MSys2's msgfmt Johannes Schindelin
2017-07-25 19:20 ` Junio C Hamano
2017-07-26 16:45 ` Lars Schneider

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.