Re: [gentoo-user] Re: Update to /etc/sudoers disables wheel users!!!

2022-10-27 Thread Ramon Fischer

You just invented a new torture method. :D

Write down the house rules with standard vim with as less key strokes as 
possible. Every mistake gives you an electric shock.


-Ramon

On 27/10/2022 05:01, Dale wrote:

Ramon Fischer wrote:

Do you also use "vim" from time to time?

Because it is also able to compare two (or more?) files, similiar to
"sdiff":

    $ vi -d file1 file2

or:

    $ vi file1
    :diffthis
    :vsplit
    CTRL+w + right arrow key
    :e file2
    :diffthis

-Ramon

On 27/10/2022 00:44, Dale wrote:

   I'd like a GUI tool where I can
click the one I want to keep with my rodent and then save.

I'd only use vi stuff if I had a gun pointed at me.  Even then, I'd make
a mess of it.  lol

Dale

:-)  :-)



--
GPG public key: 5983 98DA 5F4D A464 38FD CF87 155B E264 13E6 99BF



OpenPGP_0x155BE26413E699BF.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: [gentoo-user] Re: Update to /etc/sudoers disables wheel users!!!

2022-10-26 Thread Dale
Ramon Fischer wrote:
> Do you also use "vim" from time to time?
>
> Because it is also able to compare two (or more?) files, similiar to
> "sdiff":
>
>    $ vi -d file1 file2
>
> or:
>
>    $ vi file1
>    :diffthis
>    :vsplit
>    CTRL+w + right arrow key
>    :e file2
>    :diffthis
>
> -Ramon
>
> On 27/10/2022 00:44, Dale wrote:
>>   I'd like a GUI tool where I can
>> click the one I want to keep with my rodent and then save.
>

I'd only use vi stuff if I had a gun pointed at me.  Even then, I'd make
a mess of it.  lol

Dale

:-)  :-)



Re: [gentoo-user] Re: Update to /etc/sudoers disables wheel users!!!

2022-10-26 Thread Ramon Fischer

Do you also use "vim" from time to time?

Because it is also able to compare two (or more?) files, similiar to 
"sdiff":


   $ vi -d file1 file2

or:

   $ vi file1
   :diffthis
   :vsplit
   CTRL+w + right arrow key
   :e file2
   :diffthis

-Ramon

On 27/10/2022 00:44, Dale wrote:

  I'd like a GUI tool where I can
click the one I want to keep with my rodent and then save.


--
GPG public key: 5983 98DA 5F4D A464 38FD CF87 155B E264 13E6 99BF



OpenPGP_0x155BE26413E699BF.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: [gentoo-user] Re: Update to /etc/sudoers disables wheel users!!!

2022-10-26 Thread Rich Freeman
On Wed, Oct 26, 2022 at 5:26 PM Grant Edwards  wrote:
>
> On 2022-10-26, Dale  wrote:
> > Rich Freeman wrote:
> >> If you use an x11-based merge tool then it will also refuse to attempt
> >> an automatic
> >> merge if X11 isn't available.  (Obviously you can't actually run the
> >> manual merge if the tool uses X11 and that isn't available.)
> >>
> >>
> >
> > I'd like to try a GUI based tool.  Is that what you talking about?  If
> > so, name or what package has it?
>
> At one point, I had one of my systems configured to use "meld" when I
> picked "interactive merge" in the etc-update menu, but I've since gone
> back to just picking "show differences" in the etc-update menu, then
> manually running merge on the two filenames shown. With the
> interactive merge option, I was always a bit confused about which file
> was the destination and what happened after I exited meld.
>

I use cfg-update+meld.  It can use any 3-way diff/edit tool, but there
aren't many of those.

I believe the three panels show:
Left: the current config file
Right: new new packaged config file
Center: what the packaged config file was the last time you did an update

So Left vs Center shows you what changes you've made vs upstream, and
center vs right show you what changes upstream made to their file.  So
you would look for differences on the right side to see what needs
attention in the file, and then work those changes if appropriate into
the left file.

You just edit the left file to get it the way you want it and save
that, and then cfg-update captures the changes in RCS.

-- 
Rich



Re: [gentoo-user] Re: Update to /etc/sudoers disables wheel users!!!

2022-10-26 Thread Dale
Grant Edwards wrote:
> On 2022-10-26, Dale  wrote:
>> Rich Freeman wrote:
>>> If you use an x11-based merge tool then it will also refuse to attempt
>>> an automatic
>>> merge if X11 isn't available.  (Obviously you can't actually run the
>>> manual merge if the tool uses X11 and that isn't available.)
>>>
>>>
>> I'd like to try a GUI based tool.  Is that what you talking about?  If
>> so, name or what package has it?
> At one point, I had one of my systems configured to use "meld" when I
> picked "interactive merge" in the etc-update menu, but I've since gone
> back to just picking "show differences" in the etc-update menu, then
> manually running merge on the two filenames shown. With the
> interactive merge option, I was always a bit confused about which file
> was the destination and what happened after I exited meld.
>
> --
> Grant

I've tried etc-update and dispatch-conf and I can't figure out either
one of them when it comes to merging.  I'd like a GUI tool where I can
click the one I want to keep with my rodent and then save.  Like you, I
get confused trying to select things and then have no idea if I'm about
to royally screw something up.  I end up doing a ctrl c, restarting
update tool and zapping the new file and praying that didn't break
anything either. 

I have the default settings so there may be a better way but I just
don't know what.  I sometimes wish there was a video showing different
methods of managing config files and me picking what makes sense to me. 

I might add, a good while back I started doing updates in a chroot and
then using -k on my main system.  Since then, I don't see config updates
hardly at all.  I wonder if building in a chroot affects that. 

Dale

:-)  :-) 



[gentoo-user] Re: Update to /etc/sudoers disables wheel users!!!

2022-10-26 Thread Grant Edwards
On 2022-10-26, Dale  wrote:
> Rich Freeman wrote:
>> If you use an x11-based merge tool then it will also refuse to attempt
>> an automatic
>> merge if X11 isn't available.  (Obviously you can't actually run the
>> manual merge if the tool uses X11 and that isn't available.)
>>
>>
>
> I'd like to try a GUI based tool.  Is that what you talking about?  If
> so, name or what package has it?

At one point, I had one of my systems configured to use "meld" when I
picked "interactive merge" in the etc-update menu, but I've since gone
back to just picking "show differences" in the etc-update menu, then
manually running merge on the two filenames shown. With the
interactive merge option, I was always a bit confused about which file
was the destination and what happened after I exited meld.

--
Grant






Re: [gentoo-user] Re: repair of a seg-faulting bin-utils

2022-10-26 Thread Matt Connell
On Wed, 2022-10-26 at 14:37 -0400, Rich Freeman wrote:
> Another possible issue is bad -march settings.  That usually is an
> issue if you change your CPU and boot off of an existing hard drive.
> If you're going to upgrade your CPU you should rebuild all of @system
> (at least) with -march set to something very minimal.  Don't assume
> that a newer CPU does everything an existing one does - they sometimes
> do drop instructions.  You can set -mcpu to whatever you want, as a
> bad -mcpu will only cause minor performance issues.

Further reading on this:

https://wiki.gentoo.org/wiki/Safe_CFLAGS

I've always used this as a reference for helping ensure make.conf is
not only going to be well optimized, but produce reliable binaries.



Re: [gentoo-user] Re: repair of a seg-faulting bin-utils

2022-10-26 Thread Rich Freeman
On Wed, Oct 26, 2022 at 12:24 PM Grant Edwards
 wrote:
>
> On 2022-10-26, Corbin  wrote:
> > Help!
> >
> > The last update I did built/installed bin-uitls. It is now producing
> > seg-faults. I forgot to make a quickpkg of the old bin-utils before
> > upgrading.
>
> The first thing I would do is run a RAM test overnight. IME,
> segfaulting binutils or gcc has usually been a hardware problem.

Bad disk is obviously another possible issue (saw that on a pi
sdcard), but I'd definitely be testing that RAM. Really if you suspect
bad RAM it is worth your trouble to just shut down ASAP and test that,
because every minute with bad RAM is potentially corrupted files on
your hard drive, and rework even if you have a good backup.

Another possible issue is bad -march settings.  That usually is an
issue if you change your CPU and boot off of an existing hard drive.
If you're going to upgrade your CPU you should rebuild all of @system
(at least) with -march set to something very minimal.  Don't assume
that a newer CPU does everything an existing one does - they sometimes
do drop instructions.  You can set -mcpu to whatever you want, as a
bad -mcpu will only cause minor performance issues.

-- 
Rich



Re: [gentoo-user] Re: Update to /etc/sudoers disables wheel users!!!

2022-10-26 Thread Ramon Fischer
Of course, you are free to do so, but then blindly overwriting default 
configuration files is a Layer 8 problem.


-Ramon

On 26/10/2022 19:12, Grant Edwards wrote:

On 2022-10-26, Grant Taylor  wrote:


To the sudo developers, the /etc/sudoers file is *SUPPOSED* *TO* /be/
/edited/.

And editing that file is how I configure sudo. And when an emerge
update changes /etc/sudoers, the edited file is left as-is and there
is a message that you need to run etc-update to merge the changes.

--
Grant





--
GPG public key: 5983 98DA 5F4D A464 38FD CF87 155B E264 13E6 99BF



OpenPGP_0x155BE26413E699BF.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


[gentoo-user] Re: gio/pcmanfm sftp:// "operation not supported"

2022-10-26 Thread Grant Edwards
On 2022-10-26, Grant Edwards  wrote:

> The problem wasn't that the daemon was missing. There is a DBUS
> daemon, and other things that use DBUS (e.g. notifications) work fine.
>
> What was apparently missing was a "session"
>
> $ set | grep dbus

(same result with "grep DBUS")

> $ dbus-launch bash 
>
> $ set | grep DBUS
> 
> DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-45cBmpKpTX,guid=b783eda6500beba7132e450b63596c64

Where is one supposed to strat a DBUS session?  Should ssh logins have
one? Should each X session have one? Should each console login have
one? Should every bash instance have one?




[gentoo-user] Re: gio/pcmanfm sftp:// "operation not supported"

2022-10-26 Thread Grant Edwards
On 2022-10-26, Matt Connell  wrote:
> On Wed, 2022-10-26 at 16:22 +, Grant Edwards wrote:
>> Apparently, that error is cause by lack of a DBUS session. I just
>> happened to stumble across a posting somewhere by somebody who had the
>> same problem. How they figured out that was the problem remains a
>> mystery.
>
> It is likely that nobody else noticed this because dbus has moved into
> that "it is assumed to be there" tier of daemons these days.

The problem wasn't that the daemon was missing. There is a DBUS
daemon, and other things that use DBUS (e.g. notifications) work fine.

What was apparently missing was a "session"

$ set | grep dbus

$ dbus-launch bash 

$ set | grep DBUS

DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-45cBmpKpTX,guid=b783eda6500beba7132e450b63596c64

> Like most GNOME components, the GNOME developers are assuming all of
> GNOME is available all of the time.

Yep.

--
Grant







[gentoo-user] Re: Update to /etc/sudoers disables wheel users!!!

2022-10-26 Thread Grant Edwards
On 2022-10-26, Grant Taylor  wrote:

> To the sudo developers, the /etc/sudoers file is *SUPPOSED* *TO* /be/ 
> /edited/.

And editing that file is how I configure sudo. And when an emerge
update changes /etc/sudoers, the edited file is left as-is and there
is a message that you need to run etc-update to merge the changes.

--
Grant





Re: [gentoo-user] Re: gio/pcmanfm sftp:// "operation not supported"

2022-10-26 Thread Matt Connell
On Wed, 2022-10-26 at 16:22 +, Grant Edwards wrote:
> Apparently, that error is cause by lack of a DBUS session. I just
> happened to stumble across a posting somewhere by somebody who had the
> same problem. How they figured out that was the problem remains a
> mystery.

It is likely that nobody else noticed this because dbus has moved into
that "it is assumed to be there" tier of daemons these days.  Like most
GNOME components, the GNOME developers are assuming all of GNOME is
available all of the time.



[gentoo-user] Re: repair of a seg-faulting bin-utils

2022-10-26 Thread Grant Edwards
On 2022-10-26, Corbin  wrote:
> Help!
>
> The last update I did built/installed bin-uitls. It is now producing 
> seg-faults. I forgot to make a quickpkg of the old bin-utils before 
> upgrading.

The first thing I would do is run a RAM test overnight. IME,
segfaulting binutils or gcc has usually been a hardware problem.

--
Grant






[gentoo-user] Re: gio/pcmanfm sftp:// "operation not supported"

2022-10-26 Thread Grant Edwards
On 2022-10-26, Matt Connell  wrote:
> On Tue, 2022-10-25 at 21:31 +, Grant Edwards wrote:
>> Google led me to several pages where the problem was not having gvfs
>> installed. I do have gvfs installed, but I suspect it's broken. I get
>> the impression that
>> 
>>     $ gio list sftp:///
>> 
>> is supposed to work, but that too says "Operation not supported".

