Re: [gentoo-user] Package management, depclean and new installs

2021-10-03 Thread William Kenworthy


On 4/10/21 11:30 am, coa...@tuta.io wrote:
> Hi y'all new confused user regarding package management
>
> How do you guys manage and protect your packages?
> Do you just put everything on world and end up with a huge world file?
> Do you have basic system files on world and the rest you protect or omit?
> Do you create new(personalised) files depending on category and
> somehow link them in any of the above 3?
>
> It's just emerging everything you are not sure you will keep with -1
> seems cumbersome to me especially if at some point I want to transfer
> to a new device and want to copy my settings over ,select what to keep
> and discard the rest,depcleaning with pretend all the time seems
> annoying on the long term as well so there should be lots of different
> solutions from different people(at least thats what I think)
>
> I just think this is one of the things its better I learn now rather
> than later and forum or wiki info is too "on-point" on a specific
> situation so I thought I'd ask the userbase


Apps I am trying out or wont keep for long, install with -1

Apps I want, install without -1

Updates - always use -1 and after a successful update is complete run
emerge --depclean -p and make sure whats being removed is really correct
then remove the -p.

Occasionally go through "/var/lib/portage/world" and turf things you no
longer need or don't know the use of, then run emerge --depclean -p and
make sure whats being removed is really correct then remove the -p.

BillK





Re: [gentoo-user] Package management, depclean and new installs

2021-10-03 Thread Arve Barsnes
On Mon, 4 Oct 2021 at 05:30,  wrote:
>
> Hi y'all new confused user regarding package management
>
> How do you guys manage and protect your packages?
> Do you just put everything on world and end up with a huge world file?
> Do you have basic system files on world and the rest you protect or omit?
> Do you create new(personalised) files depending on category and somehow link 
> them in any of the above 3?

I'm not sure I understand what you are asking about when you say
'protect' here? As cal said, putting the actual programs you use in
world is the way to go, and portage will take care of dependencies for
you. Putting more than needed in world can sometimes confuse portage
to the point where you could have problems that can be annoying to
troubleshoot.

> It's just emerging everything you are not sure you will keep with -1 seems 
> cumbersome to me especially if at some point I want to transfer to a new 
> device and want to copy my settings over ,select what to keep and discard the 
> rest,depcleaning with pretend all the time seems annoying on the long term as 
> well so there should be lots of different solutions from different people(at 
> least thats what I think)

As you can see from the two earlier replies, from cal and Dale, this
depends on how you want to manage your system. If you do a lot of
installing, putting -1 in your defaults might be the way to go, but
personally I'm in cal's camp, I would much rather remember the -1 when
I'm doing something ad hoc, and have any programs I want added to
world without adding another flag to my emerge command.

As for depclean, I have added an alias for depclean with --pretend
that I use after world updates. Unless you have installed something
with -1, most of the time that list is empty. And the output gives
nice clean lists of what packages it wants to remove, with exact
version strings and slots, so if I agree, I just do 'emerge -C ' and I'm good to go.

Cheers,
Arve



Re: [gentoo-user] Package management, depclean and new installs

2021-10-03 Thread Dale
coa...@tuta.io wrote:
> Hi y'all new confused user regarding package management
>
> How do you guys manage and protect your packages?
> Do you just put everything on world and end up with a huge world file?
> Do you have basic system files on world and the rest you protect or omit?
> Do you create new(personalised) files depending on category and
> somehow link them in any of the above 3?
>
> It's just emerging everything you are not sure you will keep with -1
> seems cumbersome to me especially if at some point I want to transfer
> to a new device and want to copy my settings over ,select what to keep
> and discard the rest,depcleaning with pretend all the time seems
> annoying on the long term as well so there should be lots of different
> solutions from different people(at least thats what I think)
>
> I just think this is one of the things its better I learn now rather
> than later and forum or wiki info is too "on-point" on a specific
> situation so I thought I'd ask the userbase


This is the way I've done it for a while, a couple decades.  Once I get
my new install done, everything installed that I want, I change the
default for the emerge command and add --oneshot or -1.  That way if I'm
trying to work through a upgrade problem, I don't have to remember to
use -1 to keep world clean.  My default emerge options look like this:

EMERGE_DEFAULT_OPTS="--with-bdeps y --backtrack=100 --keep-going -v -j5
--quiet-build=n -1 --unordered-display"

