From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Qt1Wj-0003zM-0d for garchives@archives.gentoo.org; Mon, 15 Aug 2011 18:04:41 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 00F9F21C0B4; Mon, 15 Aug 2011 18:04:27 +0000 (UTC) Received: from mail-ww0-f53.google.com (mail-ww0-f53.google.com [74.125.82.53]) by pigeon.gentoo.org (Postfix) with ESMTP id C4DC221C0B4 for ; Mon, 15 Aug 2011 18:03:08 +0000 (UTC) Received: by wwf25 with SMTP id 25so4447311wwf.10 for ; Mon, 15 Aug 2011 11:03:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:content-type; bh=RO3qrgH9Joj7x7BHipzVI5prsEJjJY4aR8XN+pOIEWg=; b=fl5xnW6wQWA2sl3D0zy1d0OQN+1TEnA8dSm22asCxM2AHLwAwv7ct/EbueTOpIzrnX rChHcuyaG87VmodfiyCt1B1avUA3jkxNtusumMUHKdt5HmBEHKqmFaxiHzgDCDN7kdKD NWLZ+rfoeHiygAvrlzsetSPF3QiZsktGkvVLg= Received: by 10.216.136.160 with SMTP id w32mr2565739wei.30.1313431387961; Mon, 15 Aug 2011 11:03:07 -0700 (PDT) Received: from nazgul.localnet (196-210-153-55.dynamic.isadsl.co.za [196.210.153.55]) by mx.google.com with ESMTPS id z49sm2194295wec.26.2011.08.15.11.03.04 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 15 Aug 2011 11:03:06 -0700 (PDT) From: Alan McKinnon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Portage autounmask is strange again Date: Mon, 15 Aug 2011 20:02:46 +0200 Message-ID: <5006513.oKXHeACIb6@nazgul> User-Agent: KMail/4.7.0 (Linux/2.6.39-ck-r2; KDE/4.7.0; x86_64; ; ) In-Reply-To: <4E4957F9.4020505@darkmetatron.de> References: <4E4957F9.4020505@darkmetatron.de> 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-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Archives-Salt: X-Archives-Hash: 52917f8e080cb2e531d6afbd54c8bdf4 On Mon 15 August 2011 19:31:37 Sebastian Be=C3=9Fler did opine thusly: > I just tried >=20 > emerge -DuN @world @system -va >=20 > and got: >=20 > These are the packages that would be merged, in order: >=20 > Calculating dependencies ... done! > [ebuild U ] perl-core/ExtUtils-ParseXS-3.20.0 [2.22.06] 0 kB > [ebuild U ] www-client/firefox-bin-5.0 [3.6.19] > USE=3D"startup-notification" > [ebuild N ] x11-themes/tango-icon-theme-0.8.90 USE=3D"png" 0 kB= > [ebuild N ] media-plugins/kipi-plugins-2.0.0 USE=3D"cdr crypt > imagemagick mediawiki opengl (-aqua) -calendar -debug -expoblending > -gpssync -handbook -ipod (-kdeenablefinal) -mjpeg -redeyes -scanner" >=20 > [ebuild N ] media-gfx/digikam-2.0.0 USE=3D"gphoto2 handbook > thumbnails -addressbook (-aqua) -debug -doc (-kdeenablefinal) -mysql > -semantic-desktop -themedesigner -video" >=20 > [ebuild N ] xfce-base/xfce4-meta-4.8 USE=3D"session svg > -minimal" 0 kB >=20 > Total: 6 packages (2 upgrades, 4 new), Size of downloads: 15,432 kB >=20 > The following keyword changes are necessary to proceed: > #required by @selected, required by @world (argument) >=20 > >=3Dperl-core/ExtUtils-ParseXS-3.20.0 ~amd64 >=20 > NOTE: This --autounmask behavior can be disabled by setting > EMERGE_DEFAULT_OPTS=3D"--autounmask=3Dn" in make.conf >=20 > But if I run: >=20 > EMERGE_DEFAULT_OPTS=3D"--autounmask=3Dn" emerge -DuN @world @system -= va >=20 > I get: >=20 > These are the packages that would be merged, in order: >=20 > Calculating dependencies ... done! > [ebuild U ] www-client/firefox-bin-5.0 [3.6.19] > USE=3D"startup-notification" > [ebuild N ] x11-themes/tango-icon-theme-0.8.90 USE=3D"png" 0 kB= > [ebuild N ] media-plugins/kipi-plugins-2.0.0 USE=3D"cdr crypt > imagemagick mediawiki opengl (-aqua) -calendar -debug -expoblending > -gpssync -handbook -ipod (-kdeenablefinal) -mjpeg -redeyes -scanner" >=20 > [ebuild N ] media-gfx/digikam-2.0.0 USE=3D"gphoto2 handbook > thumbnails -addressbook (-aqua) -debug -doc (-kdeenablefinal) -mysql > -semantic-desktop -themedesigner -video" >=20 > [ebuild N ] xfce-base/xfce4-meta-4.8 USE=3D"session svg > -minimal" 0 kB >=20 > Total: 5 packages (1 upgrade, 4 new), Size of downloads: 15,432 kB >=20 > Would you like to merge these packages? [Yes/No] >=20 > [LINGUAS was stripped by me to remove unneded clutter from this > post] >=20 > I run ~amd64 but have =3Dperl-core/ExtUtils-ParseXS-3.20.0 -~amd64 > because of a bug with imagemagick [#378383]. >=20 > Why is autounmask trying to unmask ExtUtils-ParseXS if it's not > needed? Should I report this as a bug? It's not a bug, portage is doing what it should. In the first case portage will try upgrade all packages to the latest=20= version. It sees that you asked it to try autounmask stuff, so it=20 wants to override your local mask for ExtUtils-ParseXS.=20 In the second case you have told portage to upgrade system and world=20= but to leave masking well enough alone. As your current installed=20 version of ExtUtils-ParseXS satisfies all needs, it makes no effort to=20= try and upgrade it. The trick to working with autounmask is to realise that it is stupid=20= software, it cannot possibly know what you want or intend. So it tries=20= a blanket approach for the most part. If you have more complex masking=20= than just stable/unstable statistically it will be wrong far more=20 often than it is right. It's possible to come up with an "autounmask ignore" file but that=20 gets way too complex really quickly and easily turns into an=20 unmaintainable mess. Devs are usually reluctant to go this route, as=20= the mess just ends up in their inbox. --=20 alan dot mckinnon at gmail dot com