From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail7.pr.hu (mail7.pr.hu [87.242.0.7]) by mail.openembedded.org (Postfix) with ESMTP id C5EE27622A for ; Thu, 30 Jul 2015 19:20:10 +0000 (UTC) Received: from [2a02:808:3:101::5] (helo=mail.pr.hu) by frontdoor.pr.hu with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1ZKtKi-0005eg-V3 for openembedded-devel@lists.openembedded.org; Thu, 30 Jul 2015 21:17:36 +0200 Received: from [88.132.201.202] (helo=s002.sicom.com) by mail.pr.hu with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1ZKtN8-0002ax-5R for openembedded-devel@lists.openembedded.org; Thu, 30 Jul 2015 21:20:08 +0200 To: openembedded-devel@lists.openembedded.org References: <55B9CDED.8080204@pr.hu> From: Boszormenyi Zoltan Message-ID: <55BA78E3.3070406@pr.hu> Date: Thu, 30 Jul 2015 21:20:03 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <55B9CDED.8080204@pr.hu> X-Host-Lookup-Failed: Reverse DNS lookup failed for 88.132.201.202 (failed) X-Spam-Score: 1.2 (+) X-Scan-Signature: 10a865c42659b27c0304ef85eb81de5b X-Spam-Tracer: backend.mail.pr.hu 1.2 20150730192008Z Subject: Re: chown problem in the dbus package X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jul 2015 19:20:13 -0000 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 8bit Is there no one who can help? 2015-07-30 09:10 keltezéssel, Boszormenyi Zoltan írta: > Hi, > > I wanted to build a new image in a new empty buildroot, with our > Yocto 1.6 based custom distro that started off of Angstrom 2014.06. > The build failed with this: > > | chown: invalid group: 'messagebus:messagebus' > | WARNING: > /data/OE/setup-scripts/build/tmp-angstrom_v2014_06-eglibc/work/core2-64-sicom-linux/dbus/1.6.18-r0/temp/run.do_install.6837:1 > exit 1 from > | chown messagebus:messagebus > /data/OE/setup-scripts/build/tmp-angstrom_v2014_06-eglibc/work/core2-64-sicom-linux/dbus/1.6.18-r0/image/var/lib/dbus > | ERROR: Function failed: do_install (log file is located at > /data/OE/setup-scripts/build/tmp-angstrom_v2014_06-eglibc/work/core2-64-sicom-linux/dbus/1.6.18-r0/temp/log.do_install.6837) > ERROR: Task 2 > (/data/OE/setup-scripts/sources/openembedded-core/meta/recipes-core/dbus/dbus_1.6.18.bb, > do_install) failed with exit code '1' > NOTE: Tasks Summary: Attempted 1241 tasks of which 1234 didn't need to be rerun and 1 failed. > NOTE: Writing buildhistory > No currently running tasks (1241 of 1248) > > Summary: 1 task failed: > /data/OE/setup-scripts/sources/openembedded-core/meta/recipes-core/dbus/dbus_1.6.18.bb, > do_install > Summary: There were 19 WARNING messages shown. > Summary: There was 1 ERROR message shown, returning a non-zero exit code. > > "bitbake -c cleansstate dbus" or "bitbake -c cleanall dbus" didn't help. > > Our distro uses useradd-staticids with these set in conf/layer.conf: > > USERADDEXTENSION = "useradd-staticids" > USERADD_UID_TABLES = "files/passwd" > USERADD_GID_TABLES = "files/group" > USERADD_ERROR_DYNAMIC = "1" > > The messagebus user and group are defined with UID==81 and GID==81: > > $ grep messagebus files/passwd files/group > files/passwd:messagebus:x:81:81::/var/lib/dbus:/bin/false > files/group:messagebus:x:81: > > They also ended up in the sysroot's files: > > $ grep messagebus > /data/OE/setup-scripts/build/tmp-angstrom_v2014_06-eglibc/sysroots/*/etc/{passwd,group} > /data/OE/setup-scripts/build/tmp-angstrom_v2014_06-eglibc/sysroots/genericx86-64/etc/passwd:messagebus:!:81:81::/var/lib/dbus:/bin/false > /data/OE/setup-scripts/build/tmp-angstrom_v2014_06-eglibc/sysroots/genericx86-64/etc/group:messagebus:x:81: > > The USERADD_ERROR_DYNAMIC="1" setting would throw an error with > an obvious error message, but the above quoted message is not that one. > > "bitbake -c devshell dbus" gives me a (pseudo?) root shell but /etc points > to the real /etc where the messagebus user and the messagebus and > netdev groups are not present and also, chown is /usr/sbin/chown. > > Can this be the cause of the problem? If yes, how can I solve it without > modifying the host's passwd and group files? > > The "pseudo-native" package was already built implicitly. > Installing fakeroot on the host (CentOS 7) didn't help. > > Thanks in advance, > Zoltán Böszörményi >