Re: [gentoo-user] dhcp error. No network. Address family not supported.

2024-04-27 Thread Daniel Frey

On 4/27/24 15:30, Dale wrote:

Howdy,

I finally got Gentoo on the old rig I had laying around.  This is not
the one I usually refer to as NAS box.  I named this one NAS2.  LOL  I
got one problem that is confusing me.  I've compared it to my main rig
and the install guide and I think I got everything right but maybe I
have a typo, missed something or got some other issue.  This is what the
screen says, typing by hand so I hope I don't insert a typo.


Bringing up interface enp3s0
     dhcp ...
         Running dhcpcd ...
dhcpcd-10.0.6 starting
main: if_opensockets: address family not supported by protocol
dhcpcd exited.



Another thought: did you miss CONFIG_PACKET in networking options? That 
possibly could spit that error out too.


Dan




Re: [gentoo-user] dhcp error. No network. Address family not supported.

2024-04-27 Thread Daniel Frey

On 4/27/24 15:30, Dale wrote:

Howdy,

I finally got Gentoo on the old rig I had laying around.  This is not
the one I usually refer to as NAS box.  I named this one NAS2.  LOL  I
got one problem that is confusing me.  I've compared it to my main rig
and the install guide and I think I got everything right but maybe I
have a typo, missed something or got some other issue.  This is what the
screen says, typing by hand so I hope I don't insert a typo.


Bringing up interface enp3s0
     dhcp ...
         Running dhcpcd ...
dhcpcd-10.0.6 starting
main: if_opensockets: address family not supported by protocol
dhcpcd exited.


At first I thought that 10.0.6 was a typo on my part in some config
file.  The usual IP address for that port is 10.0.0.6.  Eventually I
figured out it was the version of dhcp.  So, after getting past that, I
started checking everything network related in the install guide.
Basically, set it to use dhcp and let er rip.  Well, this is the first
time dhcp has gave me any grief, which is why I think I did something
wrong.



You probably don't have ipv6 enabled in the kernel.

There are more and more packages that will not compile with ipv6 
disabled. (Or just do not provide the option to disable ipv6.)


I do not know if dhcpcd is one of them though.

Dan



Re: [gentoo-user] Successfully upgraded to new profile 23.0

2024-04-08 Thread Daniel Frey

On 4/8/24 07:03, Dr Rainer Woitok wrote:

Greetings,

the upgrade on my old laptop  with two 2.7GHz  Dual-Core Skylake proces-
sors took slightly  more than 2 hours  for the manual upgrading of "bin-
utils", "gcc" and "glibc", and slightly more than 21.5 hours for the fi-
nal upgrade of "@world",  which had to process a total of 1061 packages.
I'm wondering whether  a fresh install  from a stage 3  "tar" ball would
have been faster?

My first Gentoo installation  on this laptop  back in mid 2019 used pro-
file 17.1 (which is still marked "experimental", by the way).  Now, less
than five years later  this profile set is deprecated.   Is five years a
common intervall between enforced Gentoo profile upgrades?

Sincerely,
   Rainer



I had to upgrade about 7 machines, and three wound up having weird 
troubles - so I did exactly that and started fresh on the rest. Working 
on the last one (my laptop) right now.


Dan



Re: [gentoo-user] systemd unit executing but not persistent later in boot

2024-04-07 Thread Daniel Frey

On 4/6/24 18:38, Andrew Udvare wrote:

On Sat, 6 Apr 2024 at 21:32, Daniel Frey  wrote:

What's even stranger is if I manually start it and restart lircd it works!


Have you tried adding Before=lircd.service in the [Unit] section?



OK, I have finally sorted out the IR keymap/lircd/irexec/LCDd problems.

It turns out the systemd units as shipped just simply do not work, at 
least for my hardware.


The custom unit I made to apply a new keytable and protocol change was 
working fine. After a lot of reading about systemd units and also poring 
through logs, I discovered udev was triggering something related to the 
LCD/IR module - my custom unit was running before this happened but the 
udev trigger reset it to defaults (for whatever reason.)


In order to fix that, I had to change my unit to this:

[Unit]
Description=Add custom keymap to iMon remote
Requires=systemd-udevd.service systemd-udev-settle.service 
systemd-udev-trigger.service
After=systemd-udevd.service systemd-udev-settle.service 
systemd-udev-trigger.service

Before=lircd.service inputlircd.service irexec.service

[Service]
RemainAfterExit=true
ExecStart=/usr/bin/ir-keytable -c -p rc-6 -w /etc/rc_keymaps/imon_mce.toml

[Install]
WantedBy=multi-user.target
RequiredBy=lircd.service irexec.service


This made the keymap change work reliably.

After this lircd was working normally.

I use lircd so I can use irexec to listen for the power button and just 
shut the computer off. Kodi is too finicky and just wouldn't turn off or 
it would just logout, even with the polkit policy in the wiki applied.


Now, starting irexec didn't work the the shipped systemd unit either, it 
would just exit and not stay running. I fixed that with this custom unit:


[Unit]
Documentation=man:irexec(1)
Documentation=http://lirc.org/html/configure.html
Documentation=http://lirc.org/html/configure.html#lircrc_format
Description=Handle events from IR remotes decoded by lircd(8)
After=lircd.service
Requires=lircd.service

[Service]
; user=lirc
; group=lirc

; Hardening opts, see systemd.exec(5).  Doesn't add much unless
; not running as root. If these are applicable or not depends on
; what commands irexec.lircrc invokes.
;
; NoNewPrivileges=true
; MemoryDenyWriteExecute=true
; PrivateTmp=true
; ProtectHome=true
; ProtectSystem=full


Type=forking
ExecStart=/usr/bin/irexec --daemon /etc/lirc/irexec.lircrc

[Install]
WantedBy=multi-user.target


So irexec would start and actually stay running. I did also tell it to 
start after lircd (although I'm not 100% sure this matters - it may not.)


Of course the LCD unit wouldn't start and stay running either, again the 
systemd unit shipped didn't work so I customized it:


[Unit]
Description=LCDProc (LCDd)
After=network-online.target lircd.service
Requires=lircd.service

[Service]
ExecStart=/usr/sbin/LCDd -c /etc/LCDd.conf
Type=forking

[Install]
WantedBy=multi-user.target

After all this, then Kodi wouldn't start up. I figured out quickly this 
was caused by lightdm starting before the network was ready, fixed with 
this custom unit:


[Unit]
Description=Light Display Manager
Documentation=man:lightdm(1)
After=systemd-user-sessions.service
After=network-online.target
Wants=network-online.target

[Service]
ExecStart=/usr/sbin/lightdm
Restart=always
IgnoreSIGPIPE=no
BusName=org.freedesktop.DisplayManager

[Install]
Alias=display-manager.service


Hopefully this may be helpful to others with HTPCs switching to systemd 
from openrc. In openrc nearly all of this customization isn't needed - I 
only modified /etc/init.d/lircd in openrc in order to load the keymap 
before lircd started.


Dan



Re: [gentoo-user] systemd unit executing but not persistent later in boot

2024-04-07 Thread Daniel Frey

On 4/6/24 18:38, Andrew Udvare wrote:

On Sat, 6 Apr 2024 at 21:32, Daniel Frey  wrote:

What's even stranger is if I manually start it and restart lircd it works!


Have you tried adding Before=lircd.service in the [Unit] section?



I did, it made no difference.

From what I can tell it is running before lircd.

I have disabled lircd. Ran daemon-reload and rebooted.

For some reason, systemctl is saying it has run and exited successfully 
according to the timestamps:


# systemctl status ir-key-map
○ ir-key-map.service - Add custom keymap to iMon remote
 Loaded: loaded (/etc/systemd/system/ir-key-map.service; enabled; 
preset: disabled)
 Active: inactive (dead) since Sun 2024-04-07 08:56:18 PDT; 1min 
36s ago

   Duration: 48ms
Process: 295 ExecStart=/usr/bin/ir-keytable -c -p rc-6 -w 
/etc/rc_keymaps/imon_mce.toml (code=exited, status=0/SUCCESS)

   Main PID: 295 (code=exited, status=0/SUCCESS)
CPU: 19ms

Apr 07 08:56:18 htpclivingrm systemd[1]: Started Add custom keymap to 
iMon remote.

Apr 07 08:56:18 htpclivingrm ir-keytable[295]: Read imon_mce table
Apr 07 08:56:18 htpclivingrm ir-keytable[295]: Old keytable cleared
Apr 07 08:56:18 htpclivingrm ir-keytable[295]: Wrote 76 keycode(s) to driver
Apr 07 08:56:18 htpclivingrm ir-keytable[295]: Protocols changed to rc-6
Apr 07 08:56:18 htpclivingrm systemd[1]: ir-key-map.service: Deactivated 
successfully.



But, it doesn't actually change the protocol. It says it has 
"ir-keytable[295]: Protocols changed to rc-6" but when you check 
manually as root it really hasn't:


# ir-keytable
Found /sys/class/rc/rc0/ with:
Name: iMON Remote (15c2:0038)
Driver: imon
Default keymap: rc-imon-pad
Input device: /dev/input/event8
LIRC device: /dev/lirc0
Supported kernel protocols: rc-6 imon
Enabled kernel protocols: imon
bus: 3, vendor/product: 15c2:0038, version: 0x0001
Repeat delay = 500 ms, repeat period = 125 ms

...and I have no idea why. Until this works, lircd will not work.

If you run it manually, it will update it. It shows in the log and more 
importantly, if you check with ir-keytable you can see it was successful.


It's bizarre.

I even tried adding User= and Group= in the [Service] context and it 
made no difference.


Dan



[gentoo-user] systemd unit executing but not persistent later in boot

2024-04-06 Thread Daniel Frey

Hi all,

Still new to systemd and am struggling with a custom unit file.

Some background:

I have a HTPC that requires loading a custom keymap in order for the 
remote to work. It sets up an alternate protocol that the driver 
supports but not defaults to.


In short:

# ir-keytable
Found /sys/class/rc/rc0/ with:
Name: iMON Remote (15c2:0038)
Driver: imon
Default keymap: rc-imon-pad
Input device: /dev/input/event8
LIRC device: /dev/lirc0
Supported kernel protocols: rc-6 imon
-->Enabled kernel protocols: imon
bus: 3, vendor/product: 15c2:0038, version: 0x0001
Repeat delay = 500 ms, repeat period = 125 ms


This protocol needs to change to rc-6. This is done by a simple command:

/usr/bin/ir-keytable -c -p rc-6 -w /etc/rc_keymaps/imon_mce.toml

So my thought was to create a custom Unit:

[Unit]

Description=Add custom keymap to iMon remote

[Service]

ExecStart=/bin/bash -c "exec /usr/bin/ir-keytable -c -p rc-6 -w 
/etc/rc_keymaps/imon_mce.toml"


I've called it ir-key-map.service.

I can see through the status that it is indeed running and applying the 
keymaps and protocol changes:


# systemctl status ir-key-map
○ ir-key-map.service - Add custom keymap to iMon remote
 Loaded: loaded (/etc/systemd/system/ir-key-map.service; enabled; 
preset: disabled)

 Active: inactive (dead) since Sat 2024-04-06 18:17:43 PDT; 6min ago
   Duration: 46ms
   Main PID: 292 (code=exited, status=0/SUCCESS)
CPU: 12ms

Apr 06 18:17:43 htpclivingrm systemd[1]: Started Add custom keymap to 
iMon remote.

   Apr 06 18:17:43 htpclivingrm bash[292]: Read imon_mce table
   Apr 06 18:17:43 htpclivingrm bash[292]: Old keytable cleared
   Apr 06 18:17:43 htpclivingrm bash[292]: Wrote 76 keycode(s) to driver
--> Apr 06 18:17:43 htpclivingrm bash[292]: Protocols changed to rc-6
   Apr 06 18:17:43 htpclivingrm systemd[1]: ir-key-map.service: 
Deactivated successfully.


As the output says, it ran successfully.

lircd also is running after this unit like it's supposed to (snipped 
from `journalctl --unit lircd`:


Apr 06 18:17:43 htpclivingrm systemd[1]: Starting Flexible IR remote 
input/output application support...


However, the remote does not work.

When I log in and check:

# ir-keytable
Found /sys/class/rc/rc0/ with:
Name: iMON Remote (15c2:0038)
Driver: imon
Default keymap: rc-imon-pad
Input device: /dev/input/event8
LIRC device: /dev/lirc0
Supported kernel protocols: rc-6 imon
ARGH -->Enabled kernel protocols: imon
bus: 3, vendor/product: 15c2:0038, version: 0x0001
Repeat delay = 500 ms, repeat period = 125 ms

It's like the unit is running in an isolated environment or something 
which is not at all helpful.


What's even stranger is if I manually start it and restart lircd it works!

`systemctl start ir-key-map`
`systemctl restart lircd`

...and it is set up normally and the remote works:

# systemctl start ir-key-map
# systemctl restart lircd
# ir-keytable
Found /sys/class/rc/rc0/ with:
Name: iMON Remote (15c2:0038)
Driver: imon
Default keymap: rc-imon-pad
Input device: /dev/input/event8
LIRC device: /dev/lirc0
Supported kernel protocols: rc-6 imon
YAY -->Enabled kernel protocols: rc-6
bus: 3, vendor/product: 15c2:0038, version: 0x0001
Repeat delay = 500 ms, repeat period = 125 ms

So why does this not work at boot time? Are these units spawned in an 
environment on their own and thusly not modifying the main system?


I'm quite confused.

In openrc I just edited /etc/init.d/lircd and put the ir-keytable 
command in it before lircd was started and it was working fine.


Can someone give some pointers?

Dan



Re: [gentoo-user] Re: silencing distcc with systemd

2024-04-01 Thread Daniel Frey

On 3/31/24 14:32, Alexandru N. Barloiu wrote:
I think in the past, the service file had a -v. Somewhere near the 
present, they reverted to a non -v service file. So if you keep 
upgrading distcc, prolly the service file still has a -v from past 
installations. If you uninstall it, and install it again, then prolly 
you got the new service file which is without -v. That prolly explains 
why some machines still have it, and some don't.


On 4/1/2024 12:03 AM, Daniel Frey wrote:

On 3/31/24 13:59, Alexandru N. Barloiu wrote:
think the distcc.service file has an extra -v (--verbose). if you 
remove that, it will behave as expected.




I checked all the units on one of the machines still showing the 
problem and an extra '-v' is not present in any of the files.


That's a good thought though. I wouldn't have even thought about that 
when I was looking at the unit files initially.


Dan





I did check, there's no '-v' in ps output. The systemd installations 
were all new - they were converted from openrc.


   276 ?SN 0:00 /usr/bin/distccd --no-detach --daemon 
--port 3632 -N 15 --allow 127.0.0.1
277 ?SN 0:00 /usr/bin/distccd --no-detach --daemon 
--port 3632 -N 15 --allow 127.0.0.1
278 ?SN 0:00 /usr/bin/distccd --no-detach --daemon 
--port 3632 -N 15 --allow 127.0.0.1
279 ?SN 0:00 /usr/bin/distccd --no-detach --daemon 
--port 3632 -N 15 --allow 127.0.0.1


I don't think it has anything to do with upgrading systemd as it was 
installed fresh - I also replicated the issue after using an openrc 
machine to switch to merged-usr (no systemd on it.)


Dan



Re: [gentoo-user] Re: silencing distcc with systemd

2024-03-31 Thread Daniel Frey

On 3/31/24 13:59, Alexandru N. Barloiu wrote:
think the distcc.service file has an extra -v (--verbose). if you remove 
that, it will behave as expected.




I checked all the units on one of the machines still showing the problem 
and an extra '-v' is not present in any of the files.


That's a good thought though. I wouldn't have even thought about that 
when I was looking at the unit files initially.


Dan



[gentoo-user] Re: silencing distcc with systemd

2024-03-31 Thread Daniel Frey

On 3/29/24 22:38, Daniel Frey wrote:

Hi all,

I've moved a couple of machines from openrc to systemd.

I have discovered this odd problem. On openrc, distcc was quiet during 
building packages. It would obey environment variable set in /etc/env.d:


DISTCC_DIR=/var/distcc
DISTCC_ENABLE_DISCREPANCY_EMAIL=
DISTCC_FALLBACK=1
DISTCC_SAVE_TEMPS=0
DISTCC_SSH=
DISTCC_TCP_CORK=
DISTCC_VERBOSE=0

This currently shows up in the enviroment (checked with `set`.)

* snipped the rest *


Just an update. I have figured out it isn't systemd causing this issue.

I did upgrade several machines.

1. Upgraded the system profile.
2. Converted from split-usr to merged-usr.
3. Converted to systemd.

It turns out step 2 caused the problem. I don't know why, but it does - 
I tested this by converting an openrc machine that I hadn't upgraded yet 
from split-usr to merged-usr and the problem presented itself (no system 
on that machine yet.)


I did notice the machine I completely reinstalled from scratch (using 
systemd from the start) did not show signs of this issue.


I reinstalled the other distcc host using systemd from the start, 
installed and configured distcc and it all works as expected.


Now to reinstall the slower Celeron devices... come to think of it, I 
initially installed them in 2011. They haven't ever been reinstalled. 
Just repurposed.


Dan




Re: [gentoo-user] Re: [gentoo-dev] Current unavoidable use of xz utils in Gentoo

2024-03-31 Thread Daniel Frey

On 3/31/24 07:59, Michael wrote:

On Sunday, 31 March 2024 13:33:20 BST Rich Freeman wrote:

(moving this to gentoo-user as this is really getting off-topic for -dev)


Thanks for bringing this to our attention Rich.

Is downgrading to app-arch/xz-utils-5.4.2 all that is needed for now, or are
we meant to rebuilding any other/all packages, especially if we rebuilt our
@world only a week ago as part of the move to profile 23.0?


I just ran `glsa-check -l affected` and it came up blank for me.

I ran `emerge --sync` and checked again and it indeed says my machine is 
affected.


I then ran `emerge -auDN world` and it automatically downgraded.

So, all we need to do sync and update world. It will downgrade xz-utils 
automatically.


If you want to make sure, run `glsa-check -l affected` after the emerge 
world, if it comes up blank you are not affected. Or run `glsa-check -l 
202403-02` and it will tell you if you are affected:


$ glsa-check -l 202403-04
[A] means this GLSA was marked as applied (injected),
[U] means the system is not affected and
[N] indicates that the system might be affected.

202403-04 [U] XZ utils: Backdoor in release tarballs ( app-arch/xz-utils )


Dan



[gentoo-user] silencing distcc with systemd

2024-03-29 Thread Daniel Frey

Hi all,

I've moved a couple of machines from openrc to systemd.

I have discovered this odd problem. On openrc, distcc was quiet during 
building packages. It would obey environment variable set in /etc/env.d:


DISTCC_DIR=/var/distcc
DISTCC_ENABLE_DISCREPANCY_EMAIL=
DISTCC_FALLBACK=1
DISTCC_SAVE_TEMPS=0
DISTCC_SSH=
DISTCC_TCP_CORK=
DISTCC_VERBOSE=0

This currently shows up in the enviroment (checked with `set`.)

However, on systemd it spams messages in build logs:

distccd[290662] (dcc_check_compiler_masq) Warning: 
x86_64-pc-linux-gnu-g++ on distccd's path is 
/usr/lib/distcc/bin/x86_64-pc-linux-gnu-g++ and really a link to 
/usr/bin/distcc
distcc[293558] (dcc_trace_version) distcc 3.4 x86_64-pc-linux-gnu; built 
Mar 28 2024 05:05:38

distcc[293558] (dcc_recursion_safeguard) safeguard: 1
distcc[293558] (dcc_recursion_safeguard) safeguard level=1
distcc[293558] (main) compiler name is "x86_64-pc-linux-gnu-g++"
distcc[293558] (dcc_set_path) setting 
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/bin:/usr/lib/llvm/17/bin
distcc[293558] exec on localhost: x86_64-pc-linux-gnu-g++ -O2 -pipe 
-march=znver3 -felide-constructors -fno-strict-aliasing -pie -fPIC 
-fstack-protector --param=ssp-buffer-size=4 -Wconversion 
-Wno-sign-conversion -fno-omit-frame-pointer -Wall -Wenum-compare 
-Wenum-conversion -Wextra -Wformat-security -Wmissing-braces 
-Wno-format-truncation -Wno-init-self -Wno-nonnull-compare 
-Wno-unused-parameter -Woverloaded-virtual -Wnon-virtual-dtor -Wvla 
-Wwrite-strings -std=gnu++11 -fvisibility=hidden -o 
/tmp/distccd_9988a064.o -c /tmp/distccd_998ea064.ii
distcc[293558] (dcc_mkdir) ERROR: mkdir '/dev/null/.distcc' failed: Not 
a directory
distcc[293558] (dcc_spawn_child) forking to execute: 
x86_64-pc-linux-gnu-g++ -O2 -pipe -march=znver3 -felide-constructors 
-fno-strict-aliasing -pie -fPIC -fstack-protector 
--param=ssp-buffer-size=4 -Wconversion -Wno-sign-conversion 
-fno-omit-frame-pointer -Wall -Wenum-compare -Wenum-conversion -Wextra 
-Wformat-security -Wmissing-braces -Wno-format-truncation -Wno-init-self 
-Wno-nonnull-compare -Wno-unused-parameter -Woverloaded-virtual 
-Wnon-virtual-dtor -Wvla -Wwrite-strings -std=gnu++11 
-fvisibility=hidden -o /tmp/distccd_9988a064.o -c /tmp/distccd_998ea064.ii

distcc[293558] (dcc_spawn_child) child started as pid293559
distcc[293559] (dcc_increment_safeguard) setting safeguard: 
_DISTCC_SAFEGUARD=2
/var/tmp/portage/dev-db/mariadb-10.6.17/work/mysql/storage/innobase/fsp/fsp0file.cc: 
In member function ‘dberr_t Datafile::validate_for_recovery()’:
/var/tmp/portage/dev-db/mariadb-10.6.17/work/mysql/storage/innobase/fsp/fsp0file.cc:419:16: 
warning: this statement may fall through [-Wimplicit-fallthrough=]
/var/tmp/portage/dev-db/mariadb-10.6.17/work/mysql/storage/innobase/fsp/fsp0file.cc:429:2: 
note: here

distcc[293558] (dcc_collect_child) cc child 293559 terminated with status 0
distcc[293558] (dcc_collect_child) cc times: user 0.00s, system 
0.00s, 0 minflt, 0 majflt

distcc[293558] compile (null) on localhost completed ok
distcc[293558] elapsed compilation time 1.651658s
distcc[293558] (dcc_exit) exit: code 0; self: 0.000832 user 0.000832 
sys; children: 1.523681 user 0.134703 sys
distcc[293558] (dcc_mkdir) ERROR: mkdir '/dev/null/.distcc' failed: Not 
a directory

distcc[293558] (dcc_cleanup_tempfiles_inner) deleted 0 temporary files


I was trying to solve this problem and it's normally set in the 
environment as above.


I read systemd uses a different mechanism, but it doesn't work.

I did set /etc/systemd/system/distccd.service.d/00gentoo.conf as per 
instructions I found on the wiki:

Environment="DISTCC_VERBOSE=0"
Environment="DISTCC_SAVE_TEMPS=0"
Environment="DISTCC_DIR=/var/distcc"

Reloaded using `systemctl daemon-reload` and restarted distccd - 
although this is happening on the client side and it's not really the 
daemon (as far as I can tell.) The output is showing up while compiling 
using emerge.


I can see it's sourcing this file:
distccd.service - Distccd: A Distributed Compilation Server
 Loaded: loaded (/etc/systemd/system/distccd.service; enabled; 
preset: disabled)

Drop-In: /etc/systemd/system/distccd.service.d
 └─00gentoo.conf
 Active: active (running) since Fri 2024-03-29 22:04:12 PDT; 29min ago

Is there some other place that needs this environment set?

It clearly isn't getting the environment set somewhere in systemd as 
this error is solved with the DISTCC_DIR in the file sourced above:


distcc[293558] (dcc_mkdir) ERROR: mkdir '/dev/null/.distcc' failed: Not 
a directory


...and the DISTCC_VERBOSE=0 is supposed to silence build messages.

Any insight would be helpful... as this problem is easily solved in 
openrc but it seem to be rather difficult with systemd.


Dan



Re: [gentoo-user] After Update grub does not work anymore

2024-03-29 Thread Daniel Frey

On 3/29/24 03:55, Alexander Puchmayr wrote:

Hi,

After upgrading two Lenovo Laptops (UEFI, secure boot disabled), grub does not
work anymore; instead it says "Welcome to Grub" ... And then immediately boots
into bios setup.

What did go wrong?
I did the usual things:
* emerge update world
* emerge --config gentoo-kernel
* grub-mkconfig -o /boot/grub/grub.cfg

Everything went fine without errors, but then the final reboot, only bios setup.
And these steps do not alter the efi boot loaders

Any ideas? How to get out of this?

Alex





You'll have to boot off of a rescue disk and chroot in to fix this problem.

I had this exact problem yesterday. I hadn't upgraded grub in quite some 
time and I forgot that particular machine will not boot using:


EFI/gentoo/grubx64.efi

...it silently fails to boot and removes the boot entry (efibootmgr 
confirmed this.)


What happened is I forgot to run two grub install commands (I only ran 
the first one):


grub-install --efi-directory=/efi
grub-install --efi-directory=/efi --removeable

This created a conundrum as only

EFI/gentoo/grubx64.efi

was updated, which my BIOS refuses to boot from.

After I chroot'ed in, I ran both commands so that both

EFI/gentoo/grubx64.efi AND
EFI/BOOT/BOOTX64.EFI

were updated to the new versions. After that my system booted normally.

(I rebooted from ssh only to have the machine not come up, when I hooked 
up the monitor it said something about something missing.)


Dan



Re: [gentoo-user] AMD microkernel update failing (trying to patch zenbleed)

2024-03-03 Thread Daniel Frey

On 3/3/24 13:48, Michael wrote:


It could be AMD have not yet released microcode updates for the community.
OEMs receive new microcode first and patch it in their MoBo BIOS/UEFI
firmware.  Eventually the CPU manufacturers release microcode for older CPUs
no longer supported by OEMs.  Since you have embedded 'amd-ucode/
microcode_amd_fam17h.bin' in your kernel I don't think there's anything else
you can do at this point in time, beyond emerging the latest sys-kernel/linux-
firmware and rebooting.

PS.  I always place the microcode string first in the CONFIG_EXTRA_FIRMWARE=
entries, since it should be the fist thing to load by the CPU.  I don't know
if it would makes any difference, since the whole string of firmwares will be
parsed in one go.


That's a good point about the microcode - I'll change that now (it's 
easy enough to do.


And after an hour messing about and reading documentation and various 
articles, I have found out AMD does not release microcode for my CPU.


I ran the spectre-meltdown-checker script (I've removed non-Zenbleed info):

* Hardware support (CPU microcode) for mitigation techniques
  * CPU microcode is known to fix Zenbleed:  NO  (required version: 
0x08701032)
  * CPU microcode is known to cause stability problems:  NO  (family 
0x17 model 0x71 stepping 0x0 ucode 0x8701030 cpuid 0x870f10)
  * CPU microcode is the latest known available version:  YES  (latest 
version is 0x8701030 dated 2022/03/28 according to builtin firmwares DB 
v271+i20230614)


* CPU vulnerability to the speculative execution attack variants
  * Affected by CVE-2023-20593 (Zenbleed, cross-process information 
leak):  YES


CVE-2023-20593 aka 'Zenbleed, cross-process information leak'
* Zenbleed mitigation is supported by kernel:  YES  (found zenbleed 
message in kernel image)
* Zenbleed kernel mitigation enabled and active:  YES  (FP_BACKUP_FIX 
bit set in DE_CFG)

* Zenbleed mitigation is supported by CPU microcode:  NO
> STATUS:  NOT VULNERABLE  (Your kernel mitigates Zenbleed)

So my processor is indeed family 17h - the model is 71h. It indicates 
the most recent microcode is being run (probably because I've updated 
the motherboard firmware.)


I did find a tool to inspect the microcode blobs so I could see what's 
included:


# ./amd_ucode_info.py /usr/lib/firmware/amd-ucode/microcode_amd_fam17h.bin
Microcode patches in /usr/lib/firmware/amd-ucode/microcode_amd_fam17h.bin:
  Family=0x17 Model=0x08 Stepping=0x02: Patch=0x0800820d Length=3200 bytes
  Family=0x17 Model=0x31 Stepping=0x00: Patch=0x0830107b Length=3200 bytes
  Family=0x17 Model=0xa0 Stepping=0x00: Patch=0x08a8 Length=3200 bytes
  Family=0x17 Model=0x01 Stepping=0x02: Patch=0x0800126e Length=3200 bytes

This just confirmed there's no microcode update for my processor model 
(71h.)


I did download a different distribution's firmware package (mostly out 
of curiosity) and the results are identical.


So AMD just doesn't have microcode for my model of CPU.

As the spectre-meltdown-checker script says the kernel is mitigating 
Zenbleed for now, I'm just going forget about this and move on.


Dan



Re: [gentoo-user] Why is KDE so bad at multiple monitors?

2024-03-03 Thread Daniel Frey

On 3/3/24 13:57, Dale wrote:

I think most is in the .config directory now.  I have to say tho, I used
to zap that thing about once a year, sometimes two, to correct some
things that were weird but couldn't fix otherwise.  I think the devs try
to make things forward compatible but no one is perfect.  Sometimes, you
just have to start fresh.  I do hate resetting everything tho.  It takes
a while to get everything back to at least close to the old way.

Dale

:-)  :-)



