View previous topic :: View next topic |
Author |
Message |
bstaletic Guru
Joined: 05 Apr 2014 Posts: 381
|
Posted: Thu Nov 28, 2024 8:49 am Post subject: I clobbered my package.use |
|
|
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 |
|
|
nicop Tux's lil' helper
Joined: 10 Apr 2014 Posts: 99
|
Posted: Thu Nov 28, 2024 9:42 am Post subject: |
|
|
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 |
|
|
bstaletic Guru
Joined: 05 Apr 2014 Posts: 381
|
Posted: Thu Nov 28, 2024 10:29 am Post subject: |
|
|
Nice! I was planning on writing something similar, by parsing /var/db/pkg, but enalyze will be a nice shortcut. |
|
Back to top |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3941
|
Posted: Thu Nov 28, 2024 10:44 am Post subject: |
|
|
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 |
|
|
rab0171610 Guru
Joined: 24 Dec 2022 Posts: 434
|
Posted: Thu Nov 28, 2024 11:23 am Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54596 Location: 56N 3W
|
Posted: Thu Nov 28, 2024 1:57 pm Post subject: |
|
|
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 |
|
|
bstaletic Guru
Joined: 05 Apr 2014 Posts: 381
|
Posted: Thu Nov 28, 2024 5:00 pm Post subject: |
|
|
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 |
|
|
|