Re: [gentoo-user] Manually updating gentoo-sources

2022-02-04 Thread Neil Bothwick
On Fri, 4 Feb 2022 17:53:36 -0600, Dale wrote:

> >> Calculating dependencies... done!
> >> [ebuild  NS   ~] sys-kernel/gentoo-sources-5.16.3:5.16.3::gentoo
> >> [5.6.7:5.6.7::gentoo, 5.10.46:5.10.46::gentoo,
> >> 5.14.15:5.14.15::gentoo, 5.15.17:5.15.17::gentoo] USE="-build
> >> -experimental -symlink" 120,568 KiB
> >>
> >> Total: 1 package (1 in new slot), Size of downloads: 120,568 KiB
> >>
> >> Would you like to merge these packages? [Yes/No]
> >>
> >> It still wants to upgrade.  Could it be that something is pulling it
> >> in as a dependency or something?  Am I still doing something wrong?
> >> This is a update to the above:  
> > It is probably being pulled in as a dependency of
> > virtual/linux-sources, which is part of your profile.

> So I need to go back to my old way, mask them all and unmask when I want
> to upgrade?  It's what I'm used to doing anyway.  lol 

You're using ~amd64 sources, which means they update frequently. I found
this annoying so I only use the stable sources, even on ~amd64 systems to
keep updates to a reasonable level while ensuring I don't miss important
updates. I added this to package.accept_keywords

sys-kernel/gentoo-sources -~amd64
sys-kernel/linux-headers -~amd64

Having said that, it wants to install a new kernel this morning :-/


-- 
Neil Bothwick

If you can smile when things go wrong, you have someone in mind to blame.


pgpZ75ZWO9Zb2.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Removing or renaming old /boot/grub directory warning

2022-02-04 Thread Arve Barsnes
On Sat, 5 Feb 2022 at 07:37, Dale  wrote:
> Should I reinstall grub after removing the old directory so it puts
> things where it needs to be or what?  Or does a new install have that
> old directory too?  While at it, is there something that can give me
> better options in cases like this or do I need to stop renaming stuff?

For what it's worth, this machine is new enough to only ever having
had grub2 on it, and the directory in /boot is still named /boot/grub

Regards,
Arve



Re: [gentoo-user] Re: How to invoke non-selected versions of 'java'?

2022-02-04 Thread Arve Barsnes
On Sat, 5 Feb 2022 at 00:48, Grant Edwards  wrote:
> Yep. I've currently got '-bin' versions installed so here it's:
>
> $ find /opt/{icedtea*,openjdk*} -type f -executable -name 'java'
> /opt/icedtea-bin-3.16.0/jre/bin/java
> /opt/icedtea-bin-3.16.0/bin/java
> /opt/openjdk-bin-11.0.14_p9/bin/java

You should also have the /opt/openjdk-bin-11 symbolic link, so the bin
versions also have a "permanent" path to use in your commands. They're
not in your path since it is the folder names that are versioned, and
not the executables.

Regards,
Arve



[gentoo-user] Removing or renaming old /boot/grub directory warning

2022-02-04 Thread Dale
Howdy,

I asked about this in a thread recently but can't find it now.  Not sure
why because it wasn't that long ago.  In that thread, I was asking about
deleting /boot/grub as it was used for the old grub, not the new and
improved monster sometimes referred to as grub2.  I think it was Neil
that suggested just renaming the directory to grub.old.  Thought that
was a reasonable suggestion so that's what I did.  Dang, Neil gives some
seriously good advice plus he has those nifty signature lines.  ;-)  I
had some kworker process that just wouldn't go away and was using a good
bit of CPU time for some reason.  I decided to reboot to reset that and
guess what, grub puked all over my keyboard about a missing file. 
Anyone care to guess where that file lives? 

TLDR, skip to last paragraph.  After the nasty puking job, I had a grub
rescue prompt.  No freaking clue what to do so out comes the cell phone
and a bit of googling.  Couldn't figure it out so I dug around and found
a old Knoppix DVD and used that to boot with.  I used the mv command to
rename the directory after starting lvm, mounting stuff etc etc.  I
wanted to reinstall grub but had issues using chroot.  Anyway, I
rebooted and grub worked. 

