Re: [gentoo-user] KDE upgrade dependency problem

2021-12-12 Thread Steve Evans
On Sat, 11 Dec 2021 12:14:23 +
Steve Evans  wrote:

> On Fri, 10 Dec 2021 20:09:19 -0500
> Jack  wrote:
> 
> > Good evening all, calling on the accumulated wisdom here.
> > 
> > kde-frameworks 5.88 has been marked stable, but my upgrade is
> > blocked because kwin (5.22.5 is stable, 5.23.4 is still marked
> > testing) is somehow stuck on kde-frameworks/kglobalaccel-5.85.
> > 
> > The line from portage is:
> >(kde-frameworks/kglobalaccel-5.85.0-r1:5/5.85::gentoo,
> > installed) USE="-debug -doc -nls -test" ABI_X86="(64)" pulled in by
> >  >=kde-frameworks/kglobalaccel-5.82.0:5/5.85= required by  
> > (kde-plasma/kwin-5.22.5:5/5::gentoo, installed) USE="caps handbook  
> > plasma -accessibility -debug -gles2-only -multimedia -screencast
> > -test" ABI_X86="(64)"
> > 
> > The actual line in the kwin ebuild is
> >  >=kde-frameworks/kglobalaccel-${KFMIN}:5=
> > so I'm assuming that trailing "=" is the culprit, although I don't  
> > really follow the syntax.
> > 
> > Is there any easy way around this, or does it just mean I can't
> > upgrade any of kde-frameworks from 5.85 to 5.88 until kde-plasma
> > 5.24.something is marked stable or I unmask it?  I'm not in any
> > great rush, but it means emerge @world always fails, and I've got to
> > individually pick out those packages I CAN upgrade.
> > 
> > Jack
> > 
> 
> I am having the same problem. It appears as though kde-frameworks 5.88
> depends on a matching upgrade to kde-plasma to version 5.23.4.
> Frameworks has been marked stable, but plasma has not yet :-(
> 
> See these bugs:
> 
> - https://bugs.gentoo.org/816042 "KDE Frameworks 5.88 stabilisation"
>   which has a status of IN_PROGRESS
> 
> - https://bugs.gentoo.org/826898 "KDE Plasma 5.23.4 stabilisation"
>   which has a status of CONFIRMED
> 
> So I think we are just going to have to wait for kde-plasma to be
> marked stable.
> 
> Steve

A bug has been opened for this problem https://bugs.gentoo.org/828963.
It suggested emerging with --backtrack=200. That solved the problem for
me.

Steve
-- 

Steve EvansE-mail: mailto:ste...@gorbag.com
Registered Linux user #217906: http://counter.li.org
Public Encryption Key: http://www.gorbag.com/public-key.html


5.10.76-gentoo-r1 Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz GNU/Linux

 09:13:59 up 35 days, 19:12,  5 users,  load average: 3.05, 2.13, 1.37

Science and religion are in full accord but science and faith are in
complete discord.



["SOLVED"] Re: [gentoo-user] Re: [OT] suggest SSD partitioning

2021-12-12 Thread pat

On 2021-12-10 20:51, Laurence Perkins wrote:



-Original Message-
From: Wols Lists 
Sent: Friday, December 10, 2021 11:25 AM
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: [OT] suggest SSD partitioning

On 10/12/2021 15:16, Nikos Chantziaras wrote:
> If you can't do that, then it doesn't matter much whether you use a
> swap file or partition. On an SSD, both should perform about the same.
> On an HDD, swap files could run into fragmentation issues if you
> resize them or create them incorrectly. On an SSD, fragmentation
> doesn't have much of an impact. A swap file gives you the option to
> resize it later on without having to do filesystem and partition
> resizing, so I'd say a swap file sounds better.

It very much does matter whether you use a swap file or partition in 
practice. I've just been reading right now a discussion about systemd 
logging and hibernation, and how btrfs handles swap files. It sounds 
nasty.


If you have a swap file, linux creates an immutable file then uses 
direct disk i/o. There's a LOT of unnecessary crap there that could 
go wrong. Just avoid all that trouble and give yourself a decent swap 
partition. (And if you're running btrfs, a lot of this sounds 
experimental and dangerous ...)


Cheers,
Wol




For BTRFS I usually do one partition for the whole system and one
partition for swap and then use subvolumes for /home and anything else
I want to keep separate in case of reinstall.

Since BTRFS is a storage pool model, everything else can dynamically
resize similarly to using LVM.

Swap files in general aren't as reliable if one is planning to
hibernate the system.  Swap files on BTRFS should go through a loop
device unless you set them up really carefully.

There's no reason you can't have both swap files and a swap partition.
 I occasionally end up dynamically adding more when I get a program
that uses a terabyte of virtual but very little resident at a time or
something.

Swap onto zram devices can also be a useful tool if the data being
swapped is more highly compressible than zswap will take advantage of.

LMP


Thanks to all for hints. I've created a swap partition.

Pat


Freehosting PIPNI - http://www.pipni.cz/




Re: [gentoo-user] Can't get rid of preserved libs

2021-12-12 Thread Wols Lists

On 12/12/2021 05:55, Bryan Gardiner wrote:

I don't really look forward to uninstalling bzip2.  Manually
uninstalling and reinstalling freetype and harfbuzz doesn't fix the
issue.  I am thinking about deleting all of these libraries by hand
and then rebuilding the packages, or perhaps unmerging freetype and
harfbuzz with FEATURES="-preserved-libs".  I'm not sure if this will
clean up all of Portage's metadata about the libraries though.

Any insight into a 'proper' way to fix this would be appreciated.


If you read the messages, it should tell you which program is actually 
pulling freetype and harfbuzz in with the flags you don't want. Are they 
currently installed with the correct flags you want?


If they don't have the flags you want, try to force-emerge them with the 
flags you do want and portage will complain "can't do that because of 
..." That should tell you the problem program. Do an emerge -C on that 
program, re-emerge harfbuzz and freetype with the correct flags, and you 
SHOULD be home and dry ...


Cheers,
Wol



[gentoo-user] Local mail delivery agent (MDA) wanted

2021-12-12 Thread Frank Steinmetzger
Hey list,

I am looking for an as-simple-as-possible setup for local mail delivery.
What I mean by that is: the mail shall go into /var/spool/mail locally,
which is why I deem it overkill to set up and run a complicated smtpd
daemon with its own config file language.

At my previous employer we used mda on our Ubuntu-based machines, but this
is not available in Gentoo. It did extactly what I am looking for: receive
mail (most importantly from cron) via pipe and put it right into the spool
file, so I can see a message upon login and read it with mutt. That’s all
I need, so I can get summary reports of zfs snapshots, smartd messages and
so on.

I was looking through wiki articles, but they all employ the usual beasts
postfix, courier and so on. Do you have any recommendations?

Much obliged.

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

If nothing works anymore, read the manual already.


signature.asc
Description: PGP signature


Re: [gentoo-user] Local mail delivery agent (MDA) wanted

2021-12-12 Thread Alexey Mishustin
Hello,

вс, 12 дек. 2021 г. в 16:25, Frank Steinmetzger :
>
> At my previous employer we used mda on our Ubuntu-based machines, but this
> is not available in Gentoo. It did extactly what I am looking for...

I have never used mailutils mda; I just noticed that there is a
configuration option
--disable-build-mda for mailutils [1] and thought, maybe, adding
$(use_enable build-mda) \
to the mailutils ebuild [2] will help to get mda in Gentoo.

[1] - https://lists.gnu.org/archive/html/info-gnu/2020-03/msg7.html
[2] - 
https://gitweb.gentoo.org/repo/gentoo.git/tree/net-mail/mailutils/mailutils-3.13.ebuild

-- 
Best regards,
Alex



[gentoo-user] "Broken soname dependencies found" after portage upgrade

2021-12-12 Thread Nikos Chantziaras
After upgrading from portage 3.0.28 to 3.0.30, I get this when doing 
emerge --depclean:


Calculating dependencies... done!
 * Broken soname dependencies found:
 *
 *   x86_64: libexpat.so required by:
 * app-emulation/vmware-workstation-16.2.1.18811642-r1
 *
 *   x86_64: libgdbm_compat.so.3 required by:
 * app-emulation/vmware-workstation-16.2.1.18811642-r1
 *
 *   x86_64: liblttng-ust.so.0 required by:
 * dev-dotnet/dotnet-sdk-bin-6.0.100
 *
 *   x86_64: libreadline.so.6 required by:
 * app-emulation/vmware-workstation-16.2.1.18811642-r1
 *
 *   x86_64: libgdbm.so.3 required by:
 * app-emulation/vmware-workstation-16.2.1.18811642-r1
 *
 *   x86_64: libbz2.so.1.0 required by:
 * app-emulation/vmware-workstation-16.2.1.18811642-r1
 *
>>> No packages selected for removal by depclean

What does it even mean?

(And before anyone asks, the software works just fine, and neither 
revdep-rebuild nor revdep-rebuild.sh find anything wrong.)





Re: [gentoo-user] "Broken soname dependencies found" after portage upgrade

2021-12-12 Thread Neil Bothwick
On Sun, 12 Dec 2021 18:11:53 +0200, Nikos Chantziaras wrote:

> After upgrading from portage 3.0.28 to 3.0.30, I get this when doing 
> emerge --depclean:
> 
> Calculating dependencies... done!
>   * Broken soname dependencies found:
>   *
>   *   x86_64: libexpat.so required by:
>   * app-emulation/vmware-workstation-16.2.1.18811642-r1
>   *
>   *   x86_64: libgdbm_compat.so.3 required by:
>   * app-emulation/vmware-workstation-16.2.1.18811642-r1
>   *
>   *   x86_64: liblttng-ust.so.0 required by:
>   * dev-dotnet/dotnet-sdk-bin-6.0.100
>   *
>   *   x86_64: libreadline.so.6 required by:
>   * app-emulation/vmware-workstation-16.2.1.18811642-r1
>   *
>   *   x86_64: libgdbm.so.3 required by:
>   * app-emulation/vmware-workstation-16.2.1.18811642-r1
>   *
>   *   x86_64: libbz2.so.1.0 required by:
>   * app-emulation/vmware-workstation-16.2.1.18811642-r1
>   *
>  >>> No packages selected for removal by depclean  
> 
> What does it even mean?
> 
> (And before anyone asks, the software works just fine, and neither 
> revdep-rebuild nor revdep-rebuild.sh find anything wrong.)

Revdep-rebuild won't work because vmware-workstation is a binary package.
You may need to add a file to /etc/revdep-rebuild that adds the vmware
path (somewhere in /opt?) to SEARCH_DIRS_MASK.


-- 
Neil Bothwick

We are upping our standards - so up yours.


pgpFLmgxvpv04.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] "Broken soname dependencies found" after portage upgrade