Apparently, that error is cause by lack of a DBUS session. I just
happened to stumble across a posting somewhere by somebody who had the
same problem. How they figured out that was the problem remains a
mystery.

[Is there a GNOME development group dedicated to making error messages
as meaningless as possible? If yes, then they're doing a stellar job.]

> I don't use pcmanfm, but I do have gvfs installed.  Trying to "gio list
> sftp://host; returns "The specified location is not mounted", so at
> least my behavior is different.

After launching a dbus session with

 $ dbus-launch bash

And then running 'gio list' in the bash instance that is created above,
I get the "location is not mounted error"

A subsequent gio mount command then succeeds

 $ gio mount sftp:///

After which the "gio list" command works as expected.

When I run pcmanfm-qt from that same bash instance, sftp URLs work.

GNOME: making life overly complicated since 1999!

--
Grant




Re: [gentoo-user] Re: Dolphin and adding a option, if it exists.

2022-10-24 Thread Peter Humphrey
On Monday, 24 October 2022 14:49:46 BST Grant Edwards wrote:
> On 2022-10-23, Dale  wrote:
> > That is true on Linux.  Most linux software could care less what the
> > extension is or if it even has one.  Heck, you could likely change a
> > .mp4 to .txt and it would open with a video player just by clicking on
> > it.  Thing is, if I share a file with someone who uses windoze, I'm not
> > sure if it would work the same way.  A wrong extension could cause
> > problems, either not opening at all or crashing something.  It's
> > windoze, one can't expect much.  ROFL 
> 
> A friend of mine once spent days trying to re-encode a video file into
> a format that could be handled by a particular windows app. No matter
> what codecs/parameters he tried, the app couldn't open the file. He
> finally figured out that the app in question had hard requirements for
> the filename suffix, and they chose a somewhat non-nstandard extension
> for that container format.
> 
> It turned out that any of the codec/parameter combinations would have
> been fine, it was just the filename that was causing the problem.

So the hubris of those two college dropouts still haunts the Windows world. 
What a legacy.

-- 
Regards,
Peter.






[gentoo-user] Re: Dolphin and adding a option, if it exists.

2022-10-24 Thread Grant Edwards
On 2022-10-23, Dale  wrote:

> That is true on Linux.  Most linux software could care less what the
> extension is or if it even has one.  Heck, you could likely change a
> .mp4 to .txt and it would open with a video player just by clicking on
> it.  Thing is, if I share a file with someone who uses windoze, I'm not
> sure if it would work the same way.  A wrong extension could cause
> problems, either not opening at all or crashing something.  It's
> windoze, one can't expect much.  ROFL 

A friend of mine once spent days trying to re-encode a video file into
a format that could be handled by a particular windows app. No matter
what codecs/parameters he tried, the app couldn't open the file. He
finally figured out that the app in question had hard requirements for
the filename suffix, and they chose a somewhat non-nstandard extension
for that container format.

It turned out that any of the codec/parameter combinations would have
been fine, it was just the filename that was causing the problem.

--
Grant







[gentoo-user] Re: resolv.conf full of old info

2022-10-19 Thread Grant Edwards
On 2022-10-19, Michael  wrote:
> On Wednesday, 19 October 2022 01:00:31 BST Grant Edwards wrote:
>> On 2022-10-18, Grant Edwards  wrote:
>> 
>> Why would dhcpcd have the persistent option enabled by default?
>
> I think because this causes less breakage in those cases where netmount, 
> remote syslog-ng, SSH clients, or root mounted NFS is in play?  This is what 
> the man page says about it:
>
> "... dhcpcd normally de-configures the interface and configuration when it 
> exits.  Sometimes, this isn't desirable if, for example, you have root 
> mounted 
> over NFS or SSH clients connect to this host and they need to be notified of 
> the host shutting down."

I guess that makes sense. What was confusing was that I read the man
page which said it was normally disabled, and since I had never
touched the config file, and wasn't passing the -p option I assumed it
was disabled -- then I finally looked through the default config file,
where it's "nomrally enabled".

--
Grant






Re: [gentoo-user] Re: resolv.conf full of old info

2022-10-19 Thread Michael
On Wednesday, 19 October 2022 01:00:31 BST Grant Edwards wrote:
> On 2022-10-18, Grant Edwards  wrote:
> > I've noticed that /etc/resolv.conf seems to accumulate obsolete,
> > useless info as my laptop moves from one network to another. It looks
> > like dhcpcd adds stuff when a connection comes up, but never removes
> > it when the connection goes down.
> 
> This appears to be caused by the "persistent" option in dhcpcd.conf,
> which is set by default. I commented it out, and now resolv.conf
> behaves rationally: it only contains info for network connections that
> are up.
> 
> Why would dhcpcd have the persistent option enabled by default?
> 
> --
> Grant

I think because this causes less breakage in those cases where netmount, 
remote syslog-ng, SSH clients, or root mounted NFS is in play?  This is what 
the man page says about it:

"... dhcpcd normally de-configures the interface and configuration when it 
exits.  Sometimes, this isn't desirable if, for example, you have root mounted 
over NFS or SSH clients connect to this host and they need to be notified of 
the host shutting down."

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


[gentoo-user] Re: resolv.conf full of old info

2022-10-18 Thread Grant Edwards
On 2022-10-18, Grant Edwards  wrote:

> I've noticed that /etc/resolv.conf seems to accumulate obsolete,
> useless info as my laptop moves from one network to another. It looks
> like dhcpcd adds stuff when a connection comes up, but never removes
> it when the connection goes down.

This appears to be caused by the "persistent" option in dhcpcd.conf,
which is set by default. I commented it out, and now resolv.conf
behaves rationally: it only contains info for network connections that
are up.

Why would dhcpcd have the persistent option enabled by default?

--
Grant




[gentoo-user] Re: [SOLVED] hibernate... /bin/echo: write error: No such device

2022-10-11 Thread Walter Dnes
On Wed, Jul 27, 2022 at 05:53:08PM -0400, Walter Dnes wrote
>   One of the last few items on the laptop setup.  I emerged hibernate
> and copied over the /etc/hibernate/ directory from my desktop.  When I
> try to hibernate the laptop, I get...
> 
> [thimk][root][~] hibernate
> /bin/echo: write error: No such device
> 
> ...with a beep, and the machine comes back.

  PEBKAC++.  Multiple facepalm.  I outdid myself here.  I got lazy on
the laptop install by copying config files from another machine... and
it came back to bite me.  Here was my /etc/fstab ...

/dev/sda1 /boot   vfat defaults,noatime1 2
/dev/sda2 /   ext3 noatime,nodiratime,async,user_xattr 0 1
/dev/sda3 noneswap sw  0 0

...but, but, but... this is a used Lenovo laptop, too old for UEFI, with
only 75 gigs of disk and I've only got two partitions on it.  I
corrected fstab to the proper...

/dev/sda1 /   ext3 noatime,nodiratime,async,user_xattr 0 1
/dev/sda2 noneswap sw  0 0

  I'm surprised that LILO booted at all with the bad fstab.  There were
only some error message lines that scrolled by really fast at bootup.
Otherwise a perfectly normal bootup.  I finally got around to stopping
the laptop in mid-bootup tonight, and looking at the error message.
Something about fsck.ext3 not finding a magic superblock on /dev/sda2.
This prompted me to dig through the system and find the problem.

  And, oh yeah, hibernate now works with one quirk.  I assume hibernate
was reading the swap partition name from /etc/fstab for hibernation.  Of
course it got "write error: No such device" when trying to save to a
non-existant swap partition /dev/sda3.  The one quirk is that bootup
comes from the first menu item in LILO, unless I manually over-ride.  I
can parse the boot image name from /proc/cmdline and feed it into "lilo -R".
Then I'll have to insert it into the hibernate shutdown scripts.

-- 
I've seen things, you people wouldn't believe; Gopher, Netscape with
frames, the first Browser Wars.  Searching for pages with AltaVista,
pop-up windows self-replicating, trying to uninstall RealPlayer.  All
those moments, will be lost in time like tears in rain... time to die.



[gentoo-user] Re: How to build kernel with old binutils?

2022-10-11 Thread Grant Edwards
On Oct 10, 2022, 12:46 PM  Alan J. Wylie wrote:
> Grant Edwards  wrote:
> > On 2022-10-10,  (Alan J. Wylie) 
> >  wrote:
> >> $ man binutils-config
> >>
> >> [...]
> >
> > AFAICT, that changes the binutils configuraiton for the entire
> > system. That's not what I want to do. I want to use specific binutils
> > versions for specific make invocations. [...]

> Perhaps, pretend you're cross compiling? Perhaps you sort of are,
> anyway, even if just for other package versions on the same
> architecture?

> Might "crossdev" help?
>
> https://wiki.gentoo.org/wiki/Embedded_Handbook/General/Creating_a_cross-compiler
>
> $ crossdev --help
> Usage: crossdev [options] --target TARGET

Thanks!

That looks promising. I was somewhat aware of crossdev, but it hadn't
occured to me to use it to to generate native toolchains with various
versions of gcc/binutils. In my case, I wouldn't need any libc at all,
but that shouldn't be a big problem.

--
Grant





[gentoo-user] Re: How to build kernel with old binutils?

2022-10-10 Thread Grant Edwards
On 2022-10-10,  (Alan J. Wylie) 
 wrote:
> Grant Edwards  writes:
>
>> Can somebody give a clue how to specify the binutils to be used when
>> building a Linux kernel?
>
> $ man binutils-config
>
> The binutils-config script allows you to switch between different
> versions of binutils when you have installed multiple copies (see
> USE=multislot).  It also allows you to manage multiple cross-compiling
> targets simultaneously.

AFAICT, that changes the binutils configuraiton for the entire
system. That's not what I want to do. I want to use specific binutils
versions for specific make invocations. [Similar to the way can for
gcc with "make GCC=/usr/bin/gcc-whatever".] Is there an option I
missed that just changes the configuration only for the current shell
session?

-- 
Grant






[gentoo-user] Re: Dolphin and adding a option, if it exists.

2022-10-09 Thread Grant Edwards
On 2022-10-08, Wols Lists  wrote:
> On 08/10/2022 04:44, Dale wrote:
>> I might add, along with tab completion, I also use the highlight
>> and middle click on the mouse.  A faster way to copy and paste when
>> needed.  That's a nifty feature of Konsole.
>
> I think that's been part of X since the dinosaurs were around.

Indeed. X has worked that for the 35 years I've been using it.

> Try it elsewhere, it works most places, afaik ...

If there's anywhere that doesn't work, then something is broken.

--
Grant





[gentoo-user] Re: x11-base/xorg-x11 masked

2022-10-04 Thread Holger Hoffstätte

On 2022-10-04 08:40, w...@op.pl wrote:

Hello everyone!
Upon upgrade, portage told me that x11-base/xorg-x11 is masked and will
be removed from the repo on November 1st. I thought "ok, why not do it
now", so I have typed:
# emerge -W x11-base/xorg-x11
# emerge -cav
and there was a surprise (not a pleasant one). Since xorg-x11 is a
metapackage it pulled so many things I would like to have still here.
Is there any reasonable way to put all those packages to my world file,
so I can easily remove xorg-x11 without deleting half of my desktop
apps?


Please see discussions in:

https://bugs.gentoo.org/872119
https://bugs.gentoo.org/873973

cheers,
Holger



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

2022-10-03 Thread Michael
On Monday, 3 October 2022 22:48:09 BST Håkon Alstadheim wrote:
> Den 02.10.2022 11:47, skrev Michael:
> > On Saturday, 1 October 2022 19:32:11 BST Daniel Sonck wrote:
> >> 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.
> > 
> > At the moment only some applications support PipeWire's native API, but
> > most support PulseAudio's API.  When you come across an application like
> > Skype which expects PulseAudio, the solution is to enable
> > USE="sound-server pipewire-alsa" for PipeWire and in addition to PipeWire
> > also install media- libs/libpulse.  No other PulseAudio packages are
> > needed.
> 
> To get that, I seem to need media-sound/pulseaudio (meta package) with 
> USE="-daemon"

This USE flag setting would be required if you use pulseaudio (I don't have it 
installed) and need to avoid it fighting with pipewire over control
of audio devices.

At the present moment, because the migration to pipewire is work-in-progress, 
there are a number of options available to cover all use cases, depending on 
your system configuration and init system:

https://www.gentoo.org/support/news-items/2022-07-29-pipewire-sound-server.html



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


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

2022-10-03 Thread Håkon Alstadheim



Den 02.10.2022 11:47, skrev Michael:

On Saturday, 1 October 2022 19:32:11 BST Daniel Sonck wrote:

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.

At the moment only some applications support PipeWire's native API, but most
support PulseAudio's API.  When you come across an application like Skype
which expects PulseAudio, the solution is to enable USE="sound-server
pipewire-alsa" for PipeWire and in addition to PipeWire also install media-
libs/libpulse.  No other PulseAudio packages are needed.
To get that, I seem to need media-sound/pulseaudio (meta package) with  
USE="-daemon"


Thereafter an application requiring PulseAudio uses PipeWire, the latter
emulating PulseAudio's server by using PulseAudio's API via libpulse.

I applied the above and now the microphone in Skype works again.  I assume the
same applies to other PulseAudio friendly applications, which won't play
nicely with PipeWire only.  I suppose at some point PulseAudio will be
completely replaced by PipeWire and applications will update their code
accordingly.




[gentoo-user] Re: problem with emerge depclean after world update

2022-10-03 Thread Grant Edwards
On 2022-09-30, Wol  wrote:

> Does that mean an update typically cleans a replaced package 
> automagically?

Yes (except for slotted packages). A "normal" upgrade emerge removes
the old version.

> I thought that usually they got left behind and that was 
> why you needed depclean - to remove all the old versions?

Nope (except sometimes for slotted packages).

Depclean is for clearing out stuff that was installed automagically as
a dependancy but now doesn't need to be installed at all because

  1. Whataver pulled it in as dependency got manually removed.

  2. A package's dependencies got changed.

> Certainly that's what I remember of depclean of old - the list of stuff 
> being cleaned was mostly old versions of what was installed.

That happens for slotted packages and for things like kernel sources.

On my systems, the only things that typically get removed by depclean
are old versions of gentoo-sources and the occasional old slot of
binutils (or whatever).

--
Grant







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

2022-10-02 Thread Nikos Chantziaras

On 02/10/2022 12:47, Michael wrote:

I applied the above and now the microphone in Skype works again.  I assume the
same applies to other PulseAudio friendly applications, which won't play
nicely with PipeWire only.  I suppose at some point PulseAudio will be
completely replaced by PipeWire and applications will update their code
accordingly.


Pipewire recommends using the pulseaudio API anyway, at least for now:

https://gitlab.freedesktop.org/pipewire/pipewire/-/wikis/FAQ#what-audio-api-do-you-recommend-to-use

Which makes sense. Pipewire is supposed to be a drop-in replacement for 
both pulseaudio and jack. And both of those aren't dead. It makes sense 
for applications to try and work on any system, regardless of whether 
pipewire is used or not.






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

2022-10-02 Thread Nikos Chantziaras

On 01/10/2022 19: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.  :-(


Maybe Skype uses ALSA? It's best to enable the "pipewire-alsa" USE flag 
on pipewire and disable the "pulseaudio" flag on alsa-plugins:


media-video/pipewire: pipewire-alsa
media-plugins/alsa-plugins: -pulseaudio

This replaces pulseaudio's ALSA plugin with pipewire's. Skype might work 
with  this.






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

2022-10-02 Thread Michael
On Saturday, 1 October 2022 19:32:11 BST Daniel Sonck wrote:
> 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.

At the moment only some applications support PipeWire's native API, but most 
support PulseAudio's API.  When you come across an application like Skype 
which expects PulseAudio, the solution is to enable USE="sound-server 
pipewire-alsa" for PipeWire and in addition to PipeWire also install media-
libs/libpulse.  No other PulseAudio packages are needed.

Thereafter an application requiring PulseAudio uses PipeWire, the latter 
emulating PulseAudio's server by using PulseAudio's API via libpulse.

I applied the above and now the microphone in Skype works again.  I assume the 
same applies to other PulseAudio friendly applications, which won't play 
nicely with PipeWire only.  I suppose at some point PulseAudio will be 
completely replaced by PipeWire and applications will update their code 
accordingly.

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


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] Re: Pipewire not a dependency?

2022-10-01 Thread Michael
On Saturday, 1 October 2022 18:11:19 BST 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.
> 
> 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.
> 
> Cheers,
> Wol

My very limited understanding is pipewire is meant to replace pulseaudio and 
jack, rather than become part of an audio/video stack:

https://docs.pipewire.org/page_overview.html

I think applications will gradually be coded to work with pipewire, until then 
suitable pipewire plugins would be required.  Perhaps for Skype to work today 
I will also have to enable pulseaudio, at which point it will not need 
pipewire itself.  The strange thing is audio playback works great with 
pipewire, it's the microphone which does not appear to be capturing anything 
and causes Skype to disconnect.  :-/


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


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

2022-10-01 Thread Wol

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.


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.


Cheers,
Wol



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

2022-10-01 Thread Michael
On Saturday, 1 October 2022 15:57:03 BST Mark Knecht wrote:
> On Sat, Oct 1, 2022 at 7:51 AM Peter Humphrey  wrote:
> > On Saturday, 1 October 2022 15:08:40 BST Michael wrote:
> > > On Thursday, 29 September 2022 15:11:02 BST Nikos Chantziaras wrote:
> > > > On 28/09/2022 13:57, Michael wrote:
> > > > > I'm trying to understand why one laptop with Plasma which had
> > 
> > pulseaudio
> > 
> > > > > removed, won't bring in pipewire as a dependency.  I have set USE="-
> > > > > screencast", because I don't need/want this functionality, as I have
> > > > > done
> > > > > on other systems which nevertheless have had pipewire brought in as
> 
> a
> 
> > > > > dependency.
> > > > 
> > > > Probably some other package pulls it in directly, independent of the
> > > > screencast USE flag. For example media-sound/easyeffects.
> > > 
> > > I just looked and a pipewire(d) system has only a few additional audio
> > > applications, spek, vidcutter, easytag, none of which seem to bring in
> > > pipewire.  I think I'll have to install it manually on the system which
> > > doesn't bring it in as some dependency.  Somehow I was under the
> 
> impression
> 
> > > it comes with Plasma these days, but perhaps I have stripped down this
> > > Plasma/kde installation too much.
> > 
> > I have no pipewire on this fairly standard Plasma box.
> 
> I believe that pipewire, as far as KDE users are concerned, is a
> distro choice about when to use it.
> 
> My Kubuntu boxes started using it recently. I had no issues and
> didn't need to change any settings for any application that makes
> use of sound.
> 
> YMMV,
> Mark

Thank you all for your responses.  It could be some Plasma/KDE USE flag which 
differs between my systems causing this.  Without spending a lot of time I 
wouldn't know for sure TBH.

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.  :-(

Re-enabling pulseaudio wants to rebuild some 30 packages including 
qtwebengine.  That's an overnight job on this old laptop.

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


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

2022-10-01 Thread Mark Knecht
On Sat, Oct 1, 2022 at 7:51 AM Peter Humphrey  wrote:
>
> On Saturday, 1 October 2022 15:08:40 BST Michael wrote:
> > On Thursday, 29 September 2022 15:11:02 BST Nikos Chantziaras wrote:
> > > On 28/09/2022 13:57, Michael wrote:
> > > > I'm trying to understand why one laptop with Plasma which had
> pulseaudio
> > > > removed, won't bring in pipewire as a dependency.  I have set USE="-
> > > > screencast", because I don't need/want this functionality, as I have
> > > > done
> > > > on other systems which nevertheless have had pipewire brought in as
a
> > > > dependency.
> > >
> > > Probably some other package pulls it in directly, independent of the
> > > screencast USE flag. For example media-sound/easyeffects.
> >
> > I just looked and a pipewire(d) system has only a few additional audio
> > applications, spek, vidcutter, easytag, none of which seem to bring in
> > pipewire.  I think I'll have to install it manually on the system which
> > doesn't bring it in as some dependency.  Somehow I was under the
impression
> > it comes with Plasma these days, but perhaps I have stripped down this
> > Plasma/kde installation too much.
>
> I have no pipewire on this fairly standard Plasma box.
>

I believe that pipewire, as far as KDE users are concerned, is a
distro choice about when to use it.

My Kubuntu boxes started using it recently. I had no issues and
didn't need to change any settings for any application that makes
use of sound.

YMMV,
Mark


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

2022-10-01 Thread Peter Humphrey
On Saturday, 1 October 2022 15:08:40 BST Michael wrote:
> On Thursday, 29 September 2022 15:11:02 BST Nikos Chantziaras wrote:
> > On 28/09/2022 13:57, Michael wrote:
> > > I'm trying to understand why one laptop with Plasma which had 
pulseaudio
> > > removed, won't bring in pipewire as a dependency.  I have set USE="-
> > > screencast", because I don't need/want this functionality, as I have
> > > done
> > > on other systems which nevertheless have had pipewire brought in as a
> > > dependency.
> > 
> > Probably some other package pulls it in directly, independent of the
> > screencast USE flag. For example media-sound/easyeffects.
> 
> I just looked and a pipewire(d) system has only a few additional audio
> applications, spek, vidcutter, easytag, none of which seem to bring in
> pipewire.  I think I'll have to install it manually on the system which
> doesn't bring it in as some dependency.  Somehow I was under the impression
> it comes with Plasma these days, but perhaps I have stripped down this
> Plasma/kde installation too much.

I have no pipewire on this fairly standard Plasma box.

-- 
Regards,
Peter.






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

2022-10-01 Thread Michael
On Thursday, 29 September 2022 15:11:02 BST Nikos Chantziaras wrote:
> On 28/09/2022 13:57, Michael wrote:
> > I'm trying to understand why one laptop with Plasma which had pulseaudio
> > removed, won't bring in pipewire as a dependency.  I have set USE="-
> > screencast", because I don't need/want this functionality, as I have done
> > on other systems which nevertheless have had pipewire brought in as a
> > dependency.
> Probably some other package pulls it in directly, independent of the
> screencast USE flag. For example media-sound/easyeffects.

I just looked and a pipewire(d) system has only a few additional audio 
applications, spek, vidcutter, easytag, none of which seem to bring in 
pipewire.  I think I'll have to install it manually on the system which 
doesn't bring it in as some dependency.  Somehow I was under the impression it 
comes with Plasma these days, but perhaps I have stripped down this Plasma/kde 
installation too much.

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


[gentoo-user] Re: problem with emerge depclean after world update

2022-10-01 Thread Nuno Silva
On 2022-09-30, John Covici wrote:

> Hi.  So, when I tried to do my emerge depclean after my world update,
> which went through with no problems, I get the following message:
>
> Calculating dependencies... done!
>  * Dependencies could not be completely resolved due to
>   * the following required packages not being installed:
>*
> *   >=app-text/poppler-0.16.0:0/123=[cairo] pulled in by:
>  * app-misc/tracker-miners-3.4.0
>
> But I have:
>
> ebuild   R] app-text/poppler-22.09.0:0/124::gentoo  USE="cairo cxx
> introspection jpeg jpeg2k lcms png qt5 tiff utils -boost -cjk -curl
> -debug -doc -nss -verify-sig"
> and
> ebuild   R] app-misc/tracker-miners-3.4.0:3::gentoo  USE="exif gif
> gstreamer iso jpeg networkmanager pdf playlist rss (seccomp) tiff
> upower xml -cue -ffmpeg -gsf -iptc -raw -test -xmp -xps"
>
> So, what have I done wrong this time -- or is it some kind of bug
> somewhere?
>
> Thanks in advance for any suggestions.

When was tracker-miners-3.4.0 last built? It RDEPENDS on [1]:

">=app-text/poppler-0.16.0:=[cairo]"

So if tracker-miners was built with poppler:0/123, and if I'm
understanding "man 5 ebuild" correctly, it will require a 0/123-slotted
version of poppler to be installed. Given that tracker-miners accepts
any later version, rebuilding it will hopefully be enough.

[1] 
https://gitweb.gentoo.org/repo/gentoo.git/tree/app-misc/tracker-miners/tracker-miners-3.4.0.ebuild#n47

-- 
Nuno Silva




[gentoo-user] Re: systemd-boot on an openrc system

2022-09-29 Thread Nikos Chantziaras

On 28/09/2022 15:20, Peter Humphrey wrote:

Looking more carefully, I see only one machine has an /etc/machine-info.


I'm on systemd (openrc is not installed at all), and I don't have 
/etc/machine-info. And /etc/kernel/install.d/ is empty.






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

2022-09-29 Thread Nikos Chantziaras

On 28/09/2022 13:57, Michael wrote:

I'm trying to understand why one laptop with Plasma which had pulseaudio
removed, won't bring in pipewire as a dependency.  I have set USE="-
screencast", because I don't need/want this functionality, as I have done on
other systems which nevertheless have had pipewire brought in as a dependency.


Probably some other package pulls it in directly, independent of the 
screencast USE flag. For example media-sound/easyeffects.






Re: [gentoo-user] Re: realloc() failure in motion

2022-09-20 Thread William Kenworthy



On 21/9/22 00:40, Nuno Silva wrote:

On 2022-09-18, William Kenworthy wrote:


Hi, I am setting up some  cameras (esp32cam) and intended to use
motion for them but it crashes on startup with a realloc() error. The
system is an up to date arm64 (odroid N2+), mostly stable. Has anyone
seen this before?

BillK


ha /etc/motion # /usr/bin/motion -c /etc/motion/motion.conf -k 9 -d 9
[0:motion] [NTC] [ALL] conf_load: Processing thread 0 - config file
/etc/motion/motion.conf
[0:motion] [NTC] [ALL] config_camera: Processing camera config file
/etc/motion/camera0.conf
[0:motion] [NTC] [ALL] read_camera_dir: Processing config file
/etc/motion/motion.conf
[0:motion] [NTC] [ALL] config_camera: Processing camera config file
/etc/motion/motion.conf
realloc(): invalid old size
Aborted

Could you try to get a stack trace from that?


I've never used "motion" and I don't know its source code, but [1] makes
me wonder if the failure could be happening in [2].

OTOH, from the output, "motion" has entered config_camera() and gone
beyond [2] a second time before the realloc() abort - but could these
two calls have received the same cnt?

 From my very little understanding of the code and from your output, it
looks like "motion" might be processing motion.conf twice (the
"Processing thread 0 [...]" line precedes a call to conf_process(), as
does "Processing camera config file"). Is this intended?

[1] https://github.com/Motion-Project/motion/blob/HEAD/src/conf.c#L3204
[2] https://github.com/Motion-Project/motion/blob/HEAD/src/conf.c#L3180

(Links are to HEAD, as that's what I started reading.)

Yep, that was the problem - it was when looking the output from strace 
thst it hit me.  Its self caused in that I had a camera description file 
and also set a config variable to read the directory that the files are 
stored in.  From google hits on reallocate failures like this, its 
likely a lack of protection in the code for reading the config files 
multiple times at the root of the problem.  The documentation could be 
clearer about this, but thats on me.


BillK





[gentoo-user] Re: Anybody know how to disable CSD for meld?

2022-09-20 Thread Grant Edwards
On 2022-09-14, Meik Frischke  wrote:
> Am 2022-09-14 19:21, schrieb Grant Edwards:

>> Meld just updated from 3.20.4 to 3.22.0 [...]
>> and now meld uses client side decorations instead of allowing the
>> window manager to handle that stuff. This is extremely annoying, [...]

> You might want to have a look at gtk3-classic [1] which includes the
> functionality of the dated gtk3-nocsd [2] hack.  The former is
> available in the khoverlay as a patcheset.

Brilliant!

I added khoverlay, emerged gtk3-classic-patches, re-emerged gtk3+, and
the new meld now behaves "properly" like all everything else.

--
Grant






[gentoo-user] Re: realloc() failure in motion

2022-09-20 Thread Nuno Silva
On 2022-09-18, William Kenworthy wrote:

> Hi, I am setting up some  cameras (esp32cam) and intended to use
> motion for them but it crashes on startup with a realloc() error. The
> system is an up to date arm64 (odroid N2+), mostly stable. Has anyone
> seen this before?
>
> BillK
>
>
> ha /etc/motion # /usr/bin/motion -c /etc/motion/motion.conf -k 9 -d 9
> [0:motion] [NTC] [ALL] conf_load: Processing thread 0 - config file
> /etc/motion/motion.conf
> [0:motion] [NTC] [ALL] config_camera: Processing camera config file
> /etc/motion/camera0.conf
> [0:motion] [NTC] [ALL] read_camera_dir: Processing config file
> /etc/motion/motion.conf
> [0:motion] [NTC] [ALL] config_camera: Processing camera config file
> /etc/motion/motion.conf
> realloc(): invalid old size
> Aborted

Could you try to get a stack trace from that?


I've never used "motion" and I don't know its source code, but [1] makes
me wonder if the failure could be happening in [2].

OTOH, from the output, "motion" has entered config_camera() and gone
beyond [2] a second time before the realloc() abort - but could these
two calls have received the same cnt?

>From my very little understanding of the code and from your output, it
looks like "motion" might be processing motion.conf twice (the
"Processing thread 0 [...]" line precedes a call to conf_process(), as
does "Processing camera config file"). Is this intended?

[1] https://github.com/Motion-Project/motion/blob/HEAD/src/conf.c#L3204
[2] https://github.com/Motion-Project/motion/blob/HEAD/src/conf.c#L3180

(Links are to HEAD, as that's what I started reading.)

-- 
Nuno Silva




RE: [gentoo-user] Re: Full battery laptop only 1 hour

2022-09-15 Thread Laurence Perkins


>-Original Message-
>From: Michael  
>Sent: Thursday, September 15, 2022 11:01 AM
>To: gentoo-user@lists.gentoo.org
>Subject: Re: [gentoo-user] Re: Full battery laptop only 1 hour
>
>On Thursday, 15 September 2022 18:10:39 BST Laurence Perkins wrote:
>> Note that most batteries these days in anything more complex than a 
>> watch have "smart" charge controllers and so upower or similar can 
>> read what their design watt-hours and current maximum capacity are.  
>> Also, often the total charge or discharge rate.  That plus a little 
>> math should tell you if it's an aging battery or if your machine is 
>> simply failing to idle down for some reason.
> 
>> LMP
>
>Larger capacity batteries have multiple banks in them connected in parallel.  
>Some times one of the banks or its controller(?) fails and while the rest 
>continue to work, the loss in capacity is a noticeable step change.  I recall 
>suddenly losing ~1/3 of the battery capacity on a laptop just 3 or so happy 
>years into its life.  The remaining of the battery capacity continued to 
>degrade slowly and gradually over many years.  So notwithstanding the high 
>consumption identified by the OP the software causes of which should be 
>investigated, there could be also a problem with the battery unit itself.
>
>BTW, short & frequent top ups of lithium-ion batteries is the best approach to 
>their charging, while deep discharge can guarantee a shorter effective life.
>
At the same time, don't make it too short.  The charger has to run for a few 
seconds to a few minutes to determine that the battery is, in fact, full, and 
repeated overcharging in that manner will destroy the battery in short order.  
Let it run down at least a few percent before you plug it in again.

Their lifetime is generally happiest if you keep them between 50 and 80%.  Some 
packs automatically cut off the charging at the 80% mark and just tell you that 
it's full in order to increase the cycle count.

LMP


Re: [gentoo-user] Re: Full battery laptop only 1 hour

2022-09-15 Thread Michael
On Thursday, 15 September 2022 18:10:39 BST Laurence Perkins wrote:
> Note that most batteries these days in anything more complex than a watch
> have "smart" charge controllers and so upower or similar can read what
> their design watt-hours and current maximum capacity are.  Also, often the
> total charge or discharge rate.  That plus a little math should tell you if
> it's an aging battery or if your machine is simply failing to idle down for
> some reason.
 
> LMP

Larger capacity batteries have multiple banks in them connected in parallel.  
Some times one of the banks or its controller(?) fails and while the rest 
continue to work, the loss in capacity is a noticeable step change.  I recall 
suddenly losing ~1/3 of the battery capacity on a laptop just 3 or so happy 
years into its life.  The remaining of the battery capacity continued to 
degrade slowly and gradually over many years.  So notwithstanding the high 
consumption identified by the OP the software causes of which should be 
investigated, there could be also a problem with the battery unit itself.

BTW, short & frequent top ups of lithium-ion batteries is the best approach to 
their charging, while deep discharge can guarantee a shorter effective life.


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


RE: [gentoo-user] Re: Full battery laptop only 1 hour

2022-09-15 Thread Laurence Perkins
Note that most batteries these days in anything more complex than a watch have 
"smart" charge controllers and so upower or similar can read what their design 
watt-hours and current maximum capacity are.  Also, often the total charge or 
discharge rate.  That plus a little math should tell you if it's an aging 
battery or if your machine is simply failing to idle down for some reason.

LMP

-Original Message-
From: Frank Steinmetzger  
Sent: Tuesday, September 13, 2022 4:46 PM
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: Full battery laptop only 1 hour

Am Mon, Sep 12, 2022 at 01:51:39PM -0700 schrieb Mark Knecht:
> On Mon, Sep 12, 2022 at 1:40 PM Nuno Silva  wrote:
> >
> > On 2022-09-12, Guillermo García wrote:
> >
> > > Hello guys,
> > >
> > > I bought a laptop and i got like 4 hours of batter life, 
> > > everything ok, (using more than 1 vm, etc), however now in idle my 
> > > laptop has only 1 hour of life, which is really annoying because 
> > > its a brand new laptop bought one year before.
> >
> > Did anything change? Is this the same system/install which used to 
> > last
> > 4 hours on idle? Or, when you say "brand new bought one year 
> > before", you mean it wasn't used before?
> >
> > --
> > Nuno Silva
> >
> 
> Battery life can change over time. I've had batteries that after a 
> couple of years just didn't last as long. I've purchased a few 
> replacement batteries from Amazon and one of them didn't hold charge at all.

My Thinkpad is 6¼ years old and the batteries it shipped with are at 72 and
75 % of their original capacity. But I didn’t use them *that* much, and always 
kept them betweet 40 and 80 % charge when I didn’t need them, which is probably 
98 % of the year.

> 1 year is pretty short but possibly he might buy a new battery as a 
> test. They generally aren't overly expensive.

I don’t believe that they went down to 25 % of their original capacity within a 
year. To achieve that, they must have endured unspeakable abuse.

--
Grüße | Greetings | Salut | Qapla’
Please do not share anything from, with or about me on any social network.

The three main languages in India: Hindi, English and HTML.


Re: [gentoo-user] Re: Anybody know how to disable CSD for meld?

2022-09-15 Thread Meik Frischke

Am 2022-09-14 23:14, schrieb Grant Edwards:

On 2022-09-14, Grant Edwards  wrote:


OTOH, gtk3-classic is a set of source patches that get added to the
"normal" gtk portage directory.


I didn't state that very well -- the patches are installed into the
/etc/portage/patches directory for gtk+, not into the normal portage
db for gtk+.

--
Grant


Yes, the way the gtk3-classic ebuild in the overlay works is by placing 
the patches in the portage patches folder. Once rebuilt, the patched 
gtk+ library will disable CSDs by default, but the behavior can be 
altered with the GTK_CSD environment variable. Please have a look at the 
documentation for the details and further caveats.


Sincerely,
Meik



[gentoo-user] Re: Anybody know how to disable CSD for meld?

2022-09-14 Thread Grant Edwards
On 2022-09-14, Grant Edwards  wrote:

> OTOH, gtk3-classic is a set of source patches that get added to the
> "normal" gtk portage directory.

I didn't state that very well -- the patches are installed into the
/etc/portage/patches directory for gtk+, not into the normal portage
db for gtk+.

--
Grant




[gentoo-user] Re: Anybody know how to disable CSD for meld?

2022-09-14 Thread Grant Edwards
On 2022-09-14, Meik Frischke  wrote:
> Am 2022-09-14 19:21, schrieb Grant Edwards:
>> Meld just updated from 3.20.4 to 3.22.0 (I have ~amd64 set for meld),
>> and now meld uses client side decorations instead of allowing the
>> window manager to handle that stuff. [...]
>> 
>> For now, I'm goint to revert to 3.20.4, but hopefully there's a way to
>> get meld 3.22 to behave itself?

> You might want to have a look at gtk3-classic [1] which includes the
> functionality of the dated gtk3-nocsd [2] hack.  The former is
> available in the khoverlay as a patcheset.

Thanks! I had found gtk3-nocsd. I initially ran across it many years
ago when trying to get evince to act like a good X11 app, but
switching from evince to atril solved that problem without having to
try gtk3-nocsd.

gtk3-nocsd was a seperate library that replaced a few GTK3
functions. It was used by setting LD_PRELOAD so that the gtk3-nocsd
library was searched first -- that way it could be applied only to
specific executables.

OTOH, gtk3-classic is a set of source patches that get added to the
"normal" gtk portage directory. Those patches are then used the next
time gtk3 is emerged. That means that it's a permanent, system-wide
change: all executables that use GTK3 will be using a library that has
the classic patches.

Am I undertanding the mechanisms correctly?

--
Grant







Re: [gentoo-user] Re: Full battery laptop only 1 hour

2022-09-13 Thread Frank Steinmetzger
Am Mon, Sep 12, 2022 at 01:51:39PM -0700 schrieb Mark Knecht:
> On Mon, Sep 12, 2022 at 1:40 PM Nuno Silva  wrote:
> >
> > On 2022-09-12, Guillermo García wrote:
> >
> > > Hello guys,
> > >
> > > I bought a laptop and i got like 4 hours of batter life, everything
> > > ok, (using more than 1 vm, etc), however now in idle my laptop has
> > > only 1 hour of life, which is really annoying because its a brand new
> > > laptop bought one year before.
> >
> > Did anything change? Is this the same system/install which used to last
> > 4 hours on idle? Or, when you say "brand new bought one year before",
> > you mean it wasn't used before?
> >
> > --
> > Nuno Silva
> >
> 
> Battery life can change over time. I've had batteries that after a couple of
> years just didn't last as long. I've purchased a few replacement batteries
> from Amazon and one of them didn't hold charge at all.

My Thinkpad is 6¼ years old and the batteries it shipped with are at 72 and
75 % of their original capacity. But I didn’t use them *that* much, and
always kept them betweet 40 and 80 % charge when I didn’t need them, which
is probably 98 % of the year.

> 1 year is pretty short but possibly he might buy a new battery as
> a test. They generally aren't overly expensive.

I don’t believe that they went down to 25 % of their original capacity
within a year. To achieve that, they must have endured unspeakable abuse.

-- 
Grüße | Greetings | Salut | Qapla’
Please do not share anything from, with or about me on any social network.

The three main languages in India: Hindi, English and HTML.


signature.asc
Description: PGP signature


RE: [gentoo-user] RE: [gentoo-user] Encrypted hard drives on LVM and urgent power shutdowns.

2022-09-13 Thread Laurence Perkins


>> If you want an arbitrarily large battery bank, just get a decent power 
>> inverter heavy enough to run your load and a battery float charger that can 
>> push enough amps to keep up, then put as big a stack of batteries as you 
>> like between the two.  The nicer inverters will even warn you when the 
>> batteries get low.
>
>> You can often get used batteries from the local automotive shop for 
>> just the core charge.  Just because it can't provide 600 amps to start a car 
>> any more doesn't mean it can't provide 60 to run your computers.  Obviously 
>> they'll require more regular maintenance, but it's hard to beat the price.
>
>> LMP 
>
>How would you physically connect the automotive battery to the computer, and 
>would you need the shell of the old UPS?
>
>I have an old Tripp-Lite UPS, batteries are dead and no longer rechargeable.
>
>Would you connect only the computer, or would you connect the monitor as well? 
> Would you connect networking equipment?
>
>Tom
>
>

If your old UPS had sufficient capacity, you can usually just open it up (make 
sure it's unplugged and turned off first, obviously) and replace the battery 
with one of the same size.  Often there's an access panel for doing exactly 
that.

Otherwise, you'll need to extend the battery leads out through the side of the 
case to whatever battery bank you're using.  Keeping the case would definitely 
be recommended since there will be high voltage in the system when it's in 
operation.  Also the new battery bank will need to be the same chemistry and 
voltage as the original.  Usually it's lead-acid and multiples of 12 volts, 
(hence why old automotive batteries can work, but will require test and service 
after every power outage because they're designed for high output, not deep 
discharge) but do double check.

What you connect to it depends on what you figure needs battery backup and how 
many amps the inverter in the UPS can supply without overheating.

Note that messing too much with the internals of a power inverter can cause 
fire or electrocution if done improperly, so make sure you research how it all 
works before modifying anything.

LMP



Re: [gentoo-user] RE: [gentoo-user] Encrypted hard drives on LVM and urgent power shutdowns.

2022-09-13 Thread Michael
On Tuesday, 13 September 2022 06:47:21 BST Thomas Mueller wrote:
> from Laurence Perkins:
> > Some of the higher-end UPS models do have diagnostic modes for simulating
> > various events to make sure the connected systems behave as desired.  A
> > very few of the consumer-grade ones do as well.  But how to do it is
> > model specific, so you'll have to dig up the documentation.
> > 
> > Commercial-grade units also often have a DC port on the back so you can
> > plug in larger battery banks and/or hotswap battery banks during extended
> > outages.
> > 
> > If you want an arbitrarily large battery bank, just get a decent power
> > inverter heavy enough to run your load and a battery float charger that
> > can push enough amps to keep up, then put as big a stack of batteries as
> > you like between the two.  The nicer inverters will even warn you when
> > the batteries get low.
> > 
> > You can often get used batteries from the local automotive shop for just
> > the core charge.  Just because it can't provide 600 amps to start a car
> > any more doesn't mean it can't provide 60 to run your computers. 
> > Obviously they'll require more regular maintenance, but it's hard to beat
> > the price.
> > 
> > LMP
> 
> How would you physically connect the automotive battery to the computer, and
> would you need the shell of the old UPS?

Yes, you need the *contents* of the UPS shell. It contains the rectifier to be 
able to recharge the battery/batteries and the inverter to be able to feed the 
PC from the batteries.

I've also used a car battery out of an old Mini to keep equipment running 
during prolonged power outages.  I connected it in parallel to the UPS 
battery.  After the power returned, almost two days later, I disconnected it 
and recharged it with a car battery charger, which could take the higher 
amperage.  Trickle-charging should be OK via the UPS.


> I have an old Tripp-Lite UPS, batteries are dead and no longer rechargeable.

Why don't you replace them?  They are not particularly expensive, although I 
have not looked at UPS battery prices lately.


> Would you connect only the computer, or would you connect the monitor as
> well?  Would you connect networking equipment?
> 
> Tom

I connect modem, router, PC and monitor, so that whatever operation is taking 
place it can be completed, applications running ended and the PC shutdown 
manually.  If the PC is running unattended when the power interruption 
happens, eventually the upssched will shutdown the PC.

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


[gentoo-user] RE: [gentoo-user] Encrypted hard drives on LVM and urgent power shutdowns.

2022-09-12 Thread Thomas Mueller
from Laurence Perkins:

> Some of the higher-end UPS models do have diagnostic modes for simulating 
> various events to make sure the connected systems behave as desired.  A very 
> few of the consumer-grade ones do as well.  But how to do it is model 
> specific,
> so you'll have to dig up the documentation.

> Commercial-grade units also often have a DC port on the back so you can plug 
> in larger battery banks and/or hotswap battery banks during extended outages.

> If you want an arbitrarily large battery bank, just get a decent power 
> inverter heavy enough to run your load and a battery float charger that can 
> push enough amps to keep up, then put as big a stack of batteries as you like
> between the two.  The nicer inverters will even warn you when the batteries 
> get low.

> You can often get used batteries from the local automotive shop for just the 
> core charge.  Just because it can't provide 600 amps to start a car any more 
> doesn't mean it can't provide 60 to run your computers.  Obviously they'll
> require more regular maintenance, but it's hard to beat the price.

> LMP 

How would you physically connect the automotive battery to the computer, and 
would you need the shell of the old UPS?

I have an old Tripp-Lite UPS, batteries are dead and no longer rechargeable.

Would you connect only the computer, or would you connect the monitor as well?  
Would you connect networking equipment?

Tom




Re: [gentoo-user] Re: Full battery laptop only 1 hour

2022-09-12 Thread Mark Knecht
On Mon, Sep 12, 2022 at 1:40 PM Nuno Silva  wrote:
>
> On 2022-09-12, Guillermo García wrote:
>
> > Hello guys,
> >
> > I bought a laptop and i got like 4 hours of batter life, everything
> > ok, (using more than 1 vm, etc), however now in idle my laptop has
> > only 1 hour of life, which is really annoying because its a brand new
> > laptop bought one year before.
>
> Did anything change? Is this the same system/install which used to last
> 4 hours on idle? Or, when you say "brand new bought one year before",
> you mean it wasn't used before?
>
> --
> Nuno Silva
>

Battery life can change over time. I've had batteries that after a couple of
years just didn't last as long. I've purchased a few replacement batteries
from Amazon and one of them didn't hold charge at all.

1 year is pretty short but possibly he might buy a new battery as
a test. They generally aren't overly expensive.

Or how about booting just to a console and testing how long
the machine stays up?


[gentoo-user] Re: Getting printer working, the road of Pain.

2022-09-10 Thread Grant Edwards
On 2022-09-10, Wols Lists  wrote:
> On 10/09/2022 01:18, Paul Colquhoun wrote:
>> 2) Remind us again why you still try to run Gentoo when you obviously 
>> dislike it.
>
> snark :-)
>
> A couple of things to remember:
>
> Gentoo IS a pita to install and run compared to most other distros -

Until you want to do something even vaguely unique or out-of-the
ordinary. Then most other distros are a PITA compared to Gentoo.

If all you want to do is run a web browser, then Gentoo is almost
definitely the wrong choice.

--
Grant




Re: [gentoo-user] Re: Easiest remote desktop for Windows client?

2022-08-24 Thread Julien Roy



On 8/24/22 19:48, Grant Edwards wrote:

On 2022-08-24, Grant Edwards  wrote:

Of course, there's still the inescapable brokenness of apps like
Chrome and Firefox which insist only one instance per user can run at
any time. Apparently the concept of multiple GUI sessions running
simultaneously on one machine is beyond the grasp of some people...


You can create a separate profile for Firefox (I assume Chrome too) 
which allows you to run a second instance, though it's not ideal, since 
you don't have the same bookmarks, history, etc. A shell script should 
be able to copy those over, which you could run every time you start 
your openbox session.


--
Julien


OpenPGP_signature
Description: OpenPGP digital signature


[gentoo-user] Re: Easiest remote desktop for Windows client?

2022-08-24 Thread Grant Edwards
On 2022-08-24, Grant Edwards  wrote:

> What's the easiest way to get a remote desktop working for a Gentoo
> server with a Windows 10 client machine?
>
> A lot of sources recommend xrdb since Windows comes with a native RDP
> client. But there is no ebuild for xrdb in portage -- though I found
> one in an overlay.

The xrdp-0.9.19 and xorgxrdp-0.2.18-r1 ebuilds in the ACE overlay
installed with no fuss at all:

https://data.gpo.zugaina.org/ace/net-misc/xrdp/

** And they didn't pull in any new dependencies! **

The /etc/init.d/xrdp openrc script works as expected.

I didn't have a ~/.xinitrc, so I got the default X11 "xclock and three
xterms" when I connected remotely from the Windows machine.

So I created a ~/.xinitrc file with this in it:

#!/bin/bash
exec openbox --startup /home/grante/.config/openbox/autostart-xrdb

My normal local desktop startup commands are in 
/home/grante/.config/openbox/autostart,
but I wanted a remote session to start up a little differently, so I
created a second openbox autostart file for use by xrdp sessions.

Everything works fine except for openbox menu items that start urxvt
with options to set the title and exec an application. Those menu
entries appear to do nothing. The menu entry to start a "plain" urxvt
works fine. When I manually execute urxvt with title/exec options in a
remote session, that works fine too.  So I'm a little baffled why
those commands don't work from the openbox menu for a remote session.

Of course, there's still the inescapable brokenness of apps like
Chrome and Firefox which insist only one instance per user can run at
any time. Apparently the concept of multiple GUI sessions running
simultaneously on one machine is beyond the grasp of some people...

--
Grant




[gentoo-user] Re: (G)vim 9.0.0099 won't start

2022-08-21 Thread nunojsilva
On 2022-08-21, Philip Webb wrote:

> Today, I updated to the latest stable Vim 9.0.0099 + GVim same
> & it refused to open.  No problem back with 8.2.4586.
>
> Has anyone else encountered this ?  Does anyone have a suggestion ?

No *vim here, but: what does happen exactly? That is, what do you mean
with "refused to open"? Is there any error message? (If it hasn't been
started from a terminal or terminal emulator, try that way and see if
there is any relevant output.)

-- 
Nuno Silva




[gentoo-user] Re: Layman adding git over ssh only repository

2022-08-15 Thread nunojsilva
On 2022-08-15, Alexander Puchmayr wrote:

> Hi there,
>
> I tried to add a repository which is only reachable via git over ssh; no 
> access via git port (9418 according to /etc/services) or http(s). Only ssh 
> connections with public key are accepted.
>
> I tried 
> Layman -o ssh://git@myserver/path/to/repo.git -f -a myrepo, but failed with 
> "invalid url".
> Then I tried the same with "git://git@..." , also failed.
>
> It seems like it does not accept the url scheme and refusing to connect at 
> all. Next thing I tried is to create a repository.xml and put it to the local 
> file system:
>
> 
> 
> 
>   
> my-repo
> My overlay
> 
>   alexander.puchmayr#my-email.com
>   Alexander Puchmayr>
> 
>   
> git://myserver/path/to/repo.git
> 
>
> Layman -o repository.xml -f -a myrepo now tries to fetch it via the git port 
> (9418), failing with timeout.
>
> Replacing source type="git" with "ssh", "ssh+git", "git+ssh" also did not 
> succeed. 
>
> I'm pretty sure not being the first one trying this, but I cannot find any 
> useful information how to do this. So how can I achieve this?

This is not something I have tried myself, but a quick glance at the
online manual page for layman shows a git+ssh example (under "Overlay
lists format") - the source type is still "git", "git+ssh" is only in
the protocol/scheme part of the URL, so perhaps it needs to be something
like:

git+ssh://myserver/path/to/repo.git

-- 
(Apologies if this is not helpful,)
Nuno Silva




[gentoo-user] Re: chrome vs. wayland wierdness

2022-08-04 Thread Grant Edwards
On 2022-08-04, Neil Bothwick  wrote:
> On Thu, 4 Aug 2022 21:49:59 - (UTC), Grant Edwards wrote:
>
>>   emerge --depeclean --ask
>> 
>> That removed a couple wayland packages (yay! I didn't really want
>> wayland).  Then it warned me
>> 
>>!!! existing preserved libs:
>>>>> package: dev-libs/wayland-1.21.0  
>> *  - /usr/lib64/libwayland-client.so.0
>> *  - /usr/lib64/libwayland-client.so.0.21.0
>> *  used by /opt/google/chrome/libGLESv2.so
>> (www-client/google-chrome-104.0.5112.79) Use emerge @preserved-rebuild
>> to rebuild packages using these libraries
>> 
>> I do as instructed and run 'emerge @preserved-rebuild' and it
>> reinstalls chrome.
>> 
>> But a subsequent emerge --depeclean --ask again produces the same
>> warnings about wayland libraries that have been preserved.
>> 
>> Are the dependencies for chrome broken?
>
> chrome is a binary package, unlike chromium, so rebuilding will not change
> the libraries it depends on.

Right. I didn't expect that it would.

> It sounds like those wayland packages should not have been
> depcleaned and are a requirement for chrome.

I'm pretty sure that wayland was originally installed a few weeks ago
to satisfy a dependency of chrome that had been newly added (and now
apparently removed).

This bug might be related:

   https://bugs.gentoo.org/858191

It seems to mostly be a debate over whether wayland is really required
for the chrome binary package. Removing wayland reportedly breaks
webGL, sometimes, for some people, depending on how chrome is invoked.

If I read that issue's history correctly...









[gentoo-user] Re: --sync

2022-08-02 Thread Grant Edwards
On 2022-07-31, n952162  wrote:
> I've been running gentoo for years now, and every time I go to --sync,
> it's really a painful process.
>
> The process can take *very* before you find out if it succeeded or not.

In my experience, long --sync times have always been due to a slow
rsync server. Switching to a different server fixed it for me (though
sometimes it took a few tries to find a server that responded in a
timly manner).

That said, git is an order of magnitude faster than even the fastest
rsync server.

> It can take several hours before it finally works

That seems like something other than just a slow server. When dealing
with slow servers, it never took more than 15-30 minutes.

--
Grant






[gentoo-user] Re: emerge 7-9% faster with python 3.11 beta 4

2022-07-20 Thread Adam Carter
> How is it compared to PyPy3?
>
> I didn’t find pypy any faster than 3.10.


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

2022-07-15 Thread Mark Knecht
On Fri, Jul 15, 2022 at 1:56 PM Grant Edwards 
wrote:
>
> On 2022-07-15, Mark Knecht  wrote:
> > On Fri, Jul 15, 2022 at 12:28 PM Grant Edwards <
grant.b.edwa...@gmail.com>
> > wrote:

> > 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.
>
>
> Yep, it sounds like doing audio via Chrome is disrupting the the USB
> audio device that's in-use by the VM. Are there Linux audio drivers
> for that hardware that you could uninstall to keep Chrome from seeing
> it?

There is no support in Linux for this hardware. From the computer's
POV it's just an external USB device, partially an audio device, and
partially just controlled over USB. I've told pulseaudio and KDE in
general not to use it but I continue to see problems. I have no idea
what functionality the USB control port is providing.

I think the next step is to actually blacklist the device by its
USB device ID ala something like this:

https://www.projectgus.com/2014/09/blacklisting-a-single-usb-device-from-linux/

and see what happens.

This whole thing isn't overly critical to me. The device itself is
stand alone in operation. It's only attached to a computer to do editing
which actually can be done on the device's GUI without a computer, or
I can hook it to a Windows laptop, or even this machine if booted into
Windows. I was just wanting to be in Linux but open a VM to allow
me to edit more easily, which I actually can do but I have to hit the
reconnect button in software or pull the USB cable, both of which
work but are hacks.


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

2022-07-15 Thread Grant Edwards
On 2022-07-15, Mark Knecht  wrote:
> On Fri, Jul 15, 2022 at 12:28 PM Grant Edwards 
> 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?

> Is that truly a Chrome requirement, like the company Google wrote
> the ebuild, or is this something a Gentoo dev did for some reason?

Google doesn't provide an ebuild. The ebuild is written maintained by
the kind volunteers of the Chromium in Gentoo Project. For the binary
distribution from Google, those devs have no control over what
libraries the Chrome executables are built to use. All they can do is
try to figure out which libraries Chrome needs, and reflect that in
the ebuild so that after the binary from Google gets installed, it
works.

That said, there was no jack audio requirement for Chrome. I misread
the emerge output. The two new requirements that google-chrome was
pulling in were

 dev-libs/wayland
 dev-util/wayland-scanner

You don't have to be running Wayland, but you now need the above
wayland pieces.

There isn't actually a pulse audio requirement in the google-chrome
ebuild either, but if I don't have pulse installed, some audio stuff
in Chrome doesn't work. In web apps like Google Voice

 * I can select my headset mic as audio in, but it won't work.

 * I can't select headset as audio out.

Installing pulse audio fixed those problems.

> 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.


Yep, it sounds like doing audio via Chrome is disrupting the the USB
audio device that's in-use by the VM. Are there Linux audio drivers
for that hardware that you could uninstall to keep Chrome from seeing
it?

--
Grant





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

2022-07-15 Thread Grant Edwards
On 2022-07-15, Julien Roy  wrote:

> One of the side effects of using proprietary software : you can't
> control with which flags it gets built.

Yep. I didn't used to have the chrome binary package installed, but
there are a couple things that I've never gotten to work in Chromium
(e.g. Webex).

> With chromium-bin, there is a wayland USE flag, but nothing for
> jack.

I looked into that more, and I had misread the emerge output. It
wasn't google-chrome that depended on jack, and now I can't figure out
why it was installed. I did

# emerge -C virtual/jack media-sound/jack-audio-connection-kit
# emerge -auvND world

It didn't get reinstalled. And then a subsequenct

# emerge --depclean --ask

removed another half-dozen audio-related packagets (zita-* and
realtime-*, whatever they are). I'm sure the next time I try to use
audio on that machine it won't work.

I used to think that someday Linux sound support would get
straightened out, but it just keeps getting worse...

--
Grant





[gentoo-user] Re: google-chrome-103.0.5060 - choose password for new keyring

2022-07-09 Thread Martin Vaeth
Wols Lists  wrote:
> So why am I glad my USE= includes "-gnome" :-)
>
> Although I don't use Chrome, so I wouldn't notice anyways :-)

You are wrong: The dependency is unconditional, so USE=-gnome won't help.

What helps is to put a version of virtual/secret-service in your local
repository which does not actually pull in anything.
That's not very elegent, though: If suddenly the dependency is real,
things will break “silently”.






Re: [gentoo-user] Re: python mess - random winge!

2022-07-05 Thread Rich Freeman
On Tue, Jul 5, 2022 at 1:10 PM Wols Lists  wrote:
>
> On 05/07/2022 17:44, Rich Freeman wrote:
> > hat and its dependencies.  Obviously you need to be caught up before
> > things get removed from the repo, but the offending package itself
> > will get removed when that happens anyway.
> >
> > You can always just globally keep the older version around longer if
> > you don't want to deal with a bunch of cruft in
> > /etc/portage/package.use.  The news item explains how to do this.
>
> I'd be inclined to lock the older version of the package you want so it
> won't upgrade automatically (don't know how to do this, probably put
> that particular version in @world), and also give that a python 9
> dependency in package.use.

The news item explains how to get the upgrade earlier, delay the
upgrade entirely, or have support for both versions.  I'd suggest
doing it the way the news item suggests, because when you start
fighting the devs who maintain the python update logic, you're
probably going to find yourself swearing a lot.

-- 
Rich



Re: [gentoo-user] Re: python mess - random winge!

2022-07-05 Thread Wols Lists

On 05/07/2022 17:44, Rich Freeman wrote:

hat and its dependencies.  Obviously you need to be caught up before
things get removed from the repo, but the offending package itself
will get removed when that happens anyway.

You can always just globally keep the older version around longer if
you don't want to deal with a bunch of cruft in
/etc/portage/package.use.  The news item explains how to do this.


I'd be inclined to lock the older version of the package you want so it 
won't upgrade automatically (don't know how to do this, probably put 
that particular version in @world), and also give that a python 9 
dependency in package.use.


That way, when they update it to python 10, you can delete the version 
lock on your package, and it will upgrade and get rid of all the python 
9 stuff without you having to worry about it.


I always try and make sure anything I don't care about but that needs 
specific stuff is always specified by version. That way, as the system 
moves on, all that cruft just falls off the wagon ...


Cheers,
Wol



Re: [gentoo-user] Re: python mess - random winge!

2022-07-05 Thread Jack

On 2022.07.05 12:43, Grant Edwards wrote:

On 2022-07-05, Jack  wrote:
> On 2022.07.05 12:24, Grant Edwards wrote:
>> On 2022-07-05, William Kenworthy  wrote:

>> It would be nice if the news item explained how to let the upgrade
>> procede while holding back a few packages.
>>
>> Can you set 3_9 and 3_10 globally, and then disable 3_10 for a few
>> individual packages that can't be built with 3_10?

> As far as I can tell, you just need to add python_targets_python3_9  
for

> the package in the appropriate package.use file.

I've tried that, and it takes forever. Everything time you do it, the
next emerge attempt will fail because one of that package's
dependencies doesn't have 3_9 set. So you set that one, do an emerge,
and it fails because there's another depenency that doesn't have 3_9
set. Repeat this for an hour or two...

If it would tell you about all of them at once, it wouldn't be so bad.
But, if you're trying to hold back a large application with dozens and
dozens of dependancies it makes you want to scream.

Or doesn't it torture you like that any longer?
Oh, it still does.  I just think I anticipate it more often, so I am  
frequently able to deal with more than one "layer" in each round, so  
the total process doesn't take so long.  I've run into problems both  
for dependencies of the package I changed first, and packages for which  
It is a dependency.


On major updates, such as KDE, emerge @world often shows me a long list  
of packages it will upgrade, followed by a long list of slot  
conflicts.  Over the years I've not necessarily gotten better at  
directly interpreting portage's output, but at least figuring out I've  
got one package somehow related to the ones to be upgraded  (usually  
somewhere in the dependency tree) which itself doesn't have an upgrade,  
but does need to be rebuilt  at the same time.  I'll often end up doing  
"eix-installed -a | grep kde" (or python) and look for a package that  
isn't being upgraded, but is in the dependency tree of one or more  
which is.  It is also common that the problem is a package I've added  
under /etc/portage, and I just need to figure out if it still needs to  
be there, or else how that non-standard entry affects other packages.




Re: [gentoo-user] Re: python mess - random winge!

2022-07-05 Thread Rich Freeman
On Tue, Jul 5, 2022 at 12:36 PM Jack  wrote:
>
> On 2022.07.05 12:24, Grant Edwards wrote:
> > On 2022-07-05, William Kenworthy  wrote:
> >
> > > I synced portage a couple of days now and now my systems are
> > rebuilding
> > > python modules for 3.10 without any input from me [...]
> >
> > Every time there's a Python upgrade like this, it turns into a bit of
> > an ordeal because I always have a small handful of packages that don't
> > support the newer version.
> >
> > The news item offers no advice on what to do in this situation other
> > than completely postponing the upgrade of everything (which doesn't
> > seem like the best choice.)
> >
> > It would be nice if the news item explained how to let the upgrade
> > procede while holding back a few packages.
> >
> > Can you set 3_9 and 3_10 globally, and then disable 3_10 for a few
> > individual packages that can't be built with 3_10?
> As far as I can tell, you just need to add python_targets_python3_9 for
> the package in the appropriate package.use file.
>

That and its dependencies.  Obviously you need to be caught up before
things get removed from the repo, but the offending package itself
will get removed when that happens anyway.

You can always just globally keep the older version around longer if
you don't want to deal with a bunch of cruft in
/etc/portage/package.use.  The news item explains how to do this.

-- 
Rich



[gentoo-user] Re: python mess - random winge!

2022-07-05 Thread Grant Edwards
On 2022-07-05, Jack  wrote:
> On 2022.07.05 12:24, Grant Edwards wrote:
>> On 2022-07-05, William Kenworthy  wrote:

>> It would be nice if the news item explained how to let the upgrade
>> procede while holding back a few packages.
>> 
>> Can you set 3_9 and 3_10 globally, and then disable 3_10 for a few
>> individual packages that can't be built with 3_10?

> As far as I can tell, you just need to add python_targets_python3_9 for  
> the package in the appropriate package.use file.

I've tried that, and it takes forever. Everything time you do it, the
next emerge attempt will fail because one of that package's
dependencies doesn't have 3_9 set. So you set that one, do an emerge,
and it fails because there's another depenency that doesn't have 3_9
set. Repeat this for an hour or two...

If it would tell you about all of them at once, it wouldn't be so bad.
But, if you're trying to hold back a large application with dozens and
dozens of dependancies it makes you want to scream.

Or doesn't it torture you like that any longer?

--
Grant




Re: [gentoo-user] Re: python mess - random winge!

2022-07-05 Thread Jack

On 2022.07.05 12:24, Grant Edwards wrote:

On 2022-07-05, William Kenworthy  wrote:

> I synced portage a couple of days now and now my systems are  
rebuilding

