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: NonePriority: 5 - Normal
Severity: 3 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenOperating System: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

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 File(s):
   
   
Comment:
   

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
  • -unavailable- added by jkp (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 17 May 2011 08:28:40 PM UTCjkpAttached File-=>Added gettext-no-gitconfig.patch, #23422

    Back to the top


    Powered by Savane 3.1-cleanup