Re: [gentoo-dev] strange problems with some gentoo sites as seen from Russia

2025-05-23 Thread Andrey Grozin
A rare example of good news: I contacted my ISP, they contacted me back many times for additional information and interacted with The Main Internet-Blocking Agency of Russia (called Roskomnadzor), and bingo: the problem is solved. All 3 problematic sites: https://www.gentoo.org/ https://devma

[gentoo-dev] Gentoo on WSL (feedback and testers wanted!)

2025-05-23 Thread Matt Jolly
Hi everyone, Over the last little while I've been inspired to improve the Gentoo WSL experience. My end goal here is to get a Gentoo image distributed via the Windows Store which can be installed with minimal user interaction. So far it's looking pretty successful: using the stage3-openrc-desk

[gentoo-dev] [PATCH 0/1] add net-mail/mailbase to @system

2025-05-23 Thread kangie
From: Matt Jolly Ran into this while debugging a WSL user creation script. It seems to have been an issue for quite a while, doesn't really cost us anything to fix, and is probably better at meeting user expectations than the current behaviour. Matt Jolly (1): profiles/default/linux: add net-m

[gentoo-dev] [PATCH 1/1] profiles/default/linux: add net-mail/mailbase to @system

2025-05-23 Thread kangie
From: Matt Jolly The Gentoo Handbook has, for a long time, provided instructions to create new users with the -m flag. However, this now results in the error "Creating mailbox file: No such file or directory" because `/var/spool/mail` is no longer included in stage3 tarballs. It can also be assu

Re: [gentoo-dev] [PATCH v2] linux-mod-r1.eclass: Fix building with different arch than KV_OUT_DIR

2025-05-23 Thread Ionen Wolkens
On Fri, May 23, 2025 at 06:40:38PM +0100, James Le Cuirot wrote: > The kernel we're building against may have had its tools (e.g. modpost) > built for the target arch or even some other arch than the we're > building with now. To work around this, rebuild those tools with make > modules_prepare whe

[gentoo-dev] [PATCH v2] linux-mod-r1.eclass: Fix building with different arch than KV_OUT_DIR

2025-05-23 Thread James Le Cuirot
The kernel we're building against may have had its tools (e.g. modpost) built for the target arch or even some other arch than the we're building with now. To work around this, rebuild those tools with make modules_prepare when necessary. Doing this in pkg_setup is not ideal, but some ebuilds have

[gentoo-dev] [PATCH 6/6] linux-info.eclass: Rework get_version and fix output directory detection

2025-05-23 Thread James Le Cuirot
get_version used to detect the output directory under /lib/modules if KBUILD_OUTPUT wasn't explicitly set, but this broke when bug #662772 was fixed. The code is still there but effectively does nothing as OUTPUT_DIR is already used to set KV_OUT_DIR above. Bug: https://bugs.gentoo.org/662772 Sign

[gentoo-dev] [PATCH 5/6] linux-info.eclass: Don't try to read KBUILD_OUTPUT from the Makefile

2025-05-23 Thread James Le Cuirot
This code originates from 21 years ago, but I don't think it ever made sense. KBUILD_OUTPUT was never written anywhere until last year. Now it is written to the Makefile in the output directory, which is what we're trying to locate in the first place! Signed-off-by: James Le Cuirot --- eclass/li

[gentoo-dev] [PATCH 4/6] linux-info.eclass: Pass an empty KBUILD_OUTPUT to make in getfilevar

2025-05-23 Thread James Le Cuirot
If KBUILD_OUTPUT is set but doesn't exist, the Makefile will try to create it, which will probably fail due to permissions issues. We don't actually want to write anything here, so there is no need to set it. Signed-off-by: James Le Cuirot --- eclass/linux-info.eclass | 3 ++- 1 file changed, 2

[gentoo-dev] [PATCH 3/6] linux-info.eclass: Set the correct ARCH for make in getfilevar

2025-05-23 Thread James Le Cuirot
Currently, it unsets ARCH, so it uses the build architecture. This is fine if you have the full kernel sources, which is usually the case. However, an install-extmod-build script was added to Linux fairly recently that installs just the files needed to build out-of-tree modules in a distro-neutral

[gentoo-dev] [PATCH 2/6] linux-info.eclass: Drop unused myARCH variable in getfilevar_noexec

2025-05-23 Thread James Le Cuirot
This was copied from getfilevar but never used. Signed-off-by: James Le Cuirot --- eclass/linux-info.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass index 0f61381501442..c7950b4e22920 100644 --- a/eclass/linux-inf

[gentoo-dev] [PATCH 1/6] linux-mod-r1.eclass: Fix building with different arch than KV_OUT_DIR

2025-05-23 Thread James Le Cuirot
The kernel we're building against may have had its tools (e.g. modpost) built for the target arch or even some other arch than the we're building with now. To work around this, rebuild those tools with make modules_prepare when necessary. Doing this in pkg_setup is not ideal, but some ebuilds have