Of course, I recently updated to a new kernel, it got about 2 seconds
into the boot up and it puked on my keyboard with a panic.  Reboot again
and use previous kernel, anyone not understand why I keep backup
kernels?  ROFL  Now here's the kicker.  After getting booted up with the
previous kernel, screen 2 on my video card wouldn't work.  That's my TV
screen.  I ended up having to do a complete power off, what some call a
hard reset.  Rebooted witha working grub, a known good kernel, that can
find all the files it needs, and my second screen comes up. 

Should I reinstall grub after removing the old directory so it puts
things where it needs to be or what?  Or does a new install have that
old directory too?  While at it, is there something that can give me
better options in cases like this or do I need to stop renaming stuff?

The reason for the post is the above questions and this.  If you have a
old grub directory in /boot, do not delete or rename that until you know
grub has all the files it needs elsewhere.  It will get upset and it
won't do you any good either.  Right now, I don't have to wash my hair,
I can just polish my head.  I pulled out a lot of hair dealing with this
and I'd rather no one else had to. 

Dale

:-)  :-)

P. S.  Since my old system rescue CD didn't work, I think it's
scratched, I'm off to make some rescue options, sysrescue and Knoppix
too, just to be sure. 



Re: [gentoo-user] Manually updating gentoo-sources

2022-02-04 Thread Dale
Neil Bothwick wrote:
> On Fri, 4 Feb 2022 11:44:01 -0600, Dale wrote:
>
>> These are the packages that would be merged, in order:
>>
>> Calculating dependencies... done!
>> [ebuild  NS   ~] sys-kernel/gentoo-sources-5.16.3:5.16.3::gentoo
>> [5.6.7:5.6.7::gentoo, 5.10.46:5.10.46::gentoo, 5.14.15:5.14.15::gentoo,
>> 5.15.17:5.15.17::gentoo] USE="-build -experimental -symlink" 120,568 KiB
>>
>> Total: 1 package (1 in new slot), Size of downloads: 120,568 KiB
>>
>> Would you like to merge these packages? [Yes/No]
>>
>> It still wants to upgrade.  Could it be that something is pulling it in
>> as a dependency or something?  Am I still doing something wrong? This is
>> a update to the above:
> It is probably being pulled in as a dependency of virtual/linux-sources,
> which is part of your profile.
>
>


So I need to go back to my old way, mask them all and unmask when I want
to upgrade?  It's what I'm used to doing anyway.  lol 

Dale

:-)  :-) 



[gentoo-user] Re: How to invoke non-selected versions of 'java'?

2022-02-04 Thread Grant Edwards
On 2022-02-04, Arve Barsnes  wrote:
> On Fri, 4 Feb 2022 at 22:49, Grant Edwards  wrote:
>>
>> I've got two "slots" of java currently installed (8 and 11). 
>> [...]
>> How does one manually invoke non-selected version(s) of java?
>> [...]
>
> I don't think there is any convenient out of the box link like for
> python or gcc,

That was what I concluded, but I was a bit surprised.

> but you could make equivalent links if you want.  Otherwise you
> should use the paths in your commands. On this box I have:
>
> /usr/lib64/openjdk-8/bin/java
> /usr/lib64/openjdk-11/bin/java

Yep. I've currently got '-bin' versions installed so here it's:

$ find /opt/{icedtea*,openjdk*} -type f -executable -name 'java'
/opt/icedtea-bin-3.16.0/jre/bin/java
/opt/icedtea-bin-3.16.0/bin/java
/opt/openjdk-bin-11.0.14_p9/bin/java





Re: [gentoo-user] Manually updating gentoo-sources

2022-02-04 Thread Neil Bothwick
On Fri, 4 Feb 2022 11:44:01 -0600, Dale wrote:

