From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 06BECE01374 for ; Tue, 10 Apr 2012 16:40:09 -0700 (PDT) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca [147.11.189.40]) by mail.windriver.com (8.14.3/8.14.3) with ESMTP id q3ANe2pU007930 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Tue, 10 Apr 2012 16:40:02 -0700 (PDT) Received: from msp-dhcp19.wrs.com (172.25.34.19) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.1.255.0; Tue, 10 Apr 2012 16:40:01 -0700 Message-ID: <4F84C4CE.5050103@windriver.com> Date: Tue, 10 Apr 2012 18:39:58 -0500 From: Mark Hatle Organization: Wind River Systems User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: "Khor, Boon Pin" References: <7E680CB2A76BB8438D08CF13C09FC53A46AE31E3@ORSMSX101.amr.corp.intel.com> <7E680CB2A76BB8438D08CF13C09FC53A46AF10FD@ORSMSX101.amr.corp.intel.com> <2083054.YjdMd9bIMH@helios> <4F846C2E.8040304@windriver.com> In-Reply-To: Cc: Paul Eggleton , "yocto@yoctoproject.org" Subject: Re: Yocto Project 1.2 Beta testing instructions X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Apr 2012 23:40:10 -0000 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit On 4/10/12 6:06 PM, Khor, Boon Pin wrote: > Hi all > > On my ubuntu 11.10 64bits machines , once I change the default shell to bash , the problem solved . I believe we expect dash to be fully supported, so this is a bug. Please file a bug in the Yocto Project bugzilla (http://bugzilla.yoctoproject.org) if you are not able to do so, let me know and I will file it. --Mark > Thanks > Boon pin > > -----Original Message----- > From: Mark Hatle [mailto:mark.hatle@windriver.com] > Sent: Wednesday, April 11, 2012 1:22 AM > To: Paul Eggleton > Cc: yocto@yoctoproject.org; Liu, Song; Khor, Boon Pin > Subject: Re: [yocto] Yocto Project 1.2 Beta testing instructions > > 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-8e9f6fc7 >>> 7ac476 >>> 3f4ed1f6e7b720420c220ba6e2.tar.bz2 . >>> ... >>> | Processing task-core-boot... >>> | Manifest: >>> | /home/nemo/yp-beta-build/tmp/work/qemux86-poky-linux/core-image-min >>> | imal-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