From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 96D571396D0 for ; Wed, 16 Aug 2017 13:41:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D410C1FC0B6; Wed, 16 Aug 2017 13:41:20 +0000 (UTC) Received: from mail-it0-x234.google.com (mail-it0-x234.google.com [IPv6:2607:f8b0:4001:c0b::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 84D6F1FC002 for ; Wed, 16 Aug 2017 13:41:20 +0000 (UTC) Received: by mail-it0-x234.google.com with SMTP id 76so17296818ith.0 for ; Wed, 16 Aug 2017 06:41:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=FCUYm7eWihOk/TKH77YcRyPGGKLSXM496alq2+ZSd7M=; b=p3IIoLiR+Z629dGR8vANCdT1SgvcCCjUl1VRpjF+BK9z1A6G7N+7KUclH63yIhoiN2 v/8yBCP0FB2hnfqCZjI27EWBju5p6gr99ucK+NmH09JS/cDTRWkSaDOV3OZ0jaQbHwkT jp6nh8CDNovnpbdqVJbxP1AVV23jvM02xImWH2tPS0MUv5PPu8VdB8fiuewzYPsdJdrE OAxQseKDiTb9bO0EuAys/WfjqFNlVu98VWRsUK1kBhelJYPrwMxRd9zrpnyKfJfo24qr ruaV3I6G86ebWt56HfhE2dXSbKnavMSItI6e+A5ySCaw3EN/Qygd8l/pYxug2ATqfwuy e44w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=FCUYm7eWihOk/TKH77YcRyPGGKLSXM496alq2+ZSd7M=; b=iABi/j/Q7I9+jCbsFW4nkKSB1nrtzZRA/m54sII9NCZHw9gv8N/IuuBEantoI/LadZ 9IgQKiFc6u6zYhVmbvVSiPV9RGDq34evS/6unHjJpn22fyLg3FFPLdjEXfx5W9OThHyO yl9+KpV1Dy4tYkFykWw5JUfrx5kCd3Zwm3cc4c+oIQtQ17DaYfPHJlPWY9JEjvoufBVc 8nz2OfbYISVzJk2g7tRLPy+9Z9iSICjMzvw917oNd+gmhv9TQmJquYEIBHVMeu7EzuzG NJ6cGlbbau5qN7f7sQ4aYGPqYQShkMS4W58KMjDcls/siLVzw3S/XulRBGO8jH27aDye EoBw== X-Gm-Message-State: AHYfb5gnm9+bv4r3x0THe6MllrAQlkgs1gNCg1Ebz/y3wbO3su1T0Txz KRPd3Wr1DIYdesYxKKTb5xjT7YKk6RBGaPU= X-Received: by 10.36.208.79 with SMTP id m76mr1717416itg.45.1502890879688; Wed, 16 Aug 2017 06:41:19 -0700 (PDT) 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 Received: by 10.36.51.209 with HTTP; Wed, 16 Aug 2017 06:40:59 -0700 (PDT) In-Reply-To: References: From: Arve Barsnes Date: Wed, 16 Aug 2017 15:40:59 +0200 Message-ID: Subject: Re: [gentoo-user] cleaning /var/lib/portage/world To: Gentoo Content-Type: multipart/alternative; boundary="001a1149d3b60524650556df0db8" X-Archives-Salt: 12b9143f-35c2-4cf2-a0f1-889ffcc90693 X-Archives-Hash: 8237cc255f9acd7f714122a68a224469 --001a1149d3b60524650556df0db8 Content-Type: text/plain; charset="UTF-8" On 16 August 2017 at 13:32, Francisco Ares wrote: > But, after backing up the original "world" file and replacing with the one > built by the script, things don't work as expected, as a lot of packages > were orphaned, by checking with "depclean". > > Anyone could tell me what did I miss? > You're probably getting false positives from equery, as you haven't taken USE flags into consideration. An example: # equery d unrar app-arch/rar-5.5.0_p20170811 (all_sfx ? app-arch/unrar) app-emulation/winetricks-20170614 (rar ? app-arch/unrar) I don't have the USE="rar" set on winetricks, so although it is correct that rar would keep unrar available, since I have USE="all_sfx" set, your script will make the wrong choice if I don't have rar installed. Cheers, Arve --001a1149d3b60524650556df0db8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On 1= 6 August 2017 at 13:32, Francisco Ares <frares@gmail.com> wro= te:
<= div>But, after backing up the original "world" file and replacing= with the one built by the script, things don't work as expected, as a = lot of packages were orphaned, by checking with "depclean".
=

Anyone could tell me what did I miss?

You're probably getting false positives from= equery, as you haven't taken USE flags into consideration.

An example:
# equery d unrar
app-arch/rar-5.5.0_p20170811 (all= _sfx ? app-arch/unrar)
app-emulation/winetricks-20170614 (rar ? app-arch= /unrar)

I don't hav= e the USE=3D"rar" set on winetricks, so although it is correct th= at rar would keep unrar available, since I have USE=3D"all_sfx" s= et, your script will make the wrong choice if I don't have rar installe= d.

Cheers,
Arve
--001a1149d3b60524650556df0db8--