helpGNU gettext - Support: sr #107689, gettext build fails due to...


sr #107689: gettext build fails due to contents of file specified in git's core.excludesfile setting.

Submitted by:  Jamie Kirkpatrick <jkp>
Submitted on:  Tue 17 May 2011 08:28:40 PM UTC  
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  Bruno Haible <haible>
Open/Closed:  Closed Operating System:  None

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Mon 08 Apr 2019 01:11:29 AM UTC, comment #1: 
Bruno Haible <haible>
Project AdministratorIn charge of this item.
Tue 17 May 2011 08:28:40 PM UTC, original submission:  

Gettext was failing to build for me with the following error from the end of the make command:

Making all in miscif test -f archive.dir.tar.gz; then \          inputfile=archive.dir.tar.gz; \
        else \          inputfile='.'/archive.dir.tar.gz; \        fi; \
        ./convert-archive dir git "$inputfile" archive.git.tar.gz
WARNING: Warnings can be ignored. :-)
if test "no" != no; then \          set x; \
          list='start-po.el po-mode.el po-compat.el'; for p in $list; do \
            if test -f "$p"; then d=; else d="./"; fi; \
            set x "$@" "$d$p"; shift; \
          done; \
          shift; \          EMACS="no" /bin/sh ../../build-aux/elisp-comp "$@" || exit 1; \        else : ; fi
# On branch master
# Initial commit
nothing to commit (create/copy files and use "git add" to track)
fatal: Failed to resolve 'HEAD' as a valid ref.
convert-archive: *** git init failed
convert-archive: *** Stop.
make[3]: *** [archive.git.tar.gz] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

After digging around some, I found that the problem is the convert-archive script uses 'git add' to add a bunch of files to a new git repository - the contents of my ~/.gitignore file caused no files to be added and in turn the build fails.

Looking at the git source code it seems that it locates the user's config file using the HOME environment variable: by unsetting this before all the git work is done it is possible to make git ignore the user's config file and behave in a predictable manner.

Patch attached.

Jamie Kirkpatrick <jkp>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #23422:  gettext-no-gitconfig.patch added by jkp (570B - application/octet-stream - patch for convert-archive script to ignore user's gitconfig file.)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by haible (Posted a comment)
  • -email is unavailable- added by jkp (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-04-08 haible StatusNone => Done
        Assigned toNone => haible
        Open/ClosedOpen => Closed
    2011-05-17 jkp Attached File- => Added gettext-no-gitconfig.patch, #23422

    Back to the top

    Powered by Savane 3.5