[gentoo-user] About python dependencies

2023-05-17 Thread Alexander Kurakin

Suppose, we have package A which depends on package B.
 
I see three statements in
https://projects.gentoo.org/python/guide/single.html#dependencies
and
https://projects.gentoo.org/python/guide/multi.html#dependencies :
 
1. If A is multi-impl, we should use `B[${PYTHON_USEDEP}]`.
 
2a. If A is single-impl and B is single-impl, we should use 
`B[${PYTHON_SINGLE_USEDEP}]`.
 
2b. If A is single-impl and B is multi-impl, we should use 
`$(python_gen_cond_dep 'B[${PYTHON_USEDEP}])`.
 
Are all statements correct? Thanks!
 
Sincerely,
Alexander Kurakin.

Re: [gentoo-user] Systemd query ...

2023-05-17 Thread Rich Freeman
On Wed, May 17, 2023 at 6:18 AM Jacques Montier  wrote:
>
> Well, well, Rich, you are completely right, you've found the key ! 👍
> I have that line in make.conf
> INSTALL_MASK="/lib/systemd/system /usr/lib/systemd/system"
> I now see where it comes from.
> On the same machine, I have another OpenRC Gentoo with systemd masqued.
> I just copîed the make.conf without uncommenting that line... How silly i am 
> !!!
> So I delete that bl...y line !
>

So, I realize this will be controversial, but this is why I don't make
super-minimalistic builds.  If I were trying to make a Gentoo build to
run on a C64 or something and every last inode counted, then sure.
However, things like text files simply don't do anything if nothing
reads them.  These days I also tend to be generous with building
kernel modules - it slows down kernel builds, but it has no impact on
running kernels if they aren't actually loaded.  I also use -mtune
these days and not -march.  Sure, you lose a little performance, but
if I lose a motherboard then I can just build a new PC, stick my hard
drive in it, and it will just work.

Now, if you're building disposable workers in some cluster that
processes lots of jobs, then sure that extra few percent performance
might be worth it, but then the individual hosts are all disposable
anyway.  Otherwise, I've found it is much better to optimize things
for MY time than CPU time.

-- 
Rich



Re: [gentoo-user] Systemd query ...

2023-05-17 Thread Jacques Montier
Le mer. 17 mai 2023 à 11:30, Rich Freeman  a écrit :

> On Wed, May 17, 2023 at 4:43 AM Jacques Montier 
> wrote:
> >
> > As I didn't mask anything, I don't understand why this file was not
> installed as it was declared in the apache ebuild...
>
> You don't have anything set in INSTALL_MASK?  Check "emerge --info
> www-servers/apache"
>
> You might want to check the build log for anything.  I don't think
> there is anything conditional about systemd_newunit, and it is
> supposed to generate a fatal error if it fails.
>
> --
> Rich
>
>
Well, well, Rich, you are completely right, you've found the key ! 👍
I have that line in make.conf
INSTALL_MASK="/lib/systemd/system /usr/lib/systemd/system"
I now see where it comes from.
On the same machine, I have another OpenRC Gentoo with systemd masqued.
I just copîed the make.conf without uncommenting that line... How silly i
am !!!
So I delete that bl...y line !

Thanks a lot,

Cheers

--
Jacques


Re: [gentoo-user] Systemd query ...

2023-05-17 Thread Rich Freeman
On Wed, May 17, 2023 at 4:43 AM Jacques Montier  wrote:
>
> As I didn't mask anything, I don't understand why this file was not installed 
> as it was declared in the apache ebuild...

You don't have anything set in INSTALL_MASK?  Check "emerge --info
www-servers/apache"

You might want to check the build log for anything.  I don't think
there is anything conditional about systemd_newunit, and it is
supposed to generate a fatal error if it fails.

-- 
Rich



Re: [gentoo-user] Systemd query ...

2023-05-17 Thread Jacques Montier
Hi all,

Thanks to Neil and Rich.

I Effectively found the file
www-servers/apache/files/apache2.4-hardened.service.
I renamed it as apache2.service in /lib/systemd/system.
Now it works !!! 👍

BUT,

As I didn't mask anything, I don't understand why this file was not
installed as it was declared in the apache ebuild...

 # Note: wait for mod_systemd to be included in some forthcoming release,
# Then apache2.4.service can be used and systemd support controlled
# through --enable-systemd
systemd_newunit "${FILESDIR}/apache2.4-hardened.service"
"apache2.service"
dotmpfiles "${FILESDIR}/apache.conf"
#insinto /etc/apache2/modules.d
#doins "${FILESDIR}/00_systemd.conf"

My use flags and modules :

