Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I clobbered my package.use
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
bstaletic
Guru
Guru


Joined: 05 Apr 2014
Posts: 381

PostPosted: Thu Nov 28, 2024 8:49 am    Post subject: I clobbered my package.use Reply with quote

This is not a cry for help. If it were, this topic wouldn't have been opened in "Gentoo Chat" subforum.
I'm just posting my first linux mistake in years.

Most of my package.use contents are in package.use/custom.
Yesterday I realized that media-gfx/feh can open urls of images if compiled with the curl USE flag.
To try it out, I ran USE=curl emerge feh and it worked great!
I was feeling lazy and did not want to open my editor to commit the USE change to my package.use.
Instead I ran
Code:
echo 'media-gfx/feh curl' | sudo tee /etc/portage/package.use/custom

Next I wanted to update my system and was greeted with
Code:
!!! Problem resolving dependencies for sys-apps/util-linux from @system
... done!
Dependency resolution took 1.17 s (backtrack: 0/20).


!!! The ebuild selected to satisfy "sys-apps/util-linux" has unmet requirements.
- sys-apps/util-linux-2.40.2::gentoo USE="cramfs hardlink logger ncurses readline su suid udev (unicode) -audit -build -caps -cryptsetup -fdformat -kill -magic -nls -pam -python (-rtas) (-selinux) -slang -static-libs -systemd -test -tty-helpers -uuidd -verify-sig" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="-python3_10 -python3_11 -python3_12"

  The following REQUIRED_USE flag constraints are unsatisfied:
    su? ( pam )

  The above constraints are a subset of the following complete expression:
    python? ( any-of ( python_targets_python3_10 python_targets_python3_11 python_targets_python3_12 ) ) su? ( pam )


Well... I know what I've done wrong...
Back to top
View user's profile Send private message
nicop
Tux's lil' helper
Tux's lil' helper


Joined: 10 Apr 2014
Posts: 99

PostPosted: Thu Nov 28, 2024 9:42 am    Post subject: Reply with quote

gentoolkit will help you :
Code:
enalyze rebuild -p use


Remove '-p' to create a file.

As said by the command :
Quote:
-- Scanning installed packages for USE flag settings that
do not match the default settings

-- These are the installed packages & use flags that were detected
to need use flag settings other than the defaults.



EDIT : enalyze don't take into account global useflags in /etc/portage/make.conf
Back to top
View user's profile Send private message
bstaletic
Guru
Guru


Joined: 05 Apr 2014
Posts: 381

PostPosted: Thu Nov 28, 2024 10:29 am    Post subject: Reply with quote

Nice! I was planning on writing something similar, by parsing /var/db/pkg, but enalyze will be a nice shortcut.
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3941

PostPosted: Thu Nov 28, 2024 10:44 am    Post subject: Reply with quote

Interesting...

Baclk in time; I wish I had known that.
My way to fix was much harder...

Currently have one file per CATEGORY/PACKAGE which has its pro and con.

Risk remains however. Recovery will hence be much easier.

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
rab0171610
Guru
Guru


Joined: 24 Dec 2022
Posts: 434

PostPosted: Thu Nov 28, 2024 11:23 am    Post subject: Reply with quote

You might benefit from having a system in place for automatically creating regular backups, preferably on a separate drive.

In the future, you could easily restore damaged or corrupted files from a backup in just a few seconds.

My IT professors used say, "Backups, Backups, Backups!".
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54596
Location: 56N 3W

PostPosted: Thu Nov 28, 2024 1:57 pm    Post subject: Reply with quote

Your mistake was not taking account of my signature. :)
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
bstaletic
Guru
Guru


Joined: 05 Apr 2014
Posts: 381

PostPosted: Thu Nov 28, 2024 5:00 pm    Post subject: Reply with quote

I know, I know... I should have backups!

@NeddySeagoon The funny part is that I know your signature by heart and even recited on rare occasions.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum