diff options
Diffstat (limited to 'meta/recipes-core/util-linux/util-linux_2.39.3.bb')
-rw-r--r-- | meta/recipes-core/util-linux/util-linux_2.39.3.bb | 338 |
1 files changed, 338 insertions, 0 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 new file mode 100644 index 0000000000..8c08167401 --- /dev/null +++ b/meta/recipes-core/util-linux/util-linux_2.39.3.bb | |||
@@ -0,0 +1,338 @@ | |||
1 | require util-linux.inc | ||
2 | |||
3 | #gtk-doc is not enabled as it requires xmlto which requires util-linux | ||
4 | inherit autotools gettext manpages pkgconfig systemd update-alternatives python3-dir bash-completion ptest | ||
5 | DEPENDS = "libcap-ng ncurses virtual/crypt zlib util-linux-libuuid" | ||
6 | |||
7 | PACKAGES =+ "${PN}-swaponoff" | ||
8 | PACKAGES += "${@bb.utils.contains('PACKAGECONFIG', 'pylibmount', '${PN}-pylibmount', '', d)}" | ||
9 | |||
10 | python util_linux_binpackages () { | ||
11 | def pkg_hook(f, pkg, file_regex, output_pattern, modulename): | ||
12 | pn = d.getVar('PN') | ||
13 | d.appendVar('RRECOMMENDS:%s' % pn, ' %s' % pkg) | ||
14 | |||
15 | if d.getVar('ALTERNATIVE:' + pkg): | ||
16 | return | ||
17 | if d.getVarFlag('ALTERNATIVE_LINK_NAME', modulename): | ||
18 | d.setVar('ALTERNATIVE:' + pkg, modulename) | ||
19 | |||
20 | bindirs = sorted(list(set(d.expand("${base_sbindir} ${base_bindir} ${sbindir} ${bindir}").split()))) | ||
21 | for dir in bindirs: | ||
22 | do_split_packages(d, root=dir, | ||
23 | file_regex=r'(.*)', output_pattern='${PN}-%s', | ||
24 | description='${PN} %s', | ||
25 | hook=pkg_hook, extra_depends='') | ||
26 | |||
27 | # There are some symlinks for some binaries which we have ignored | ||
28 | # above. Add them to the package owning the binary they are | ||
29 | # pointing to | ||
30 | extras = {} | ||
31 | dvar = d.getVar('PKGD') | ||
32 | for root in bindirs: | ||
33 | for walkroot, dirs, files in os.walk(dvar + root): | ||
34 | for f in files: | ||
35 | file = os.path.join(walkroot, f) | ||
36 | if not os.path.islink(file): | ||
37 | continue | ||
38 | |||
39 | pkg = os.path.basename(os.readlink(file)) | ||
40 | extras.setdefault(pkg, []) | ||
41 | extras[pkg].append(file.replace(dvar, '', 1)) | ||
42 | |||
43 | pn = d.getVar('PN') | ||
44 | for pkg, links in extras.items(): | ||
45 | of = d.getVar('FILES:' + pn + '-' + pkg) | ||
46 | links = of + " " + " ".join(sorted(links)) | ||
47 | d.setVar('FILES:' + pn + '-' + pkg, links) | ||
48 | } | ||
49 | |||
50 | # we must execute before update-alternatives PACKAGE_PREPROCESS_FUNCS | ||
51 | PACKAGE_PREPROCESS_FUNCS =+ "util_linux_binpackages " | ||
52 | |||
53 | # skip libuuid as it will be packaged by the util-linux-libuuid recipe | ||
54 | python util_linux_libpackages() { | ||
55 | do_split_packages(d, root=d.getVar('UTIL_LINUX_LIBDIR'), file_regex=r'^lib(?!uuid)(.*)\.so\..*$', | ||
56 | output_pattern='${PN}-lib%s', | ||
57 | description='${PN} lib%s', | ||
58 | extra_depends='', prepend=True, allow_links=True) | ||
59 | } | ||
60 | |||
61 | PACKAGESPLITFUNCS =+ "util_linux_libpackages" | ||
62 | |||
63 | PACKAGES_DYNAMIC = "^${PN}-.*" | ||
64 | |||
65 | UTIL_LINUX_LIBDIR = "${libdir}" | ||
66 | UTIL_LINUX_LIBDIR:class-target = "${base_libdir}" | ||
67 | EXTRA_OECONF = "\ | ||
68 | --enable-libuuid --enable-libblkid \ | ||
69 | \ | ||
70 | --enable-fsck --enable-kill --enable-last --enable-mesg \ | ||
71 | --enable-mount --enable-partx --enable-rfkill \ | ||
72 | --enable-unshare --enable-write \ | ||
73 | \ | ||
74 | --disable-bfs --disable-login \ | ||
75 | --disable-makeinstall-chown --disable-minix --disable-newgrp \ | ||
76 | --disable-use-tty-group --disable-vipw --disable-raw \ | ||
77 | \ | ||
78 | --without-udev \ | ||
79 | \ | ||
80 | usrsbin_execdir='${sbindir}' \ | ||
81 | --libdir='${UTIL_LINUX_LIBDIR}' \ | ||
82 | " | ||
83 | |||
84 | EXTRA_OECONF:append:class-target = " --enable-setpriv" | ||
85 | EXTRA_OECONF:append:class-native = " --without-cap-ng --disable-setpriv" | ||
86 | EXTRA_OECONF:append:class-nativesdk = " --without-cap-ng --disable-setpriv" | ||
87 | EXTRA_OECONF:append = " --disable-hwclock-gplv3" | ||
88 | |||
89 | # enable pcre2 for native/nativesdk to match host distros | ||
90 | # this helps to keep same expectations when using the SDK or | ||
91 | # build host versions during development | ||
92 | # | ||
93 | PACKAGECONFIG ?= "pcre2" | ||
94 | PACKAGECONFIG:class-target ?= "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'chfn-chsh pam', '', d)}" | ||
95 | # inherit manpages requires this to be present, however util-linux does not have | ||
96 | # configuration options, and installs manpages always | ||
97 | PACKAGECONFIG[manpages] = "" | ||
98 | PACKAGECONFIG[pam] = "--enable-su --enable-runuser,--disable-su --disable-runuser, libpam," | ||
99 | # Respect the systemd feature for uuidd | ||
100 | PACKAGECONFIG[systemd] = "--with-systemd --with-systemdsystemunitdir=${systemd_system_unitdir}, --without-systemd --without-systemdsystemunitdir,systemd" | ||
101 | # Build python bindings for libmount | ||
102 | PACKAGECONFIG[pylibmount] = "--with-python=3 --enable-pylibmount,--without-python --disable-pylibmount,python3" | ||
103 | # Readline support | ||
104 | PACKAGECONFIG[readline] = "--with-readline,--without-readline,readline" | ||
105 | # PCRE support in hardlink | ||
106 | PACKAGECONFIG[pcre2] = ",,libpcre2" | ||
107 | PACKAGECONFIG[cryptsetup] = "--with-cryptsetup,--without-cryptsetup,cryptsetup" | ||
108 | PACKAGECONFIG[chfn-chsh] = "--enable-chfn-chsh,--disable-chfn-chsh," | ||
109 | PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux" | ||
110 | |||
111 | EXTRA_OEMAKE = "ARCH=${TARGET_ARCH} CPU= CPUOPT= 'OPT=${CFLAGS}'" | ||
112 | |||
113 | ALLOW_EMPTY:${PN} = "1" | ||
114 | FILES:${PN} = "" | ||
115 | FILES:${PN}-doc += "${datadir}/getopt/getopt-*.*" | ||
116 | FILES:${PN}-dev += "${PYTHON_SITEPACKAGES_DIR}/libmount/pylibmount.la" | ||
117 | FILES:${PN}-mount = "${sysconfdir}/default/mountall" | ||
118 | FILES:${PN}-runuser = "${sysconfdir}/pam.d/runuser*" | ||
119 | FILES:${PN}-su = "${sysconfdir}/pam.d/su-l" | ||
120 | CONFFILES:${PN}-su = "${sysconfdir}/pam.d/su-l" | ||
121 | FILES:${PN}-pylibmount = "${PYTHON_SITEPACKAGES_DIR}/libmount/pylibmount.so \ | ||
122 | ${PYTHON_SITEPACKAGES_DIR}/libmount/__init__.* \ | ||
123 | ${PYTHON_SITEPACKAGES_DIR}/libmount/__pycache__/*" | ||
124 | |||
125 | # Util-linux' blkid replaces the e2fsprogs one | ||
126 | RCONFLICTS:${PN}-blkid = "${MLPREFIX}e2fsprogs-blkid" | ||
127 | RREPLACES:${PN}-blkid = "${MLPREFIX}e2fsprogs-blkid" | ||
128 | |||
129 | RRECOMMENDS:${PN}:class-native = "" | ||
130 | RRECOMMENDS:${PN}:class-nativesdk = "" | ||
131 | RDEPENDS:${PN}:class-native = "" | ||
132 | RDEPENDS:${PN}:class-nativesdk = "" | ||
133 | |||
134 | RDEPENDS:${PN} += " util-linux-libuuid" | ||
135 | RDEPENDS:${PN}-dev += " util-linux-libuuid-dev" | ||
136 | |||
137 | RPROVIDES:${PN}-dev = "${PN}-libblkid-dev ${PN}-libmount-dev" | ||
138 | |||
139 | RDEPENDS:${PN}-bash-completion += "${PN}-lsblk" | ||
140 | RDEPENDS:${PN}-ptest += "bash bc btrfs-tools coreutils e2fsprogs findutils grep iproute2 kmod procps sed socat which xz" | ||
141 | RRECOMMENDS:${PN}-ptest += "kernel-module-scsi-debug kernel-module-sd-mod kernel-module-loop kernel-module-algif-hash" | ||
142 | RDEPENDS:${PN}-swaponoff = "${PN}-swapon ${PN}-swapoff" | ||
143 | ALLOW_EMPTY:${PN}-swaponoff = "1" | ||
144 | |||
145 | #SYSTEMD_PACKAGES = "${PN}-uuidd ${PN}-fstrim" | ||
146 | SYSTEMD_SERVICE:${PN}-uuidd = "uuidd.socket uuidd.service" | ||
147 | SYSTEMD_AUTO_ENABLE:${PN}-uuidd = "disable" | ||
148 | SYSTEMD_SERVICE:${PN}-fstrim = "fstrim.timer fstrim.service" | ||
149 | SYSTEMD_AUTO_ENABLE:${PN}-fstrim = "disable" | ||
150 | |||
151 | do_install () { | ||
152 | # with ccache the timestamps on compiled files may | ||
153 | # end up earlier than on their inputs, this allows | ||
154 | # for the resultant compilation in the install step. | ||
155 | oe_runmake 'CC=${CC}' 'LD=${LD}' \ | ||
156 | 'LDFLAGS=${LDFLAGS}' 'DESTDIR=${D}' install | ||
157 | |||
158 | mkdir -p ${D}${base_bindir} | ||
159 | |||
160 | sbinprogs="agetty ctrlaltdel cfdisk vipw vigr" | ||
161 | sbinprogs_a="pivot_root hwclock mkswap losetup swapon swapoff fdisk fsck blkid blockdev fstrim sulogin switch_root nologin" | ||
162 | binprogs_a="dmesg getopt kill more umount mount login su mountpoint" | ||
163 | |||
164 | if [ "${base_sbindir}" != "${sbindir}" ]; then | ||
165 | mkdir -p ${D}${base_sbindir} | ||
166 | for p in $sbinprogs $sbinprogs_a; do | ||
167 | if [ -f "${D}${sbindir}/$p" ]; then | ||
168 | mv "${D}${sbindir}/$p" "${D}${base_sbindir}/$p" | ||
169 | fi | ||
170 | done | ||
171 | fi | ||
172 | |||
173 | if [ "${base_bindir}" != "${bindir}" ]; then | ||
174 | mkdir -p ${D}${base_bindir} | ||
175 | for p in $binprogs_a; do | ||
176 | if [ -f "${D}${bindir}/$p" ]; then | ||
177 | mv "${D}${bindir}/$p" "${D}${base_bindir}/$p" | ||
178 | fi | ||
179 | done | ||
180 | fi | ||
181 | |||
182 | install -d ${D}${sysconfdir}/default/ | ||
183 | echo 'MOUNTALL="-t nonfs,nosmbfs,noncpfs"' > ${D}${sysconfdir}/default/mountall | ||
184 | |||
185 | rm -f ${D}${bindir}/chkdupexe | ||
186 | } | ||
187 | |||
188 | do_install:append:class-target () { | ||
189 | if [ "${@bb.utils.filter('PACKAGECONFIG', 'pam', d)}" ]; then | ||
190 | install -d ${D}${sysconfdir}/pam.d | ||
191 | install -m 0644 ${WORKDIR}/runuser.pamd ${D}${sysconfdir}/pam.d/runuser | ||
192 | install -m 0644 ${WORKDIR}/runuser-l.pamd ${D}${sysconfdir}/pam.d/runuser-l | ||
193 | # Required for "su -" aka "su --login" because | ||
194 | # otherwise it uses "other", which has "auth pam_deny.so" | ||
195 | # and thus prevents the operation. | ||
196 | ln -s su ${D}${sysconfdir}/pam.d/su-l | ||
197 | fi | ||
198 | } | ||
199 | # nologin causes a conflict with shadow-native | ||
200 | # kill causes a conflict with coreutils-native (if ${bindir}==${base_bindir}) | ||
201 | do_install:append:class-native () { | ||
202 | rm -f ${D}${base_sbindir}/nologin | ||
203 | rm -f ${D}${base_bindir}/kill | ||
204 | } | ||
205 | |||
206 | # dm-verity support introduces a circular build dependency, so util-linux-libuuid is split out for target builds | ||
207 | # Need to build libuuid for uuidgen, but then delete it and let the other recipe ship it | ||
208 | do_install:append () { | ||
209 | rm -rf ${D}${includedir}/uuid ${D}${libdir}/pkgconfig/uuid.pc ${D}${libdir}/libuuid* ${D}${base_libdir}/libuuid* | ||
210 | } | ||
211 | |||
212 | ALTERNATIVE_PRIORITY = "80" | ||
213 | |||
214 | ALTERNATIVE_LINK_NAME[blkid] = "${base_sbindir}/blkid" | ||
215 | ALTERNATIVE_LINK_NAME[blockdev] = "${base_sbindir}/blockdev" | ||
216 | ALTERNATIVE_LINK_NAME[cal] = "${bindir}/cal" | ||
217 | ALTERNATIVE_LINK_NAME[chfn] = "${bindir}/chfn" | ||
218 | ALTERNATIVE_LINK_NAME[chsh] = "${bindir}/chsh" | ||
219 | ALTERNATIVE_LINK_NAME[chrt] = "${bindir}/chrt" | ||
220 | ALTERNATIVE_LINK_NAME[dmesg] = "${base_bindir}/dmesg" | ||
221 | ALTERNATIVE_LINK_NAME[eject] = "${bindir}/eject" | ||
222 | ALTERNATIVE_LINK_NAME[fallocate] = "${bindir}/fallocate" | ||
223 | ALTERNATIVE_LINK_NAME[fdisk] = "${base_sbindir}/fdisk" | ||
224 | ALTERNATIVE_LINK_NAME[findfs] = "${sbindir}/findfs" | ||
225 | ALTERNATIVE_LINK_NAME[flock] = "${bindir}/flock" | ||
226 | ALTERNATIVE_LINK_NAME[fsck] = "${base_sbindir}/fsck" | ||
227 | ALTERNATIVE_LINK_NAME[fsfreeze] = "${sbindir}/fsfreeze" | ||
228 | ALTERNATIVE_LINK_NAME[fstrim] = "${base_sbindir}/fstrim" | ||
229 | ALTERNATIVE_LINK_NAME[getopt] = "${base_bindir}/getopt" | ||
230 | ALTERNATIVE:${PN}-agetty = "getty" | ||
231 | ALTERNATIVE_LINK_NAME[getty] = "${base_sbindir}/getty" | ||
232 | ALTERNATIVE_TARGET[getty] = "${base_sbindir}/agetty" | ||
233 | ALTERNATIVE_LINK_NAME[hexdump] = "${bindir}/hexdump" | ||
234 | ALTERNATIVE_LINK_NAME[hwclock] = "${base_sbindir}/hwclock" | ||
235 | ALTERNATIVE_LINK_NAME[ionice] = "${bindir}/ionice" | ||
236 | ALTERNATIVE_LINK_NAME[ipcrm] = "${bindir}/ipcrm" | ||
237 | ALTERNATIVE_LINK_NAME[ipcs] = "${bindir}/ipcs" | ||
238 | ALTERNATIVE_LINK_NAME[kill] = "${base_bindir}/kill" | ||
239 | ALTERNATIVE:${PN}-last = "last lastb" | ||
240 | ALTERNATIVE_LINK_NAME[last] = "${bindir}/last" | ||
241 | ALTERNATIVE_LINK_NAME[lastb] = "${bindir}/lastb" | ||
242 | ALTERNATIVE_LINK_NAME[logger] = "${bindir}/logger" | ||
243 | ALTERNATIVE_LINK_NAME[losetup] = "${base_sbindir}/losetup" | ||
244 | ALTERNATIVE_LINK_NAME[mesg] = "${bindir}/mesg" | ||
245 | ALTERNATIVE_LINK_NAME[mkswap] = "${base_sbindir}/mkswap" | ||
246 | ALTERNATIVE_LINK_NAME[mcookie] = "${bindir}/mcookie" | ||
247 | ALTERNATIVE_LINK_NAME[more] = "${base_bindir}/more" | ||
248 | ALTERNATIVE_LINK_NAME[mount] = "${base_bindir}/mount" | ||
249 | ALTERNATIVE_LINK_NAME[mountpoint] = "${base_bindir}/mountpoint" | ||
250 | ALTERNATIVE_LINK_NAME[nologin] = "${base_sbindir}/nologin" | ||
251 | ALTERNATIVE_LINK_NAME[nsenter] = "${bindir}/nsenter" | ||
252 | ALTERNATIVE_LINK_NAME[pivot_root] = "${base_sbindir}/pivot_root" | ||
253 | ALTERNATIVE_LINK_NAME[prlimit] = "${bindir}/prlimit" | ||
254 | ALTERNATIVE_LINK_NAME[readprofile] = "${sbindir}/readprofile" | ||
255 | ALTERNATIVE_LINK_NAME[renice] = "${bindir}/renice" | ||
256 | ALTERNATIVE_LINK_NAME[rev] = "${bindir}/rev" | ||
257 | ALTERNATIVE_LINK_NAME[rfkill] = "${sbindir}/rfkill" | ||
258 | ALTERNATIVE_LINK_NAME[rtcwake] = "${sbindir}/rtcwake" | ||
259 | ALTERNATIVE_LINK_NAME[setpriv] = "${bindir}/setpriv" | ||
260 | ALTERNATIVE_LINK_NAME[setsid] = "${bindir}/setsid" | ||
261 | ALTERNATIVE_LINK_NAME[su] = "${base_bindir}/su" | ||
262 | ALTERNATIVE_LINK_NAME[sulogin] = "${base_sbindir}/sulogin" | ||
263 | ALTERNATIVE_LINK_NAME[swapoff] = "${base_sbindir}/swapoff" | ||
264 | ALTERNATIVE_LINK_NAME[swapon] = "${base_sbindir}/swapon" | ||
265 | ALTERNATIVE_LINK_NAME[switch_root] = "${base_sbindir}/switch_root" | ||
266 | ALTERNATIVE_LINK_NAME[taskset] = "${bindir}/taskset" | ||
267 | ALTERNATIVE_LINK_NAME[umount] = "${base_bindir}/umount" | ||
268 | ALTERNATIVE_LINK_NAME[unshare] = "${bindir}/unshare" | ||
269 | ALTERNATIVE_LINK_NAME[utmpdump] = "${bindir}/utmpdump" | ||
270 | ALTERNATIVE_LINK_NAME[uuidgen] = "${bindir}/uuidgen" | ||
271 | ALTERNATIVE_LINK_NAME[wall] = "${bindir}/wall" | ||
272 | |||
273 | ALTERNATIVE:${PN}-doc = "\ | ||
274 | blkid.8 eject.1 findfs.8 fsck.8 kill.1 last.1 lastb.1 libblkid.3 logger.1 mesg.1 \ | ||
275 | mountpoint.1 nologin.8 rfkill.8 sulogin.8 utmpdump.1 uuid.3 wall.1\ | ||
276 | " | ||
277 | ALTERNATIVE:${PN}-doc += "${@bb.utils.contains('PACKAGECONFIG', 'pam', 'su.1', '', d)}" | ||
278 | |||
279 | ALTERNATIVE_LINK_NAME[blkid.8] = "${mandir}/man8/blkid.8" | ||
280 | ALTERNATIVE_LINK_NAME[eject.1] = "${mandir}/man1/eject.1" | ||
281 | ALTERNATIVE_LINK_NAME[findfs.8] = "${mandir}/man8/findfs.8" | ||
282 | ALTERNATIVE_LINK_NAME[fsck.8] = "${mandir}/man8/fsck.8" | ||
283 | ALTERNATIVE_LINK_NAME[kill.1] = "${mandir}/man1/kill.1" | ||
284 | ALTERNATIVE_LINK_NAME[last.1] = "${mandir}/man1/last.1" | ||
285 | ALTERNATIVE_LINK_NAME[lastb.1] = "${mandir}/man1/lastb.1" | ||
286 | ALTERNATIVE_LINK_NAME[libblkid.3] = "${mandir}/man3/libblkid.3" | ||
287 | ALTERNATIVE_LINK_NAME[logger.1] = "${mandir}/man1/logger.1" | ||
288 | ALTERNATIVE_LINK_NAME[mesg.1] = "${mandir}/man1/mesg.1" | ||
289 | ALTERNATIVE_LINK_NAME[mountpoint.1] = "${mandir}/man1/mountpoint.1" | ||
290 | ALTERNATIVE_LINK_NAME[nologin.8] = "${mandir}/man8/nologin.8" | ||
291 | ALTERNATIVE_LINK_NAME[rfkill.8] = "${mandir}/man8/rfkill.8" | ||
292 | ALTERNATIVE_LINK_NAME[setpriv.1] = "${mandir}/man1/setpriv.1" | ||
293 | ALTERNATIVE_LINK_NAME[su.1] = "${mandir}/man1/su.1" | ||
294 | ALTERNATIVE_LINK_NAME[sulogin.8] = "${mandir}/man8/sulogin.8" | ||
295 | ALTERNATIVE_LINK_NAME[utmpdump.1] = "${mandir}/man1/utmpdump.1" | ||
296 | ALTERNATIVE_LINK_NAME[uuid.3] = "${mandir}/man3/uuid.3" | ||
297 | ALTERNATIVE_LINK_NAME[wall.1] = "${mandir}/man1/wall.1" | ||
298 | |||
299 | BBCLASSEXTEND = "native nativesdk" | ||
300 | |||
301 | PTEST_BINDIR = "1" | ||
302 | do_compile_ptest() { | ||
303 | oe_runmake buildtest-TESTS | ||
304 | } | ||
305 | |||
306 | do_install_ptest() { | ||
307 | mkdir -p ${D}${PTEST_PATH}/tests/ts | ||
308 | find . -name 'test*' -maxdepth 1 -type f -perm -111 -exec cp {} ${D}${PTEST_PATH} \; | ||
309 | find ./.libs -name 'sample*' -maxdepth 1 -type f -perm -111 -exec cp {} ${D}${PTEST_PATH} \; | ||
310 | find ./.libs -name 'test*' -maxdepth 1 -type f -perm -111 -exec cp {} ${D}${PTEST_PATH} \; | ||
311 | |||
312 | cp ${S}/tests/*.sh ${D}${PTEST_PATH}/tests/ | ||
313 | cp -pR ${S}/tests/expected ${D}${PTEST_PATH}/tests/expected | ||
314 | cp -pR ${S}/tests/ts ${D}${PTEST_PATH}/tests/ | ||
315 | cp ${WORKDIR}/build/config.h ${D}${PTEST_PATH} | ||
316 | |||
317 | sed -i 's|@base_sbindir@|${base_sbindir}|g' ${D}${PTEST_PATH}/run-ptest | ||
318 | |||
319 | # chfn needs PAM | ||
320 | if ! ${@bb.utils.contains('PACKAGECONFIG', 'pam', 'true', 'false', d)}; then | ||
321 | rm -rf ${D}${PTEST_PATH}/tests/ts/chfn | ||
322 | fi | ||
323 | # remove raid tests, known failures and avoid dependency on mdadm therefore | ||
324 | # See https://github.com/util-linux/util-linux/commit/7519c3edab120b14623931d5ddb16fdc6e7cad5d | ||
325 | rm -rf ${D}${PTEST_PATH}/tests/ts/blkid/md-raid0-whole | ||
326 | rm -rf ${D}${PTEST_PATH}/tests/ts/blkid/md-raid1-part | ||
327 | rm -rf ${D}${PTEST_PATH}/tests/ts/blkid/md-raid1-whole | ||
328 | rm -rf ${D}${PTEST_PATH}/tests/ts/fdisk/align-512-4K-md | ||
329 | } | ||
330 | |||
331 | # Delete tests not working on musl | ||
332 | do_install_ptest:append:libc-musl() { | ||
333 | for t in tests/ts/col/multibyte \ | ||
334 | tests/ts/lib/timeutils \ | ||
335 | tests/ts/dmesg/limit; do | ||
336 | rm -rf ${D}${PTEST_PATH}/$t | ||
337 | done | ||
338 | } | ||