diff options
| -rw-r--r-- | meta/recipes-core/util-linux/util-linux_2.40.1.bb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/meta/recipes-core/util-linux/util-linux_2.40.1.bb b/meta/recipes-core/util-linux/util-linux_2.40.1.bb index a1aab94055..a8e346539a 100644 --- a/meta/recipes-core/util-linux/util-linux_2.40.1.bb +++ b/meta/recipes-core/util-linux/util-linux_2.40.1.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 lastlog2', '', d)}" | 93 | PACKAGECONFIG:class-target ?= "\ |
| 94 | libmount-mountfd-support \ | ||
| 95 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'chfn-chsh pam lastlog2', '', 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] = "" |
| @@ -107,6 +110,13 @@ 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" |
| 109 | PACKAGECONFIG[lastlog2] = "--enable-liblastlog2,--disable-liblastlog2,sqlite3" | 112 | PACKAGECONFIG[lastlog2] = "--enable-liblastlog2,--disable-liblastlog2,sqlite3" |
| 113 | # Using the new file descriptors based mount kernel API can cause rootfs remount failure with some older kernels. | ||
| 114 | # Of currently supported LTS kernels, the old mount API should be used with: | ||
| 115 | # - versions prior to 6.6.18 in the 6.6.y series. | ||
| 116 | # - versions prior to 6.1.79 in the 6.1.y series. | ||
| 117 | # - versions till at least 5.15.164 in the 5.15.y series. | ||
| 118 | # - with 5.10.y, 5.4.y and 4.19.y series kernels, libmount seemed to use the old API regardless of this option. | ||
| 119 | PACKAGECONFIG[libmount-mountfd-support] = "--enable-libmount-mountfd-support,--disable-libmount-mountfd-support" | ||
| 110 | 120 | ||
| 111 | EXTRA_OEMAKE = "ARCH=${TARGET_ARCH} CPU= CPUOPT= 'OPT=${CFLAGS}'" | 121 | EXTRA_OEMAKE = "ARCH=${TARGET_ARCH} CPU= CPUOPT= 'OPT=${CFLAGS}'" |
| 112 | 122 | ||