2021-12-12 Thread tastytea
On 2021-12-12 18:11+0200 Nikos Chantziaras  wrote:

> After upgrading from portage 3.0.28 to 3.0.30, I get this when doing 
> emerge --depclean:
> 
> Calculating dependencies... done!
>   * Broken soname dependencies found:
>   *
>   *   x86_64: libexpat.so required by:
>   * app-emulation/vmware-workstation-16.2.1.18811642-r1
>   *
>   *   x86_64: libgdbm_compat.so.3 required by:
>   * app-emulation/vmware-workstation-16.2.1.18811642-r1
>   *
>   *   x86_64: liblttng-ust.so.0 required by:
>   * dev-dotnet/dotnet-sdk-bin-6.0.100
>   *
>   *   x86_64: libreadline.so.6 required by:
>   * app-emulation/vmware-workstation-16.2.1.18811642-r1
>   *
>   *   x86_64: libgdbm.so.3 required by:
>   * app-emulation/vmware-workstation-16.2.1.18811642-r1
>   *
>   *   x86_64: libbz2.so.1.0 required by:
>   * app-emulation/vmware-workstation-16.2.1.18811642-r1
>   *
>  >>> No packages selected for removal by depclean  
> 
> What does it even mean?

It means the binary wants to load some libraries (like libexpat.so)
portage can't find.

> (And before anyone asks, the software works just fine, and neither 
> revdep-rebuild nor revdep-rebuild.sh find anything wrong.)

But vmware (or rather, the linker) seems to find them. Maybe they are in
the same directory as the binary and portage doesn't search there? You
can check which libraries exactly the binary wants to load with ldd.

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
.


pgpcpA4f0qLHX.pgp
Description: Digitale Signatur von OpenPGP


[gentoo-user] Bug in run-crons?

2021-12-12 Thread Frank Steinmetzger
Hi, it’s me again, :)

I’m currently improving the cron setup on my Gentoo-powered NAS. I installed
zfs-auto-snapshot, which includes scripts for hourly, daily, weekly and
monthly creation of snapshots.

The NAS uses fcron for its cron daemon. In order for the scripts to work,
I enabled the run-crons script from sys-process/cronbase, which runs all
scripts in /etc/cron.{hourly,daily,...}. But I have the feeling that there
is a bug in the script:

It uses state files in /var/spool/cron/lastrun/ to know when each interval
was last run, so it only runs once per period. But: the age threshold for
the state file is period + 5 minutes. Shouldn’t that be period - 5 minutes?

My reasoning: assume run-crons is run hourly, at the 0 minute sharp. So at
the next run, the state file is exactly one hour old. Since this is not old
enough for the check, run-crons thinks that the last run is too recent and
ignores this period. As a result, each period is only run on every other
iteration.

Any thoughts on that?
Cheerio.

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

“Today I watched my first porn movie.” – “And?” – “I was so young back then.”


signature.asc
Description: PGP signature


Re: [gentoo-user] Bug in run-crons?

2021-12-12 Thread Rich Freeman
On Sun, Dec 12, 2021 at 1:21 PM Frank Steinmetzger  wrote:
>
> It uses state files in /var/spool/cron/lastrun/ to know when each interval
> was last run, so it only runs once per period. But: the age threshold for
> the state file is period + 5 minutes. Shouldn’t that be period - 5 minutes?
>
> My reasoning: assume run-crons is run hourly, at the 0 minute sharp. So at
> the next run, the state file is exactly one hour old. Since this is not old
> enough for the check, run-crons thinks that the last run is too recent and
> ignores this period. As a result, each period is only run on every other
> iteration.

I don't use this, but I believe there should be an hourly crontab
entry that deletes the cron.hourly file, which would mean it gets run
on the next 10min cycle (or maybe sooner - I'm not sure if those jobs
are run in parallel or serial).

The overall result is that things will get run at traditional crontab
times no matter what, but if those are missed and enough time is
accrued then run-crons will catch this and run the job on the next
10min cycle, such as a missed daily overnight slot.

So if you don't have your computer on a 3AM then the job will get run
a bit more than 24h after the last time it was run.  Then if you leave
it on overnight that night it will run at 3AM despite it not being
24h, but at that point if you leave it on it will run at 3AM daily
since it will no longer be missed.  The fixed times serve to anchor
the actual execution times if you do leave the computer on.

-- 
Rich



Re: [gentoo-user] Bug in run-crons?

2021-12-12 Thread Frank Steinmetzger
Am Sun, Dec 12, 2021 at 01:41:33PM -0500 schrieb Rich Freeman:
> On Sun, Dec 12, 2021 at 1:21 PM Frank Steinmetzger  wrote:
> >
> > It uses state files in /var/spool/cron/lastrun/ to know when each interval
> > was last run, so it only runs once per period. But: the age threshold for
> > the state file is period + 5 minutes. Shouldn’t that be period - 5 minutes?
> >
> > My reasoning: assume run-crons is run hourly, at the 0 minute sharp. So at
> > the next run, the state file is exactly one hour old. Since this is not old
> > enough for the check, run-crons thinks that the last run is too recent and
> > ignores this period. As a result, each period is only run on every other
> > iteration.
> 
> I don't use this, but I believe there should be an hourly crontab
> entry that deletes the cron.hourly file, which would mean it gets run
> on the next 10min cycle (or maybe sooner - I'm not sure if those jobs
> are run in parallel or serial).