> These are the packages that would be merged, in order:
> 
> Calculating dependencies... done!
> [ebuild  NS   ~] sys-kernel/gentoo-sources-5.16.3:5.16.3::gentoo
> [5.6.7:5.6.7::gentoo, 5.10.46:5.10.46::gentoo, 5.14.15:5.14.15::gentoo,
> 5.15.17:5.15.17::gentoo] USE="-build -experimental -symlink" 120,568 KiB
> 
> Total: 1 package (1 in new slot), Size of downloads: 120,568 KiB
> 
> Would you like to merge these packages? [Yes/No]
> 
> It still wants to upgrade.  Could it be that something is pulling it in
> as a dependency or something?  Am I still doing something wrong? This is
> a update to the above:

It is probably being pulled in as a dependency of virtual/linux-sources,
which is part of your profile.


-- 
Neil Bothwick

Would a fly without wings be called a walk?


pgpOPlzmdw8KM.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] How to invoke non-selected versions of 'java'?

2022-02-04 Thread Arve Barsnes
On Fri, 4 Feb 2022 at 22:49, Grant Edwards  wrote:
>
> I've got two "slots" of java currently installed (8 and 11). I see how
> one uses "eselect java" to contol which one is invoked by /usr/bin/java.
>
> How does one manually invoke non-selected version(s) of java?
>
> For other slotted things like gcc and python, you can use pythonX.Y or
> gcc-X.Y.Z to invoke the non-selected version.
>
> What's the equivalent for java?

I don't think there is any convenient out of the box link like for
python or gcc, but you could make equivalent links if you want.
Otherwise you should use the paths in your commands. On this box I
have:

/usr/lib64/openjdk-8/bin/java
/usr/lib64/openjdk-11/bin/java

Regards,
Arve



[gentoo-user] How to invoke non-selected versions of 'java'?

2022-02-04 Thread Grant Edwards
I've got two "slots" of java currently installed (8 and 11). I see how
one uses "eselect java" to contol which one is invoked by /usr/bin/java.

How does one manually invoke non-selected version(s) of java?

For other slotted things like gcc and python, you can use pythonX.Y or
gcc-X.Y.Z to invoke the non-selected version.

What's the equivalent for java?

--
Grant








Re: [gentoo-user] Manually updating gentoo-sources

2022-02-04 Thread Dale
Neil Bothwick wrote:
> On Thu, 3 Feb 2022 17:49:59 -0600, Dale wrote:
>> I found a old email from Neil, hope you see this, and I think I followed
>> it correctly but maybe I either missed something or things have changed
>> since those instructions were posted.  What I'm wanting to do, update
>> gentoo-sources manually and remove them manually as well but running
>> emerge -auDN world doesn't pull in newer versions and --depclean leaves
>> the older versions alone as well.  Following the email info, I ended up
>> with this:
>>
>> root@fireball / # cat /etc/portage/sets.conf
>> [kernels]
>> class = portage.sets.dbapi.OwnerSet
>> world-candidate = False
>> files = /usr/src
> I do this.

I renamed this to gentoo-sources.  Like this:

root@fireball / # cat /etc/portage/sets.conf
[gentoo-sources]
class = portage.sets.dbapi.OwnerSet
world-candidate = False
files = /usr/src
root@fireball / #


>
>> root@fireball / # cat /etc/portage/sets/kernels
>> sys-kernel/gentoo-sources
>> root@fireball / #
> But not this.

Removed that.


>
>> and this I've tried with and without:
>>
>>
>> root@fireball / # cat /var/lib/portage/world_sets
>> kernels
>> root@fireball / #
> If you add the set to world_sets, it's the same as putting the kernel in
> world.

Removed that too. 

>> This is what I get tho:
>> root@fireball / # emerge -auDN world
>> Error during set creation: Redefinition of set 'kernels' (sections:
>> 'usersets', 'kernels')
> That's because there's already a set called kernels - emerge --list-sets
> will show you all of them. Just rename your set.
>
>


OK.  Renamed as above and I get this now:


root@fireball / # emerge -auDN world

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  NS   ~] sys-kernel/gentoo-sources-5.16.3:5.16.3::gentoo
[5.6.7:5.6.7::gentoo, 5.10.46:5.10.46::gentoo, 5.14.15:5.14.15::gentoo,
5.15.17:5.15.17::gentoo] USE="-build -experimental -symlink" 120,568 KiB

