From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id BBF921381F3 for ; Sun, 2 Dec 2012 15:00:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3E74421C027; Sun, 2 Dec 2012 15:00:29 +0000 (UTC) Received: from iguard1-216.hkbn.net (iguard1-216.hkbn.net [203.186.220.216]) by pigeon.gentoo.org (Postfix) with ESMTP id 1115821C003 for ; Sun, 2 Dec 2012 14:59:00 +0000 (UTC) Received: from outguard01.hkbn.net ([203.186.94.187]) by iguard1.hkbn.net with ESMTP; 02 Dec 2012 22:58:59 +0800 Received: from outguard01.hkbn.net (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 106A33D0040 for ; Sun, 2 Dec 2012 22:58:59 +0800 (HKT) Received: from smtp1o.ctimail.com (unknown [203.186.94.57]) by outguard01.hkbn.net (Postfix) with ESMTP id E30143D003D for ; Sun, 2 Dec 2012 22:58:58 +0800 (HKT) Received: from gentoo-main.kwkh-home (183178212219.ctinets.com [183.178.212.219]) by smtp1o.ctimail.com (8.14.5/8.14.5) with ESMTP id qB2Ewv4T011703 for ; Sun, 2 Dec 2012 22:58:58 +0800 Date: Sun, 2 Dec 2012 22:58:47 +0800 From: kwkhui@hkbn.net To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] emerge --update : how to keep it going? Message-ID: <20121202225847.1a6e635d@gentoo-main.kwkh-home> In-Reply-To: <20121202161202.05923071@khamul.example.com> References: <1354278367.13959.0@numa-i> <50B8E26E.6020907@orlitzky.com> <3685331.7YM97IiLFU@atom> <33863279.yiiX5jZFcB@energy> <87ehj94k96.fsf@einstein.gmurray.org.uk> <20121202161202.05923071@khamul.example.com> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.12; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA512; boundary="Sig_/yA5RCU5TQS5gupFPBm_1Bv9"; protocol="application/pgp-signature" X-TM-AS-Product-Ver: IMSVA-8.2.0.1391-6.8.0.1017-19412.000 X-TM-AS-Result: No--21.391-9.9-31-10 X-imss-scan-details: No--21.391-9.9-31-10;No--21.391-5.0-31-10 X-TMASE-Version: IMSVA-8.2.0.1391-6.8.1017-19412.000 X-TMASE-Result: 10--21.391000-5.000000 X-TMASE-MatchedRID: vEvJ7Rh1lGi9GVQT/CmkaCa1MaKuob8Pt3aeg7g/usCe9toQ6h6LEy65 jruTmCNM7PvbF2KEGtnbHihwcxI1hDIJuNwM7LsdSEQN/D/3cG5cSMp/1+Epp5DGMP3wlcbjrFT vZ1iueyq3XxzphmWYqYWeEkPZW3TMjlkz19bnEOBCnGIuUMP0VeAe2rni5lNAAVscD1Oo0tBzxf lTyszcBjVDbThF1ruvjMu2H4gIY6Gm/1QyC3ukVSFpuAzKv2CIIR1rLBJm/M4OUs4CTUgKy7BDT 3An2Pm43cALaJlN0RajGNOk4fDM6vaUmQfqwOjjvbFZsqMF9Y8sCc2iFTIxrfWAXs8IQX1uyNOG ah7scwFHdUeOC2DdDw6NRHqRBgRzd1Y1V4f00o+JDLgwb/1K2cidYBYDjITpAsMBg/gBdVGhqI4 jKoEbwrxAi7jPoeEQftwZ3X11IV0= X-Archives-Salt: 13eb34bc-bfad-4799-b5c1-31e17f3050ed X-Archives-Hash: 13215a7f0d4056e6c5e3da65aadbd5f9 --Sig_/yA5RCU5TQS5gupFPBm_1Bv9 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sun, 2 Dec 2012 16:12:02 +0200 Alan McKinnon wrote: > On Sat, 01 Dec 2012 19:58:45 +0000 > Graham Murray wrote: >=20 > > Volker Armin Hemmann writes: > >=20 > > > --keep-going does not help you, if the emerge does not start > > > because of missing dep/slot conflict/blocking/masking whatever...=20 > >=20 > > Though it would be nice if there was some flag, probably mainly of > > use with either ' -u @world' or --resume, to tell portage to get on > > and merge what it can and leave any masked packages or those which > > would generate blockers or conflicts.=20 > >=20 >=20 > That is a terribly bad idea, and you need to have a fairly deep > understanding of IT theory to see it (which is why so few people see > it). I don't know which camp you are in. >=20 > The command is to emerge world, and it's supposed to be determinate, > i.e. when it's ready to start you can tell what it's going to do, and > that should be what you told it to do, no more and no less[1] >=20 > the command is=20 > "emerge world" > not=20 > "emerge the-bits-of-world-you-think-you-can-deal-with" >=20 > If portage cannot emerge world and fully obey what root told it to do, > then portage correctly refuses to continue. It could not possibly be > any other way, as eg all automated build tools (puppet, chef and > friends, even flameeyes's sandbox) break horribly if you do it any > other way. Life is hard enough dealing with build failures without > adding portage do somethign different to what it was told into the > mix. >=20 > [1] "determinate" excludes build failures, as those are not > predictable. Dep graph failures happen before the meaty work begins. >=20 >=20 >=20 While there are good reasons not to implement it in portage itself, you can implement it with a bit of help from shell scripts telling portage what to do. Do an "emerge -uDpv world", use sed or awk or whatever to replace the beginning [ebuild ...] and whatever come after the package name&version, and finally loop "emerge -1 =3D${package}" for each package in that list. Now provided you discard the return value of emerge, if such ${package} will give you something that portage doesn't think is a good idea (e.g. unsatisfiable dependencies), the loop will go on to the next package instead of completely halting. The shell script is thus left as an exercise. The usual warning applies:- it can be done doesn't necessarily mean it is a good idea to do it. Kerwin. --Sig_/yA5RCU5TQS5gupFPBm_1Bv9 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iQIcBAEBCgAGBQJQu2yvAAoJEN8jXmjJyWMkhlMQAJS2MUB9um2aQAiFvWbO4ubK r0/gslrJwono7jXcy2VpWXkWOaTO9CbHcH9Gl7m83VJk/1RlYFX7HldNLkSn5Xiq whUEWrWe3OJlyDoM5XucLWhQ734L8ye0+qGnqNPYEHUFyf0eJ4yKjewWvu81Y0Jz kwOnes7PCySbwucRZc1RXFoaydA1JqtyBMQRPoLR5H28qyeHYD/HZY5eqyKJhPUf SDPSYd+sUWuikakyfkQ7cwPnhb+geFew6kX/cxBcbEHbaZQc8UgEvW8rgs3+7wxO 0AFfuDwMX97HfgHst2lUPIa0PWm6JqZrKGng3YysFb7pSrYzQbVHzhCKdY8T1UpX TxzC4QhL3XhT4utZq31MGpwIpicuQ3b3hZln3YXXDaNKppwPaC1Wh6NzgXWXUjXu lN2SiCGAJDkHdOoek2Z8c8cxkOMPfin27hywxsptjyP8V5o1X+lHvDCnwAfQd14P OEMAcgnwFxXTY7+aPdIS2bDkFcBbDkhPT4VgqVaCTjzzxoLrr8UXD9XttzutNB0o j4pY8amJRM44/vs0yXKqfH3DfNYySvCMd65QhYYvIwojGpiSvaT0hbxwZ6Zy+xYj /kFlaLOrl/R4FY/xFiUhXiA+CFPJILQkYXxiYBwtjIB70cMIaO/Pk3SKe4tps0qx e6e39v8y6XIB8eYrEVoa =Uhxo -----END PGP SIGNATURE----- --Sig_/yA5RCU5TQS5gupFPBm_1Bv9--