Hi ,

I am trying to build libreoffice preview release 4.0.0 RC1 from source but 
having some trouble with "make fetch" and need some advice.

It fails on cmd : git config --local --get submodule.dictionaries.url
Complaining that "local is not a valid option"

I cloned the git repo based on "building from source guide"
        git clone http://anongit.freedesktop.org/git/libreoffice/core.git
        git checkout libreoffice-4.0  # switch to 4.0.0
## auto gen succeeds
./autogen.sh  --prefix=/work/loc1/libreoffice-4.0 --without-junit --enable-debug

# the following fails at "./g -f clone"
make fetch

The output of bash script "g" with set -x is attached below

Thanks
Neeraj
bash -x g -f clone




+ '[' -n '' ']'
+ SUBMODULES_ALL='dictionaries helpcontent2 translations'
++ dirname g
+ pushd .
++ pwd
+ COREDIR=/data1/libreoffice-core-git
+ popd
+ '[' 2 -eq 0 ']'
++ type -p git
+ '[' '!' /usr/bin/git ']'
+ get_active_submodules
+ SUBMODULES_ACTIVE=
+ local repo
+ for repo in '${SUBMODULES_ALL?}'
+ '[' -d dictionaries/.git ']'
+ for repo in '${SUBMODULES_ALL?}'
+ '[' -d helpcontent2/.git ']'
+ for repo in '${SUBMODULES_ALL?}'
+ '[' -d translations/.git ']'
+ get_configured_submodules
+ SUBMODULES_CONFIGURED=
+ '[' -f config_host.mk ']'
++ cat config_host.mk
++ grep GIT_NEEDED_SUBMODULES
++ sed -e 's/.*=//'
+ SUBMODULES_CONFIGURED='dictionaries helpcontent2 '
+ EXTRA=
+ COMMAND=-f
+ PAGER=
+ RELATIVIZE=1
+ PUSH_ALL=
+ PUSH_USER=
+ PUSH_NOTES=
+ LAST_WORKING=
+ SET_LAST_WORKING=
+ ALLOW_EMPTY=
+ KEEP_GOING=
+ REPORT_REPOS=1
+ REPORT_COMMANDS=0
+ REPORT_COMPACT=0
+ DO_HOOK_REFRESH=false
+ '[' - = - ']'
+ case "$COMMAND" in
+ KEEP_GOING='||:'
+ shift
+ COMMAND=clone
+ '[' c = - ']'
+ shift
+ case "$COMMAND" in
+ do_init_modules
+ local module
+ local configured
+ do_shortcut_update
+ local module
+ local repo
+ for module in '$SUBMODULES_CONFIGURED'
+ '[' '!' -d dictionaries/.git ']'
+ case "${module?}" in
+ '[' -d clone/dictionaries/.git ']'
+ '[' -n '' ']'
+ for module in '$SUBMODULES_CONFIGURED'
+ '[' '!' -d helpcontent2/.git ']'
+ case "${module?}" in
+ '[' -d clone/help/.git ']'
+ '[' -n '' ']'
+ for module in '$SUBMODULES_CONFIGURED'
++ git config --local --get submodule.dictionaries.url
error: unknown option `local'
usage: git config [options]

Config file location
    --global              use global config file
    --system              use system config file
    -f, --file <FILE>     use given config file

Action
    --get                 get value: name [value-regex]
    --get-all             get all values: key [value-regex]
    --get-regexp          get values for regexp: name-regex [value-regex]
    --replace-all         replace all matching variables: name value 
[value_regex]
    --add                 adds a new variable: name value
    --unset               removes a variable: name [value-regex]
    --unset-all           removes all matches: name [value-regex]
    --rename-section      rename section: old-name new-name
    --remove-section      remove a section: name
    -l, --list            list all
    -e, --edit            opens an editor
    --get-color <slot>    find the color configured: [default]
    --get-colorbool <slot>
                          find the color setting: [stdout-is-tty]

Type
    --bool                value is "true" or "false"
    --int                 value is decimal number
    --bool-or-int         value is --bool or --int
    --path                value is a path (file or directory name)

Other
    -z, --null            terminate values with NUL byte

+ configured=
+ '[' -z '' ']'
+ git submodule init dictionaries
+ for module in '$SUBMODULES_CONFIGURED'
++ git config --local --get submodule.helpcontent2.url
error: unknown option `local'
usage: git config [options]

Config file location
    --global              use global config file
    --system              use system config file
    -f, --file <FILE>     use given config file

Action
    --get                 get value: name [value-regex]
    --get-all             get all values: key [value-regex]
    --get-regexp          get values for regexp: name-regex [value-regex]
    --replace-all         replace all matching variables: name value 
[value_regex]
    --add                 adds a new variable: name value
    --unset               removes a variable: name [value-regex]
    --unset-all           removes all matches: name [value-regex]
    --rename-section      rename section: old-name new-name
    --remove-section      remove a section: name
    -l, --list            list all
    -e, --edit            opens an editor
    --get-color <slot>    find the color configured: [default]
    --get-colorbool <slot>
                          find the color setting: [stdout-is-tty]

Type
    --bool                value is "true" or "false"
    --int                 value is decimal number
    --bool-or-int         value is --bool or --int
    --path                value is a path (file or directory name)

Other
    -z, --null            terminate values with NUL byte

+ configured=
+ '[' -z '' ']'
+ git submodule init helpcontent2
+ return 0
+ git submodule update
fatal: Unable to look up gerrit.libreoffice.org (port 9418) (Name or service 
not known)
Initialized empty Git repository in 
/data1/libreoffice-core-git/dictionaries/.git/
Clone of 'git://gerrit.libreoffice.org/dictionaries' into submodule path 
'dictionaries' failed
+ exit 1

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to