[haiku-development] Kernel versioning

  • From: Rob Judd <haiqu@xxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 24 May 2009 08:12:37 +1000

I'm having a build problem with the kernel versioning code added in r30825. Have the standard Perl installation and a copy of GIT from the ports site, and getting this error on compilation:


CopySetHaikuRevision1 generated/objects/haiku/x86/release/system/kernel/revisioned/kernel_x86


revision=`LC_ALL=C LANG=C svn info . 2> /dev/null |
grep Revision | awk '{printf $2}'`
if [ "$revision" = 0 -o "$revision" = "" ]; then
revision=`(cd . && LC_ALL=C LANG=C git svn info)
2> /dev/null ||
(git log --max-count=1 --grep="git-svn-id:" 2> /dev/null |
grep git-svn-id: | cut -d '@' -f 2 |
awk '{printf $1}') 2> /dev/null`
fi
if [ "$revision" = "" ]; then
revision=0
fi
generated/objects/haiku_host/x86/release/tools/copyattr --data generated/objects/haiku/x86/release/system/kernel/kernel_x86 generated/objects/haiku/x86/release/system/kernel/revisioned/kernel_x86 && generated/objects/haiku_host/x86/release/tools/set_haiku_revision generated/objects/haiku/x86/release/system/kernel/revisioned/kernel_x86 ${revision}

...failed CopySetHaikuRevision1 generated/objects/haiku/x86/release/system/kernel/revisioned/kernel_x86 ... ...skipped <HaikuImage>haiku.image-copy-files-dummy-system for lack of <revisioned>kernel_x86...
...skipped haiku-cd.iso for lack of <HaikuImage>haiku.image-copy-files...
...failed updating 1 target(s)...
...skipped 2 target(s)...
...updated 75 target(s)...
/boot/src/haiku>


Manually doing `LC_ALL=C LANG=C svn info .` gives me the right version. manually doing `LC_ALL=C LANG=C git svn info` gives me this error:

/boot/src/haiku> LC_ALL=C LANG=C git svn info
Can't locate Error.pm in @INC (@INC contains: /boot/home/config/lib/perl5/site_perl/5.10.0 /boot/common/lib/perl5/5.10.0/BePC-haiku /boot/common/lib/perl5/5.10.0 /boot/common/lib/perl5/site_perl/5.10.0/BePC-haiku /boot/common/lib/perl5/site_perl/5.10.0 .) at /boot/common/lib/perl5/site_perl/5.10.0/Git.pm line 99. BEGIN failed--compilation aborted at /boot/common/lib/perl5/site_perl/5.10.0/Git.pm line 99. Compilation failed in require at /boot/home/config/libexec/git-core/git-svn line 45. BEGIN failed--compilation aborted at /boot/home/config/libexec/git-core/git-svn line 45.
/boot/src/haiku>


Making a symlink from 5.10.0/CPANPLUS/Error.pm onto the @INC path just gives another Perl error, missing Core.pm

Did whoever set this up have a different version of Perl installed, or maybe GIT wasn't installed?

Rob

Other related posts: