• Re: [gentoo-dev] [PATCH v3] linux-mod-r1.eclass: Fix building with diff

    From Ionen Wolkens@21:1/5 to James Le Cuirot on Sun May 25 02:50:01 2025
    On Sat, May 24, 2025 at 10:58:41PM +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 when necessary.

    Doing this in pkg_setup is not ideal, but some ebuilds have their own src_configure and src_compile functions. It will not trigger in the vast majority of cases, and it is not done when installing binary packages.

    Signed-off-by: James Le Cuirot <chewi@gentoo.org>
    ---
    eclass/linux-mod-r1.eclass | 32 ++++++++++++++++++++++++++++++++
    1 file changed, 32 insertions(+)

    LGTM

    Haven't really looked at linux-info changes closely, but did give the
    patchset a test run with non-cross incl. KBUILD_OUTPUT=/out-of-source
    and does not seem to regress anything for me. So ok for me there too.
    --
    ionen

    -----BEGIN PGP SIGNATURE-----

    iQEzBAABCAAdFiEEx3SLh1HBoPy/yLVYskQGsLCsQzQFAmgyZuUACgkQskQGsLCs QzQsvAf9Et+CH5tIoF4HerljKsHa8zt+hGnduMgIxXZRej3YYuaEJFKGFHS/tXdY rNGRqEiYvmRmSDXM/SzSOweJi0cqifKrNRniVOVCnF0w97W3aEvMgw34JoqlVFkY vFlJl1gYGIwmhPfqMzWu8LfFMTHH7YROUDHPnRoazQXjDGuWql0arzDy8ZLwvMiM awmDvEYIj9PAkbf9pSiP0mTrrnMFaPvS51FipVAqiVbpZl6KkxpEc86EI5qIwSJa gDrbIc8tP/bsJ7+B4p2gMdSr5gyi+lcLTsMdYs9Dni29GkBaKnTlig10ivIt8Yb6 mMYTyulAFzejGg9WqW18qlmxbU/xog==
    =Ae7l
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)