Received: from mail-wg0-f43.google.com ([74.125.82.43]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1SrVPq-0006BZ-Ay for openembedded-devel@lists.openembedded.org; Wed, 18 Jul 2012 16:39:50 +0200 Received: by wgbdr1 with SMTP id dr1so1324960wgb.24 for ; Wed, 18 Jul 2012 07:28:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=nsVu3wrx3wk4/Pli6WN8L0lQlBkaz1vu6AVX3844q70=; b=p5br5uogw7Uv6+9pC0vXOmx6slyfbOJKxGrYRJ6j8Ufpi8K2Jxt0ps3Aec8N1fnG8v jmp0dDq32ilVs0fZ1s4gEzCWA9xyRxW4dr9d/TtqR7+DDz0F6EGIJuBoF6sEeR6h21oH nUHAhOD3XdSQ+cQS21nVy0n2+zM8iuZxK/1iqezlFTgCsVOltZXszg29AARetHWDtI1W 2/QdE+s14AOGf6VX5wTlMcvf+15zUgO8pc5v7RamQMe4PMFItDW5BzhICGI6lzK+Cvts AnyZwO1H9YV08L4Vipg5sxyt7Rr1vrQjtCSvWJ+eUvjLK9rP1iCn3QABHA2ZbzqCstK+ F9eA== Received: by 10.216.179.205 with SMTP id h55mr722930wem.100.1342621709646; Wed, 18 Jul 2012 07:28:29 -0700 (PDT) Received: from localhost ([94.230.152.246]) by mx.google.com with ESMTPS id ck9sm20757105wib.2.2012.07.18.07.28.25 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 18 Jul 2012 07:28:28 -0700 (PDT) Date: Wed, 18 Jul 2012 16:28:36 +0200 From: Martin Jansa To: openembedded-devel@lists.openembedded.org Message-ID: <20120718142836.GR22569@jama.jama.net> References: <20120716074256.12AC410334@opal> <20120716182528.GO3729@jama.jama.net> <20120717091818.GA3390@jama.jama.net> <20120718123125.GM22569@jama.jama.net> MIME-Version: 1.0 In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Subject: =?UTF-8?B?UmU6IFtvZS1jb21taXRzXSBBbmRyZWFzIE3DvGxsZXIgOiBzeXN0ZW1kLmJiY2xhc3M6IGFkZCAqLXN5c3RlbWQgcGFja2FnZXMgdG8gUlJFQ09NTUVORFM=?= X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 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: Wed, 18 Jul 2012 14:39:50 -0000 X-Groupsio-MsgNum: 39744 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="TYoqghpzCwoKvQG2" Content-Disposition: inline --TYoqghpzCwoKvQG2 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 18, 2012 at 04:21:19PM +0200, Andreas M=FCller wrote: > On Wed, Jul 18, 2012 at 2:31 PM, Martin Jansa wr= ote: > > On Tue, Jul 17, 2012 at 11:23:43AM +0200, Koen Kooi wrote: > >> -----BEGIN PGP SIGNED MESSAGE----- > >> Hash: SHA1 > >> > >> Op 17-07-12 11:18, Martin Jansa schreef: > >> > On Tue, Jul 17, 2012 at 10:54:41AM +0200, Andreas M=FCller wrote: > >> >> On Mon, Jul 16, 2012 at 8:25 PM, Martin Jansa > >> >> wrote: > >> >>> On Mon, Jul 16, 2012 at 07:42:56AM +0000, git@git.openembedded.org > >> >>> wrote: > >> >>>> Module: meta-openembedded.git Branch: master Commit: > >> >>>> 264e5a44e1111f939b43c11bb9514a0b435918db URL: > >> >>>> http://git.openembedded.org/?p=3Dmeta-openembedded.git&a=3Dcommit= ;h=3D264e5a44e1111f939b43c11bb9514a0b435918db > >> >>>> > >> >>>> > >> >>>> > >> Author: Andreas M=FCller > >> >>>> Date: Wed Jul 11 20:46:07 2012 +0200 > >> >>>> > >> >>>> systemd.bbclass: add *-systemd packages to RRECOMMENDS > >> >>> > >> >>> This is a bit unfortunate e.g. when busybox is used in small chroot > >> >>> image. busybox pulls busybox-syslog, which now adds > >> >>> busybox-syslog-systemd and it ends with > >> >>> systemd/dbus/udev/shadow/pam/util-linux/kmod being added to > >> >>> previously small image, see: > >> >>> > >> >>> http://git.shr-project.org/git/?p=3Dbuildhistory.git;a=3Dblobdiff;= f=3Dimages/crespo/eglibc/chroot-image/installed-package-names.txt;h=3D07187= b9e51bd0199910152a8019d117ed41cc2db;hp=3D8f401e657dd449e30fe8183dc86a791d09= 614d9f;hb=3Dac04304bb15221b49e5af6838068f158e7d628ed;hpb=3D4c0555e7fa689c3c= 20902c7fc1ec8e525769723f > >> >>> > >> >>> > >> >>> > >> So it could be solved by image specific BAD_RECOMMENDATIONs or somethi= ng > >> >>> like that, but by default it doesn't work very well in this > >> >>> use-case. > >> >>> > >> >>> Cheers, > >> >>> > >> >> I think the image specific BAD_RECOMMENDATION is not that easy to > >> >> implement and to handle by user. I am 'dreaming' of of a distro lay= er > >> >> blacklist. So in your case the distro could mask out whole > >> >> meta-systemd. Could you live with that? > >> > > >> > No, as the same distro is used to create full images with systemd and > >> > this chroot-image is just small initramfs for kernel (where > >> > systemd+friends is really not needed/expected). > >> > >> I think the easiest solution is to remove 'inherit systemd' from busyb= ox. > > > > I have similar problem with gpsd/fso-gpsd and gpsd-systemd too.. On some > > devices I would like to include gpsd-systemd in image (e.g. with > > systemd-machine-units or through some machine specific task), but on > > others (e.g. om-gta02) I need only fso-gpsd.service to provide gpsd > > (gpsd-systemd locks gpsd port). > > > > So maybe I didn't understand Andreas right.. I can put all *-systemd > > packages to BAD_RECOMMENDATIONs and then include only needed in > > tasks/images like I did before.. > > > Martin, >=20 > Correct me if I go wrong but I think you are mixing up two issues: yes but slightly related, see bellow >=20 > issue 1. busybox: automatic redepending drags in things you don't want. > issue 2. gpsd: If I understand you right: there are two services > shipped and auto-enabled and that is leading to a conflict. Yes, but sofar having gpsd installed was fine, because it didn't pull gpsd-systemd too (so user was able to start gpsd manually if needed). Now with PN-systemd pulled by PN I need to be more carefull with images having both gpsd/fso-gpsd. > My suggestions: > issue 1. Similar as Koen suggested but I would add an additional > variable - something like SYSTEMD_NO_RRECOMMENDS_{PN}. If this is set > to "1", the automatic rrecommends are not appended. > issue 2. The conflict could be resolved by SYSTEMD_AUTO_ENABLE =3D "disab= le". I'm trying BAD_RECOMMENDATIONS to resolve this: http://git.shr-project.org/git/?p=3Dmeta-smartphone.git;a=3Dcommit;h=3D6794= 53cdbc2c58b6558c8ede8e6e17826dbb7b3d http://git.shr-project.org/git/?p=3Dmeta-smartphone.git;a=3Dcommit;h=3Dfe8a= 92f123ef3137a9e08e6419315f97f4a663fb http://git.shr-project.org/git/?p=3Dmeta-smartphone.git;a=3Dcommit;h=3D1afd= d57475bd3ce586e622bfe6baeb3906bedc2f http://git.shr-project.org/git/?p=3Dmeta-smartphone.git;a=3Dcommit;h=3Daf74= fe87eeb606b167697453d515a269e2280eb6 but it needs more testing (other builds still running) and for some reason opkg refuses to remove gpsd-systemd: SHRZ root@zjama ~ $ opkg remove gpsd-systemd No packages removed. Collected errors: * print_dependents_warning: Package gpsd-systemd is depended upon by packa= ges: * print_dependents_warning: task-shr-systemd * print_dependents_warning: gpsd * print_dependents_warning: These might cease to work if package gpsd-syst= emd is removed. * print_dependents_warning: Force removal of this package with --force-dep= ends. * print_dependents_warning: Force removal of this package and its dependen= ts * print_dependents_warning: with --force-removal-of-dependent-packages. SHRZ root@zjama ~ $ opkg info gpsd Package: gpsd Version: 3.4-r7 Depends: libgps20 (>=3D 3.4), update-rc.d, gpsd-gpsctl, libgpsd20 (>=3D 3.4= ), bluez4 (>=3D 4.101), libusb-1.0-0 (>=3D 1.0.8), libc6 (>=3D 2.16) Recommends: gpsd-conf, gpsd-systemd even when it's only in gpsd's Recommends.. will check buildhistory after image build if it works there.. Cheers, --=20 Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com --TYoqghpzCwoKvQG2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAlAGyBQACgkQN1Ujt2V2gBwtgQCgkvjqchjfQZsPS8VWqJjJAuNB pNIAn3vpKaambs5SoN9KzZ4Uw2bvcJJv =O7ZQ -----END PGP SIGNATURE----- --TYoqghpzCwoKvQG2--