public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Reconstruct package.use
Date: Sun, 15 Mar 2015 22:56:52 +0200	[thread overview]
Message-ID: <5505F214.8010905@gmail.com> (raw)
In-Reply-To: <689609943.211110.1426430732068.JavaMail.open-xchange@oxuslxltgw01.lxa.perfora.net>

On 15/03/2015 16:45, Bruce Hill, Jr. wrote:
> 
> 
>> On March 14, 2015 at 6:12 PM Alan McKinnon <alan.mckinnon@gmail.com> wrote:
>>
>>
>> It took 10 years but I've finally done something monumentally stupid in
>> Gentoo:
>>
>> I delete package.use and have no backup
>>
>> Is there any easy way to recover what was in it? I'm busy doing it the
>> long way round - repeatedly running emerge world, get past the blocking
>> USE, then see all the flags that portage thinks changed.
>>
>> I wonder if there might be an easier way that I don't know of.
>>
>> -- 
>> Alan McKinnon
>> alan.mckinnon@gmail.com
> 
> You have lost nothing, thanks to gentoolkit. Please run "enalyze rebuild use"
> and you will get package.use.test which will be the difference between default
> USE flags and yours. Then "mv package.use.test /etc/portage/package.use" will
> put you back in business.


Good find, hopefully I'll never need it again :-)

As luck would have it, I'd already finished reconstructing the file
manually the long way round - took about 3 hours.


-- 
Alan McKinnon
alan.mckinnon@gmail.com



      parent reply	other threads:[~2015-03-15 20:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-14 22:12 [gentoo-user] Reconstruct package.use Alan McKinnon
2015-03-14 22:36 ` Simon Thelen
2015-03-14 23:07   ` Alan McKinnon
2015-03-14 23:39     ` [gentoo-user] " James
2015-03-14 23:56       ` Alan McKinnon
2015-03-14 23:52 ` [gentoo-user] " Neil Bothwick
2015-03-15  0:03   ` Alan McKinnon
2015-03-15 14:45 ` Bruce Hill, Jr.
2015-03-15 17:22   ` Neil Bothwick
2015-03-15 20:56   ` Alan McKinnon [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5505F214.8010905@gmail.com \
    --to=alan.mckinnon@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox