From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from 93-97-173-237.zone5.bethere.co.uk ([93.97.173.237] helo=tim.rpsys.net) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1RZ277-0003cj-9S for openembedded-core@lists.openembedded.org; Fri, 09 Dec 2011 16:11:53 +0100 Received: from localhost (localhost [127.0.0.1]) by tim.rpsys.net (8.13.6/8.13.8) with ESMTP id pB9F4wMV001380 for ; Fri, 9 Dec 2011 15:04:59 GMT Received: from tim.rpsys.net ([127.0.0.1]) by localhost (tim.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 00484-07 for ; Fri, 9 Dec 2011 15:04:55 +0000 (GMT) Received: from [192.168.3.10] ([192.168.3.10]) (authenticated bits=0) by tim.rpsys.net (8.13.6/8.13.8) with ESMTP id pB9F4ojA001374 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 9 Dec 2011 15:04:52 GMT Message-ID: <1323443103.5309.178.camel@ted> From: Richard Purdie To: Patches and discussions about the oe-core layer Date: Fri, 09 Dec 2011 15:05:03 +0000 In-Reply-To: <0B087DB2-2C7F-4A0B-A0D1-7E38D9E28807@dominion.thruhere.net> References: <1323279247.30601.51.camel@ted> <201112080053.11966.schnitzeltony@gmx.de> <20111208070548.GB3761@jama.jama.net> <0B087DB2-2C7F-4A0B-A0D1-7E38D9E28807@dominion.thruhere.net> X-Mailer: Evolution 3.2.1- Mime-Version: 1.0 X-Virus-Scanned: amavisd-new at rpsys.net X-MIME-Autoconverted: from 8bit to quoted-printable by tim.rpsys.net id pB9F4wMV001380 Subject: Re: [PATCH] bitbake.conf/image.bbclass: Ensure images use the correct passwd/group files X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2011 15:11:53 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 2011-12-09 at 14:44 +0100, Koen Kooi wrote: > Op 8 dec. 2011, om 08:05 heeft Martin Jansa het volgende geschreven: >=20 > > On Thu, Dec 08, 2011 at 12:53:11AM +0100, Andreas M=C3=BCller wrote: > >> On Wednesday, December 07, 2011 06:34:07 PM Richard Purdie wrote: > >>> We need pseudo to use the rootfs passwd/group files belonging to th= e > >>> rootfs when building images. This patch ensures that we use the roo= tfs > >>> files instead of those in the sysroot which can lead to incorrect f= ile > >>> ownership issues. > >>>=20 > >>> Signed-off-by: Richard Purdie > >>>=20 > >>> diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclas= s > >>> index 4642fa6..865d430 100644 > >>> --- a/meta/classes/image.bbclass > >>> +++ b/meta/classes/image.bbclass > >>> @@ -121,6 +121,8 @@ IMAGE_LINGUAS ?=3D "de-de fr-fr en-gb" > >>>=20 > >>> LINGUAS_INSTALL =3D "${@" ".join(map(lambda s: "locale-base-%s" % s= , > >>> d.getVar('IMAGE_LINGUAS', 1).split()))}" > >>>=20 > >>> +PSEUDO_PASSWD =3D "${IMAGE_ROOTFS}" > >>> + > >>> do_rootfs[nostamp] =3D "1" > >>> do_rootfs[dirs] =3D "${TOPDIR}" > >>> do_rootfs[lockfiles] +=3D "${IMAGE_ROOTFS}.lock" > >>> diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf > >>> index e80cc32..eeb1fc4 100644 > >>> --- a/meta/conf/bitbake.conf > >>> +++ b/meta/conf/bitbake.conf > >>> @@ -580,11 +580,12 @@ SRC_URI =3D "file://${FILE}" > >>>=20 > >>> # Use pseudo as the fakeroot implementation > >>> PSEUDO_LOCALSTATEDIR ?=3D "${WORKDIR}/pseudo/" > >>> +PSEUDO_PASSWD ?=3D "${STAGING_DIR_TARGET}" > >>> export PSEUDO_DISABLED =3D "1" > >>> #export PSEUDO_PREFIX =3D "${STAGING_DIR_NATIVE}${prefix_native}" > >>> #export PSEUDO_BINDIR =3D "${STAGING_DIR_NATIVE}${bindir_native}" > >>> #export PSEUDO_LIBDIR =3D > >>> "${STAGING_DIR_NATIVE}$PSEUDOBINDIR/../lib/pseudo/lib -FAKEROOTENV = =3D > >>> "PSEUDO_PREFIX=3D${STAGING_DIR_NATIVE}${prefix_native} > >>> PSEUDO_LOCALSTATEDIR=3D${PSEUDO_LOCALSTATEDIR} > >>> PSEUDO_PASSWD=3D${STAGING_DIR_TARGET} PSEUDO_NOSYMLINKEXP=3D1 > >>> PSEUDO_DISABLED=3D0" +FAKEROOTENV =3D > >>> "PSEUDO_PREFIX=3D${STAGING_DIR_NATIVE}${prefix_native} > >>> PSEUDO_LOCALSTATEDIR=3D${PSEUDO_LOCALSTATEDIR} > >>> PSEUDO_PASSWD=3D${PSEUDO_PASSWD} PSEUDO_NOSYMLINKEXP=3D1 PSEUDO_DIS= ABLED=3D0" > >>> FAKEROOTNOENV =3D "PSEUDO_UNLOAD=3D1" > >>> FAKEROOTDIRS =3D "${PSEUDO_LOCALSTATEDIR}" > >>> PREFERRED_PROVIDER_virtual/fakeroot-native ?=3D "pseudo-native" > >> dbus still needs manual call of=20 > >>=20 > >> chown messagebus:messagebus /var/run/dbus /var/lib/dbus > >>=20 > >> ( it is root:root on my image) and > >>=20 > >> chown root:messagebus /usr/libexec/dbus-daemon-launch-helper > >>=20 > >> ( it is avahi:netdev on my image ) > >>=20 > >> Does this one fix it? > >=20 > > It did for me, see: > > http://bugzilla.pokylinux.org/show_bug.cgi?id=3D1711 > >=20 > >> To test: Is it enough to rebuild dbus? > >=20 > > I had right owners in dbus package, wrong only in rootfs, so your iss= ue > > could be different. >=20 > I've also started seeing this issue recently, I wonder if it's due to s= witching MACHINEs and sstate invalidation. Has it continued since the above patch was merged or not? What we really need at this point is a clear reproducer for the bug. Cheers, Richard