[yocto] Yocto Project 1.2 Beta testing instructions
Mark Hatle
mark.hatle at windriver.com
Tue Apr 10 10:21:50 PDT 2012
On 4/10/12 4:18 AM, Paul Eggleton wrote:
> On Wednesday 04 April 2012 18:08:58 Liu, Song wrote:
>> Can someone help answer the following question? This happens during Boon
>> Pin's beta testing using the build at:
>> http://git.yoctoproject.org/cgit/cgit.cgi/poky/snapshot/poky-8e9f6fc77ac476
>> 3f4ed1f6e7b720420c220ba6e2.tar.bz2 .
>> ...
>> | Processing task-core-boot...
>> | Manifest:
>> | /home/nemo/yp-beta-build/tmp/work/qemux86-poky-linux/core-image-minimal-1
>> | .0-r0/rootfs/install/install.manifest local: 1: -Uhv: bad variable name
>>
>> NOTE: package core-image-minimal-1.0-r0: task do_rootfs: Failed
>> ERROR: Task 8
>> (/home/nemo/yp-beta/meta/recipes-core/images/core-image-minimal.bb,
>> do_rootfs) failed with exit code '1' NOTE: Tasks Summary: Attempted 1329
>> tasks of which 287 didn't need to be rerun and 1 failed.
>
> Sorry for the late reply, presumably this issue is still present?
>
>> Maybe I am missing rpm packages in ubuntu ?
>
> You don't need to install rpm on the host system, we build rpm-native for
> that.
>
> Mark, any clues what could be going wrong here?
I've never seen any problem like this before. Below is some analysis and a
question at the very end...
There are only two places in the system where the string -Uhv exists:
package_rpm.bbclass:
rpm_common_comand --replacepkgs \
-Uhv ${target_rootfs}/install/total_solution.manifest
(rpm_common_comand is a shell function it appears... the arguments to the
function are passed, via $@ to an RPM command)
rootfs_rpm.bbclass:
rootfs_install_packages() {
# The pkg to be installed here is not controlled by the
# package_install_internal_rpm, so it may have already been
# installed(e.g, installed in the first time when generate the
# rootfs), use '--replacepkgs' to always install them
for pkg in $@; do
${RPM} --root ${IMAGE_ROOTFS} -D "_dbpath ${rpmlibdir}" \
-D "__dbi_txn create nofsync private" \
--noscripts --notriggers --noparentdirs --nolinktos \
--replacepkgs -Uhv $pkg || true
done
}
I would guess from the error that it's the one in package_rpm.bbclass that
failed.. if that is the case, then all I can think of is what shell? Are we
using a bash-ism? Does "dash" on ubuntu have shell functions enabled in it, if
not that might be the problem.
Please check your system's /bin/sh.. is it a symlink, if so, what does it point
to? If it points to "dash", change it to "bash" and see if the error still occurs.
--Mark
More information about the yocto
mailing list