git/list[1] front-page[2] threads[3] people[4] search[5] about
 

NO_MSGFMT

From
DTDominik Mahrer (Teddy) <teddy@teddy.ch>
Date
Aug 12, 2017, 13:44 UTC
Message-ID
<b6b12040-100f-5965-6dfd-344c84dddf96@teddy.ch>
Hi all

I'm compiling git from source code on a mashine without msgfmt. This leads to compile errors. To be able to compile git I created a patch that at least works for me:

diff -Naur ../git-2.14.1.orig/Makefile ./Makefile --- ../git-2.14.1.orig/Makefile 2017-08-09 21:54:31.000000000 +0200 +++ ./Makefile 2017-08-12 15:22:06.000000000 +0200

@@ -2261,7 +2261,11 @@
  endif

  po/build/locale/%/LC_MESSAGES/git.mo: po/%.po
+ifndef NO_MSGFMT
  	$(QUIET_MSGFMT)mkdir -p $(dir $@) && $(MSGFMT) -o $@ $<
+else
+	@echo Skipping file $@
+endif

  FIND_SOURCE_FILES = ( \
  	git ls-files \
@@ -2523,7 +2527,9 @@
  endif
  ifndef NO_TCLTK
  	$(MAKE) -C gitk-git install
-	$(MAKE) -C git-gui gitexecdir='$(gitexec_instdir_SQ)' install
+	ifndef NO_MSGFMT
+		$(MAKE) -C git-gui gitexecdir='$(gitexec_instdir_SQ)' install
+	endif
  endif
  ifneq (,$X)
  	$(foreach p,$(patsubst %$X,%,$(filter %$X,$(ALL_PROGRAMS) 
$(BUILT_INS) git$X)), test '$(DESTDIR_SQ)$(gitexec_instdir_SQ)/$p' -ef 
'$(DESTDIR_SQ)$(gitexec_instdir_SQ)/$p$X' || $(RM) 
'$(DESTDIR_SQ)$(gitexec_instdir_SQ)/$p';)



It would be great if it (or something similar) could be included in git.

Regards
Teddy
Next: Jeff King
Message 1 of 4 in “NO_MSGFMT”
  1. Dominik Mahrer (Teddy)Aug 12, 2017
  2. Jeff KingAug 13, 2017
  3. Jeff KingNov 12, 2017
  4. Christian CouderNov 12, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.