So many programs store config in there now it's hard to just zap it so I 
generally won't try that. It's not just setting up kde again, it's 
dozens of other programs too. :o(


Dan



Re: [gentoo-user] Why is KDE so bad at multiple monitors?

2024-03-03 Thread Daniel Frey

On 3/3/24 11:31, Dale wrote:

Since my last post, I did my weekly updates.  During that, I log out,
switch to boot runlevel, restart anything that checkrestart says needs
it, then back to default runlevel and log back in.  With the config file
change, my monitors came up just like they should.  I didn't have to
adjust anything.

I guess it goes to show, one thing fixes one person's system while yet
another fixes someone else's system.  Go figure.  ROFL

Dale

:-)  :-)



I strongly suspect that it was a kde setting somewhere in ~. The problem 
is that config is littered all over the place now instead of one place 
(I recall zapping the .kde[4] directory from the user home folder in the 
past, can't do that now...)


Although, that doesn't explain the problem I have with X11 and displays. 
Had those same issues on the fresh install.


Dan



[gentoo-user] AMD microkernel update failing (trying to patch zenbleed)

2024-03-03 Thread Daniel Frey

Hi all,

I've always had problems updating the microcode for my AMD processor. I 
have various other Intel-based PCs and this has never been an issue.


I have confirmed it's not updating:


~ # dmesg | grep -i microcode
[0.201619] Zenbleed: please update your microcode for the most 
optimal fix

[0.748482] microcode: CPU1: patch_level=0x08701030
[0.748482] microcode: CPU0: patch_level=0x08701030
[0.748484] microcode: CPU3: patch_level=0x08701030
[0.748485] microcode: CPU5: patch_level=0x08701030
[0.748485] microcode: CPU4: patch_level=0x08701030
[0.748486] microcode: CPU6: patch_level=0x08701030
[0.748486] microcode: CPU7: patch_level=0x08701030
[0.748487] microcode: CPU8: patch_level=0x08701030
[0.748488] microcode: CPU9: patch_level=0x08701030
[0.748488] microcode: CPU10: patch_level=0x08701030
[0.748488] microcode: CPU11: patch_level=0x08701030
[0.748491] microcode: CPU12: patch_level=0x08701030
[0.748491] microcode: CPU13: patch_level=0x08701030
[0.748492] microcode: CPU14: patch_level=0x08701030
[0.748493] microcode: CPU15: patch_level=0x08701030
[0.748496] microcode: CPU17: patch_level=0x08701030
[0.748496] microcode: CPU18: patch_level=0x08701030
[0.748498] microcode: CPU19: patch_level=0x08701030
[0.748498] microcode: CPU20: patch_level=0x08701030
[0.748500] microcode: CPU21: patch_level=0x08701030
[0.748500] microcode: CPU22: patch_level=0x08701030
[0.748501] microcode: CPU24: patch_level=0x08701030
[0.748501] microcode: CPU23: patch_level=0x08701030
[0.748503] microcode: CPU16: patch_level=0x08701030
[0.748503] microcode: CPU26: patch_level=0x08701030
[0.748503] microcode: CPU27: patch_level=0x08701030
[0.748505] microcode: CPU28: patch_level=0x08701030
[0.748506] microcode: CPU29: patch_level=0x08701030
[0.748507] microcode: CPU30: patch_level=0x08701030
[0.748508] microcode: CPU25: patch_level=0x08701030
[0.748509] microcode: CPU31: patch_level=0x08701030
[0.748511] microcode: CPU2: patch_level=0x08701030
[0.748554] microcode: Microcode Update Driver: v2.2.

I'm pretty sure I wouldn't be getting a zenbleed warning if it was using 
the most recent microcode.


My processor is this one:

vendor_id   : AuthenticAMD
cpu family  : 23
model   : 113
model name  : AMD Ryzen 9 3950X 16-Core Processor

This leads me to the 17h family.

I do not use an initramfs as my system doesn't require one. I am not 
willing to try an initramfs as my system fully functions without one and 
this is not an issue with the Intel machines I have.


I have properly configured the kernel (gentoo-sources-6.6.13):

CONFIG_CPU_SUP_AMD=y
CONFIG_EXTRA_FIRMWARE="brcm/BCM20702B0-19ff-0239.hcd 
amd-ucode/microcode_amd_fam17h.bin"

CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"

The firmware loading is working as it does load the firmware for my 
bluetooth adapter with no issues.


(In the newer kernels microcode loading is enabled by default - no way 
to turn it off. All you have to do is select CPU_SUP_AMD apparently. It 
works on Intel machines.)


I've even updated the motherboard BIOS firmware, and while that fixed 
all the other issues it apparently does not have patches for zenbleed.


Does anyone have any idea why this will not update?

-Dan



Re: [gentoo-user] Why is KDE so bad at multiple monitors?

2024-03-03 Thread Daniel Frey

On 2/29/24 03:27, Dale wrote:
To provide a little more info on how this works.  This is how I did it.  
It helps a LOT to have tab completion with this.  It will fill in a lot 
of the info and when unsure, list the available options. First, I had to 
install the package xrandr.  My first problem is the command isn't 
available since it wasn't installed.  So, if you don't have it, install 
it. It's tiny.  This is what I have for my setup. You can ignore that I 
watch TV and just pretend you have two monitors side by side or whatever 
and get the same results.  I have a DB15HD connector, referred to as VGA 
within xrandr.  That is my main monitor.  The second monitor is is 
connected to a HDMI port, seen as same in xrandr, and what I watch TV 
with.  This is the output I started with to get good clues.



root@fireball / # xrandr --listmonitors
Monitors: 2
  0: +*VGA-0 1920/598x1080/336+0+0  VGA-0
  1: +HDMI-0 1920/1150x1080/650+1920+0  HDMI-0
root@fireball / #


Since I have different ports, it is easy to see which is which.  The 
last bit is what you use in the command, not the first bits.  If all 
your ports are the same, mini HDMI for example, I think the port lowest 
to the bottom of the video card is number 0, or the first port.  Anyway, 
mine is easy.  I then typed in xrandr --output and hit tab twice.  It 
will list all the available monitors.  Pick the one you want to be the 
first output or main monitor.  In my case, VGA-0 as shown on the end of 
line one.  Once you type enough, tab completion will fill it in.  Then 
add --primary to that to make it the primary display.


For the second monitor, continue on with the command and tab 
completion.  Type in --output and hit tab twice again to list options.  
Pick the second monitor and type enough in for tab completion to fill in 
the rest.  Then add --right-of, --left-of, --above or --below and then 
the output device for the main monitor. For me, this is what my command 
looks like.



root@fireball / # xrandr --output VGA-0 --primary --output HDMI-0 
--right-of VGA-0

root@fireball / #


That makes VGA the primary, HDMI-0 second and to the right of VGA-0.  If 
you have more than two monitors, just keep adding --output and list and 
place the other monitors.  I don't have the means to test but that 
should work.  I'd think setting the primary is key in this so I wouldn't 
forget to include that.


Once you get that command, you can test it by going to a Konsole if 
using KDE or some other similar tool you can type commands in as root 
and run the command manually.  If it works correctly, add the command to 
the file in this path.  /usr/share/sddm/scripts/Xsetup  I haven't logged 
out and back in again yet so we will see when that happens if it really 
works and my little quirk goes away.


There is a man page for this.  It may have other options that you may 
need to add.  Just keep in mind, what is between each --output is what 
it applies too.  One could have different resolutions, image flipped or 
something and lots of other options.  Just keep the options in the right 
section of the command.


I hope this helps someone and makes decent sense.  I also hope it works 
after I logout and back in again.  :/   I'm making a note of the 
location in case I need to comment it out.  Better to be safe than 
sorry.  LOL


Dale

:-)  :-)