The check that I mentioned above is actually the deletion which you mention:
run-crons looks for the state file for the given interval and - if it is old
enough - deletes it.

The part that executes the individual cron scripts is only executed if there
is no state file. The first thing it then does is to create a new state file.


In pseudo code:
1. look for period state file that is older than interval + 5 mins
found one?
delete it

2. Look for period state file
none found?
create state file
execute cron scripts for that interval

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

The boss is a human just like everyone else, he just doesn’t know.


signature.asc
Description: PGP signature


Re: [gentoo-user] Source Python virtualenv in OpenRC script

2021-12-12 Thread Manuel McLure
On Sat, Dec 11, 2021 at 3:54 PM Julien Roy  wrote:

> Hello,
>
> I am trying to create an OpenRC script to start a python module.
> To launch the module manually, what I would do is:
> cd $moduleDir
> source bin/activate
> python -m $module
>

You can actually just use

$moduleDir/bin/python -m $module

Executing anything from the bin directory inside the venv will make it act
as if it had activated the venv.
-- 
Manuel A. McLure WW1FA  
...for in Ulthar, according to an ancient and significant law,
no man may kill a cat.   -- H.P. Lovecraft


Re: [gentoo-user] Source Python virtualenv in OpenRC script

2021-12-12 Thread Julien Roy
Thanks, I didn´t realize it was this easy!

Regards,
Julien



Dec 12, 2021, 22:39 by man...@mclure.org:

>
>
> On Sat, Dec 11, 2021 at 3:54 PM Julien Roy <> jul...@jroy.ca> > wrote:
>
>> Hello,
>>
>> I am trying to create an OpenRC script to start a python module.
>> To launch the module manually, what I would do is:
>> cd $moduleDir
>> source bin/activate
>> python -m $module
>>
>
> You can actually just use
>
> $moduleDir/bin/python -m $module
>
> Executing anything from the bin directory inside the venv will make it act as 
> if it had activated the venv.
> -- 
> Manuel A. McLure WW1FA <> man...@mclure.org> > <> http://www.mclure.org> >
> ...for in Ulthar, according to an ancient and significant law,
> no man may kill a cat.                       -- H.P. Lovecraft
>

Re: [gentoo-user] Local mail delivery agent (MDA) wanted

2021-12-12 Thread William Kenworthy
I thought the gentoo default mail program is nullmailer? Changed from 
smtpd(? or something named similar) some time back.  Simple, reasonably 
versatile and has easy configuration.


BillK


On 12/12/21 21:25, Frank Steinmetzger wrote:

Hey list,

I am looking for an as-simple-as-possible setup for local mail delivery.
What I mean by that is: the mail shall go into /var/spool/mail locally,
which is why I deem it overkill to set up and run a complicated smtpd
daemon with its own config file language.

At my previous employer we used mda on our Ubuntu-based machines, but this
is not available in Gentoo. It did extactly what I am looking for: receive
mail (most importantly from cron) via pipe and put it right into the spool
file, so I can see a message upon login and read it with mutt. That’s all
I need, so I can get summary reports of zfs snapshots, smartd messages and
so on.

I was looking through wiki articles, but they all employ the usual beasts
postfix, courier and so on. Do you have any recommendations?

Much obliged.





[gentoo-user] Failed to emerge dev-perl/XML-Parser-2.460.0-r1

2021-12-12 Thread Valmor de Almeida
Hello,
On a recent portage update:

 * ERROR: dev-perl/XML-Parser-2.460.0-r1::gentoo failed (install phase):
 *   Something went badly wrong, can't find Expat.so. Please file a bug.
 *
There is a bug filed for this:

https://bugs.gentoo.org/827966

Just wondering whether anyone has seen this error and has a suggestion
for a quick work around.
Thanks,
--
Valmor