Bug 6211 - git from daisy buildtools tarball has relocation issues
Summary: git from daisy buildtools tarball has relocation issues
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 1.6
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 1.7 M3
Assignee: Richard Purdie
QA Contact: Alexandru Georgescu
URL:
Whiteboard: TC needed
Depends on:
Blocks:
 
Reported: 2014-04-23 08:25 UTC by Stefan Stanacar
Modified: 2014-08-06 12:54 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Stanacar 2014-04-23 08:25:44 UTC
http://autobuilder.yoctoproject.org/pub/nightly/20140420-2/buildtools/poky-eglibc-x86_64-buildtools-tarball-core2-64-buildtools-nativesdk-standalone-1.6.sh

This was built on daisy release from http://autobuilder.yoctoproject.org/main/builders/buildtools/builds/51

With the buildtools tarball installed in a custom location, git pull doesn't work. Other commands like fetch/checkout seems to work just fine.

[stefans@firebird Downloads]$ sh poky-eglibc-x86_64-buildtools-tarball-core2-64-buildtools-nativesdk-standalone-1.6.sh 
Enter target directory for SDK (default: /opt/poky/1.6): /home/stefans/buildtools
You are about to install the SDK to "/home/stefans/buildtools". Proceed[Y/n]?y
Extracting SDK...done
Setting it up...done
SDK has been successfully set up and is ready to be used.

[stefans@firebird buildtools]$ source environment-setup-x86_64-pokysdk-linux 
[stefans@firebird ~]$ cd yocto/poky/
[stefans@firebird poky]$ which git
~/buildtools/sysroots/x86_64-pokysdk-linux/usr/bin/git
[stefans@firebird poky]$ git pull
git: 'pull' is not a git command. See 'git --help'.

Did you mean this?
	shell


Installing in the default directory, git pull works:
[stefans@firebird Downloads]$ sudo sh poky-eglibc-x86_64-buildtools-tarball-core2-64-buildtools-nativesdk-standalone-1.6.sh 
Enter target directory for SDK (default: /opt/poky/1.6): 
You are about to install the SDK to "/opt/poky/1.6". Proceed[Y/n]?y
Extracting SDK...done
Setting it up...done
SDK has been successfully set up and is ready to be used.
[stefans@firebird Downloads]$ source /opt/poky/1.6/environment-setup-x86_64-pokysdk-linux 
[stefans@firebird ~]$ cd yocto/poky/
[stefans@firebird poky]$ which git
/opt/poky/1.6/sysroots/x86_64-pokysdk-linux/usr/bin/git
[stefans@firebird poky]$ git pull
remote: Counting objects: 733, done.
remote: Compressing objects: 100% (173/173), done.
remote: Total 519 (delta 415), reused 440 (delta 342)
Receiving objects: 100% (519/519), 201.18 KiB | 0 bytes/s, done.
Resolving deltas: 100% (415/415), completed with 98 local objects.
Comment 1 Christopher Larson 2014-04-29 14:53:03 UTC
It turns out that RUNTIME_PREFIX support upstream isn't what it should be. See https://github.com/kergoth/meta-mentor/commit/9d966b7 -- not ideal, but works for now. I'll see about submitting that to oe-core.
Comment 2 Laurentiu Palcu 2014-04-30 08:26:47 UTC
This seems to work just fine on Ubuntu 12.04. I tried both the installer suggested in the report and one freshly built. 'git pull' works... What OS were you running this on?
Comment 3 Stefan Stanacar 2014-04-30 11:46:48 UTC
Laurentiu: I used that buildtools tarball on F19, F20 and an Ubuntu 12.04 machine. The output from above is from a F20 machine. git pull consistenly failed for me when installed in the home dir, and not in the default /opt/poky/1.6 path...
Comment 4 Christopher Larson 2014-04-30 16:12:56 UTC
It's not just git-pull that's affected by this. For us, we found that it was impossible to clone an http:// uri, as it was unable to find the http git remote helper.
Comment 5 Richard Purdie 2014-06-13 16:38:45 UTC
Patches from meta-mentor sent to OE-Core for review.
Comment 7 Alexandru Georgescu 2014-07-30 14:55:22 UTC
verified with 1.7_M1