I've been gone for a few days as I was rebuilding my main PC.

I thought I'd provide an update: it was xorg-server causing all the issues.

I figured as I had to redo everything anyway to switch to systemd and 
wayland as that's what the bigger DE's tend to be supporting nowadays.


After fiddling around with systemd for a day (I'd tried it once before 
converting a system from openrc->systemd and failed miserably - nothing 
worked) I've reconfigured most things the "systemd" way.


I guess starting fresh solves all sorts of issues. :o)

Some things I like about systemd:
  - It is capable of automounting NFS shares out of the box; I just
configured fstab so systemd automatically generated the automount
configured it required. No extra steps needed;
  - It provides a scrollable list by default showing all the items you
have access to in order to change how your machines behaves;
  - It isolates services in logs. This was helpful when sddm didn't want
to behave.

Some things I don't like:
  - It has nutty network configuration. It was applying an APIPA network
address as the primary for my interface which broke all sorts of
tools. Took me a while to figure out how to stop that.
  - It doesn't update resolv.conf even though I'd specified a DNS
server! So literally nothing worked. For now I manually removed
resolv.conf and put the DNS server there. Plan to use something
else for network management that sets resolv.conf properly. I have
no desire to use networkd-resolved.

But, back to the original problem...

I don't know what was broken in my original system. I always had to 

Re: [gentoo-user] Why is KDE so bad at multiple monitors?

2024-02-27 Thread Daniel Frey

On 2/25/24 10:17, Mark Knecht wrote:



On Sun, Feb 25, 2024 at 10:35 AM Daniel Frey <mailto:djqf...@gmail.com>> wrote:


 > I probably should have added more details... I do have an nvidia card -
 > RTX 3070Ti. Monitors use 2x DP ports and 1x HDMI port.
 >
 > KDE behaves very strangely. Like, it crashes often when using multiple
 > monitors and I've never been able to figure that out.
 >
 > nvidia-settings (which I plain forgot about) can generate an Xorg.conf
 > file from what I remember, maybe I'll try that.
 >
 > I currently don't have an Xorg.conf (as everything I've read says it
 > should autodetect...) so maybe I'll try overriding it.
 >
 > Dan

I'm not Gentoo-based but have a similar setup. 3080ti, 2 Asus
monitors, 1 Samsung, all running 1920x1080, all in landscape.

I have absolutely no problems at all with KDE remembering where
everything goes, all 3 monitors, all taskbars, for multiple users
with different configurations. I use 1 HDMI cable and 2 HDMI->DVI
cables. Everything just works.

I have no xorg.conf file.

I tried Wayland for a while but there were too many weird artifacts
so I'm back to basics.

I'd suggest you look carefully at every flag you are using to
build your software. I've used 3 distros here recently, as well
as Win 10 & 11 and none of them have had problems like
you are describing.

Best of luck,
Mark


I've never had much luck with these displayport connections. My card is 
3x DP and 1x hdmi.


I am considering "starting fresh" on the weekend. The problem is there's 
so much config blended in with KDE now, it's not a simple "remove the 
.kde" folder to wipe the config any more. :/


I don't recall when I last did a fresh install, probably when I built 
this rig in 2018/19. But, I figure with a fresh slate it should be 
easier to get things like wayland to work - at least to give it a try. 
As I know KDE is going more systemd-like I may even try that... although 
systemd gave hits and fisses last time I tried it.



Dan



Re: [gentoo-user] Why is KDE so bad at multiple monitors?

2024-02-25 Thread Daniel Frey

On 2/25/24 01:01, Michael wrote:


I used to experience the same when using Xorg with AMD-Radeon graphics instead
of Nvidia, but since I moved to Wayland the problem of losing screen settings
has gone.  One monitor is using the DVI port of the card and the other HDMI.
It should be worth trying Wayland instead of Xorg to see if it works out
better for your setup.


I actually tried Wayland maybe 3 months ago to try to solve the problem. 
Wayland doesn't work at all - it just gave me a blank screen at login. I 
did check USE flags and recompiled and still login did not work at all.


At least Xorg gave me a misconfigured working login (better than no 
login at all.)


-Dan



Re: [gentoo-user] Why is KDE so bad at multiple monitors?

2024-02-25 Thread Daniel Frey

On 2/24/24 21:52, Dale wrote:

I have two monitors too, sort of.  One monitor is for computer stuff,
checking email, surfing the net etc etc etc.  The other monitor I use to
watch TV with.  The output from the video card second output goes to a
splitter so I can have the same video in both my bedroom and the living
room.  I use Nvidia settings to manage mine but I run into the same
problem you do.  Sometimes when I login, the second monitor output is
dead.  TV shows the dreaded "No signal" thing floating around.  I have
to open Nvidia settings, disable the second monitor output, hit apply,
click that I can see the screen still, re-enable the second monitor,
click apply, click I can see the monitor and then the second monitor
works again.  It's annoying as heck.  I'm on the 470 series of Nvidia
drivers.  Best my old card can do.  LOL

I looked in the KDE System Settings display settings screen and it shows
the same as Nvidia.  Maybe one copies the other???  There's really
nothing for me to change there so I can't hit apply.  :/   I've always
wondered if I can set this up in xorg.conf file instead of the GUI.
Maybe it would work better.  Thing is, everything says it should "just
work" and the file shouldn't be needed.

This may not be a KDE problem.  It could be a Nvidia problem.  It may be
KDE but I'm not sure which to blame.  I don't let my screen go off
except for the once a week trip to town to get shots so I just put up
with it.  The rest of the time, my monitors and TVs tend to stay on.

You are not alone.  I'm just not real sure this is a KDE problem.  It's
possible tho.  Mostly, you are not alone.

Dale

:-)  :-)



I probably should have added more details... I do have an nvidia card - 
RTX 3070Ti. Monitors use 2x DP ports and 1x HDMI port.


KDE behaves very strangely. Like, it crashes often when using multiple 
monitors and I've never been able to figure that out.


nvidia-settings (which I plain forgot about) can generate an Xorg.conf 
file from what I remember, maybe I'll try that.


I currently don't have an Xorg.conf (as everything I've read says it 
should autodetect...) so maybe I'll try overriding it.


Dan



[gentoo-user] Why is KDE so bad at multiple monitors?

2024-02-24 Thread Daniel Frey
After cursing KDE for a while with three monitors, does anyone have any 
idea why KDE is so bad at managing multiple monitors?


All I'm trying to do is get it to remember *where* my monitors are (I 
have two side-by-side and one above the right monitor.) I go into System 
Settings, set it up and it works perfectly... until I log out. Then it 
resets everything and I have to set it up again.


Anyone have any clue why it refuses to save settings?

-Dan




Re: [gentoo-user] 'make install' hijacked by installkernel ?

2024-01-26 Thread Daniel Pielmeier

Adam Carter schrieb am 26.01.24 um 10:55:

I just tried to install a new kernel using 'make install' only to find that
the behaviour has changed and it appears to be running a bunch on
installkernel stuff.

'make help' says
   install - Install kernel using (your) ~/bin/installkernel or
  (distribution) /sbin/installkernel or install to
  $(INSTALL_PATH) and run lilo

So I guess that I want the 'install to  $(INSTALL_PATH) and run lilo'
behaviour that i'm used to. How to i get 'make install' to ignore
/sbin/installkernel ?



There is a news item related to installkernel [1]. Probably worth 
reading it!


[1] 
https://www.gentoo.org/support/news-items/2024-01-18-installkernel-merge.html


--
Regards
Daniel




Re: [gentoo-user] Genlop wonky again

2024-01-06 Thread Daniel Pielmeier
Am 5. Januar 2024 23:51:39 UTC schrieb Peter Humphrey :
>Hello list,
>
>I've just had some strange output from genlop on my 16-thread i5 box, thus:
>
># genlop -t libreoffice | /bin/grep minute
>   merge time: 37 minutes and 38 seconds.
>   merge time: 52 minutes and 59 seconds.
>   merge time: 46 minutes and 17 seconds.
>
># genlop -c
>
> Currently merging 11 out of 11
>
> * app-office/libreoffice-7.5.9.2
>
>   current merge time: 4 minutes and 3 seconds.
>   ETA: 1 hour, 4 minutes and 24 seconds.
>
>### Then, once the update finished:
>
>#  genlop -t libreoffice | /bin/grep minute
>   merge time: 37 minutes and 38 seconds.
>   merge time: 52 minutes and 59 seconds.
>   merge time: 46 minutes and 17 seconds.
>   merge time: 38 minutes and 40 seconds.
>
>I know genlop is, shall we say, not perfect, but how can it be so grossly 
>wrong as that?
>
>I have this in make.conf, and it hasn't changed since I built the machine:
>
>grep '\-j' /etc/portage/make.conf
>EMERGE_DEFAULT_OPTS="--jobs --load-average=12
>MAKEOPTS="-j12 -l12"
>

There are not by chance binary merges which took less than a minute? That might 
explain the differences.
What is the output wihout the grep or filtering by merge time instead. 

-- 
Best regards
Daniel



Re: [gentoo-user] Re: ffmpeg: WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict

2023-12-05 Thread Daniel Pielmeier

Dale schrieb am 05.12.23 um 18:27:


This is where I'm putting the patch and the patch.


root@fireball / # cat /etc/portage/patches/media-video/mplayer.diff


Maybe you should try:
/etc/portage/patches/media-video/mplayer/mplayer.diff
as written in the Wiki. The directory requires the category then e.g. 
the package name. Within you have to place the patch file.


--
Best
Daniel




Re: [gentoo-user] [OT] Very slow POST process

2023-11-30 Thread Daniel Frey

On 11/29/23 00:20, Wols Lists wrote:

On 29/11/2023 00:16, Michael wrote:
Thanks Dan, will do.  I was planning to take it apart soon to replace 
the HDD
with an SSD, so this would be the first thing to check.  I expect 
finding a
replacement unit will be difficult.  Every Lenovo RTC battery seems to 
have a

different part number.


I know laptops are different from desktops, but I think every desktop 
mobo I've come across uses a 3032 battery.


See if you can find out what the standard definition of the lenovo 
battery is, hopefully they just use internal part numbers for a totally 
standard item.


Cheers,
Wol



Lenovo laptops usually use a small battery pack. Sometimes it's a 2032 
shrinkwrapped, but not always...


-Dan



Re: [gentoo-user] [OT] Very slow POST process

2023-11-28 Thread Daniel Frey

On 11/28/23 03:38, Michael wrote:

Over the last 8-9 months I noticed an old Lenovo G505s laptop is spending a
long time in the POST process, before eventually the OEM logo shows up on the
screen.  Last time I timed it, it took 2.5-3.0 minutes.  Normally it would
only take ~20-30 seconds.  Once the logo shows up the boot process proceeds
without further delay.

Initially, this delay to POST would happen randomly and rarely.  Now it
happens every time.

Things I tried:

1. Reflashing the UEFI firmware - it didn't work because it already has the
latest firmware.

2. Removing the main battery and holding down the power button for 15 seconds,
hoping to reset the firmware.

3. Leaving the PSU cable connected overnight.

4. Testing the RAM and HDD.

None of the above improved the situation, or indicated what might be wrong.

I'll reseat the RAM sticks and the HDD next, in case a contact is oxidised,
but what else could cause this noticeable delay to POST?  A failing RTC CMOS
battery?


We have had a few of these at work and these symptoms were cured by a 
new CMOS battery. The voltage on the battery has likely dipped to 
2.9-3.0 volts; they get unreliable then (i.e. it's dead.) If you leave 
it long enough you'll start getting RTC errors on POST.


I'd try that first, assuming you can still get the CMOS battery for these.

Dan



Re: [gentoo-user] Firefox fails to compile. crc32 error??

2023-11-23 Thread Daniel Pielmeier
Am 23. November 2023 08:08:47 UTC schrieb Dale :
>Daniel Pielmeier wrote:
>> Looks like it is related to -march=native.
>>
>> See bug https://bugs.gentoo.org/838373
>>
>
>I'm not sure how you figured that out either.



I pasted the error message into the search engine of my choice. I think there 
were some results from the Gentoo forums which lead to the bug report.

-- 
Best regards
Daniel



Re: [gentoo-user] Firefox fails to compile. crc32 error??

2023-11-22 Thread Daniel Pielmeier

Looks like it is related to -march=native.

See bug https://bugs.gentoo.org/838373

--
Regards
Daniel




Re: [gentoo-user] rsync options after backup restore. Transfer speed again.

2023-10-21 Thread Daniel Pielmeier
Am 21. Oktober 2023 07:07:18 UTC schrieb Dale :
>Actually, I was looking at the man page again and that option appeared
>to me just a little bit ago.  I tried it and it did several updates. 
>Question tho.  It finished that update just a minute ago.  I tried again
>with my usual command, it wants to update everything again.  I seem to
>recall that rsync goes by file size and modify time stamps.  Is there a
>way to make the NAS box files newer or something so that it will not try
>to copy the same files over again?  I'd like to use the default
>detection options of rsync if I can just in case something changes. 
>

We are creatures of habit eh :-)

Of course you have to specify this option every time as the timestamps remain 
the same in this case.
Why not? First of all it's just video files. What are the odds that the 
contents of change and the file size will be exactly the same?

Using the defaults is fine but you should use the options which serve the 
purpose.

If you want you can use find on the backup drive in combination with exec to 
run the touch command on each file in order to update the timestamps. Then the 
-u option you use with rsync wont update the file on the destination because it 
is newer then the source. However in the end the result is the same as if using 
"--size-only".
Don't nail me on this but the command could look like the following: find 
pathtobackup -type f -exec touch '{}' +

-- 
Best regards
Daniel



Re: [gentoo-user] rsync options after backup restore. Transfer speed again.

2023-10-21 Thread Daniel Pielmeier
>I looked at the man page and the options there.  I don't see anything
>that I think will help.  Is there a way around this?

Then you didn't read properly, the man page is really exhaustive. You can try 
"--size-only".
It is also possible to negate the options by prefixing them with no like e.g. 
"--no-times --no-owner --no-group etc." I also had this issue when transferring 
between different file systems which didn't have same concept of file 
properties.
Anyway using "-a" as you tried doesn't make sense as it tries to preserve 
almost everything.

>Second problem.  The transfer speed is back to the old slower speed. 
>I'm pretty sure I am using the same old options on both ends.  Still,
>it's back to being slow again.

But the new disk is different compared to the old one? Then it needs to be 
treated differently. There multiple factors which can affect performance.
Had the same issue with a new SSD drive. Unfortunately I currently don't have 
access to the machine and I don't remember what needed changing but it could 
well be possible that you need different mount options, format the drive using 
other options, using different schedulers, etc.

-- 
Best regards
Daniel



Re: [gentoo-user] Can't upgrade portage or update/install ebuilds

2023-06-10 Thread Daniel Pielmeier

Nikolay Pulev schrieb am 10.06.23 um 11:47:

Thank you Daniel. You suggestion got me going.



You are welcome!

I hope it was the only problem. If yes then installing from scratch 
would have been a waste of time. It is never wrong to get to know your 
system better. Then in most cases you can solve such things within 
minutes and you don't need the sledgehammer.


--
Regards
Daniel




Re: [gentoo-user] Can't upgrade portage or update/install ebuilds

2023-06-09 Thread Daniel Pielmeier

Nikolay Pulev schrieb am 09.06.23 um 21:40:

Hi community,

This is my first reach out to you. I have not update my machine for a long
time and have no reached a point where I can't install or upgrade packages.
My first concern is to update portage, however I get the error below error.
Does anybody have any suggestions how I could progress with my machine
update?

# emerge --oneshot sys-apps/portage

  * IMPORTANT: 15 news items need reading for repository 'gentoo'.
  * Use eselect news read to view new items.

Calculating dependencies... done!

!!! All ebuilds that could satisfy
">=app-portage/gemato-14.5[python_targets_pypy3(-)?,python_targets_python3_10(-)?,python_targets_python3_11(-)?]"
have been masked.
!!! One of the following masked packages is required to complete your
request:
- app-portage/gemato-::gentoo (masked by: EAPI 8)
- app-portage/gemato-20.4::gentoo (masked by: EAPI 8)
- app-portage/gemato-20.2::gentoo (masked by: EAPI 8)
- app-portage/gemato-20.1::gentoo (masked by: EAPI 8)