Total: 1 package (1 in new slot), Size of downloads: 120,568 KiB

Would you like to merge these packages? [Yes/No]

It still wants to upgrade.  Could it be that something is pulling it in
as a dependency or something?  Am I still doing something wrong? This is
a update to the above:


root@fireball / # cat /etc/portage/sets.conf
[gentoo-sources]
class = portage.sets.dbapi.OwnerSet
world-candidate = False
files = /usr/src
root@fireball / # cat /etc/portage/sets/kernels
cat: /etc/portage/sets/kernels: No such file or directory
root@fireball / # cat /var/lib/portage/world_sets
root@fireball / # root@fireball / # cat /var/lib/portage/world | grep kernel
sys-kernel/dracut
#sys-kernel/gentoo-sources:5.10.46
#sys-kernel/gentoo-sources:5.14.15
#sys-kernel/gentoo-sources:5.15.17
#sys-kernel/gentoo-sources:5.6.7
sys-kernel/linux-firmware
root@fireball / # 


Note the gentoo-sources is commented out, thought it might help. 


Thoughts?  Thanks.

Dale

:-)  :-)  





Re: [gentoo-user] Kernel 5.16.3 fails to boot

2022-02-04 Thread Jack
Have you read the recent threads here?  Have you assured the appropriate 
FB (framebuffer)  config settings?  If those are not set, the system may 
actually boot, but you won't see any output. There was also a CPU 
related setting for a specific AMD processor (I didn't pay much 
attention, since it didn't affect me.)


On 2/4/22 12:00, Helmut Jarausch wrote:

Hi,

I have been built (and used successfully) nearly each kernel of the 
gentoo-source 5.x.x.


I've copie the old config to the new kernel directory and did "make 
oldconfig"


Suddenly with Kernel 5.16.{3,4,5} these kernels hang during boot.

Has anybody made a similar bad experience?
How can I find the culprit - hopefully without resorting to "git bisect"?

Many thanks for some hints,
Helmut.

P.S. I am running an AMD Threadripper with several NVME devices.





[gentoo-user] Kernel 5.16.3 fails to boot

2022-02-04 Thread Helmut Jarausch

Hi,

I have been built (and used successfully) nearly each kernel of the  
gentoo-source 5.x.x.


I've copie the old config to the new kernel directory and did  "make  
oldconfig"


Suddenly with Kernel 5.16.{3,4,5} these kernels hang during boot.

Has anybody made a similar bad experience?
How can I find the culprit - hopefully without resorting to "git  
bisect"?


Many thanks for some hints,
Helmut.

P.S. I am running an AMD Threadripper with several NVME devices.



Re: [gentoo-user] Manually updating gentoo-sources

2022-02-04 Thread Neil Bothwick
On Thu, 3 Feb 2022 17:49:59 -0600, Dale wrote:
> I found a old email from Neil, hope you see this, and I think I followed
> it correctly but maybe I either missed something or things have changed
> since those instructions were posted.  What I'm wanting to do, update
> gentoo-sources manually and remove them manually as well but running
> emerge -auDN world doesn't pull in newer versions and --depclean leaves
> the older versions alone as well.  Following the email info, I ended up
> with this:
> 
> root@fireball / # cat /etc/portage/sets.conf
> [kernels]
> class = portage.sets.dbapi.OwnerSet
> world-candidate = False
> files = /usr/src

I do this.

> root@fireball / # cat /etc/portage/sets/kernels
> sys-kernel/gentoo-sources
> root@fireball / #

But not this.

> and this I've tried with and without:
> 
> 
> root@fireball / # cat /var/lib/portage/world_sets
> kernels
> root@fireball / #

If you add the set to world_sets, it's the same as putting the kernel in
world.

> This is what I get tho:

> root@fireball / # emerge -auDN world
> Error during set creation: Redefinition of set 'kernels' (sections:
> 'usersets', 'kernels')

That's because there's already a set called kernels - emerge --list-sets
will show you all of them. Just rename your set.


-- 
Neil Bothwick

without C people would code in Basi, Pasal and Obol


pgpBgoS46hBFg.pgp
Description: OpenPGP digital signature