[Kmymoney-devel] Problems transitioning MacPorts' port kmymoney4-devel to git...

Marko Käning mk-lists at email.de
Mon Nov 14 21:52:00 UTC 2011


Hi guys,

I thought I'd quickly update MacPorts' port kmymoney4-devel from SVN to GIT, but ran into a problem after the sources were fetched successfully via git!

During configure I got the following error message:
---
.
.
.
:info:configure -- Check for working CXX compiler: /usr/bin/g++-4.2
:info:configure -- Check for working CXX compiler: /usr/bin/g++-4.2 -- works
:info:configure -- Detecting CXX compiler ABI info
:info:configure -- Detecting CXX compiler ABI info - done
:info:configure error: packfile .git/objects/pack/pack-706f45c220a99af84f98f872ac0d14cbc86e08c6.pack does not match index
:info:configure error: packfile .git/objects/pack/pack-706f45c220a99af84f98f872ac0d14cbc86e08c6.pack cannot be accessed
:info:configure error: packfile .git/objects/pack/pack-706f45c220a99af84f98f872ac0d14cbc86e08c6.pack does not match index
:info:configure error: packfile .git/objects/pack/pack-706f45c220a99af84f98f872ac0d14cbc86e08c6.pack cannot be accessed
:info:configure fatal: bad object HEAD
:info:configure CMake Error at CMakeLists.txt:53 (STRING):
:info:configure   string sub-command SUBSTRING requires four arguments.
:info:configure
:info:configure
:info:configure -- Looking for Q_WS_X11
:info:configure -- Looking for Q_WS_X11 - not found.
.
.
.
---



At the end of the configuration the somehow irritating message (saying "Good…errors occurred") is thrown at me:
---
.
.
.
:info:configure
:info:configure Good - your configure finished.
:info:configure Now type 'make' to build KMyMoney. For more help, consult README.cmake
:info:configure
:info:configure -- Configuring incomplete, errors occurred!
.
.
.
---



I used the following to specify the sources to be fetched, which was the latest changeset after a locally run "git pull":
---
git.url             git://anongit.kde.org/kmymoney
git.branch          6f28b1c9fa3c0684d184d3bfc1d638de933a1f91
---



Checking CMakeLists.txt now I see that this code is responsible for the error:
---
    .
    .
    .
47  EXECUTE_PROCESS(COMMAND git log -1 COMMAND head -n 1 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} OUTPUT_VARIABLE BRANCH)
48  # extract branch name
49  STRING(REGEX MATCH "commit ([^$]+)" BRANCH "${BRANCH}")
51  SET(BRANCH ${CMAKE_MATCH_1})
52  # and use the first 10 chars of the commit id
53  STRING(SUBSTRING ${BRANCH} 0 10 BRANCH)
54  SET(VERSION_SUFFIX "-${BRANCH}")
   .
   .
   .
---



When I saw this, I tried locally to see the latest changeset:
---
$ git log -1
error: packfile .git/objects/pack/pack-706f45c220a99af84f98f872ac0d14cbc86e08c6.pack does not match index
error: packfile .git/objects/pack/pack-706f45c220a99af84f98f872ac0d14cbc86e08c6.pack cannot be accessed
error: packfile .git/objects/pack/pack-706f45c220a99af84f98f872ac0d14cbc86e08c6.pack does not match index
error: packfile .git/objects/pack/pack-706f45c220a99af84f98f872ac0d14cbc86e08c6.pack cannot be accessed
fatal: bad object HEAD
---


Well, and when I try a "git pull" I get another strange error:
---
$ git pull
error: bad index file sha1 signature
fatal: index file corrupt
error: bad index file sha1 signature
fatal: index file corrupt
---
There we are. Obviously my local clone isn't a proper local clone… :-(



OK, I am fairly familiar with CVS, SVN and Mercurial, but my git experience is still very limited. :-(

So, I hope that someone of you guys has an idea what I am doing wrong here and is able to enlighten me… :-)


Greets,
Marko


More information about the KMyMoney-devel mailing list