Installed versions:  2.4.55-r1(2)(11:11:07 12/05/2023)(gdbm ssl suexec-caps
systemd -debug -doc -ldap -selinux -split-usr -static -suexec
-suexec-syslog -threads APACHE2_MODULES="actions alias auth_basic
authn_anon authn_core authn_dbm authn_file authz_core authz_dbm
authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid
dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter
headers http2 include info log_config logio mime mime_magic negotiation
rewrite setenvif socache_shmcb speling status unique_id unixd userdir
usertrack vhost_alias -access_compat -asis -auth_digest -auth_form
-authn_dbd -authn_socache -authz_dbd -brotli -cache_disk -cache_socache
-cern_meta -charset_lite -dbd -dumpio -ident -imagemap -lbmethod_bybusyness
-lbmethod_byrequests -lbmethod_bytraffic -lbmethod_heartbeat -log_forensic
-lua -macro -md -proxy -proxy_ajp -proxy_balancer -proxy_connect
-proxy_fcgi -proxy_ftp -proxy_hcheck -proxy_html -proxy_http -proxy_http2
-proxy_scgi -proxy_uwsgi -proxy_wstunnel -ratelimit -remoteip -reqtimeout
-session -session_cookie -session_crypto -session_dbd -slotmem_shm
-socache_memcache -substitute -version -watchdog -xml2enc"
APACHE2_MPMS="-event -prefork -worker" LUA_SINGLE_TARGET="lua5-1 -lua5-3
-lua5-4")


However, it works fine and thanks again to all of you !

Cheers,

--
Jacques




Le mar. 16 mai 2023 à 21:43, Rich Freeman  a écrit :

> On Tue, May 16, 2023 at 3:32 PM Jacques Montier 
> wrote:
> >
> > After install, apache2.service not found...
>
> Have you done something to mask service file installs/etc?
>
> The unit file is in the gentoo repo:
> www-servers/apache/files/apache2.4-hardened.service
>
> --
> Rich
>
>


Re: [gentoo-user] Mouse pain

2023-05-17 Thread Michael
On Wednesday, 17 May 2023 00:20:52 BST William Kenworthy wrote:
> On 16/5/23 23:52, Michael wrote:
> > On Tuesday, 16 May 2023 01:03:31 BST Wol wrote:
> >> On 15/05/2023 18:25, Michael wrote:
> >>> Check the attached screenshots, relevant to this laptop.  There's
> >>> pointer
> >>> speed and scrolling speed for the USB mouse I have attached.  I use
> >>> libinput for years now and as far as I recall I have not changed the
> >>> default settings. I think different mouse models would generate
> >>> different
> >>> inputs and would offer more settings.  Mine is a simple wired optical
> >>> mouse.
> >> 
> >> I'm not at that system at the moment but ... where on your screenshot is
> >> the double click speed? Where is the "configure middle button"? etc etc.
> >> 
> >> You've got the basics, just like me ...
> >> 
> >> Cheers,
> >> Wol
> > 
> > According to libinput this is what's available for my USB mouse:
> > 
> > # libinput list-devices
> > [snip ...]
> > 
> > Device:   PIXART USB OPTICAL MOUSE
> > Kernel:   /dev/input/event6
> > Group:5
> > Seat: seat0, default
> > Capabilities: pointer
> > Tap-to-click: n/a
> > Tap-and-drag: n/a
> > Tap drag lock:n/a
> > Left-handed:  disabled
> > Nat.scrolling:disabled
> > Middle emulation: disabled
> > Calibration:  n/a
> > Scroll methods:   button
> > Click methods:none
> > Disable-w-typing: n/a
> > Disable-w-trackpointing: n/a
> > Accel profiles:   flat *adaptive custom
> > Rotation: 0.0
> > 
> > It's a very basic three button mouse.  In Plasma-Wayland I get more
> > options
> > shown in the SystemSettings GUI, than when in Plasma on Xorg.  I don't
> > know if tweaking '/etc/X11/xorg.conf.d/40-libinput.conf' will allow you
> > to configure your mouse as you want to.  Settings configured in this file
> > which work in Xorg do not necessarily work with Wayland.
> 
> Here is mine:
> 
> Device:   Logitech M310
> Kernel:   /dev/input/event11
> Group:3
> Seat: seat0, default
> Capabilities: pointer
> Tap-to-click: n/a
> Tap-and-drag: n/a
> Tap drag lock:n/a
> Left-handed:  disabled
> Nat.scrolling:disabled
> Middle emulation: disabled
> Calibration:  n/a
> Scroll methods:   button
> Click methods:none
> Disable-w-typing: n/a
> Disable-w-trackpointing: n/a
> Accel profiles:   flat *adaptive
> Rotation: n/a
> 
> In XFCE4 most of the settings appear part of the desktop/window manager.
> 
> BillK

OK, as far as libinput is concerned any function with "n/a" next to it means 
it does not exist on this device and therefore it is not configurable.  

https://wayland.freedesktop.org/libinput/doc/1.11.3/tools.html

Now, if you/the manufacturer state there is a certain function available and 
it should be configurable, then it is a question why this is not exposed by 
the driver/firmware to the kernel and libinput.  Libinput developers have 
stated they will not put effort into features of less common input devices, so 
I suppose there's that as a potential explanation.

If a function and setting is shown in the GUI of XFCE4 but not in Plasma's 
SystemSettings, you could try comparing the GUI settings in Plasma-Wayland Vs 
Plasma-Xorg and add what is missing in '/etc/X11/xorg.conf.d/40-
libinput.conf'.  I don't know if settings configured in 40-libinput.conf will 
thereafter make them visible in the GUI, but either way it may provide a 
workaround.

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