> python modules for 3.10 without any input from me [...]

Every time there's a Python upgrade like this, it turns into a bit of
an ordeal because I always have a small handful of packages that don't
support the newer version.

The news item offers no advice on what to do in this situation other
than completely postponing the upgrade of everything (which doesn't
seem like the best choice.)

It would be nice if the news item explained how to let the upgrade
procede while holding back a few packages.

Can you set 3_9 and 3_10 globally, and then disable 3_10 for a few
individual packages that can't be built with 3_10?
As far as I can tell, you just need to add python_targets_python3_9 for  
the package in the appropriate package.use file.




[gentoo-user] Re: python mess - random winge!

2022-07-05 Thread Grant Edwards
On 2022-07-05, William Kenworthy  wrote:

> I synced portage a couple of days now and now my systems are rebuilding
> python modules for 3.10 without any input from me [...]

Every time there's a Python upgrade like this, it turns into a bit of
an ordeal because I always have a small handful of packages that don't
support the newer version.

The news item offers no advice on what to do in this situation other
than completely postponing the upgrade of everything (which doesn't
seem like the best choice.)

It would be nice if the news item explained how to let the upgrade
procede while holding back a few packages.

Can you set 3_9 and 3_10 globally, and then disable 3_10 for a few
individual packages that can't be built with 3_10?

--
Grant





[gentoo-user] Re: python mess - random winge!

2022-07-04 Thread Nikos Chantziaras

On 05/07/2022 08:04, William Kenworthy wrote:

I synced portage a couple of days now and now my systems are rebuilding
python modules for 3.10 without any input from me [...]

Yes, that's normal and there was a news item about it. Do:

  eselect news list

to get the and then use the NUMBER of the "Python 3.10 to become the 
default on 2022-07-01" news item:


  eselect read NUMBER

This will give you details on how to do the upgrade properly.




Re: [gentoo-user] Re: Boot has no space left.

2022-07-01 Thread Dale
Wols Lists wrote:
> On 01/07/2022 00:21, Dale wrote:
>> When I upgrade to a new kernel, I run for a month or so and then
>> manually clean out /boot, that would include kernel, init thingy,
>> System.map and config files.
>>
>> Seeing this reminds me it might be a good time to look into updating,
>> even tho I might not reboot for a while yet.
>
> When I update, I wait until I'm happy the new one seems okay, and then
> I just leave the most recent one and the one before.
>
> That said, I need to upgrade, and I need to see if my random hangs are
> fixed (there's apparently a bug in the Ryzen 3000, and I'm guessing
> that's what I'm hitting).
>
> Cheers,
> Wol
>
>


After my previous reply, I updated to a newer kernel.  It's in /boot but
it may be months before I reboot.  Anyway, I currently have four kernels
in /boot.  My current running kernel and two backup kernels plus the new
untested one.  Whenever I get around to rebooting and the new kernel
works fine, I'll remove the oldest one including sources etc. 

I try to keep at least two backup kernels.  One reason I do that, the
init thingy.  I admit dracut is working well for me but given the
history I have with those thingys, I want extra protection.  The odds of
three boot options going bad are pretty slim and if it did happen, I
likely have a serious hard drive problem anyway, file system at the very
least.  Either way, I have a lot to worry about. 

Maybe one of the suggestions mentioned here will help the OP.  It seems
he is letting the updater do the install or something and the kernel is
a fast moving target.  One has to have some way, automated or manual, to
clean up the unneeded bits.  I doubt most anyone makes their /boot to
large anyway.  Usually 300 or 400MBs is enough. 

Dale

:-)  :-) 



Re: [gentoo-user] Re: Boot has no space left.

2022-07-01 Thread Wols Lists

On 01/07/2022 00:21, Dale wrote:

When I upgrade to a new kernel, I run for a month or so and then
manually clean out /boot, that would include kernel, init thingy,
System.map and config files.

Seeing this reminds me it might be a good time to look into updating,
even tho I might not reboot for a while yet.


When I update, I wait until I'm happy the new one seems okay, and then I 
just leave the most recent one and the one before.


That said, I need to upgrade, and I need to see if my random hangs are 
fixed (there's apparently a bug in the Ryzen 3000, and I'm guessing 
that's what I'm hitting).


Cheers,
Wol



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] Re: Google pop3 authentication failure

2022-06-30 Thread 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?

-- 
Walter Dnes 
I don't run "desktop environments"; I run useful applications



Re: [gentoo-user] Re: Boot has no space left.

2022-06-30 Thread Dale
William Kenworthy wrote:
>
> and don't forget to run "uname -a" to get your currently running
> kernel version and make sure you don't delete that!
>
> "IF" "uname -a" isn't the latest version you have in /boot, some more
> investigation as to why will be needed.
>
> BillK
>
>


Just to add another method.  I have uprecords installed here.  It lists
the kernels and their uptime.  I keep the last two with reasonably high
uptimes with fairly recent version and the most recent kernel.  I don't
upgrade automatically so I control what and when I update.  Of course, I
also have long uptimes as well.  My thinking on this.  I want kernels
that are known to be stable that I can use as a backup boot option but I
also want newer kernels that have fixes etc in them.  By keeping a
couple with long uptimes, I get stable kernels.  By also picking a
recent kernel version, I get a kernel that I can boot into to see if it
is stable.  Over time, the versions get higher on both parts.  When I do
my checks, I look for kernels with at least 30 days or more of uptime. 
Generally, if a kernel can run that length of time, it is pretty
stable.  That said, I have some with many months of uptime.

When I upgrade to a new kernel, I run for a month or so and then
manually clean out /boot, that would include kernel, init thingy,
System.map and config files. 

Seeing this reminds me it might be a good time to look into updating,
even tho I might not reboot for a while yet. 

Just a thought. 

Dale

:-)  :-) 



Re: [gentoo-user] Re: Boot has no space left.

2022-06-30 Thread William Kenworthy
and don't forget to run "uname -a" to get your currently running kernel
version and make sure you don't delete that!

"IF" "uname -a" isn't the latest version you have in /boot, some more
investigation as to why will be needed.

BillK


On 1/7/22 04:29, Lee wrote:
> The OP should read the section of the Gentoo manual on kernel install
> to learn what files are installed where. Yea, but just rm the kernels
> and initramfs's from /boot and you're golden. FWIW, I usually only
> upgrade my kernel when it's a major revision.
>
> On Thu, Jun 30, 2022 at 12:39 PM Wols Lists 
> wrote:
>
> On 30/06/2022 19:23, Michael wrote:
> > On Thursday, 30 June 2022 19:15:33 BST Guillermo wrote:
> >> Hello,
> >>
> >> I still have the same problem, but the command worked fine.
> > The command "emerge -a --depclean" will only remove uninstall
> the kernel
> > packages, but will not remove files from/usr/src/, or old kernel
> images and
> > files from/boot/.
>
> As far as I'm aware, depclean only installs files it installed, so it
> leaves quite a lot of garbage lying around from kernels, including
> the
> /usr/src/kernel-xx-xx-xx directory and various files involved in
> making
> your kernel, that you've modified.
>
> Cheers,
> Wol
>
>
>
> -- 
> Lee  
> 

Re: [gentoo-user] Re: Boot has no space left.

2022-06-30 Thread Lee
The OP should read the section of the Gentoo manual on kernel install to
learn what files are installed where. Yea, but just rm the kernels and
initramfs's from /boot and you're golden. FWIW, I usually only upgrade my
kernel when it's a major revision.

On Thu, Jun 30, 2022 at 12:39 PM Wols Lists 
wrote:

> On 30/06/2022 19:23, Michael wrote:
> > On Thursday, 30 June 2022 19:15:33 BST Guillermo wrote:
> >> Hello,
> >>
> >> I still have the same problem, but the command worked fine.
> > The command "emerge -a --depclean" will only remove uninstall the kernel
> > packages, but will not remove files from/usr/src/, or old kernel images
> and
> > files from/boot/.
>
> As far as I'm aware, depclean only installs files it installed, so it
> leaves quite a lot of garbage lying around from kernels, including the
> /usr/src/kernel-xx-xx-xx directory and various files involved in making
> your kernel, that you've modified.
>
> Cheers,
> Wol
>
>

-- 
Lee 



Re: [gentoo-user] Re: Boot has no space left.

2022-06-30 Thread Wols Lists

On 30/06/2022 19:23, Michael wrote:

On Thursday, 30 June 2022 19:15:33 BST Guillermo wrote:

Hello,

I still have the same problem, but the command worked fine.

The command "emerge -a --depclean" will only remove uninstall the kernel
packages, but will not remove files from/usr/src/, or old kernel images and
files from/boot/.


As far as I'm aware, depclean only installs files it installed, so it 
leaves quite a lot of garbage lying around from kernels, including the 
/usr/src/kernel-xx-xx-xx directory and various files involved in making 
your kernel, that you've modified.


Cheers,
Wol



Re: [gentoo-user] Re: Boot has no space left.

2022-06-30 Thread Michael
On Thursday, 30 June 2022 19:15:33 BST Guillermo wrote:
> Hello,
> 
> I still have the same problem, but the command worked fine.

The command "emerge -a --depclean" will only remove uninstall the kernel 
packages, but will not remove files from /usr/src/, or old kernel images and 
files from /boot/.

Your /boot partition is full with old kernels you probably no longer use or 
need.  You have to remove them manually as part of your regular maintenance of 
your installation, or you can install and use 'app-admin/eclean-kernel' as 
mentioned in the previous thread, to partly automate the cleanup process of 
stale kernels.  Then update your GRUB to refresh the boot menu. 



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


Re: [gentoo-user] Re: Boot has no space left.

2022-06-30 Thread Guillermo

Hello,

I still have the same problem, but the command worked fine.

On 30/06/2022 19:24, Nikos Chantziaras wrote:

On 30/06/2022 20:11, Guillermo wrote:

[screenshot]


Doesn't "emerge -a --depclean" remove all these old kernels?






[gentoo-user] Re: Boot has no space left.

2022-06-30 Thread Nikos Chantziaras

On 30/06/2022 20:11, Guillermo wrote:

[screenshot]


Doesn't "emerge -a --depclean" remove all these old kernels?




[gentoo-user] Re: Google pop3 authentication failure

2022-06-30 Thread Grant Edwards
On 2022-06-30, Walter Dnes  wrote:
> On Wed, Jun 29, 2022 at 10:26:55PM -, Grant Edwards wrote
>> 
>> AFAIK, you've got two choices.
>> 
>>  1. Use an "app password"
>>  
>> https://support.google.com/accounts/answer/185833
>> 
>> https://www.lifewire.com/get-a-password-to-access-gmail-by-pop-imap-2-1171882
>> 
>>  2. Use OAUTH 2.0
>>  
>> https://developers.google.com/gmail/imap/xoauth2-protocol
>> https://oauth.net/2/
>
> I looked at those instructions and also at setting up mutt, which I
> currently use.  Clear as mud.

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".
3. Click "App Passwords".

That brings up the App Paswords page

4. Select app (pick app from dropdown, you want "Mail")
5. Select device (pick device from dropdown, pick whatever you want, I 
recommend custom)
6. Click "Generate"

That will pop up a dialog containing a 16-character password to be used by 
fetchmail. Copy that password

7. Click "Done"





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

2022-06-29 Thread Walter Dnes
On Wed, Jun 29, 2022 at 10:26:55PM -, Grant Edwards wrote
> 
> AFAIK, you've got two choices.
> 
>  1. Use an "app password"
>  
> https://support.google.com/accounts/answer/185833
> 
> https://www.lifewire.com/get-a-password-to-access-gmail-by-pop-imap-2-1171882
> 
>  2. Use OAUTH 2.0
>  
> https://developers.google.com/gmail/imap/xoauth2-protocol
> https://oauth.net/2/

  I looked at those instructions and also at setting up mutt, which I
currently use.  Clear as mud.  After scratching my head for several
minutes, I really wanted to scrap my Gmail account altogether, but it
might screw up some other stuff I do with Google.  I very rarely use
Gmail, and I do know how to access Gmail via web browser.  So I
commented the Gmail stanza out of my .fetchmailrc and I'll use web
browser to access Gmail.

-- 
Walter Dnes 
I don't run "desktop environments"; I run useful applications



[gentoo-user] Re: Google pop3 authentication failure

2022-06-29 Thread Grant Edwards
On 2022-06-29, Walter Dnes  wrote:
> On Mon, Jun 13, 2022 at 02:47:16PM +, spareproject776 wrote
>> 
>> They flushed all the app password creds and forced 2fa. 
>> Need to go through the accounts.google.com login to recover.
>
> Sorry for the delay responding.  I can login fine with my password on
> accounts.google.com but it does not work on pop.gmail.com.

Google disabled the use of normal passwords for IMAP and POP
authentication a year or so back.

[These days I say "a year or so back" that could be anything from 5
months to about 5 years. I think "a couple years ago" now averages at
about 7. "Five or six years ago" reaches back to the end of the
Clinton adminstration.]

