• [gentoo-dev] moving kernel config checks forward: potential config chec

    From Robin H. Johnson@21:1/5 to All on Mon Sep 27 21:20:01 2021
    I wanted to break the prior thread to discuss the root issue.

    We have some set of packages (A) which collectively depend on one or
    more kernel options being set in specific ways, and the options need to
    REMAIN set if you want the packages to continue work.

    There are also a subset of packages (B), usually kernel modules themselves
    that will outright fail to compile if specific options are/are not set.

    Can we consider moving the checks for set A somewhere else, such that we
    don't check the kernel config during package compile & install time, but
    only check it later? This also meaningfully resolves that cases where
    the system that has package building isn't where the packages are being
    used.

    This secondary tooling COULD be called from pkg_setup much less, and
    could do a much more efficient job of checking the state of multiple
    flags. At boot, it needs to load the present config into some easy to
    check for, and then it can be verified against in a lightweight manner.

    Also a lot easier for users to say "i accept the responsbility of my
    stuff breaking", AND for users to say "hey, why did package X broken
    when I rebooted into new kernel" (because some config option changed).

    It would need to keep long-term state about which packages want specific options
    set/unset/modular, as well as short-term state about the config from
    each boot.

    --
    Robin Hugh Johnson
    Gentoo Linux: Dev, Infra Lead, Foundation Treasurer
    E-Mail : robbat2@gentoo.org
    GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85
    GnuPG FP : 7D0B3CEB E9B85B1F 825BCECF EE05E6F6 A48F6136

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v2
    Comment: Robbat2 @ Orbis-Terrarum Networks - The text below is a digital signature. If it doesn't make any sense to you, ignore it.

    iQKTBAABCgB9FiEEveu2pS8Vb98xaNkRGTlfI8WIJsQFAmFSGABfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEJE RUJCNkE1MkYxNTZGREYzMTY4RDkxMTE5Mzk1RjIzQzU4ODI2QzQACgkQGTlfI8WI JsT98w/+Pw56JsC+Mpvptl54KUWNZKkbUt1/5Ibdqdj8sXULZKHx9+71DMfum3Cg KqO2/Wyc+AsYZgJ4qlZp3hd9w3oot7dyOzdNi4w+TodcRbZKnWKg7wmc09z5ACB0 F6FI5CX7V1yjJl9GrcdZgolpj7RZrlx4hhpBXry4sdl01nXvNDDtAt+zqIenUntJ 8dTXJ8BLOs5kHcQt8hmIriOrC3L+W5T91XyP2ZqE63F6wGbN19sJ2KFp3j6sIMir odjVwmsZf/8CJyeEj6r6umumUzz4XJn1HJYoCaNukeYtvywOBaBjvzAoms4Zjnhd iXOU8T+AkS6zinMn9WhiCaPM33oVDy54b/FYjbOvZsDzwmHH7kut137GwvRj13ig cCa8znyIQ8bB7+PS5+Ht