Obviously, depending on CPU, available memory etc, you may want to
adjust those to your case.  The key points here, the -1, --with-bdeps y,
--backtrack=100 and --keep-going options.  99% of the time, when I do my
updates with the command emerge -auDN world, that gives me a easy
upgrade.  There may be exceptions at times but generally that works and
gives me a stable system. 

Keep in mind, you don't have to worry about @system much if any.  It's
handled by the devs.  As for world, you only keep in there the packages
you use.  When you update or install something new, emerge takes care of
whatever depends on the package you want.  As a example, if you want a
full KDE install, you just emerge the kde meta package and it gets
recorded in the world file.  The emerge command will take care of all
the other packages that depend on the meta package.  That is a LOT of
packages too.  My biggest advice, if you find yourself fighting emerge
to get things done, you're doing something wrong.  These days, emerge
-av  should work virtually 100% of the time.  You may have to
adjust USE flags or something but it should just work.   

Over the years, I've adjusted options until I got a easy update path. 
This works really, really well.  I update once a week, usually Sunday
night.  Lately, I start late Saturday night or Sunday morning.  That way
I'm done and can update my backups Sunday night. 

Hope that helps.  Welcome to Gentoo and the source of good heat, lots of
compiling.  lol

Dale

:-)  :-) 



Re: [gentoo-user] Package management, depclean and new installs

2021-10-03 Thread cal
On 10/3/21 8:30 PM, coa...@tuta.io wrote:
> Hi y'all new confused user regarding package management
> 
> How do you guys manage and protect your packages?
> Do you just put everything on world and end up with a huge world file?
> Do you have basic system files on world and the rest you protect or omit?
> Do you create new(personalised) files depending on category and somehow link 
> them in any of the above 3?
> It's just emerging everything you are not sure you will keep with -1 seems 
> cumbersome to me especially if at some point I want to transfer to a new 
> device and want to copy my settings over ,select what to keep and discard the 
> rest,depcleaning with pretend all the time seems annoying on the long term as 
> well so there should be lots of different solutions from different people(at 
> least thats what I think)
> 
> I just think this is one of the things its better I learn now rather than 
> later and forum or wiki info is too "on-point" on a specific situation so I 
> thought I'd ask the userbase
> 
I rarely use -1; pretty much exclusively for the case where I just need
to run something once right now and will not need it again.  Otherwise,
I just install it normally, which will add it to my world file, and it
will be preserved during depcleans.  If I later decide I no longer need
this package, I can always remove it later.

My world file has 161 packages; I'm not sure what you consider "huge",
but glancing through the list I don't see a lot of bloat -- I know what
pretty much each of them does/provides to my system.

As far as "system" packages, I just rely on my profile's @system to keep
those.  Things in @world are applications/resources that I installed for
my particular usage.

I'm not sure from your question exactly why you're using -1 frequently
enough to find it cumbersome; if you clarified what you're doing it
might be easier to clarify whether that is "normal" usage or there is a
better way of doing things.

cal



[gentoo-user] Unstable compositor - help!

2021-10-03 Thread antlists

Systemd/wayland setup - currently no graphical login ...

I know they say rebooting doesn't fix anything (and it broke a load for 
me), but it does seem to (sometimes) fix "startplasma-wayland".


But typically, startplasma-wayland will bring up the big K, and then the 
screen goes black. Log in on a different vt, kill wayland, and I've got 
a page of error messages mostly about "can't load compositor" then 
"can't find compositor" etc etc. "Re-installing might fix the problem".


Run it again and it often works, or I get about four error messages. If 
it fails the second time, it tends to stay failed. I can't say "until I 
reboot", because SUSE kindly screwed me over yesterday morning - it 
upgraded the kernel, regenerated grub.cfg, and broke EVERYTHING - itself 
and gentoo ...


Once Wayland is running successfully, most applications seem fine, but 
Thunderbird keeps crashing with "broken pipe" or "lost compositor" or 
stuff like that.


I've also got X installed, but if I try and run that, it doesn't work 
either. BUT IT'S NOT (AFAICT) CRASHING. It just fires up, prints a bunch 
of information messages, and exits. Doesn't even give me a black screen! 
And if I look at the log file, again it's all information messages 
(apart from not being able to find fbdev or vesa which apparently is 
irrelevant because it's loading radeon fine afaict). The only oddity is 
it's reporting my logitech gaming mouse as a keyboard.


Is there a decent trouble-shooting guide for Wayland? The only one I 
found went on about DrKonqui and various dbus stuff. But if you don't 
have a running gui, you don't have DrKonqui? And I don't know, but dbus 
feels to me like it's also a gui thing ... (although I'm probably wrong 
there ...)


