| Summary: | devtool: deploy-target follows symlinks when deploying | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Paul Eggleton <bluelightning> |
| Component: | devtools / tool chain | Assignee: | Paul Eggleton <bluelightning> |
| Status: | VERIFIED FIXED | QA Contact: | Costin <costin.c.constantin> |
| Severity: | major | ||
| Priority: | Medium+ | CC: | alexandru.c.georgescu, bogdanx.a.voiculescu, ejo, meta.mr.watcher, meta.watcher |
| Version: | 1.8 | ||
| Target Milestone: | 1.9 M1 | ||
| Hardware: | All | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | New (Never tested) |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Paul Eggleton
2015-06-09 15:27:26 UTC
Fix merged to master: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=2054b29dd7be74d09b53df178ef87c69b15a809e This is probably a candidate for fido as well. Hello,
Tested on master with d302c98822efe2cb78a63b620aed1b94b4ed4a68 on Ubuntu 15.04 os.
Steps performed to test it:
1) follow the directions described in YP#8136 to create a recipe and package it
(used this because i had the environment already in place). Besides those directions, I modified the do_install step, by adding a symlink to a file on target:
do_install () {
# Specify install commands here
install -d ${D}/${bindir}
install -m 0755 hellomake ${D}/${bindir}
ln -s /usr/bin/awk ${D}/${bindir}/myawk
}
2) execute devtool deploy-target test root@test_machine:/home/root/teste
root@intel-core2-32:~/teste/usr/bin# ls -ltr
total 12
-rwxr-xr-x 1 root root 8632 Oct 15 2015 hellomake
lrwxrwxrwx 1 root root 12 May 4 21:42 myawk -> /usr/bin/awk
This proves the symlink was copied instead of the file (awk) that i also have on host machine
Marking as verified.
|