The current version of portage supports EAPI '7'. You must upgrade to a
newer version of portage before EAPI masked packages can be installed.
(dependency required by "sys-apps/portage-3.0.45.3-r2::gentoo" [ebuild])
(dependency required by "sys-apps/portage" [argument])
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.



If it is only about gemato then temporary disable the rsync-verify flag 
which pulls it in.


# USE="-rsync-verify" emerge sys-apps/portage

--
Regards
Daniel




[gentoo-user] Announcement: PFL is looking for a new maintainer

2023-05-15 Thread Daniel Pielmeier

Hello All!

I am posting this here (gentoo-dev, gentoo-user) at the request of the 
upstream maintainer to reach a larger audience. PFL upstream will stop 
working on the project and is looking for a new maintainer.


For those who don't know what PFL is. It is basically a database that 
allows users to search for packages that provide a file. Say you want to 
run a command/program, but you don't know which package provides it. 
This is where PFL can help.
The database itself is populated by users. When you install 
app-app-portage/pfl [1], there's a script that sends a list of installed 
packages and their contents to the server. A second script is used to 
query for packages that owe a file. There is also a web interface [2] 
which provides similar functionality.


I believe a similar feature is also available for Ubuntu (maybe other 
distributions too, not sure if this is Ubuntu specific). If you type a 
command on the command line that is not available, you get suggestions 
for packages that contain the program.


I now see two possibilities. Either another user takes over the project 
or Gentoo itself takes over the maintenance. But someone has to do the 
work and further maintenance. Otherwise the project will be terminated.


If you are interested or have something to share, please join the 
discussion in the forum [3] to keep everything in one central place.


Thanks!

[1] https://packages.gentoo.org/packages/app-portage/pfl
[2] https://portagefilelist.de/
[3] https://forums.gentoo.org/viewtopic-t-1163382.html

--
Best Regards
Daniel



Re: [gentoo-user] mpv no longer compiles

