bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bootstrap and git submodules


From: Eric Blake
Subject: Re: bootstrap and git submodules
Date: Wed, 10 Mar 2010 08:24:22 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100301 Fedora/3.0.3-1.fc12 Lightning/1.0b1 Thunderbird/3.0.3

On 03/10/2010 03:18 AM, Jim Meyering wrote:
>> I did a grep of '80cd995cdcbf4b9ded895a43621a11f11806ad8d' over the source 
>> tree
>> and did not find it.

Maybe worth reporting to the git list as an enhancement request to 'git
grep' to search the textual representation of submodules?  At any rate,
'git log -p gnulib' will show you that commit id.

>>
>> How do I configure 'bootstrap' to use my (possibly modified) gnulib sources
>> instead of a particular commit? I'm not a "git submodule" wizard and expect
>> this do be doable through a command line option of the 'bootstrap' script.
> 
> bootstrap uses the gnulib commit recorded via coreutils' gnulib submodule,
> so I usually just sync-to-latest, commit that gnulib-update change,
> and then test.  I did this on coreutils' master:
> 
>     cd coreutils
>     git syncsub
>     git commit -m 'build: update gnulib submodule to latest' gnulib
>     ./bootstrap && ./configure && make && make check
> 
> Where "syncsub" is defined in my ~/.gitconfig like this:
> 
>   [alias]
>           syncsub = submodule foreach git pull origin master
> 
> So if your changed gnulib files are committed locally,
> and the submodule points to your locally-modified repository,
> once you've committed the "sync-from-gnulib" change as above,
> bootstrap should do what you expect.

You don't even have to make a commit.  It is sufficient to do:

cd coreutils
git syncsub
git add gnulib
./bootstrap && ./configure && make check

and, if the results are to your liking, finally do the 'git commit'.

-- 
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]