> What exactly do I have to do to get it working again?

AFAIK, you've got two choices.

 1. Use an "app password"
 
https://support.google.com/accounts/answer/185833

https://www.lifewire.com/get-a-password-to-access-gmail-by-pop-imap-2-1171882

 2. Use OAUTH 2.0
 
https://developers.google.com/gmail/imap/xoauth2-protocol
https://oauth.net/2/

AIUI, the latter is considered more secure. But, a lot of applications
don't support OAUTH 2.0 (or if they do, it's via a complex
plugin/helper scheme). For mutt I looked into OAUTH, and it can be
done with some external helper applications. Creating an app password
for mutt to use with IMAP was much easier.

--
Grant








[gentoo-user] Re: dbus now requires CONFIG_EPOLL in kernel?

2022-06-20 Thread Grant Edwards
On 2022-06-20, Grant Edwards  wrote:
> At the end of an update today, I got an error message from
>
> sys-apps/dbus-1.12.22-r2:
>
>  * CONFIG_EPOLL: is not set when it should be.
>Please check to make sure these options are set correctly.  Failure
>to do so may cause unexpected problems.

Opps. Apparently at some point I somehow overwrote the file at
/usr/src/linux/.config with something completely unrelated (looks like
the contents of /proc/cpuinfo).

The EPOLL option is set in the actual kernel:

$ zcat /proc/config.gz | grep EPOLL
CONFIG_EPOLL=y

and in all my prevous version .config files.

--
Grant




[gentoo-user] Re: --depclean wants to remove udev. What!?

2022-06-20 Thread Martin Vaeth
Dale  wrote:
>
> root@fireball / # equery d sys-apps/systemd-utils
>  * These packages depend on sys-apps/systemd-utils:
> sys-apps/systemd-tmpfiles-250 (sys-apps/systemd-utils[tmpfiles])
> sys-fs/udev-250 (sys-apps/systemd-utils[udev,...])
> virtual/libudev-232-r7 (!systemd ? sys-apps/systemd-utils[udev,...])
> virtual/tmpfiles-0-r3 (!prefix-guest ? sys-apps/systemd-utils[tmpfiles])
> virtual/udev-217-r5 (sys-apps/systemd-utils[udev])

Looks completely sane:

sys-apps/systemd-tmpfiles-250 and sys-fs/udev-250
are "practically" just virtuals which only pull in
sys-apps/systemd-utils
with the corresponding USE-flags. And the "true"
virtuals for for tmpfiles and udev also depend on that
package with the corresponding USE-flags.




Re: [gentoo-user] Re: Reinstall

2022-06-19 Thread Bill Kenworthy
I suggest either taking a full dd|bzip2 style backup of the hardisk to 
removable media  for the simplest reinstall. Compliment with borgbackup or 
dervish for space efficient backups to capture more recent changes.  Reinstall 
is the reverse .. lay down the dd image  update from the backups with rsync. No 
need to get caught in messy  install routines that will take a lot longer with 
an uncertain outcome.  I have a few arm systems and seem to be doing it at 
least once a month as the sdcards reach their end of life. 
BillK


On 20 June 2022 2:26:27 am AWST, Francisco Ares  wrote:
>Em dom., 19 de jun. de 2022 às 14:33, Michael
> escreveu:
>>
>> On Sunday, 19 June 2022 18:22:34 BST Grant Edwards wrote:
>> > On 2022-06-19, Francisco Ares  wrote:
>> > > Just for the sake of preventing a future failure, besides personal
>> > > files (minimum and obvious) the "world" file and the binary packages,
>> > > built along with the package installation, what else should I backup
>> > > so that I would be able to quickly restore the same full working
>> > > Gentoo in a new hardware without having to work from stage3 up? The
>> > > portage tree is one of those items, for sure. But what else?
>> >
>> > Make a backup copy of everything under /etc.
>> >
>> > I used to try to backup individual /etc/... files that I would need,
>> > but I always forgot something.
>> >
>> > --
>> > Grant
>>
>> Yes, besides /var/lib/portage/world and /etc/ you may also want to back up
>> your /boot and kernel config, assuming the hardware (MoBo & peripherals) is 
>> the
>> same (same drivers).  I wouldn't bother backing up portage, a resync will
>> download it afresh.  You might want to save /distfiles if you're on a slow
>> Internet link, but it has to be a copy of the current versions, otherwise the
>> latest version of each package source will have to be downloaded anyway.
>>
>> If you're running databases you'll also want to keep a backup of the
>> respective /var/lib/*sql directory and if you're running a webserver 
>> /var/www/
>> * - but you would be aware of the need to keep a fresh backup of all this 
>> data
>> anyway.
>
>Also good point, one can always do a "make oldconfig" on a new kernel
>to recover specific tweaks.
>
>Regarding backing up the portage tree, the binary packages won't do
>much if the last sync is, say, one or two months old or even worse if
>older. To use "emerge -K" one must have the same package version built
>in the binary package as the one present in portage. That's what I'm
>facing right now, it seems my binary packages won't be so helpful
>after all - I'm beginning to think I'll have to go back to stage-3...
>
>Thanks!
>Francisco
>

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Re: [gentoo-user] Re: Reinstall

2022-06-19 Thread Francisco Ares
Em dom., 19 de jun. de 2022 às 14:33, Michael
 escreveu:
>
> On Sunday, 19 June 2022 18:22:34 BST Grant Edwards wrote:
> > On 2022-06-19, Francisco Ares  wrote:
> > > Just for the sake of preventing a future failure, besides personal
> > > files (minimum and obvious) the "world" file and the binary packages,
> > > built along with the package installation, what else should I backup
> > > so that I would be able to quickly restore the same full working
> > > Gentoo in a new hardware without having to work from stage3 up? The
> > > portage tree is one of those items, for sure. But what else?
> >
> > Make a backup copy of everything under /etc.
> >
> > I used to try to backup individual /etc/... files that I would need,
> > but I always forgot something.
> >
> > --
> > Grant
>
> Yes, besides /var/lib/portage/world and /etc/ you may also want to back up
> your /boot and kernel config, assuming the hardware (MoBo & peripherals) is 
> the
> same (same drivers).  I wouldn't bother backing up portage, a resync will
> download it afresh.  You might want to save /distfiles if you're on a slow
> Internet link, but it has to be a copy of the current versions, otherwise the
> latest version of each package source will have to be downloaded anyway.
>
> If you're running databases you'll also want to keep a backup of the
> respective /var/lib/*sql directory and if you're running a webserver /var/www/
> * - but you would be aware of the need to keep a fresh backup of all this data
> anyway.

Also good point, one can always do a "make oldconfig" on a new kernel
to recover specific tweaks.

Regarding backing up the portage tree, the binary packages won't do
much if the last sync is, say, one or two months old or even worse if
older. To use "emerge -K" one must have the same package version built
in the binary package as the one present in portage. That's what I'm
facing right now, it seems my binary packages won't be so helpful
after all - I'm beginning to think I'll have to go back to stage-3...

Thanks!
Francisco



Re: [gentoo-user] Re: Reinstall

2022-06-19 Thread Francisco Ares
Em dom., 19 de jun. de 2022 às 14:22, Grant Edwards
 escreveu:
>
> On 2022-06-19, Francisco Ares  wrote:
>
> > Just for the sake of preventing a future failure, besides personal
> > files (minimum and obvious) the "world" file and the binary packages,
> > built along with the package installation, what else should I backup
> > so that I would be able to quickly restore the same full working
> > Gentoo in a new hardware without having to work from stage3 up? The
> > portage tree is one of those items, for sure. But what else?
>
> Make a backup copy of everything under /etc.
>
> I used to try to backup individual /etc/... files that I would need,
> but I always forgot something.
>
> --
> Grant
>
>
>
>

Good point, thanks!

Francisco



Re: [gentoo-user] Re: Reinstall

2022-06-19 Thread Michael
On Sunday, 19 June 2022 18:22:34 BST Grant Edwards wrote:
> On 2022-06-19, Francisco Ares  wrote:
> > Just for the sake of preventing a future failure, besides personal
> > files (minimum and obvious) the "world" file and the binary packages,
> > built along with the package installation, what else should I backup
> > so that I would be able to quickly restore the same full working
> > Gentoo in a new hardware without having to work from stage3 up? The
> > portage tree is one of those items, for sure. But what else?
> 
> Make a backup copy of everything under /etc.
> 
> I used to try to backup individual /etc/... files that I would need,
> but I always forgot something.
> 
> --
> Grant

Yes, besides /var/lib/portage/world and /etc/ you may also want to back up 
your /boot and kernel config, assuming the hardware (MoBo & peripherals) is the 
same (same drivers).  I wouldn't bother backing up portage, a resync will 
download it afresh.  You might want to save /distfiles if you're on a slow 
Internet link, but it has to be a copy of the current versions, otherwise the 
latest version of each package source will have to be downloaded anyway.

If you're running databases you'll also want to keep a backup of the 
respective /var/lib/*sql directory and if you're running a webserver /var/www/
* - but you would be aware of the need to keep a fresh backup of all this data 
anyway.

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


[gentoo-user] Re: Reinstall

2022-06-19 Thread Grant Edwards
On 2022-06-19, Francisco Ares  wrote:

> Just for the sake of preventing a future failure, besides personal
> files (minimum and obvious) the "world" file and the binary packages,
> built along with the package installation, what else should I backup
> so that I would be able to quickly restore the same full working
> Gentoo in a new hardware without having to work from stage3 up? The
> portage tree is one of those items, for sure. But what else?

Make a backup copy of everything under /etc.

I used to try to backup individual /etc/... files that I would need,
but I always forgot something.

--
Grant






[gentoo-user] Re: X11 crashes anyone?

2022-06-19 Thread Nikos Chantziaras

On 20/12/2021 09:10, Nikos Chantziaras wrote:
Has anyone here noticed that x.org likes to crash sometimes as of late? 
Never happened before, going years and years back. The last month or so, 
I've got three x.org crashes:


systemd-coredump[204553]: [] Process 453 (X) of user 0 dumped core.


So half a year later and I was still getting these crashes. I found the 
possible issue. More and more people started having the same crashes as 
different distros were updating their X11 stuff. It seems the issue is this:


  https://gitlab.freedesktop.org/xorg/xserver/-/issues/1261

A patch was merged in xorg upstream about 4 months ago:

  https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/865

Downloadable diff:

  https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/865.diff

This patch is not carried in portage. I copied it to 
/etc/portage/patches/x11-base/xorg-server/ and rebuilt xorg-server three 
days ago, and I haven't had any more crashes.


Fingers crossed...




RE: [gentoo-user] Re: Searching the list archives

2022-06-13 Thread Laurence Perkins



>-Original Message-
>From: Peter Humphrey  
>Sent: Sunday, June 12, 2022 2:17 AM
>To: gentoo-user@lists.gentoo.org
>Subject: Re: [gentoo-user] Re: Searching the list archives
>
>On Sunday, 12 June 2022 09:04:30 BST Nuno Silva wrote:
>> On 2022-06-12, Peter Humphrey wrote:
>> > Hello list,
>> > 
>> > Does any site out there offer a search function over its whole archive?
>> > Going through one month at a time is going to take for ever.
>> 
>> I think the search feature at marc.info goes through the entire 
>> archive at once:
>> 
>> https://marc.info/?l=gentoo-user
>
>Certainly does - thanks Nuno.
>
>--
>Regards,
>Peter.
>
>
Now if only there were a way for people to find this message without having to 
search for it a month at a time...  :P

LMP



Re: [gentoo-user] Re: Searching the list archives

2022-06-12 Thread tastytea
On 2022-06-12 10:17+0100 Peter Humphrey  wrote:

> On Sunday, 12 June 2022 09:04:30 BST Nuno Silva wrote:
> > On 2022-06-12, Peter Humphrey wrote:  
> > > Hello list,
> > > 
> > > Does any site out there offer a search function over its whole
> > > archive? Going through one month at a time is going to take for
> > > ever.  
> > 
> > I think the search feature at marc.info goes through the entire
> > archive at once:
> > 
> > https://marc.info/?l=gentoo-user  
> 
> Certainly does - thanks Nuno.
> 

Many search engines (like duckduckgo and qwant) allow limiting the
search to a specific site, for example: 
  site:https://archives.gentoo.org/gentoo-user/ whole archive



Re: [gentoo-user] Re: Searching the list archives

2022-06-12 Thread Peter Humphrey
On Sunday, 12 June 2022 09:04:30 BST Nuno Silva wrote:
> On 2022-06-12, Peter Humphrey wrote:
> > Hello list,
> > 
> > Does any site out there offer a search function over its whole archive?
> > Going through one month at a time is going to take for ever.
> 
> I think the search feature at marc.info goes through the entire archive
> at once:
> 
> https://marc.info/?l=gentoo-user

Certainly does - thanks Nuno.

-- 
Regards,
Peter.






<    3   4   5   6   7   8   9   10   11   12   >