diff options
| -rw-r--r-- | meta/recipes-core/util-linux/util-linux_2.39.3.bb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/meta/recipes-core/util-linux/util-linux_2.39.3.bb b/meta/recipes-core/util-linux/util-linux_2.39.3.bb index 83b3f4e05b..79ddf2d115 100644 --- a/meta/recipes-core/util-linux/util-linux_2.39.3.bb +++ b/meta/recipes-core/util-linux/util-linux_2.39.3.bb | |||
| @@ -90,7 +90,10 @@ EXTRA_OECONF:append = " --disable-hwclock-gplv3" | |||
| 90 | # build host versions during development | 90 | # build host versions during development |
| 91 | # | 91 | # |
| 92 | PACKAGECONFIG ?= "pcre2" | 92 | PACKAGECONFIG ?= "pcre2" |
| 93 | PACKAGECONFIG:class-target ?= "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'chfn-chsh pam', '', d)}" | 93 | PACKAGECONFIG:class-target ?= "\ |
| 94 | libmount-mountfd-support \ | ||
| 95 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'chfn-chsh pam', '', d)} \ | ||
| 96 | " | ||
| 94 | # inherit manpages requires this to be present, however util-linux does not have | 97 | # inherit manpages requires this to be present, however util-linux does not have |
| 95 | # configuration options, and installs manpages always | 98 | # configuration options, and installs manpages always |
| 96 | PACKAGECONFIG[manpages] = "" | 99 | PACKAGECONFIG[manpages] = "" |
| @@ -106,6 +109,13 @@ PACKAGECONFIG[pcre2] = ",,libpcre2" | |||
| 106 | PACKAGECONFIG[cryptsetup] = "--with-cryptsetup,--without-cryptsetup,cryptsetup" | 109 | PACKAGECONFIG[cryptsetup] = "--with-cryptsetup,--without-cryptsetup,cryptsetup" |
| 107 | PACKAGECONFIG[chfn-chsh] = "--enable-chfn-chsh,--disable-chfn-chsh," | 110 | PACKAGECONFIG[chfn-chsh] = "--enable-chfn-chsh,--disable-chfn-chsh," |
| 108 | PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux" | 111 | PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux" |
| 112 | # Using the new file descriptors based mount kernel API can cause rootfs remount failure with some older kernels. | ||
| 113 | # Of currently supported LTS kernels, the old mount API should be used with: | ||
| 114 | # - versions prior to 6.6.18 in the 6.6.y series. | ||
| 115 | # - versions prior to 6.1.79 in the 6.1.y series. | ||
| 116 | # - versions till at least 5.15.164 in the 5.15.y series. | ||
| 117 | # - with 5.10.y, 5.4.y and 4.19.y series kernels, libmount seemed to use the old API regardless of this option. | ||
| 118 | PACKAGECONFIG[libmount-mountfd-support] = "--enable-libmount-mountfd-support,--disable-libmount-mountfd-support" | ||
| 109 | 119 | ||
| 110 | EXTRA_OEMAKE = "ARCH=${TARGET_ARCH} CPU= CPUOPT= 'OPT=${CFLAGS}'" | 120 | EXTRA_OEMAKE = "ARCH=${TARGET_ARCH} CPU= CPUOPT= 'OPT=${CFLAGS}'" |
| 111 | 121 | ||
