Bug 3048

Summary: ADT doesn't install properly
Product: [Yocto Project Subprojects] ADT Reporter: Alexandru Georgescu <alexandru.c.georgescu>
Component: adtAssignee: Laurentiu Palcu <laurentiu.palcu>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: Medium+ CC: elizabeth.flanagan, jessica.zhang, poky.adt.watcher, poky.watcher, sgw
Version: 1.3   
Target Milestone: 1.3 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Attachments:
Description Flags
adt installer log
none
adt-installer log file none

Description Alexandru Georgescu 2012-08-31 10:41:07 UTC
Created attachment 753 [details]
adt installer log

ADT (on the default location or a specific one) doesn't install properly. 


*****************************
INSATLLER USED:
http://autobuilder.yoctoproject.org/pub/nightly/20120829-1/adt_installer/adt_installer.tar.bz2


*********************************
STEPS:
1. Extract and run the installation on the default path(/opt/poky/1.2+snapshot)
2. Check the files created on the system.



*********************************
EXPECTED RESULTS:the destination directory should contain :
a) the environment setup scripts  (the paths in environment setup scripts are set according to the SDK location)
b) target sysroot
c) native SDK sysroot


*********************************
ACTUAL RESULTS:
a) there are no env scipts in /opt/poky/1.2+snapshot:

alex@alex-pc:/opt/poky/1.2+snapshot$ ls -la
total 16
drwxr-xr-x 4 root root 4096 Aug 31 11:58 .
drwxr-xr-x 3 root root 4096 Aug 31 11:58 ..
drwxr-xr-x 3 root root 4096 Apr 24 03:09 opt
drwxr-xr-x 3 root root 4096 Aug 31 11:58 var
alex@alex-pc:/opt/poky/1.2+snapshot$


b) there is no target sysroot in /opt/poky/1.2+snapshot:

alex@alex-pc:/opt/poky/1.2+snapshot$ ls -la
total 16
drwxr-xr-x 4 root root 4096 Aug 31 11:58 .
drwxr-xr-x 3 root root 4096 Aug 31 11:58 ..
drwxr-xr-x 3 root root 4096 Apr 24 03:09 opt
drwxr-xr-x 3 root root 4096 Aug 31 11:58 var
alex@alex-pc:/opt/poky/1.2+snapshot$



Instead, the following folder structure is created.


alex@alex-pc:/opt/poky/1.2+snapshot$ ls
opt  var
alex@alex-pc:/opt/poky/1.2+snapshot$ cd opt/
alex@alex-pc:/opt/poky/1.2+snapshot/opt$ ls
poky
alex@alex-pc:/opt/poky/1.2+snapshot/opt$ cd poky/
alex@alex-pc:/opt/poky/1.2+snapshot/opt/poky$ ls
1.2
alex@alex-pc:/opt/poky/1.2+snapshot/opt/poky$ cd 1.2/
alex@alex-pc:/opt/poky/1.2+snapshot/opt/poky/1.2$ ls
sysroots
alex@alex-pc:/opt/poky/1.2+snapshot/opt/poky/1.2$ cd sysroots/
alex@alex-pc:/opt/poky/1.2+snapshot/opt/poky/1.2/sysroots$ ls
x86_64-pokysdk-linux
alex@alex-pc:/opt/poky/1.2+snapshot/opt/poky/1.2/sysroots$ 


c) the native SDK sysroot is created in the wrong location

alex@alex-pc:/opt/poky/1.2+snapshot/opt/poky/1.2/sysroots$ ls
x86_64-pokysdk-linux
alex@alex-pc:/opt/poky/1.2+snapshot/opt/poky/1.2/sysroots$
Comment 1 Jessica 2012-09-04 23:34:11 UTC
Hi Alex,

I've genereated my own local adt-repo based on the latest master and hacked adt-installer to install against it. The following are my findings:

my /opt/poky/1.2+snapshot directory contains

jzhang@jzhang-desktop:/opt/poky/1.2+snapshot$ ls
environment-setup-i586-poky-linux  sysroots  version-i586-poky-linux
site-config-i586-poky-linux        var

Even though my installation went through successfully, but during installation, I did notice the following messages:

cp: cannot stat `/opt/poky/1.2+snapshot//opt/poky/1.2+snapshot/*': No such file or directory
rmdir: failed to remove `/opt/poky/1.2+snapshot//opt/poky/1.2+snapshot': No such file or directory

Relocating binaries ...


Laurentiu,  Can you take a look of this which doesn't look right.

Alex,

When you ran your test against 20120829 build, did you change any settings for adt-installer, my understanding is we don't have a fixed 1.2+snapshot repo, which Beth is working on to address the long standing issue for seperate the dev repo from release repo.  The other thing is when you install, was your /opt/poky/1.2+snapshot repo there already or not?  There's a known issue that we can't mixed match adt installation between adt-installer and tar ball extraction, so please ensure when you test your adt-installer, the toolchain dir is clean beforehand.
Comment 2 Laurentiu Palcu 2012-09-05 07:25:40 UTC
I investigated this issue and found that the files downloaded from the repository(http://adtrepo.yoctoproject.org/1.2+snapshot) are not the right ones. Hence, this repository cannot be used for testing. Instead, a local repo has to be created and the tests must be done against this one.

I created a local repo myself and the installation went smooth. Also, I didn't notice the problem Jessica reported. Jessica, can you run the adt-installer like this: "bash -x adt_installer" and send me the output? ALso, send the adt-installer.log too. Maybe I can figure out what went wrong in your case.
Comment 3 Jessica 2012-09-05 22:39:18 UTC
Laurentiu,

My test scenario is have toolchain installed at /opt/poky/1.2+snapshot (using tar ball), then re-install at the same location using adt-installer which consistently trigger the issue.
Comment 4 Jessica 2012-09-05 22:40:24 UTC
Created attachment 763 [details]
adt-installer log file
Comment 5 Alexandru Georgescu 2012-09-06 11:59:36 UTC
I have investigated the issue further with Laurentiu, and we have discovered that the problem is with the adt repo not being in sync with the latest changes in Master.

We have tested adt-installer with a local repo build by Laurentiu and the installation succeeded.

So I believe the issue will be solved when the repo used by the adt-installer will be in sync with Master.
Comment 6 Jessica 2012-09-13 20:34:51 UTC
Alex,

Is this still an issue with the recent adt-repo change from Beth? If not, please close it.

Thanks,
Jessica
Comment 7 Alexandru Georgescu 2012-09-14 13:45:09 UTC
Closing it because the cause of the bug has been resolved.
Comment 8 Alexandru Georgescu 2012-09-14 13:45:51 UTC
Setting to Verified Fixed.