2023-03-17 Thread Daniel Pielmeier
Am 17. März 2023 11:57:41 UTC schrieb John Covici :
>On Fri, 17 Mar 2023 07:07:49 -0400,
>Daniel Pielmeier wrote:
>> 
>> Am 17. März 2023 08:52:53 UTC schrieb John Covici :
>> >
>> >On Fri, 17 Mar 2023 03:03:37 -0400,
>> >Daniel Pielmeier wrote:
>> >> 
>> >> Am 17. März 2023 06:42:11 UTC schrieb John Covici :
>> >> >media-video/mpv-0.35.1-r1 will not compile -- here is a portion of the
>> >> >build log.
>> >> >[19/438] /usr/bin/rst2man.py --strip-elements-with-class=contents
>> >> >../mpv-0.35.1/DOCS/man/mpv.rst mpv.1
>> >> >[20/438] /usr/bin/rst2html ../mpv-0.35.1/DOCS/man/mpv.rst mpv.html
>> >> >^[[31mFAILED: ^[[0mmpv.html
>> >> >/usr/bin/rst2html ../mpv-0.35.1/DOCS/man/mpv.rst mpv.html
>> >> >/bin/sh: line 1: /usr/bin/rst2html: cannot execute: required file not
>> >> >found
>> >> >ninja: build stopped: subcommand failed.
>> >> >
>> >> >I looked on bgo, but found nothing -- anyone seen this or should I
>> >> >file a bug?
>> >> 
>> >> Do you have dev-python/docutils installed and if not does it compile if 
>> >> you install it?
>> >
>> >Thanks for your quick response.  I have 0.19 of that package.
>> >
>> 
>> I am asking because I think rst2html is shipped with the docutils package. 
>> Does /usr/bin/rst2html exist on your system? Maybe also search for anything 
>> on the system containing rst2html.
>
>I did have /usr/bin/rst2html, but it was old and when I tried to
>execute it said bad interpreter python3.8, so I linked the name to
>/usr/bin/rst2html.py  and that made everything work.
>
>Thanks a lot for the hint.
>

I don't think this should be necessary. The docutils ebuild should take care of 
this. If it doesn't there is a bug in docutils or maybe the mpv ebuild should 
call the py script directly.


-- 
Best regards
Daniel



Re: [gentoo-user] mpv no longer compiles

2023-03-17 Thread Daniel Pielmeier
Am 17. März 2023 08:52:53 UTC schrieb John Covici :
>
>On Fri, 17 Mar 2023 03:03:37 -0400,
>Daniel Pielmeier wrote:
>> 
>> Am 17. März 2023 06:42:11 UTC schrieb John Covici :
>> >media-video/mpv-0.35.1-r1 will not compile -- here is a portion of the
>> >build log.
>> >[19/438] /usr/bin/rst2man.py --strip-elements-with-class=contents
>> >../mpv-0.35.1/DOCS/man/mpv.rst mpv.1
>> >[20/438] /usr/bin/rst2html ../mpv-0.35.1/DOCS/man/mpv.rst mpv.html
>> >^[[31mFAILED: ^[[0mmpv.html
>> >/usr/bin/rst2html ../mpv-0.35.1/DOCS/man/mpv.rst mpv.html
>> >/bin/sh: line 1: /usr/bin/rst2html: cannot execute: required file not
>> >found
>> >ninja: build stopped: subcommand failed.
>> >
>> >I looked on bgo, but found nothing -- anyone seen this or should I
>> >file a bug?
>> 
>> Do you have dev-python/docutils installed and if not does it compile if you 
>> install it?
>
>Thanks for your quick response.  I have 0.19 of that package.
>

I am asking because I think rst2html is shipped with the docutils package. Does 
/usr/bin/rst2html exist on your system? Maybe also search for anything on the 
system containing rst2html.

-- 
Best regards
Daniel



Re: [gentoo-user] mpv no longer compiles

2023-03-17 Thread Daniel Pielmeier
Am 17. März 2023 06:42:11 UTC schrieb John Covici :
>media-video/mpv-0.35.1-r1 will not compile -- here is a portion of the
>build log.
>[19/438] /usr/bin/rst2man.py --strip-elements-with-class=contents
>../mpv-0.35.1/DOCS/man/mpv.rst mpv.1
>[20/438] /usr/bin/rst2html ../mpv-0.35.1/DOCS/man/mpv.rst mpv.html
>^[[31mFAILED: ^[[0mmpv.html
>/usr/bin/rst2html ../mpv-0.35.1/DOCS/man/mpv.rst mpv.html
>/bin/sh: line 1: /usr/bin/rst2html: cannot execute: required file not
>found
>ninja: build stopped: subcommand failed.
>
>I looked on bgo, but found nothing -- anyone seen this or should I
>file a bug?

Do you have dev-python/docutils installed and if not does it compile if you 
install it?

-- 
Best regards
Daniel



Re: [gentoo-user] Is it OK to get rid of app-alternatives/* ?

2023-02-15 Thread Daniel Frey

On 2/15/23 06:10, Michael Orlitzky wrote:

On 2023-02-15 08:11:46, Neil Bothwick wrote:


If, as you say, it will eventually replace eselect, there is no more
bloat, just different bloat. It's still just a bunch of symlinks, but
managed differently.



Should be less, since you already have portage installed but not
necessarily eselect-whatever.



I didn't even know eselect-whatever was even an option until this 
post... It's not something I've ever used.


It does (at least to me) make sense for the package manager to enforce 
these selections rather than some optional tool though.


Dan



Re: [gentoo-user] Strange DPMS behaviour

2023-02-06 Thread Daniel Frey

On 2/6/23 08:00, Jack wrote:
If you find that the EDID is really bad for one of the monitors, you 
should be able to find a correct copy and make that one available to X, 
although I don't remember how since I haven't needed to do so in years. 
I believe it is a setting within/under Xorg.conf.


Jack


Strangely enough, I had time to do more testing today. I tried 
unplugging each monitor and trying it out forcing DPMS on.


I have two monitors: MSI on DP, and a Samsung on HDMI.

The Samsung is the one with EDID errors but it works fine with DPMS with 
the other monitor (MSI) unplugged.


The MSI monitor (with the Samsung monitor unplugged) still has the 
problem with random wakes.


Thinking it might be a displayport issue, I hooked my laptop to the hdmi 
port on the MSI - same problem... couldn't use the main PC as there's 
only one hdmi port on the video card.


So the MSI monitor is at fault here, both hdmi and displayport fail to 
use DPMS correctly.


Oddly enough, it's the Samsung with the EDID errors but it is working 
fine despite those errors. Go figure...


Alas, now at least I can move on with configuring the rest of the 
system. Looks like the only way to fix this problem is to get another 
monitor.


Dan



Re: [gentoo-user] Fixing my font config

2023-02-06 Thread Daniel Frey
Oddly enough I just reinstalled on a new nvme over the weekend. I
haven't had time to mess with fonts and this is what the default
settings are (as I haven't changed anything):

$ eselect fontconfig list
Available fontconfig .conf files (* is enabled):
 [1]   05-reset-dirs-sample.conf
 [2]   09-autohint-if-no-hinting.conf
 [3]   10-autohint.conf
 [4]   10-hinting-full.conf
 [5]   10-hinting-medium.conf
 [6]   10-hinting-none.conf
 [7]   10-hinting-slight.conf *
 [8]   10-no-sub-pixel.conf
 [9]   10-scale-bitmap-fonts.conf *
 [10]  10-sub-pixel-bgr.conf
 [11]  10-sub-pixel-rgb.conf
 [12]  10-sub-pixel-vbgr.conf
 [13]  10-sub-pixel-vrgb.conf
 [14]  10-unhinted.conf
 [15]  11-lcdfilter-default.conf *
 [16]  11-lcdfilter-legacy.conf
 [17]  11-lcdfilter-light.conf
 [18]  20-unhint-small-dejavu-sans.conf
 [19]  20-unhint-small-dejavu-sans-mono.conf
 [20]  20-unhint-small-dejavu-serif.conf
 [21]  20-unhint-small-vera.conf *
 [22]  25-unhint-nonlatin.conf
 [23]  30-metric-aliases.conf *
 [24]  35-lang-normalize.conf
 [25]  40-nonlatin.conf *
 [26]  45-generic.conf *
 [27]  45-latin.conf *
 [28]  48-spacing.conf *
 [29]  49-sansserif.conf *
 [30]  50-user.conf *
 [31]  51-local.conf *
 [32]  57-dejavu-sans.conf
 [33]  57-dejavu-sans-mono.conf
 [34]  57-dejavu-serif.conf
 [35]  60-generic.conf *
 [36]  60-latin.conf *
 [37]  60-liberation.conf
 [38]  65-fonts-persian.conf *
 [39]  65-khmer.conf
 [40]  65-nonlatin.conf *
 [41]  66-noto-mono.conf
 [42]  66-noto-sans.conf
 [43]  66-noto-serif.conf
 [44]  69-unifont.conf *
 [45]  70-no-bitmaps.conf
 [46]  70-yes-bitmaps.conf
 [47]  80-delicious.conf *
 [48]  90-roboto-regular.conf
 [49]  90-synthetic.conf *

Dan

On Mon, Feb 6, 2023 at 9:38 AM Michael  wrote:
>
> On Thursday, 2 February 2023 07:34:31 GMT Jamie Getty wrote:
> > Hey everyone. I was playing around and tried enabling literally all the
> > fonts that appeared in fontconfig. I'd like to change it back, but I don't
> > know what the default fonts were.
> > Can somebody who hasn't made major changes to their fontconfig please share
> > their enabled fonts?
>
> I don't know if this will work, but you can take a backup of your current
> fontonfig output and then re-emerge your fonts with '--oneshot --noconfmem'.
> You can run 'eix -I font' to find out what font packages you have currently
> installed.
>



[gentoo-user] Strange DPMS behaviour

2023-02-05 Thread Daniel Frey
I've been having this strange problem with my dual monitor setup.
While I've figured out the nightmare of auto-detect not working at all
with dual monitors and the inability to use nvidia's configure tool
combined with Plasma's monitor option to fix the problem I've switched
to nouveau and at least it is consistent now and not messing up my
windows and randomly disconnecting.

However, I still have one problem which is getting annoying. DPMS does
not work automatically like it should. It says for the monitors the
capabilities are off. But then it enables it (but it doesn't - xset
shows everything disabled - first two lines are monitors and the last
one is a general message saying it's enabled.)

$ grep -i dpms /var/log/Xorg.0.log
[ 6.087] (II) modeset(0): DPMS capabilities: Off
[ 6.156] (II) modeset(0): DPMS capabilities: Off
[ 6.174] (==) modeset(0): DPMS enabled
[ 6.174] (II) Initializing extension DPMS

Now I can run xset dpms 300 450 600 and only then xset shows it as set:

$ xset q
Keyboard Control:
 auto repeat:  onkey click percent:  0LED mask:  0002
 XKB indicators:
   00: Caps Lock:   off01: Num Lock:on 02: Scroll Lock: off
   03: Compose: off04: Kana:off05: Sleep:   off
   06: Suspend: off07: Mute:off08: Misc:off
   09: Mail:off10: Charging:off11: Shift Lock:  off
   12: Group 2: off13: Mouse Keys:  off
 auto repeat delay:  600repeat rate:  25
 auto repeating keys:  00ffdbbf
   fadfffefffed
   9fff
   fff7
 bell percent:  50bell pitch:  400bell duration:  100
Pointer Control:
 acceleration:  2/1threshold:  4
Screen Saver:
 prefer blanking:  yesallow exposures:  yes
 timeout:  0cycle:  600
Colors:
 default colormap:  0x20BlackPixel:  0x0WhitePixel:  0xff
Font Path:
 /usr/share/fonts/misc,/usr/share/fonts/75dpi,built-ins
DPMS (Display Power Management Signaling):
 Standby: 300Suspend: 450Off: 600
 DPMS is Enabled
 Monitor is On

However, while it does blank and turn off the screens it doesn't last.
Maybe 10 seconds later the screens turn back on.

I can force it with xset to turn the monitors off immediately but same
results - after a short time the monitors turn back on. In the X logs
there is this:

[   449.529] (WW) EDID timing clock 408.29 exceeds claimed max 75MHz, fixing

which makes me wonder if the EDID data is bad on the one monitor (a
Samsung monitor.)

Does anyone know of a way to test this DPMS? I suppose I could try
unplugging the Samsung monitor to see if the problem goes away? One
thing that may make a difference is that the Samsung is HDMI and the
other monitor (MSI) is DP.

However, both of these monitors worked find on my old computer (it was
really old, no UEFI support.

Can anyone think of next steps? I'm running out of things to try...

Dan



Re: [gentoo-user] NAS and replacing with larger drives

2022-12-08 Thread Daniel Frey

On 12/8/22 05:58, Dale wrote:



I was thinking DAS was not a good option.  It seems like a feature 
removed and cheaper version of NAS.


I think I've seen a couple Synology NAS boxes but I think even used they 
were a bit pricey.  Still, used could make that a option. Maybe.  It 
could fall into the category of pay a little more for a much better 
option, even if it is used.


I've considered using older systems I have for NAS but they are large.  
Way to large.  It would require a lot of effort to shrink them down if 
it is even possible.  A NAS is smaller and designed for what I need as 
well.  This is what I found that goes with the Raspberry Pi.


https://shop.allnetchina.cn/collections/sata-hat/products/dual-sata-hat-open-frame-for-raspberry-pi-4

There is a two bay and a four bay version.  I think the case is the same 
for both so I may go with four for future expansion.  Price isn't bad 
for that part but as you say, Raspberry Pi board is a bit pricey.  Thing 
is, given the amount of control I'd have over it, it could be a better 
option long term.  I might add, I think this board is somewhat new.  I 
meant to include a link to it but forget.  It could be that you are not 
aware of that, or many other people either.  Also, I'd like to buy it 
from a more local vendor.  I've bought things from China through Ebay 
but it has a guarantee and refund option that is fairly good.  It's a 
option I've had to exercise a time or two.


Part of me wants to buy a used but well featured NAS box.  Part of me 
thinks a Raspberry would be better and have upgrade options in the 
future as well.  I'm pretty sure I could have encryption on a Raspberry 
NAS as well.  I'm not sure if a prebuilt NAS box has encryption or not.


Hope for some good ideas tho.  I'd like to avoid buying something that 
won't come close to serving even current needs or just plain doesn't work.


Dale

:-)  :-)


Dale,

DAS is direct attached storage. If your intention is to share the data 
with multiple devices for backup you will need to keep in mind that you 
will need a PC to share the data the DAS device is storing. In general, 
most DAS require some sort of HBA (some of these HBAs can be hundreds to 
thousands of dollars.) I've seen some eSata ones but they usually don't 
have stellar reviews. It's also getting harder to find eSata devices.


In contrast NAS devices are designed to plug in to the network and be 
shared with multiple devices on the LAN right from the get-go.


You are probably interested in a NAS, not a DAS.

I have an aging ix4-300d NAS. The display has started crashing now but 
the device is still rock solid. However I'm in the same boat and have 
been researching options - I think for my case I will get a small cube 
case and mini-ITX board and roll my own Gentoo install. The cost may 
even be slightly cheaper as 4 bay NAS here are quite expensive where I 
am (with no drives installed) and building my own will be a bit cheaper 
and I can choose what drives to run in it. Vulnerabilities on devices 
like QNAP and Synology are very real and at least if you can roll your 
own you can keep that to a minimum (like an example not running a web 
browser to configure things.)


Dan



Re: [gentoo-user] Re: Pipewire not a dependency?

2022-10-01 Thread Daniel Sonck
On zaterdag 1 oktober 2022 19:11:19 CEST Wol wrote:
> On 01/10/2022 17:56, Michael wrote:
> > Anyway, I ventured into pipewire because I wanted to see if Skype would
> > work without pulseaudio and in this system it won't.  After I manually
> > installed pipewire Skype won't access the microphone.  
> 
> I've got some vague feeling that pipewire is designed to happily sit
> under pulseaudio. The design aim was to replace both Jack and pulseaudio
> but it basically just presents a sound device to the layers above, so
> just like you can stack block devices for disk access, you can stack
> jack, pulseaudio and pipewire for sound.
Well, it is actually designed as a drop-in replacement and won't present audio 
devices in the 
sense pulseaudio wants to receive it. I guess it would theoretically be 
possible to use 
pulseaudio's jack sink to talk to pipewire, but pipewire has the full 
pulseaudio interface for 
pulseaudio applications.
> 
> The big difference between a sound stack and a block stack is that a
> block stack is asynchronous and latency is (relatively) unimportant. In
> a sound stack some applications *demand* synchronicity, and latency is
> everything. Jack is extremely latency sensitive, pulseaudio buffers and
> doesn't care, and pipewire is intended to satisfy both.
> 
> So the intent was clearly to install pipewire underneath a working
> pulseaudio, and just move applications across as and when.
This was never an intent, pipewire was intended as an pulseaudio implementation 
by itself. So 
it doesn't need (and likely is incompatible running together with) pulseaudio 
in order to 
support pulseaudio clients. But it does need to be configured as such.
> 
> Cheers,
> Wol

Regards,

Daniel


Re: [gentoo-user] Google Chrome now requires wayland and jack audio?

2022-07-16 Thread Daniel Frey

On 2022-07-15 12:54, Mark Knecht wrote:



On Fri, Jul 15, 2022 at 12:28 PM Grant Edwards 
mailto:grant.b.edwa...@gmail.com>> wrote:

 >
 > It looks like www-client/google-chrome just added wayland and jack
 > audio to the dependancies. So now I have to have Pulse _and_ Jack?
 >
 > --
 > Grant

Is that truly a Chrome requirement, like the company Google wrote the 
ebuild, or is

this something a Gentoo dev did for some reason?

I'm curious as the USB disconnect problem seems somehow to be related
to using Chrome on the host machine for sites that do a lot of audio, like
YouTube. A clean boot of the host machine, followed by a clean boot of 
the VM

and I've run for at least an hour with no disconnection problems. I can use
Chrome for email, messaging and reading newspapers with no problem, but
I run YouTube and twice I've had USB problems in the VM.


How is the device for audio set up on the host? It may actually be a 
USB-audio device it provides to the VM itself, and that would explain 
the issue you are having.


Dan



Re: [gentoo-user] Re: Google pop3 authentication failure

2022-06-30 Thread Daniel Pielmeier
Am 1. Juli 2022 00:33:52 UTC schrieb Walter Dnes :
>On Thu, Jun 30, 2022 at 02:29:03PM -, Grant Edwards wrote
>> 
>> OAUTH is pretty complicated.
>> 
>> However, setting up an app password is very simple. It only takes a
>> few clicks. Quoting from the google support page (first link above):
>> 
>> 1. Log in to your Google Account.
>> 2. Click "Security".
>
>  This doesn't do anything.  It leaves me at the same page.  I do not
>see "App Passwords".  I've tried this with both Pale Moon and
>Google-Chrome.  Now what?
>

It is only available if Two Factor Authentication is also enabled. Everything 
is documented on the support pages.

https://support.google.com/accounts/answer/185839?hl=en
https://support.google.com/accounts/answer/185833?hl=en


-- 
Best regards
Daniel



Re: [gentoo-user] plasmashell becomes sluggish with 100% CPU usage

2022-05-24 Thread Daniel Frey

On 2022-05-24 13:20, Nikos Chantziaras wrote:
Anyone noticed anything lately with plasmashell? I think it started 
happening after Qt was upgraded from 5.15.3 to 5.15.4. At login, the 
desktop is very unresponsive and sluggish. Mouse clicks take over a 
second to register.


The plasmashell process is hogging one core of the CPU to almost 100%. 
It only happens on login. Logging out and back in again usually fixes it.





I've had this problem for at least 2 years, can't find the cause. I 
sleep/resume a lot and figured it was some race condition.


I have a Konsole shell auto-open one resume or logon so I can drop to 
the shell and issue `killall plasmashell && plasmashell &`.


I've even tried starting with a fresh home directory and have not seen a 
difference. I don't use any plugins either.


Do you have an nvidia card? This machine that constantly has this issue 
does, but my laptop (intel graphics) does not.


Dan



Re: [gentoo-user] Re: Bluetooth speakers

2022-05-06 Thread Daniel Frey

On 2022-05-06 05:24, Grant Edwards wrote:

Or perhaps it's the speakers and their amplifiers.


IMO, that's the logical conclusion.

I've never had the audio chip on any computer fail -- ever. Nor have I
ever had a USB audio adapter fail (though I've only used a couple of
them over the years).



I've never had an audio chip of any sort fail either on any of my 
computers. Even the ones plugged into my Denon AVR in the den - my old 
computer was 13-14 years old when I replaced it a couple years ago and 
it was used everyday with the AVR.


Dan




Re: [gentoo-user] which lenovo or huawei laptop?

2022-04-07 Thread Daniel Frey

On 2022-04-06 11:53, n952162 wrote:
I bought a bottom of the line HP laptop and had only problems with 
unsupported chips.  I'd like to buy a lenovo or huawei now. Has anyone 
had bad experiences porting /gentoo/ to either?




I bought a Lenovo P70 laptop back in 2018? and all hardware was 
supported by the kernel. This wasn't a cheap laptop though, it set me 
back about $2400.


Dan



Re: [gentoo-user] KDE, sddm etc security. Plus LVM question.

2022-03-20 Thread Daniel Frey

On 2022-03-19 01:03, Dale wrote:

Howdy,

I been thinking.  Yea, that's dangerous.  lol  If I logout of KDE, or
have the screen locked, ctrl+alt=L key sequence, how secure is that if I
have good passwords that are virtually impossible to crack?  My login
manager is sddm.  As a example, if someone breaks into my home, is there
a easy way to get past that?  I recall the old windoze 98 days where a
certain key sequence would bypass the password prompt.  Is there a way
known to crooks and such that can bypass or easily defeat passwords?



They don't even need to defeat a password. If they have root, it's 
trivial to unlock a locked session without knowing the password - just FYI.


I had to use that method when compiling updates and the screen saver 
broke, and yes it did work. I can't recall what the command was now - 
but I did test it on a working-normally system and it worked as well.


The screen locks in linux are security by obscurity, if something is 
that sensitive, don't stay logged in all the time.


Dan




Re: [gentoo-user] Removing or stopping binary emerges from being in emerge.log

2022-03-06 Thread Daniel Pielmeier

Dale schrieb am 06.03.22 um 06:53:


I have a chroot environment that I do updates in.  Once the updates are
done, I copy the binaries and distfiles over to my running system and
use the -k option to update everything in my real system.  It comes in
real handy when libreoffice, Firefox, qtwebengine and other large time
consuming packages are being updated.  The bad thing is, I have the full
length of build time in the chroot but the binary install on my running
system.  Is there a way to either stop it from logging binary updates or
removing them after it is done?  I'd rather it not keep those times in
either place really.  I can't find a emerge option.  It seems to record
everything regardless.  My reason for this, the binary install times
throws off genlop -c and its estimates.

Anybody have ideas?




There is a long-standing bug [1] regrading this issue but given genlop 
currently is not actively developed I don't think there will be a 
solution soon. It should be possible to exclude binary merges as they 
can be identified in emerge.log which is read by genlop to generate the 
output.


Also I don't think there is an option in portage to not log binary merges.

[1] https://bugs.gentoo.org/120899

--
Best
Daniel



Re: [gentoo-user] libreoffice fails to build, cannot download non-existant ~scarabeus/lpsolve-5.5.2.0.tar.xz ???

2022-02-21 Thread Daniel Pielmeier
Am 21. Februar 2022 19:58:00 UTC schrieb Steven Lembark :
>On Mon, 21 Feb 2022 20:35:23 +0100
>Daniel Pielmeier  wrote:
>
>> https://bugs.gentoo.org/614866
>
>Bug doesn't address it, but shouldn't using the alternate
>lp library via "coinmp" sidestep the issue?  
>
If you read through the bug you will find that it is addressed, at least 
indirectly.  See comment #4.

If you take a look at the libreoffice ebuild you will  find that the 
sci-mathematics/lpsolve dependency is not controlled by the nlpsolver USE flag. 
This means it depends on it unconditionally.
Only coimp is controllable via flag.
Whether this is correct or not is another issue.

-- 
Best regards
Daniel



Re: [gentoo-user] libreoffice fails to build, cannot download non-existant ~scarabeus/lpsolve-5.5.2.0.tar.xz ???

2022-02-21 Thread Daniel Pielmeier

https://bugs.gentoo.org/614866



Re: [gentoo-user] How to degrade Gentoo system with webrsync method?

2022-01-10 Thread Daniel Frey

On 2022-01-09 05:13, gevisz wrote:

Yes, masking some new package can work in this case.

However, it is not so easy as it may seem because it is not the new
version of tensorflow that I should mask in my case as on the day
when the tensorflow recompilation failed its version remained the same
and only some of its dependencies were supposed to be upgraded.

Of course, I may try this approach. However, tensorflow is not
considered stable in gentoo tree and it has a lot of dependencies
that are also not considered stable and should be unmasked.

All this leads to a large number of possible choices on
which packages to mask/unmask.

So, playing with this is like playing in a casino with about
4 hours of compilation for each bet.



So you know the date it last compiled and run successfully?

If it was me, I'd build a manual list of dependencies (like Dale 
indicated), then install genlop and run `genlop -t` for each of the 
dependencies and the main package. It will tell you the versions that 
were built, and more importantly, the *date* they were built.


You should be able to deduce what package versions were working with 
each other, but then the hard part: trying to figure out if those 
versions are still available. `eshowkw ` will tell you what's 
available in the tree, but if it isn't available, then it gets way 
harder as you have to try to find the old ebuilds with sources and 
possibly set up a local repo and pray those packages don't affect other 
installed packages.


Dan



Re: [gentoo-user] Re: Movie editing softeware

2021-12-22 Thread Daniel Pielmeier

Wol schrieb am 22.12.21 um 19:45:
What is an i-frame? As I understood it, typically when you had a scene 
change, a frame was written in full, then subsequent frames were stored 
as diffs. Is that what an i-frame is?


Wikipedia [1] to the help.

In which case, surely it can't be that tricky to delete a block without 
having to decode/encode more than a few frames?


Encoding only the affected region is tricky because you need to use the 
same codec parameters (encoding profile, resolution, colour space, FPS, 
bit depth, bitrate, and possibly more parameters which are also codec 
dependent) like the rest of the unaffected portion of the video to be 
able to concatenate it again afterwards with the rest of the video. Also 
it is tricky to keep video an audio in sync when having a lot of cut 
points. Probably there are other issues depending on the required 
codecs. So making it work for every codec even only for the popular ones 
might be a lot of work.


TTCut can do "smart cutting" by encoding only the affected GOP [2]. 
However it only works for Mpeg2 Video and Mpeg2 Audio or Dolby AC-3 
Audio. I have not tested it but VidCutter [3] should also be capable of 
doing so and as I see there is no restriction on the codecs. They are 
the only ones I am aware of supporting this feature and they are 
packaged for Gentoo.


[1] https://en.wikipedia.org/wiki/Video_compression_picture_types
[2] https://en.wikipedia.org/wiki/Group_of_pictures
[3] https://github.com/ozmartian/vidcutter

--
Regards
Daniel



Re: [gentoo-user] compton got masked?

2021-10-12 Thread Daniel Pielmeier

caveman رَجُلُ الْكَهْفِ 穴居人 schrieb am 12.10.21 um 21:32:

why?

ty,
cm.



Portage should tell you why in the mask message!

https://archives.gentoo.org/gentoo-dev-announce/message/d9f2e6c5b001239852b1c686bbab026b

--
Regards
Daniel



Re: [gentoo-user] Broken update

2021-09-07 Thread Daniel Frey

On 9/7/21 12:13 PM, Neil Bothwick wrote:

On Tue, 7 Sep 2021 09:32:41 -0700, Daniel Frey wrote:


Why is it checking the build environment for a binary package?


I was wondering the same.


As it stands, I can't fix this problem.

I tried editing the ebuild (removing the __thread check) and rebuilding
the manifest but it still fails at the same place. I've double- and
triple-checked it's the right ebuild but it's still running the checks!

Some assistance on installing glibc would be much appreciated!


You can untar the binary package into /, which bypasses the checks. Then
you can emerge it so that portage knows where it stands.

The usual guarantees apply: if it breaks your system, you get to keep the
pieces. I'd backup / first.




Thanks Neil, I just unpacked it manually and it fixed my problem.

gcc actually works now so I've remerged (emerge -K1) glibc and pax-utils.

I had a *really* old stage4-esque backup if it really came down to it. I 
think that's the first time a binary update (I have two identical PCs, a 
bit on the slow side - so one binpkgs them and I install them on the 
second one, lessening the compiling load.)


Still don't know why glibc was checking the build environment for a 
binary package though, that was really strange. As gcc was broken and 
not providing any meaningful output for checks, it fails immediately.


Dan



[gentoo-user] Broken update

2021-09-07 Thread Daniel Frey

Well,

I was updating a system and gcc got broken somehow, and it doesn't seem 
to be possible to fix it.


Problem:
# gcc -v
gcc: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by gcc)

OK, no biggie, I have a binpkg:

# emerge -1Ka glibc pax-utils

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

Calculating dependencies... done!
[binary U  ] app-misc/pax-utils-1.3.2 [1.2.9] 
PYTHON_SINGLE_TARGET="python3_9* (-python3_10) -python3_8*"

[binary U  ] sys-libs/glibc-2.33-r1 [2.32-r7] USE="-multilib-bootstrap%"


But:

>>> Running pre-merge checks for sys-libs/glibc-2.33-r1
 * glibc-2.33-r1.tbz2 MD5 SHA1 size ;-) ... 
 [ ok ]

 * Checking general environment sanity.
x86_64-pc-linux-gnu-gcc -m64 -pipe -march=corei7 -O2   -Wl,-O1 
-Wl,--as-needed  glibc-test.c   -o glibc-test
 * Checking gcc for __thread support ... 



 [ !! ]

 * Could not find a gcc that supports the __thread directive!
 * Please update your binutils/gcc and try again.
 * ERROR: sys-libs/glibc-2.33-r1::gentoo failed (pretend phase):
 *   No __thread support in gcc!
 *
 * Call stack:
 * ebuild.sh, line  125:  Called pkg_pretend
 *   environment, line 2739:  Called sanity_prechecks
 *   environment, line 3337:  Called die
 * The specific snippet of code:
 *   die "No __thread support in gcc!";
 *
 * If you need support, post the output of `emerge --info 
'=sys-libs/glibc-2.33-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv 
'=sys-libs/glibc-2.33-r1::gentoo'`.
 * The complete build log is located at 
'/var/tmp/portage/sys-libs/glibc-2.33-r1/temp/build.log'.
 * The ebuild environment file is located at 
'/var/tmp/portage/sys-libs/glibc-2.33-r1/temp/environment'.

 * Working directory: '/var/tmp/portage/sys-libs/glibc-2.33-r1/homedir'
 * S: '/var/tmp/portage/sys-libs/glibc-2.33-r1/work/glibc-2.33'

>>> Failed to emerge sys-libs/glibc-2.33-r1, Log file:


Why is it checking the build environment for a binary package?

As it stands, I can't fix this problem.

I tried editing the ebuild (removing the __thread check) and rebuilding 
the manifest but it still fails at the same place. I've double- and 
triple-checked it's the right ebuild but it's still running the checks!


Some assistance on installing glibc would be much appreciated!

Dan



[gentoo-user] udev and IR receiver problem

2021-08-23 Thread Daniel Frey
Hi all, I've been struggling with an odd udev problem. Any udev experts 
on here?


Some background: My 13-year-old HTPC finally kicked the bucket. After 
looking around, stock levels of PC parts around here are close to 
nonexistant. I had a newer donor board/ram/cpu around that's 5-7 years 
old. I have set up gentoo from scratch on this device (not using any old 
stage4-esque backups.)


This HTPC case has an iMon device:

Bus 001 Device 003: ID 15c2:0038 SoundGraph Inc. GD01 MX LCD Display/IR 
Receiver


It has worked well over the last 13 years but it has had problems with 
its driver early on. I tried to recover the SSD that was from the dead 
PC and it worked exactly twice (the third time I tried to get some 
configs from it the SSD failed completely.)


It has a bit of a strange setup compared to other IR devices: it creates 
two separate input devices. During boot, udev used to automatically 
create a third device (an infrared device) that chains the two separate 
devices together so the kernel IR can receive all remote events.


The problem I'm having is this: When booting, udev triggers the events 
from the kernel and sets up the two devices:


# ls -l /dev/input/by-id
total 0
lrwxrwxrwx 1 root root 10 Aug 23 12:44 usb-15c2_0038-event-mouse -> 
../event10

lrwxrwxrwx 1 root root  9 Aug 23 12:44 usb-15c2_0038-mouse -> ../mouse1

The kernel IR sees this as well:

# ir-keytable
Found /sys/class/rc/rc0/ with:
Name: iMON Remote (15c2:0038)
Driver: imon
Default keymap: rc-imon-pad
Input device: /dev/input/event10
LIRC device: /dev/lirc0
Supported kernel protocols: rc-6 imon
Enabled kernel protocols: imon
bus: 3, vendor/product: 15c2:0038, version: 0x0001
Repeat delay = 500 ms, repeat period = 125 ms

The problem is, this is missing the device that chains them together. 
It's usually postpended with 'if00' or something similar to indicate 
it's the infrared device.


On boot, it does not create a device for it under /dev/input/by-id like 
it used to, so making lircd chain to it becomes difficult, especially if 
you plug in another USB input device.


The kernel does indeed report the device to udev:

# dmesg | grep "iMON Remote"
[1.423629] rc rc0: iMON Remote (15c2:0038) as 
/devices/pci:00/:00:14.0/usb1/1-9/1-9:1.0/rc/rc0
[1.423734] input: iMON Remote (15c2:0038) as 
/devices/pci:00/:00:14.0/usb1/1-9/1-9:1.0/rc/rc0/input10



This IR receiver also supports multiple protocols and keymaps. As I use 
Microsoft's remote keymaps, I do change this as a part of the 
/etc/init.d/lircd startup (I load the keymap and change the receiver's 
protocol before starting lircd.) Note that during testing I've removed 
this for testing thinking that perhaps it was changing something in the 
kernel - no dice, no new events or anything of the sort. It has nothing 
to do with this problem.


Now here's the really strange part: If I drop to bash and issue `udevadm 
trigger` it is created and appears correctly! This only happens 
modifying the keymap/protocol (changing it to RC-6 compatibility):


# ls -l /dev/input/by-id/
total 0
lrwxrwxrwx 1 root root 10 Aug 23 13:03 usb-15c2_0038-event-if00 -> 
../event10
lrwxrwxrwx 1 root root  9 Aug 23 13:03 usb-15c2_0038-event-mouse -> 
../event9

lrwxrwxrwx 1 root root  9 Aug 23 13:03 usb-15c2_0038-mouse -> ../mouse0

As you can see, the infrared device is created.

This device should be created at boot time, regardless or not if it has 
had the protocol changed and/or custom keymap applied.


I tried something quick in /etc/udev/rules.d/70-remote-control.rules:

KERNEL=="event*",ATTRS{name}="iMON Remote 
(15c2:0038)",SYMLINK="input/remote"


But it does not work, even after reloading the rules and forcing the 
trigger event.


I've kind of worked around this for now by adding a manual `udevadm 
trigger` command in /etc/init.d/lircd after modifying the protocol and 
keymap. However, there must be a way to make this work as intended with 
an udev rule. The issue being that this device doesn't have anything 
unique identifying it other than its name.


Anyone have any insight on how to solve this problem?

Dan



Re: [gentoo-user] glibc-2.33-r1 crashes out at the start before building.

2021-07-07 Thread Daniel Frey

On 7/7/21 11:16 AM, Alan Mackenzie wrote:

Hello, Gentoo.

Would somebody help me here, please.

When I try to emerge glibc-2.33-r1, the very first phase of the build
crashes out with:

  x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native   -Wl,-O1 -Wl,--as-needed  
glibc-test.c   -o glibc-test
  * Checking that IA32 emulation is enabled in the running kernel ...
/usr/portage/sys-libs/glibc/glibc-2.33-r1.ebuild: line 608:   199 Segmentation fault  
"${T}/check-ia32-emulation.elf32"
[ !! ]
  * ERROR: sys-libs/glibc-2.33-r1::gentoo failed (pretend phase):
  *   CONFIG_IA32_EMULATION must be enabled in the kernel to compile a multilib 
glibc.
  *
  * Call stack:
  *  ebuild.sh, line 127:  Called pkg_pretend
  *   glibc-2.33-r1.ebuild, line 721:  Called sanity_prechecks
  *   glibc-2.33-r1.ebuild, line 670:  Called die
  * The specific snippet of code:
  *  [[ $STAT -eq 0 ]] || die "CONFIG_IA32_EMULATION must be 
enabled in the kernel to compile a multilib glibc."
  *
  * If you need support, post the output of `emerge --info 
'=sys-libs/glibc-2.33-r1::gentoo'`,
  * the complete build log and the output of `emerge -pqv 
'=sys-libs/glibc-2.33-r1::gentoo'`.
  * The complete build log is located at 
'/var/tmp/portage/sys-libs/glibc-2.33-r1/temp/build.log'.
  * The ebuild environment file is located at 
'/var/tmp/portage/sys-libs/glibc-2.33-r1/temp/die.env'.
  * Working directory: '/var/tmp/portage/sys-libs/glibc-2.33-r1/empty'
  * S: '/var/tmp/portage/sys-libs/glibc-2.33-r1/work/glibc-2.33'


Failed to emerge sys-libs/glibc-2.33-r1, Log file:



  '/var/tmp/portage/sys-libs/glibc-2.33-r1/temp/build.log'


What is clearly happening is that the C Compiler is crashing out with a
segfault.  I actually have CONFIG_IA32_EMULATION in my kernel config.

I've tried this with both GCC-10.3.0 and GCC-9.3.0 with the same results
on both.

What is going wrong? (Horrible thought - maybe my RAM is failing.)



It looks to me that it ran a test to see if you have a kernel option 
enabled. It didn't, looks like it crashed. And then the build warns you 
that you have to enable CONFIG_IA32_EMULATION in your kernel?


Dan




Re: [gentoo-user] system.map file in /boot. How to manage?

2021-07-02 Thread Daniel Frey

On 6/30/21 11:59 PM, Dale wrote:

Howdy,

The subject line pretty much describes this.  How does one manage the
system.map file in /boot?  Is it needed?  Should it be updated with each
kernel?  I tend to keep 2 to 3 kernels installed.  I tend to keep 2 that
I know are stable and one testing.  After a while, I may remove the
oldest one and only have two, just in case.  Should I version the
system.map file the same as kernels?  Does just one with no version get
the job done?  Update the file with each kernel upgrade or install one
and done?

While at it, what does it even do?  If it needs it, it doesn't matter
but just curious.

Thanks for any tips on this.

Dale

:-)  :-)



I never copy it over unless I have some kernel panic (so not for well 
over a decade.) So there's nothing for me to manage (I only copy the 
kernel and kernel config to /boot.)


Dan




Re: [gentoo-user] pango failed to build

2021-06-01 Thread Daniel Frey

On 6/1/21 12:29 PM, n952162 wrote:

on two different machines.  Is there some new USE variable I need?





I hit this and had to rebuild a package, but I forget which one...

I looked in my log and:

1622312280:  *** emerge --oneshot --regex-search-auto=y Locale-gettext

I had to emerge --oneshot dev-perl/Locale-gettext then it built.

Dan



Re: [gentoo-user] portage has 0 debugging support for binary emerges

2021-04-05 Thread Daniel Frey

On 4/4/21 6:41 AM, n952162 wrote:

On 4/4/21 12:37 PM, n952162 wrote:
After re-running quickpkg, I still get no "binary"s in the emerge 
output dependency tree.



At some point, I started getting 304 errors here again.

|304 Not Modified|

This is used for caching purposes. It tells the client that the
response has not been modified, so the client can continue to
use the same cached version of the response.

I suspect the problem is related to this. The Packages file is the 
package index file.


# ls -l /var/cache/binpkgs/Packages
-rw-r--r-- 1 root root 1024590 Apr  4 13:00 /var/cache/binpkgs/Packages



I wonder if your permissions are messed up? Here's mine:

$ ls -ldh /var/cache/distfiles/ /var/cache/binpkgs
drwxrwxr-x 2 root portage 4.0K Dec  4  2019 /var/cache/binpkgs
drwxrwxr-x 2 root portage 140K Apr  2 08:16 /var/cache/distfiles

Dan



Re: [gentoo-user] Kodi 19 stabilization

2021-03-19 Thread Daniel Frey

On 3/14/21 3:51 PM, Steve Evans wrote:

On Sun, 14 Mar 2021 14:57:22 -0700
Daniel Frey  wrote:


Does anyone know if Kodi 19 is planning to be stabilized soon? I
haven't been able to update TV frontends since October.

(Before you say remove Kodi, don't bother - these are TV frontends
and their only purpose is to run Kodi!)

I'm also not interested in unmasking a ton of things to get it to
install...



I have been running Kodi 19 since it was added to Gentoo and only had
to unmask dev-libs/libudfread to get it to build. It has worked
well other than some (non official) add ons not working because they
have not been upgraded to Python 3.

Steve




I may have to look into that. Thanks. However, as I've already waited so 
many months what's another few? It's going to be a chore to upgrade 
either way. :o)


Dan



[gentoo-user] Kodi 19 stabilization

2021-03-14 Thread Daniel Frey
Does anyone know if Kodi 19 is planning to be stabilized soon? I haven't 
been able to update TV frontends since October.


(Before you say remove Kodi, don't bother - these are TV frontends and 
their only purpose is to run Kodi!)


I'm also not interested in unmasking a ton of things to get it to install...

Dan



Re: [gentoo-user] Yet another USE flag problem

2021-01-04 Thread Daniel Frey

On 1/4/21 7:32 AM, Bertram Scharpf wrote:


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

 Calculating dependencies... done!

 emerge: there are no ebuilds built with USE flags to satisfy 
"dev-lua/luv[lua_single_target_luajit(-)?,lua_single_target_lua5-1(-)?,lua_single_target_lua5-2(-)?]".
 !!! One of the following packages is required to complete your request:
 - app-editors/neovim-0.4.4-r100::gentoo (Change USE: 
-lua_single_target_lua5-1, this change violates use flag constraints defined by 
app-editors/neovim-0.4.4-r100: 'exactly-one-of ( lua_single_target_luajit 
lua_single_target_lua5-1 lua_single_target_lua5-2 )')
 (dependency required by "app-editors/neovim-0.4.4-r100::gentoo" [ebuild])
 (dependency required by "neovim" [argument])

 # emerge --info | grep -i lua  

   1
 LUA_SINGLE_TARGET="lua5-1"
 LUA_TARGETS="lua5-1"
 USE="..." ... LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" ...
 USE_EXPAND="... LUA_SINGLE_TARGET LUA_TARGETS ..."

As far as I can see, only one is selected.

Bertram




Well, that's annoying, it doesn't show the package.

How about `equery uses app-editors/neovim-0.4.4-r100` ? Note: You need 
app-portage/gentoolkit for equery.


That should give you output like this:

final flag setting for installation]
[: I - package is installed with flag ]
[ Colors : set, unset ]
 * Found these USE flags for app-editors/neovim-0.4.4-r100:
 U I
 + - lto  : Build with Link Time Optimization (LTO)
 + + lua_single_target_lua5-1 : Build for Lua 5.1 only
 - - lua_single_target_lua5-2 : Build for Lua 5.2 only
 - - lua_single_target_luajit : Build for LuaJIT only
 + - nvimpager: Install nvimpager symlink to less.sh macro
 + - tui  : Build the neovim unix tui

The "U" column indicates what USE flags are selected, and if it's 
already installed, the "I" column indicates what the installed package 
USE flags are.


Dan



Re: [gentoo-user] Yet another USE flag problem

2021-01-04 Thread Daniel Frey

On 1/4/21 4:15 AM, Bertram Scharpf wrote:

On Monday, 04. Jan 2021, 07:09:06 +0100, Arve Barsnes wrote:

On Mon, 4 Jan 2021 at 06:05, Bertram Scharpf  wrote:

As far as I see, I defined _exactly_ _one_ _of_ them:


Please show what USE flags you've defined for either this package or
LUA. Hard to give advice without knowing your config.


   # emerge --info | grep -i lua
   LUA_SINGLE_TARGET="lua5-1"
   LUA_TARGETS="lua5-1"
   USE="..." ... LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" ...
   USE_EXPAND="... LUA_SINGLE_TARGET LUA_TARGETS ..."

   # grep -rnHi lua /etc/portage
   /etc/portage/make.conf:40:LUA_SINGLE_TARGET="lua5-1" #  luajit
   /etc/portage/package.use/zz-autouse:3:>=dev-lua/lpeg-1.0.1 luajit
   /etc/portage/package.use/zz-autouse:6:>=dev-lua/mpack-1.0.4 luajit
   /etc/portage/package.use/zz-autouse:10:>=dev-lua/luv-1.30.1.1 luajit
   /etc/portage/package.accept_keywords/local:26:

It looks like you have multiple lua USE-flags selected, and the package 
 requires only one to be selected.


Whats the output of `emerge -pv neovim`?

Dan



Re: [gentoo-user] Should I report a bad distfiles server?

2020-12-21 Thread Daniel Frey

On 12/21/20 6:09 AM, Dale wrote:

Howdy,

I've been running into this a while now.  It seems one server is no
longer hosting, is broken or something and it results in wasted time as
it attempts to use it and retries many times.  The server is
gentoo.mirrors.easynews.com.  I just removed it from make.conf so that I
don't run into the problem anymore.  While that likely fixes my problem,
should I reach out to someone and report that that server is no longer
working so it can be either fixed or removed from the lists?  If so,
who/where do I report it?  b.g.o maybe?  This is what I get:



I'm sure the infrastructure team would like to be aware of potentially 
malfunctioning servers. If it were me, I'd file a bug and tag it 
Infrastructure somehow so they are aware of it.


Dan



Re: [gentoo-user] OT: DVI-D / HDMI / VGA adaptors

2020-12-14 Thread Daniel Frey

On 12/14/20 10:55 AM, Walter Dnes wrote:

   I ordered a Dell XPS 8940 which arrived in October, but life got in
the way, and I'm only now getting around to setting it up.  First thing
I noticed today is that Dell "had the courage to remove the VGA port"
.  It has HDMI and Displayport.  I've got two monitors for my PCs.
My main one has VGA/DVI/HDMI/Displayport inputs.

   But I want to attach the XPS 8940 to the older monitor, which only has
VGA and DVI-D.  I use the older monitor for setup/install and to keep
the "hot backup" machine up-to-date.  What are my options?  For the main
machine I'll buy an HDMI cable.  Are there adapters that'll push HDMI
computer output into a monitor VGA or DVI-D input?  That way I can buy
an HDMI cable plus an adaptor, rather than a new monitor. 



If your old monitor has DVI-D there's a plethora of HDMI to DVI-D cords 
out there. We use a lot of them where I work.


Dan



Re: [gentoo-user] askterisk 11.25.3-r1 masked

2020-12-06 Thread Daniel Pielmeier
Am December 6, 2020 10:08:45 PM UTC schrieb the...@sys-concept.com:
>On 12/06/2020 03:00 PM, Daniel Pielmeier wrote:
>> Am December 6, 2020 9:23:07 PM UTC schrieb the...@sys-concept.com:
>>> I'm looking at the output of "equery y asterisk"
>>> and it shows asterisk-11.25.3-r1 is masked
>>> and https://packages.gentoo.org/packages/net-misc/asterisk show as
>>> stable  (amd64)
>>>
>>> Why is it masked on my system?
>> 
>> It is masked on every system! As the mask says users should upgrade
>to newer versions!
>> 
>> I guess https://packages.gentoo.org does not consider packages masked
>by profiles. You can give your feedback about it here:
>https://packages.gentoo.org/about/feedback
>
>Upgrade is not a problem, re-writing / debugging the extconfig.conf
>(dial plan) is; it takes time.

Which comes with every software update, you always have to adapt.
This however was not your question!

-- 
Best regards
Daniel



Re: [gentoo-user] askterisk 11.25.3-r1 masked

2020-12-06 Thread Daniel Pielmeier
Am December 6, 2020 9:23:07 PM UTC schrieb the...@sys-concept.com:
>I'm looking at the output of "equery y asterisk"
>and it shows asterisk-11.25.3-r1 is masked
>and https://packages.gentoo.org/packages/net-misc/asterisk show as
>stable  (amd64)
>
>Why is it masked on my system?

It is masked on every system! As the mask says users should upgrade to newer 
versions!

I guess https://packages.gentoo.org does not consider packages masked by 
profiles. You can give your feedback about it here: 
https://packages.gentoo.org/about/feedback


-- 
Best regards
Daniel

Re: [gentoo-user] [SOLVED] glabels not showing GNU Barcode

2020-12-06 Thread Daniel Pielmeier

Daniel Pielmeier schrieb am 06.12.20 um 16:39:

k...@aspodata.se schrieb am 06.12.20 um 13:22:

Thelma:
...

IT WORKED!


Great!

Regards,
/Karl Hammar




Things like this should be handled in a bug report!

Actually there is one [1] already. Don't know who opened it and if it 
was independent of this discussion. Times of this thread and the bug 
opening suggest a relation ;-)


[1] https://bugs.gentoo.org/758491



Okay now I know who opened the bug :-)

thelma=joseph?

Next time just add this information here. This way everybody interested 
can also track the progress at the bug tracker!


--
Best Regards
Daniel



Re: [gentoo-user] [SOLVED] glabels not showing GNU Barcode

2020-12-06 Thread Daniel Pielmeier

k...@aspodata.se schrieb am 06.12.20 um 13:22:

Thelma:
...

IT WORKED!


Great!

Regards,
/Karl Hammar




Things like this should be handled in a bug report!

Actually there is one [1] already. Don't know who opened it and if it 
was independent of this discussion. Times of this thread and the bug 
opening suggest a relation ;-)


[1] https://bugs.gentoo.org/758491

--
Regards
Daniel



Re: [gentoo-user] Gnome mplayer replacement

2020-11-17 Thread Daniel Frey

On 11/16/20 11:50 PM, Arve Barsnes wrote:

On Tue, 17 Nov 2020 at 08:37, Dale  wrote:

Thanks for any tips.


If you don't *need* any fancy interface, you can't go wrong with mpv.
It is a fork of mplayer, has space to pause, arrow keys to move
back/forward a minute (up/down) or 10 sec (left/right). I've never
needed anything else.

Regards,
Arve



The only downside to mpv is they've removed lirc support quite a long 
time ago; if you use custom lirc/irexec to control HTPCs or the like 
like I do it's a bit of a deal-breaker.


Dan



Re: [gentoo-user] Portage and kernel sources... part deux.

2020-11-12 Thread Daniel Frey

On 11/11/20 10:10 AM, Neil Bothwick wrote:

On Wed, 11 Nov 2020 08:31:07 -0800, Daniel Frey wrote:


Or is this because nvidia-drivers depends on virtual/linux-sources?
Even so, the presence of the single slotted version in world should be
enough to satisfy the dependency.


Exactly, and emerge -u will try to update that and its dependencies to
the latest suitable version.




OK, I honestly do not know why I didn't see it before, but it makes 
sense now. I confirmed this with my non-nvidia machines.


Dan



Re: [gentoo-user] Portage and kernel sources... part deux.

2020-11-11 Thread Daniel Frey

On 11/11/20 7:56 AM, Arve Barsnes wrote:

On Wed, 11 Nov 2020 at 16:44, Daniel Frey  wrote:

Does anyone have any idea where to look next to see why this is being
pulled in?


You should probably just refer to your previous thread, because all
the same info still applies. You need to mask gentoo-sources and
unmask the versions you want to install if you don't want updates.


I have never had to do this in the past. Simply having a slot in world 
as indicated here:


apollo ~ # grep gentoo-sources /var/lib/portage/world
sys-kernel/gentoo-sources:5.4.66

and not just sys-kernel/gentoo-sources has been enough that it doesn't 
pull in extra sources. I'm trying to figure out why this behaviour has 
changed. I've been doing it this way for years, and only recently has it 
started to try to merge a newer version while emerging world.


Or is this because nvidia-drivers depends on virtual/linux-sources? Even 
so, the presence of the single slotted version in world should be enough 
to satisfy the dependency.


Dan



[gentoo-user] Portage and kernel sources... part deux.

2020-11-11 Thread Daniel Frey
So now I have another machine that insists on pulling in another set of 
kernel sources, even though I like to do this manually.


apollo ~ # emerge -auDNt world

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

Calculating dependencies... done!
[nomerge   ] www-client/firefox-78.4.1
[nomerge   ]  media-video/ffmpeg-4.3.1
[nomerge   ]   media-libs/nv-codec-headers-9.1.23.1
[nomerge   ]x11-drivers/nvidia-drivers-455.28
[nomerge   ] virtual/linux-sources-3-r4
[ebuild  NS]  sys-kernel/gentoo-sources-5.4.72 [5.4.66]


However, this should satisfy the dependency:
apollo ~ # equery list gentoo-sources
 * Searching for gentoo-sources ...
[IP-] [  ] sys-kernel/gentoo-sources-5.4.66:5.4.66
apollo ~ # equery list virtual/linux-sources
 * Searching for linux-sources in virtual ...
[IP-] [  ] virtual/linux-sources-3-r4:0

The one it's trying to pull is a stable kernel at least:
apollo ~ # eshowkw gentoo-sources
Keywords for sys-kernel/gentoo-sources:
  | |   u  |
  | a   a p s a   r |   n  |
  | m   r h   p p   s l i i m m | e u s| r
  | d a m p p c a x 3 p a s 6 i | a s l| e
  | 6 r 6 p p 6 r 8 9 h 6 c 8 p | p e o| p
  | 4 m 4 a c 4 c 6 0 a 4 v k s | i d t| o
--+-+--+---
[I]5.4.66 | + + + + + + + + ~ ~ ~ o o ~ | 6 o 5.4.66   | gentoo
--+-+--+---
   5.4.72 | + ~ + ~ + + ~ + ~ ~ ~ o o ~ | 6 o 5.4.72   | gentoo
--+-+--+---


But, this time I don't have anything in /etc/portage or 
/var/lib/portage/world that seems to be requesting it...


apollo ~ # grep gentoo-sources /var/lib/portage/world
sys-kernel/gentoo-sources:5.4.66

apollo ~ # cd /etc/portage
apollo /etc/portage # grep -R gentoo-sources *
apollo /etc/portage #

I'm confused as to why portage is insistent on merging this kernel even 
though I do not request it specifically...


Does anyone have any idea where to look next to see why this is being 
pulled in?


Dan



Re: [gentoo-user] Portage being silly with kernel sources

2020-10-12 Thread Daniel Frey

On 10/11/20 10:06 AM, Rich Freeman wrote:

On Sun, Oct 11, 2020 at 12:23 PM Daniel Frey  wrote:


The problem is it's always trying to pull in unstable packages when I
have two slotted kernels in world:

sys-kernel/gentoo-sources:5.4.48
sys-kernel/gentoo-sources:5.4.66

I tried masking kernels >5.5 but now it's trying to pull in unstable
kernel 5.4.70.

I do not run unstable kernels, and have two stable kernels installed.

Why is portage insistent on pulling in sys-kernel/gentoo-sources
(non-slotted) when two slotted entries already exist?



I'm not sure what you mean by "slotted" here.  Do you mean stable?

The most likely explanation is that you have ACCEPT_KEYWORDS=~amd64
somewhere, or sys-kernel/gentoo-sources somewhere in
package.accept_keywords.



OK, I did some poking around. I'm not running ~amd64 but I did discover 
that autounmask had a gentoo-sources entry in it. It was for a specific 
slot though (gentoo-sources:5.4.18), I wonder why it was applying it to 
all gentoo-sources packages?


Nonetheless, I removed the file under portage/package.accept_keywords 
and it's resolved itself.


Dan



[gentoo-user] Portage being silly with kernel sources

2020-10-11 Thread Daniel Frey
This is one of those frustrating times where portage is trying to do 
something silly.


I have nvidia-drivers installed. It has a dependency to 
virtual/linux-sources.


The problem is it's always trying to pull in unstable packages when I 
have two slotted kernels in world:


sys-kernel/gentoo-sources:5.4.48
sys-kernel/gentoo-sources:5.4.66

I tried masking kernels >5.5 but now it's trying to pull in unstable 
kernel 5.4.70.


I do not run unstable kernels, and have two stable kernels installed.

Why is portage insistent on pulling in sys-kernel/gentoo-sources 
(non-slotted) when two slotted entries already exist?


I do not want to install unstable kernel sources as I don't use them and 
am trying to spare the thousands of unnecessary writes on my SSD. 
Whenever I update I check to see if there's a new stable kernel 
available manually and update to it if needed.


Dan



[gentoo-user] Environment variables on package granularity

2020-10-02 Thread Daniel Armbruster
Hi gentoo-user,

is there a way to set environment variables on package/ebuild granularity? I'm
aware, that plenty of portage related environment variables are configurable by
means of the package.env feature
(https://wiki.gentoo.org/wiki//etc/portage/package.env). However, I didn't find
a way to set additional environment variables.

The actual reason, why I'm asking is the following: When compiling
app-emulation/qemu, package installation fails when calling the preprocessor.
Though, I'm able to manually solve the issue when setting the CPP environment
variable:

# export CPP="gcc -E"

before running emerge. Instead of running the command again and again i.e.
before every reinstallation of app-emulation/qemu, I'd like to set this
environment variable for the package once (in e.g. a configuration file) and
it's done for every future reinstallation.

Regards,
Daniel




signature.asc
Description: PGP signature


Re: [gentoo-user] gcc is being built again??

2020-09-29 Thread Daniel Frey

On 9/29/20 10:48 AM, n952162 wrote:

10 weeks ago, I updated my system and it took days to build.   I just
started a new update of my system, and it looks like it will take at
least more than a day again ...

Why is gcc being rebuilt after 10 weeks, for example?





I don't recall what flag it was, but that happened to me and a profile 
default flag was toggled that triggered a rebuild of gcc.


Dan



Re: [gentoo-user] Re: Local mail server

2020-07-31 Thread Daniel Frey

On 7/30/20 4:38 PM, Ralph Seichter wrote:

* Grant Edwards:


Pricing is based on what people are willing to pay. People are willing
to pay extra for a static IPv6 address, therefore static IPv6
addresses cost extra.


Somewhere, and some people. I'd be interested to hear from users who
still need to pay extra for IPv6. Here in Germany IPv6 usually comes at
not extra cost (I write "usually" because I don't know every single ISP
here; some only operate in a particular city.)

-Ralph



For where I am, if you need a static IPv4 address (which I do) IPv6 is 
not available at all from my ISP... it's not a matter of paying.


Dan



Re: [gentoo-user] What's with all these "acct-group" ebuilds recently?

2020-06-26 Thread Daniel Frey

On 6/20/20 7:04 PM, William Kenworthy wrote:
Thanks for filing the bug.  


Gah! I forgot about this!

I filed a bug now, I hope I made it clear enough. Others can pipe in 
there with comments if they like.


I did indicate the two potential proposals to correct the issue in the 
bug itself.


https://bugs.gentoo.org/729752

Dan





Re: [gentoo-user] No sound from audacity...

2020-06-26 Thread Daniel Pielmeier
Am June 26, 2020 3:37:03 PM UTC schrieb "Matt Connell (Gmail)" 
:
>On 2020-06-26 06:00, Daniel Pielmeier wrote:
>> Also I only every see you asking questions but
>> never trying to answer questions of others.
>
>To play devil's advocate, and at the risk of going off-topic straight 
>away, a person who has a lot of issues/questions is going to be less 
>likely to be confident and knowledgeable enough to answer someone
>else's 
>question.  They'll be more likely to defer to more experienced readers.
>
>I have about 7 years of daily Gentoo use under my belt and I'm still
>not 
>confident enough to answer a lot of the questions on this list without 
>some research and testing on my own, which time does not always permit.
>
>You make good, valid points otherwise.  Just wanted to share that 
>internet stage-fright and imposter syndrome are both alive and well.

All true! And it is no problem if the help is one sided, but on the other hand 
there are always low hanging fruits!

-- 
Best regards
Daniel

Re: [gentoo-user] No sound from audacity...

2020-06-26 Thread Daniel Pielmeier
tu...@posteo.de schrieb am 26.06.20 um 12:06:
> Hi,
> 
> got a strange problem with audacity:
> I did:
> Load a *.wav file into audacity (it contains sound as visible in audacity 
> Menu->Select->Select all
> Press play bottom
> 
> Nothing
> 
> This is printed on the console:
> 
> Expression 'framesAvail' failed in 
> '/var/tmp/portage/media-libs/portaudio-19.06.00-r3/work/portaudio/src/hostapi/alsa/pa_linux_alsa.c',
>  line: 3625
> Expression 'PaAlsaStreamComponent_GetAvailableFrames( self, , 
> xrun )' failed in 
> '/var/tmp/portage/media-libs/portaudio-19.06.00-r3/work/portaudio/src/hostapi/alsa/pa_linux_alsa.c',
>  line: 3974
> Expression 'PaAlsaStreamComponent_RegisterChannels( >playback, 
> >bufferProcessor, ,  )' failed in 
> '/var/tmp/portage/media-libs/portaudio-19.06.00-r3/work/portaudio/src/hostapi/alsa/pa_linux_alsa.c',
>  line: 4103
> Expression 'PaAlsaStream_SetUpBuffers( stream, ,  )' failed in 
> '/var/tmp/portage/media-libs/portaudio-19.06.00-r3/work/portaudio/src/hostapi/alsa/pa_linux_alsa.c',
>  line: 4344
> 
> My installation is:
> 
> 
> [I] media-sound/audacity
>  Available versions:  2.2.2^t (~)2.3.2^t (~)2.3.3^t {alsa doc ffmpeg 
> +flac id3tag jack +ladspa +lame +lv2 mad (+)midi nls +portmixer sbsms 
> +soundtouch twolame vamp +vorbis +vst CPU_FLAGS_X86="sse"}
>  Installed versions:  2.3.3^t(11:30:03 AM 06/26/2020)(alsa ffmpeg flac 
> ladspa lame lv2 mad nls portmixer soundtouch vorbis vst -doc -id3tag -jack 
> -midi -sbsms -twolame -vamp CPU_FLAGS_X86="sse")
>  Homepage:https://web.audacityteam.org/
>  Description: Free crossplatform audio editor
> 
> 
> Playback works fine using mpv, Firefox, etc...only audacity has a
> problem.
> 
> Is it hardwired to pulseaudio?


First I thought about not responding here but decided otherwise. May I
ask you first if you did a basic search about this issue before posting
here?

If I look for "'PaAlsaStreamComponent_GetAvailableFrames( self,
, xrun )' failed" the first result is a link to the Gentoo
forum [1] which suggests the installation of alsa-oss to fix this issue.

So did you look for the issue and put some effort into it before posting
here? No offense but you post a lot of questions about problems you have
here which in my opinion are often solved with little effort you could
have done yourself. So the thought pops up that you are just lazy and
let others do the work. Also I only every see you asking questions but
never trying to answer questions of others.

Explaining your problem and also stating what you already tried or where
you have looked for a solution will avoid that people get that
impressions and they may be more helpful. Or the post is completely
unnecessary because you solved it yourself after 5 minutes of
investigation which saves the time of all the other list participants.

Just a friendly recommendation from me as over time this annoys me a
little and probably I am not the only one here. If people are annoyed it
is unlikely for them to help. So help yourself to make others help you.

[1] https://forums.gentoo.org/viewtopic-t-1109266-start-0.html

-- 
Best Regards
Daniel




signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] What's with all these "acct-group" ebuilds recently?

2020-06-20 Thread Daniel Frey

On 6/20/20 7:04 PM, William Kenworthy wrote:


On 21/6/20 9:40 am, Daniel Frey wrote:

On 6/20/20 6:21 PM, Rich Freeman wrote:

On Sat, Jun 20, 2020 at 7:06 PM Daniel Frey  wrote:


Maybe when I have a moment I'll file a bug.

Dan


Thanks for filing the bug.  One of my pet peeves is that the last few
years gentoo has been going down the path of spitting everything into
smaller and smaller pieces and scattering them around - its fine when
things work, but becomes a real pig to fault find and more often ends up
in a call for help.  I would really like packages to be self contained
so its configuration and files are all in one place.  I cant see any
advantage to having multiple ebuilds for a package instead of using a
support framework to deal with it other than exposing multiple
opportunities for things to go wrong and make it harder to fix. This not
an elegant design!

BillK





They were trying to solve the problem of having multiple packages 
dependent on a single user/group - mariadb/mysql comes to mind.


By having these types of packages depend on something in the tree they 
can prevent the condition of having to remove the user/group when 
another package may still depend on it. It's kind of the opposite to the 
virtual/* packages I think, or maybe that's the beer talking.


Dan



Re: [gentoo-user] What's with all these "acct-group" ebuilds recently?

2020-06-20 Thread Daniel Frey

On 6/20/20 6:21 PM, Rich Freeman wrote:

On Sat, Jun 20, 2020 at 7:06 PM Daniel Frey  wrote:


You just pointed out the ambiguity.

Emerging a package solely by its name worked 99.9% of the time before
this change.

Now new users get the fun of "Gee, which one is the one I actually
want?" MythTV is a fairly clear one to figure out, but other packages
aren't.


Honestly, your word of "ambiguity" was somewhat ambiguous.  I had no
idea what you were talking about in your original post.  :)

I think this is actually a fair criticism.  Not so much that it isn't
clear which one to install, but rather that this system does cause you
to have to use full cat/pkg atoms when previous pkg alone would have
worked.  There have always been packages where this is necessary, but
this has made this more common.



Yes, I could've worded that better.

I would imagine that if someone asks to install something like mythtv or 
asterisk there's a 0% chance that they want to install a package that 
creates a user or group, they want the actual package itself.


I think that makes more sense.

I've been using gentoo since 2003/04? and I've only had to use the 
cat/package expression maybe twice... and I believe those packages were 
python or perl related.


It's more of a usability issue than anything.

The way that it now deals with user and group creation is elegant, 
especially if you have more than one package that needs a specific user 
and/or group combination created. When I first saw portage spit out the 
ambiguity for the request `emerge mythtv` the first thing I thought was 
"Why would I need to merge a package to create a user? That's the 
package manager's problem..." :o)


Maybe when I have a moment I'll file a bug.

Dan



Re: [gentoo-user] What's with all these "acct-group" ebuilds recently?

2020-06-20 Thread Daniel Frey

On 6/20/20 11:56 AM, Ralph Seichter wrote:

* Daniel Frey:


I went to emerge mythtv (I think) and now it says it's an ambiguous
requests with *both* the group and user of the same name.


You need to emerge "media-tv/mythtv", not just "mythtv". Nothing
ambiguous about it.

Further reading: https://www.gentoo.org/glep/glep-0081.html

-Ralph



You just pointed out the ambiguity.

Emerging a package solely by its name worked 99.9% of the time before 
this change.


Now new users get the fun of "Gee, which one is the one I actually 
want?" MythTV is a fairly clear one to figure out, but other packages 
aren't.


I understand the dependencies problem that they were trying to solve, 
but I don't think the way it was implemented is a great one.


Dan



Re: [gentoo-user] What's with all these "acct-group" ebuilds recently?

2020-06-20 Thread Daniel Frey

On 6/19/20 9:04 PM, Walter Dnes wrote:

   Inquiring minds want to know.  What exactly do they accomplish,
besides cluttering up a database somewhere?



It's not the cluttering of databases that bother me, it's the creation 
of many ambiguous requests now. I went to emerge mythtv (I think) and 
now it says it's an ambiguous requests with *both* the group and user of 
the same name.


I must say I'm baffled that a proposal that would create so many 
ambiguous requests passed...


Dan



Re: [gentoo-user] Screenrecording with audio from firefox

2020-06-03 Thread Daniel Sonck
Yes, I realize it might not have been clear, as I got a bit confused by my own 
thought process as well.

I will also answer in pieces related to your questions

On Wednesday, June 3, 2020 5:31:43 PM CEST tu...@posteo.de wrote:
> Hi Daniel,
> 
> sorry for not understanding the whole setup ...
> 
> Please see my inserted questions below:
> 
> On 06/03 04:44, Daniel Sonck wrote:
> > It might be that your Qt5 is perhaps partially updated or out of date
> > even,
> > but not sure. I do know that it can be a pain to compile due to Qt5
> > changing. If it's too much of a hassle to get it to work, Catia could be
> > replaced by QJackCtl, however then you will need to have the tweaks
> > Cadence does for you manually applied. Which, according to my system, is:
> > 
> > pcm.!default {
> > 
> > type plug
> > slave { pcm "jack" }
> > 
> > }
> > 
> > pcm.jack {
> > 
> > type jack
> > playback_ports {
> > 
> > 0 system:playback_1
> > 1 system:playback_2
> > 
> > }
> > capture_ports {
> > 
> > 0 system:capture_1
> > 1 system:capture_2
> > 
> > }
> > 
> > }
> > 
> > ctl.mixer0 {
> > 
> > type hw
> > card 0
> > 
> > ( In case you want to entirely not bother with pulseaudio )
> 
> The above setup is for alsa/jack/obs...right.
> Since jackd does not start (it crashes) and I am currently not in
> the mood to fix an error which helps to fix a problem which should
> fix a problem for an application which in first place was there to
> help me to fix an issue to record from Firefox...I will try
> pulseaudio -- despite the fact, that I really don't like it.

The crash might be due to it not getting exclusive access to alsa or the sound 
card not properly selected. Yes that configuration is for alsa -> jack -> obs/
simplescreenrecorder

> 
> > Or, like me where I have it set to pulseaudio mode which creates:
> Ok...the following is for alsa/pulseaudio/obs
> 
> > pcm.!default {
> > 
> > type plug
> > slave { pcm "pulse" }
> > 
> > }
> > 
> > pcm.pulse {
> > 
> > type pulse
> > 
> > }
> > 
> > ctl.mixer0 {
> > 
> > type hw
> > card 0
> > 
> > }
> > 
> > This would go into a file .asoundrc in your $HOME and force ALSA native
> > programs to actually hook up as Jack clients,
> 
> ...sorry...why jack? Do I need jack for pulseaudio?

Here I actually meant "using the first config file will force alsa native 
programs to connect to jack. Incidentally, the second solution will (usually) 
also work for alsa as it would do "alsa -> pulseaudio -> jack -> obs/
simplescreenrecorder", which is my default as I'm more accustomed to 
pulseaudio and jack (some programs like Discord really want pulseaudio)

> 
> > so you can manage your audio.
> > Note that you would still need to go into QJackCtls settings to setup the
> > correct main audio device
> 
> Pulseaudio->pavucontrolright?

this was still related to the first asoundrc file.

> 
> I am..irritated..at least;)
> 
> HLL! :)

Well, I will make sure it eventually works one way or another :) as I know how 
frustrating sound can be sometimes. As I said, I create music, as such I want 
Jack, but I also want to watch youtube without having to tear down my music 
setup. And I stream from time to time, so I use Jack/Alsa/Pulseaudio all at 
the same time and have picked up some things along the way.

> 
> Cheers!
> Meino
> 

Regards,

Daniel

> > On Wednesday, June 3, 2020 4:30:11 PM CEST tu...@posteo.de wrote:
> > > ‘QPainterPath ballPath’ has incomplete type and cannot be defined







Re: [gentoo-user] Screenrecording with audio from firefox

2020-06-03 Thread Daniel Sonck
It might be that your Qt5 is perhaps partially updated or out of date even, 
but not sure. I do know that it can be a pain to compile due to Qt5 changing. 
If it's too much of a hassle to get it to work, Catia could be replaced by 
QJackCtl, however then you will need to have the tweaks Cadence does for you 
manually applied. Which, according to my system, is:

pcm.!default {
type plug
slave { pcm "jack" }
}

pcm.jack {
type jack
playback_ports {
0 system:playback_1
1 system:playback_2
}
capture_ports {
0 system:capture_1
1 system:capture_2
}
}

ctl.mixer0 {
type hw
card 0
}
( In case you want to entirely not bother with pulseaudio )

Or, like me where I have it set to pulseaudio mode which creates:
pcm.!default {
type plug
slave { pcm "pulse" }
}

pcm.pulse {
type pulse
}

ctl.mixer0 {
type hw
card 0
}

This would go into a file .asoundrc in your $HOME and force ALSA native 
programs to actually hook up as Jack clients, so you can manage your audio. 
Note that you would still need to go into QJackCtls settings to setup the 
correct main audio device

On Wednesday, June 3, 2020 4:30:11 PM CEST tu...@posteo.de wrote:
> ‘QPainterPath ballPath’ has incomplete type and cannot be defined







Re: [gentoo-user] Screenrecording with audio from firefox

2020-06-03 Thread Daniel Sonck
I'm not entirely sure if it's part of portage yet (long time since I touched 
gentoo) but it's a modern jack routing program in similar style to the cadence 
program. If cadence exists, it's likely bundled with catia otherwise it can be 
found in the audio overlay, this issue specifically mentions it: https://
github.com/gentoo-audio/audio-overlay/issues/47

On Wednesday, June 3, 2020 4:17:15 PM CEST tu...@posteo.de wrote:
> Hi Daniel,
> 
> short question...what is catia (beside a CAD program by Dassault
> Systems... ;)...
> Can't find that in portage...
> 
> Cheers!
> Meino
> 
> On 06/03 03:47, Daniel Sonck wrote:
> > I just installed simplescreenrecorder as well. The same pulseaudio method
> > should also work for that by choosing the "Monitor" variants, although I
> > have to add that it would not allow you to capture both a mic and firefox
> > (or other application at the same time) unless you play back your own
> > microphone sound. With OBS you can add an Input and Output source to have
> > both mic and desktop audio.
> > 
> > If you want to have more control or are reluctant to use pulseaudio (as
> > some are) then it gets more complicated. With ALSA, I know there are ways
> > to support it by editing the ALSA configuration file but I don't know
> > anything about that (nor do I really like that approach).
> > 
> > I would then recommend using JACK instead, and setup ALSA programs to use
> > a
> > wrapper for JACK, this would allow you to route any audio through anything
> > (for which people in Music as I am use Jack) including mixing it together
> > before sending to SimpleScreenRecorder or OBS. The 2 tools I recommend to
> > add would be cadence (for configuring Jack + ALSA) and catia (to setup
> > the proper audio routing) possibly combined with some jack audio mixer to
> > get a "virtual mixing panel".
> > 
> > Hope this helps
> > 
> > Regards,
> > 
> > Daniel
> > 
> > On Wednesday, June 3, 2020 3:30:53 PM CEST tu...@posteo.de wrote:
> > > Hi,
> > > 
> > > To record my screen with audio I installed
> > > obs and then simplescreenrecoder.
> > > 
> > > Recording the video stream more or less works (I cannot record a
> > > firefox-window and need to record the full screen).
> > > 
> > > But recording the audio from the source which will be replayed
> > > by firefox only give me a stuttering sinus tone.
> > > 
> > > According to different tutorials I watched the recording of
> > > a gameplay works with video/audio which exactly mine setup.
> > > 
> > > Interestingly I cannot find the regarding options of both
> > > screen recorders any more (the tutorials refer to older versions
> > > of the recorders).
> > > 
> > > How can I record video and audio from the played source nonetheless?
> > > 
> > > Cheers!
> > > Meino







Re: [gentoo-user] Screenrecording with audio from firefox

2020-06-03 Thread Daniel Sonck
I just installed simplescreenrecorder as well. The same pulseaudio method 
should also work for that by choosing the "Monitor" variants, although I have 
to add that it would not allow you to capture both a mic and firefox (or other 
application at the same time) unless you play back your own microphone sound. 
With OBS you can add an Input and Output source to have both mic and desktop 
audio.

If you want to have more control or are reluctant to use pulseaudio (as some 
are) then it gets more complicated. With ALSA, I know there are ways to 
support it by editing the ALSA configuration file but I don't know anything 
about that (nor do I really like that approach).

I would then recommend using JACK instead, and setup ALSA programs to use a 
wrapper for JACK, this would allow you to route any audio through anything 
(for which people in Music as I am use Jack) including mixing it together 
before sending to SimpleScreenRecorder or OBS. The 2 tools I recommend to add 
would be cadence (for configuring Jack + ALSA) and catia (to setup the proper 
audio routing) possibly combined with some jack audio mixer to get a "virtual 
mixing panel".

Hope this helps

Regards,

Daniel

On Wednesday, June 3, 2020 3:30:53 PM CEST tu...@posteo.de wrote:
> Hi,
> 
> To record my screen with audio I installed
> obs and then simplescreenrecoder.
> 
> Recording the video stream more or less works (I cannot record a
> firefox-window and need to record the full screen).
> 
> But recording the audio from the source which will be replayed
> by firefox only give me a stuttering sinus tone.
> 
> According to different tutorials I watched the recording of
> a gameplay works with video/audio which exactly mine setup.
> 
> Interestingly I cannot find the regarding options of both
> screen recorders any more (the tutorials refer to older versions
> of the recorders).
> 
> How can I record video and audio from the played source nonetheless?
> 
> Cheers!
> Meino







Re: [gentoo-user] Screenrecording with audio from firefox

2020-06-03 Thread Daniel Sonck
Hello,

For OBS you can use the Audio Output Capture which requires PulseAudio to be 
running. It will look for the monitor device of your current soundcard to 
capture all audio you hear. For simplescreenrecorder, I don't know as I prefer 
OBS for it's extra compositing features and convenience.

Regards,

Daniel

On Wednesday, June 3, 2020 3:30:53 PM CEST tu...@posteo.de wrote:
> Hi,
> 
> To record my screen with audio I installed
> obs and then simplescreenrecoder.
> 
> Recording the video stream more or less works (I cannot record a
> firefox-window and need to record the full screen).
> 
> But recording the audio from the source which will be replayed
> by firefox only give me a stuttering sinus tone.
> 
> According to different tutorials I watched the recording of
> a gameplay works with video/audio which exactly mine setup.
> 
> Interestingly I cannot find the regarding options of both
> screen recorders any more (the tutorials refer to older versions
> of the recorders).
> 
> How can I record video and audio from the played source nonetheless?
> 
> Cheers!
> Meino







Re: [gentoo-user] slot conflict for the same package: how to add a USE flag?

2020-05-20 Thread Daniel Frey

On 5/20/20 12:06 PM, n952162 wrote:

The command was:

emerge -vu dev-qt/qtgui dev-qt/qtx11extras dev-qt/qtopengl
dev-qt/qtprintsupport dev-qt/qtwidgets dev-qt/qtxml
dev-qt/linguist-tools dev-qt/qtnetwork dev-qt/qtsvg dev-qt/qtcore

The output to that is attached.

I tried just emerging zlib with the static-libs USE flag ... that log is
also attached.

On 05/20/20 18:59, Ashley Dixon wrote:

On Wed, May 20, 2020 at 02:35:52PM +0200, n952162 wrote:

I have a slot conflict for sys-libs/zlib, whereby both users want
the same package.  Studying the USE variables shows that the new
package wants, additionally, the "static-libs" USE flag.

I thought, the way to handle this is to add the static-libs USE
variable in /etc/portage/package.use and re-emerge with
--changed-use.  Unfortunately, that gives me the same conflict.

Can you attach the full output of emerge ?





This is most likely due to so many packages that need to be upgraded at 
the same time. You're only asking to update a few select packages and 
it's borking because it's finding packages outside your request that 
also need to be updated at the same time.


Have you tried an `emerge -avuD world` to see if portage can backtrack 
far enough to sort dependencies out?


Dan



Re: [gentoo-user] Update Gentoo recently is becoming difficult

2020-05-13 Thread Daniel Frey

On 5/12/20 1:57 PM, Rich Freeman wrote:

On Tue, May 12, 2020 at 3:24 PM Daniel Frey  wrote:


On 5/12/20 10:54 AM, Joachim Gwoke wrote:

Been having trouble with mainly calibre 4.9.1-r2 and have since kept it
out of any emerges. Otherwise everything is alright with python 3.7 on
my side




I believe mine was soundconverter, but now I'm not so sure. It wanted
something other than 3.7, and the build had no target for it, and there
wasn't any unstable version in the tree I could unmask.


Why not just set in /etc/portage/package.use/pythonmigrate
media-sound/soundconverter PYTHON_TARGETS: python3_6 python3_7

Then it will build with python-3.6 which should work fine.

You don't HAVE to get rid of python-3.6 this instant, especially since
tons of stuff in the repository requires it still.



I'm aware, but I think I tried it in make.conf originally and that made 
portage really mad so I unmerged the offending package. I haven't 
bothered trying to remerge it as I don't need it right this instant. By 
the time I need it again hopefully this will have sorted itself out.


Dan



Re: [gentoo-user] Update Gentoo recently is becoming difficult

2020-05-12 Thread Daniel Frey

On 5/12/20 10:54 AM, Joachim Gwoke wrote:
Been having trouble with mainly calibre 4.9.1-r2 and have since kept it 
out of any emerges. Otherwise everything is alright with python 3.7 on 
my side





I believe mine was soundconverter, but now I'm not so sure. It wanted 
something other than 3.7, and the build had no target for it, and there 
wasn't any unstable version in the tree I could unmask.


Dan



Re: [gentoo-user] Update Gentoo recently is becoming difficult

2020-05-12 Thread Daniel Frey

On 5/12/20 6:52 AM, Victor Ivanov wrote:

Python has indeed been a bit of a mess recently for me as well, but I
haven't had any major issues.  Presumably, this could be attributed to
the fact that since python migrations started I have been using the
--changed-deps flag to emerge, which I noticed did help to clean a few
things up during world upgrades.



I had one package that insisted pulling an old version of python while 
everything else wanted 3.7 or 3.8, and I had to unmerge the offending 
package. I hope I don't need that package any time soon...


Dan



Re: [gentoo-user] Seagate ST8000NM0065 PMR or SMR plus NAS SAS SATA question

2020-05-10 Thread Daniel Frey

On 5/10/20 1:02 AM, Dale wrote:

Hi Michael,

I think it is too.  Your link shows about what the link I was looking at 
does.


I did research the SATA and SAS connector issue again.  Seagate has a 
picture of both for comparison and the drive I was looking at is a SAS 
drive.  When I did more research, it seems you can connect a SATA drive 
to SAS but not a SAS drive to SATA, unless that has changed since the 
site I found posted about it.  Either way, while it does seem to be PMR, 
I don't want to chance it not working since it is a SAS drive.  I need 
to weed out SAS type drives unless I want to buy a SAS drive controller 
card as well, to be certain it will work.  For those curious, this is a 
link that shows a picture.  One has to look closely because at a glance, 
they look a LOT alike.


https://www.seagate.com/support/kb/connecting-sata-drive-to-sas-controller-006170en/


SATA drives may be plugged into SAS controllers.

SAS drives cannot be plugged into SATA controllers.


Back to digging and waiting for a good deal.

Thanks much for the help.  :-D


That drive is a SAS drive and they use a generic photo of a hard drive - 
don't rely on those. That line of hard drives offer both SATA and SAS 
drives dependent on model.


They aren't compatible with SATA controllers.

And yes, SATA drives can be used on a SAS controller - I've been running 
that configuration on my file server for about 12 years.


Dan



Re: [gentoo-user] dir or file? >> /etc/portage/package.mask

2020-04-19 Thread Daniel Frey

On 4/18/20 10:56 AM, tu...@posteo.de wrote:

Hi,

I /thought/ that /etc/portage/package.mask is a file and using it
in this manner works as exspected.
Also the docs are of that opinion, too:
https://wiki.gentoo.org/wiki//etc/portage/package.mask

BUT!

  * error: please convert //etc/portage/package.mask to a directory
  *


urges me to make a directory out of it.
After doing so, the command starts.

I am confusedslightly...



The devs are deprecating the flat-file version of package.*, I have been 
gettings warnings during emerges indicating that they all need to be 
changed to the directory layout.


If you ignore this eventually emerge will stop working. I've already 
taken the few minutes to move all my boxes to the directory layout, and 
split out the packages to individual files. You don't have to go that 
far though, the entries can stay in one file under the new directory 
structure.


Dan



Re: [gentoo-user] Quick question: Bootdevice nameing...

2020-04-06 Thread Daniel Frey

On 4/5/20 11:21 PM, tu...@posteo.de wrote:

Hi,

Currentlu my newly created system is installed on a harrdisk, which
sit in a docking station connect via USB to my PC.

The system is intended to be complete in the sense, that can
boot bu itsself without accessing any other storage device.

What is the most common behaviour here:
If I change to boot sequence in the BIOS to boot the
harddisk from the docking station...will it become /dev/sda ?

Fstab depends on this...



It's not supposed to, but in my direct experience, it can rearrange the 
naming of the boot devices.


I had to use PARTUUID in fstab/grub.cfg to get around this problem.

Dan




Re: [gentoo-user] How to fix license error during install?

2020-03-21 Thread Daniel Frey

On 3/20/20 6:16 PM, Jeffrey Walton wrote:

Hi Everyone,

I'm having trouble installing Gentoo in a Virtual Box VM for testing.
It is a x86_64 guest. I selected a hardened profile to test PaX, which
means I selected 18 in 'eselect profile'.

I'm at "Configuring the Linux kernel" in the Handbook
(https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Kernel#Alternative:_Using_genkernel).
The part "emerge --ask sys-kernel/gentoo-sources" seems OK and does
not report errors. The genkernel part fails.

The specific error is:

$ LICENSE_ACCEPT="*" emerge --ask --autounmask-write
sys-kernel/genkernel 2>&1 | tee kernel.txt
$ cat kernel.txt



Hi, it's not 'LICENSE_ACCEPT', it's 'ACCEPT_LICENSE'.

Here's a snippet of my make.conf:

--
FEATURES="distcc"
MAKEOPTS="-j36 -l4"
ACCEPT_LICENSE="*"
VIDEO_CARDS="nvidia"
--

Dan



  1   2   3   4   5   6   7   8   9   10   >