(What messed up my system this weekend was I booted into SUSE so I could 
snapshot my gentoo lv, and SUSE wanted to update. So I let it, it 
updated the kernel, and totally fucked up grub.cfg, to the extend I 
ended up in the rescue console editing it... Then once I managed to get 
back into gentoo, it was update world, compile kernel, generate new 
grub.cfg TO A DIFFERENT FILE, and edit the two files carefully together 
so I should have a working boot setup again. Word of warning - DON'T let 
grub-mkconfig loose on a boot partition shared between distros!)


Cheers,
Wol



Re: [gentoo-user] emerge asynchronous anomoly

2021-10-03 Thread Marco Rebhan
On Sunday, 3 October 2021 10:28:49 CEST n952162 wrote:
> Is it so on top of things that  it's downloading many packages early,
> and the download is so aggressive, that nothing else can run?

emerge downloads distfiles for all packages to install in the background 
while the compile jobs are running, check /var/log/emerge-fetch.log. And 
I doubt this has anything to do with it being stuck (unless your disk is 
abysmally slow and it's stuck on IO, but most likely not).

-Marco

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] console scrollback (kernel 5.14)

2021-10-03 Thread Jorge Almeida
On Sat, Sep 25, 2021 at 12:44 AM Jorge Almeida  wrote:
>
> On Fri, Sep 24, 2021 at 5:29 PM Alan Mackenzie  wrote:
> >

>
> > attached.  Please start again from a gentoo-sources without any previous
> > traces of the scrollback patches, and apply that patch.  _Surely_ it
> > should work this time.
> >
> Sure enough, the patch was succesful. Unfortunately, I cannot test it,
>
> Anyway, I'll try again when I manage to fix or replace the computer
> and I'll report then.
>
OK, the patch is working for me, kernel 5.14.4 (not the same
computer---RIP the other one---, but same hard disk)

Thanks

Jorge Almeida



[gentoo-user] emerge asynchronous anomoly

2021-10-03 Thread n952162

Hallo,

there's probably an explanation ...

I'm emerging at this point:

>>> Emerging (51 of 93) perl-core/Encode-3.120.0::gentoo

and there's NO additional log output for a very long time. Looking at
ps(1) shows this:

root 22366 21993  0 07:46 pts/1 00:00:00  |   \_
sudo bash -x /home/user/lbin/update-system
root 22367 22366  0 07:46 pts/1    00:00:00 |   |   \_ bash -x
/home/user/lbin/update-system
root 22369 22367  3 07:46 pts/1    00:04:39 |   |   \_
/usr/bin/python3.9 -b /usr/lib/python-exec/python3.9/emerge --getbinpkg
n -v --tree --deep --update --noreplace --changed-use
--verbose-conflicts --keep-going --with-bdeps=y --backtrack=100 @world
root 29441 22369  0 09:12 pts/1    00:00:00 |   |   \_
[python3.9] 
portage  29450 22369  0 09:12 pts/1    00:00:00 |   |   \_
/usr/bin/python3.9 -b /usr/lib/python-exec/python3.9/emerge --getbinpkg
n -v --tree --deep --update --noreplace --changed-use
--verbose-conflicts --keep-going --with-bdeps=y --backtrack=100 @world
portage  29453 29450  0 09:12 pts/1    00:00:05 |   |  
\_ wget -t 3 -T 60 --passive-ftp -O
/elsewhere/var/cache/distfiles/*firefox-78.14.0esr.source.tar.xz*.__download__
http://distfiles.gentoo.org/distfiles/d6/*firefox-78.14.0esr.source.tar.xz*

i.e. it's downloading a tarball for firefox.  But firefox doesn't come
for a few more hours:

>>> Emerging (52 of 93) virtual/perl-Encode-3.120.0::gentoo
>>> Emerging (53 of 93) sys-devel/binutils-2.37_p1::gentoo
>>> Emerging (54 of 93) net-misc/iputils-20210722::gentoo
>>> Emerging (55 of 93) sys-apps/diffutils-3.8::gentoo
>>> Emerging (56 of 93) dev-lang/tcl-8.6.11::gentoo
>>> Emerging (57 of 93) app-emulation/qemu-6.0.0-r3::gentoo

Is it so on top of things that  it's downloading many packages early,
and the download is so aggressive, that nothing else can run?