diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2023-07-31 09:59:03 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-08-01 09:51:20 +0100 |
commit | 65bc175907b972c8897242e9c603eeaeb8247a26 (patch) | |
tree | b333ea218d527b7a6f0fb0913e4d376cb570d7c1 /meta/recipes-core/util-linux/util-linux_2.39.1.bb | |
parent | a193e855e0eecb27e7cb18d95107cd045c69d2a3 (diff) | |
download | poky-65bc175907b972c8897242e9c603eeaeb8247a26.tar.gz |
util-linux: upgrade 2.38.1 -> 2.39.1
License-update: added bsd-2-clause
https://github.com/util-linux/util-linux/commit/faeb1b64b36ededd1a0b62555cad65f002d47ac6
(From OE-Core rev: 30b6031be6c9b7870f618391dd492834615b0aed)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/util-linux/util-linux_2.39.1.bb')
-rw-r--r-- | meta/recipes-core/util-linux/util-linux_2.39.1.bb | 324 |
1 files changed, 324 insertions, 0 deletions
diff --git a/meta/recipes-core/util-linux/util-linux_2.39.1.bb b/meta/recipes-core/util-linux/util-linux_2.39.1.bb new file mode 100644 index 0000000000..c81405533c --- /dev/null +++ b/meta/recipes-core/util-linux/util-linux_2.39.1.bb | |||
@@ -0,0 +1,324 @@ | |||
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 | CACHED_CONFIGUREVARS += "scanf_cv_alloc_modifier=ms" | ||
66 | UTIL_LINUX_LIBDIR = "${libdir}" | ||
67 | UTIL_LINUX_LIBDIR:class-target = "${base_libdir}" | ||
68 | EXTRA_OECONF = "\ | ||
69 | --enable-libuuid --enable-libblkid \ | ||
70 | \ | ||
71 | --enable-fsck --enable-kill --enable-last --enable-mesg \ | ||
72 | --enable-mount --enable-partx --enable-rfkill \ | ||
73 | --enable-unshare --enable-write \ | ||
74 | \ | ||
75 | --disable-bfs --disable-login \ | ||
76 | --disable-makeinstall-chown --disable-minix --disable-newgrp \ | ||
77 | --disable-use-tty-group --disable-vipw --disable-raw \ | ||
78 | \ | ||
79 | --without-udev \ | ||
80 | \ | ||
81 | usrsbin_execdir='${sbindir}' \ | ||
82 | --libdir='${UTIL_LINUX_LIBDIR}' \ | ||
83 | " | ||
84 | |||
85 | EXTRA_OECONF:append:class-target = " --enable-setpriv" | ||
86 | EXTRA_OECONF:append:class-native = " --without-cap-ng --disable-setpriv" | ||
87 | EXTRA_OECONF:append:class-nativesdk = " --without-cap-ng --disable-setpriv" | ||
88 | EXTRA_OECONF:append = " --disable-hwclock-gplv3" | ||
89 | |||
90 | # enable pcre2 for native/nativesdk to match host distros | ||
91 | # this helps to keep same expectations when using the SDK or | ||
92 | # build host versions during development | ||
93 | # | ||
94 | PACKAGECONFIG ?= "pcre2" | ||
95 | PACKAGECONFIG:class-target ?= "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'chfn-chsh pam', '', d)}" | ||
96 | # inherit manpages requires this to be present, however util-linux does not have | ||
97 | # configuration options, and installs manpages always | ||
98 | PACKAGECONFIG[manpages] = "" | ||
99 | PACKAGECONFIG[pam] = "--enable-su --enable-runuser,--disable-su --disable-runuser, libpam," | ||
100 | # Respect the systemd feature for uuidd | ||
101 | PACKAGECONFIG[systemd] = "--with-systemd --with-systemdsystemunitdir=${systemd_system_unitdir}, --without-systemd --without-systemdsystemunitdir,systemd" | ||
102 | # Build python bindings for libmount | ||
103 | PACKAGECONFIG[pylibmount] = "--with-python=3 --enable-pylibmount,--without-python --disable-pylibmount,python3" | ||
104 | # Readline support | ||
105 | PACKAGECONFIG[readline] = "--with-readline,--without-readline,readline" | ||
106 | # PCRE support in hardlink | ||
107 | PACKAGECONFIG[pcre2] = ",,libpcre2" | ||
108 | PACKAGECONFIG[cryptsetup] = "--with-cryptsetup,--without-cryptsetup,cryptsetup" | ||
109 | PACKAGECONFIG[chfn-chsh] = "--enable-chfn-chsh,--disable-chfn-chsh," | ||
110 | PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux" | ||
111 | |||
112 | EXTRA_OEMAKE = "ARCH=${TARGET_ARCH} CPU= CPUOPT= 'OPT=${CFLAGS}'" | ||
113 | |||
114 | ALLOW_EMPTY:${PN} = "1" | ||
115 | FILES:${PN} = "" | ||
116 | FILES:${PN}-doc += "${datadir}/getopt/getopt-*.*" | ||
117 | FILES:${PN}-dev += "${PYTHON_SITEPACKAGES_DIR}/libmount/pylibmount.la" | ||
118 | FILES:${PN}-mount = "${sysconfdir}/default/mountall" | ||
119 | FILES:${PN}-runuser = "${sysconfdir}/pam.d/runuser*" | ||
120 | FILES:${PN}-su = "${sysconfdir}/pam.d/su-l" | ||
121 | CONFFILES:${PN}-su = "${sysconfdir}/pam.d/su-l" | ||
122 | FILES:${PN}-pylibmount = "${PYTHON_SITEPACKAGES_DIR}/libmount/pylibmount.so \ | ||
123 | ${PYTHON_SITEPACKAGES_DIR}/libmount/__init__.* \ | ||
124 | ${PYTHON_SITEPACKAGES_DIR}/libmount/__pycache__/*" | ||
125 | |||
126 | # Util-linux' blkid replaces the e2fsprogs one | ||
127 | RCONFLICTS:${PN}-blkid = "${MLPREFIX}e2fsprogs-blkid" | ||
128 | RREPLACES:${PN}-blkid = "${MLPREFIX}e2fsprogs-blkid" | ||
129 | |||
130 | RRECOMMENDS:${PN}:class-native = "" | ||
131 | RRECOMMENDS:${PN}:class-nativesdk = "" | ||
132 | RDEPENDS:${PN}:class-native = "" | ||
133 | RDEPENDS:${PN}:class-nativesdk = "" | ||
134 | |||
135 | RDEPENDS:${PN} += " util-linux-libuuid" | ||
136 | RDEPENDS:${PN}-dev += " util-linux-libuuid-dev" | ||
137 | |||
138 | RPROVIDES:${PN}-dev = "${PN}-libblkid-dev ${PN}-libmount-dev" | ||
139 | |||
140 | RDEPENDS:${PN}-bash-completion += "${PN}-lsblk" | ||
141 | RDEPENDS:${PN}-ptest += "bash bc btrfs-tools coreutils e2fsprogs findutils grep iproute2 kmod mdadm procps sed socat which xz" | ||
142 | RRECOMMENDS:${PN}-ptest += "kernel-module-scsi-debug kernel-module-sd-mod kernel-module-loop kernel-module-algif-hash" | ||
143 | RDEPENDS:${PN}-swaponoff = "${PN}-swapon ${PN}-swapoff" | ||
144 | ALLOW_EMPTY:${PN}-swaponoff = "1" | ||
145 | |||
146 | #SYSTEMD_PACKAGES = "${PN}-uuidd ${PN}-fstrim" | ||
147 | SYSTEMD_SERVICE:${PN}-uuidd = "uuidd.socket uuidd.service" | ||
148 | SYSTEMD_AUTO_ENABLE:${PN}-uuidd = "disable" | ||
149 | SYSTEMD_SERVICE:${PN}-fstrim = "fstrim.timer fstrim.service" | ||
150 | SYSTEMD_AUTO_ENABLE:${PN}-fstrim = "disable" | ||
151 | |||
152 | do_install () { | ||
153 | # with ccache the timestamps on compiled files may | ||
154 | # end up earlier than on their inputs, this allows | ||
155 | # for the resultant compilation in the install step. | ||
156 | oe_runmake 'CC=${CC}' 'LD=${LD}' \ | ||
157 | 'LDFLAGS=${LDFLAGS}' 'DESTDIR=${D}' install | ||
158 | |||
159 | mkdir -p ${D}${base_bindir} | ||
160 | |||
161 | sbinprogs="agetty ctrlaltdel cfdisk vipw vigr" | ||
162 | sbinprogs_a="pivot_root hwclock mkswap losetup swapon swapoff fdisk fsck blkid blockdev fstrim sulogin switch_root nologin" | ||
163 | binprogs_a="dmesg getopt kill more umount mount login su mountpoint" | ||
164 | |||
165 | if [ "${base_sbindir}" != "${sbindir}" ]; then | ||
166 | mkdir -p ${D}${base_sbindir} | ||
167 | for p in $sbinprogs $sbinprogs_a; do | ||
168 | if [ -f "${D}${sbindir}/$p" ]; then | ||
169 | mv "${D}${sbindir}/$p" "${D}${base_sbindir}/$p" | ||
170 | fi | ||
171 | done | ||
172 | fi | ||
173 | |||
174 | if [ "${base_bindir}" != "${bindir}" ]; then | ||
175 | mkdir -p ${D}${base_bindir} | ||
176 | for p in $binprogs_a; do | ||
177 | if [ -f "${D}${bindir}/$p" ]; then | ||
178 | mv "${D}${bindir}/$p" "${D}${base_bindir}/$p" | ||
179 | fi | ||
180 | done | ||
181 | fi | ||
182 | |||
183 | install -d ${D}${sysconfdir}/default/ | ||
184 | echo 'MOUNTALL="-t nonfs,nosmbfs,noncpfs"' > ${D}${sysconfdir}/default/mountall | ||
185 | |||
186 | rm -f ${D}${bindir}/chkdupexe | ||
187 | } | ||
188 | |||
189 | do_install:append:class-target () { | ||
190 | if [ "${@bb.utils.filter('PACKAGECONFIG', 'pam', d)}" ]; then | ||
191 | install -d ${D}${sysconfdir}/pam.d | ||
192 | install -m 0644 ${WORKDIR}/runuser.pamd ${D}${sysconfdir}/pam.d/runuser | ||
193 | install -m 0644 ${WORKDIR}/runuser-l.pamd ${D}${sysconfdir}/pam.d/runuser-l | ||
194 | # Required for "su -" aka "su --login" because | ||
195 | # otherwise it uses "other", which has "auth pam_deny.so" | ||
196 | # and thus prevents the operation. | ||
197 | ln -s su ${D}${sysconfdir}/pam.d/su-l | ||
198 | fi | ||
199 | } | ||
200 | # nologin causes a conflict with shadow-native | ||
201 | # kill causes a conflict with coreutils-native (if ${bindir}==${base_bindir}) | ||
202 | do_install:append:class-native () { | ||
203 | rm -f ${D}${base_sbindir}/nologin | ||
204 | rm -f ${D}${base_bindir}/kill | ||
205 | } | ||
206 | |||
207 | # dm-verity support introduces a circular build dependency, so util-linux-libuuid is split out for target builds | ||
208 | # Need to build libuuid for uuidgen, but then delete it and let the other recipe ship it | ||
209 | do_install:append () { | ||
210 | rm -rf ${D}${includedir}/uuid ${D}${libdir}/pkgconfig/uuid.pc ${D}${libdir}/libuuid* ${D}${base_libdir}/libuuid* | ||
211 | } | ||
212 | |||
213 | ALTERNATIVE_PRIORITY = "80" | ||
214 | |||
215 | ALTERNATIVE_LINK_NAME[blkid] = "${base_sbindir}/blkid" | ||
216 | ALTERNATIVE_LINK_NAME[blockdev] = "${base_sbindir}/blockdev" | ||
217 | ALTERNATIVE_LINK_NAME[cal] = "${bindir}/cal" | ||
218 | ALTERNATIVE_LINK_NAME[chfn] = "${bindir}/chfn" | ||
219 | ALTERNATIVE_LINK_NAME[chsh] = "${bindir}/chsh" | ||
220 | ALTERNATIVE_LINK_NAME[chrt] = "${bindir}/chrt" | ||
221 | ALTERNATIVE_LINK_NAME[dmesg] = "${base_bindir}/dmesg" | ||
222 | ALTERNATIVE_LINK_NAME[eject] = "${bindir}/eject" | ||
223 | ALTERNATIVE_LINK_NAME[fallocate] = "${bindir}/fallocate" | ||
224 | ALTERNATIVE_LINK_NAME[fdisk] = "${base_sbindir}/fdisk" | ||
225 | ALTERNATIVE_LINK_NAME[findfs] = "${sbindir}/findfs" | ||
226 | ALTERNATIVE_LINK_NAME[flock] = "${bindir}/flock" | ||
227 | ALTERNATIVE_LINK_NAME[fsck] = "${base_sbindir}/fsck" | ||
228 | ALTERNATIVE_LINK_NAME[fsfreeze] = "${sbindir}/fsfreeze" | ||
229 | ALTERNATIVE_LINK_NAME[fstrim] = "${base_sbindir}/fstrim" | ||
230 | ALTERNATIVE_LINK_NAME[getopt] = "${base_bindir}/getopt" | ||
231 | ALTERNATIVE:${PN}-agetty = "getty" | ||
232 | ALTERNATIVE_LINK_NAME[getty] = "${base_sbindir}/getty" | ||
233 | ALTERNATIVE_TARGET[getty] = "${base_sbindir}/agetty" | ||
234 | ALTERNATIVE_LINK_NAME[hexdump] = "${bindir}/hexdump" | ||
235 | ALTERNATIVE_LINK_NAME[hwclock] = "${base_sbindir}/hwclock" | ||
236 | ALTERNATIVE_LINK_NAME[ionice] = "${bindir}/ionice" | ||
237 | ALTERNATIVE_LINK_NAME[ipcrm] = "${bindir}/ipcrm" | ||
238 | ALTERNATIVE_LINK_NAME[ipcs] = "${bindir}/ipcs" | ||
239 | ALTERNATIVE_LINK_NAME[kill] = "${base_bindir}/kill" | ||
240 | ALTERNATIVE:${PN}-last = "last lastb" | ||
241 | ALTERNATIVE_LINK_NAME[last] = "${bindir}/last" | ||
242 | ALTERNATIVE_LINK_NAME[lastb] = "${bindir}/lastb" | ||
243 | ALTERNATIVE_LINK_NAME[logger] = "${bindir}/logger" | ||
244 | ALTERNATIVE_LINK_NAME[losetup] = "${base_sbindir}/losetup" | ||
245 | ALTERNATIVE_LINK_NAME[mesg] = "${bindir}/mesg" | ||
246 | ALTERNATIVE_LINK_NAME[mkswap] = "${base_sbindir}/mkswap" | ||
247 | ALTERNATIVE_LINK_NAME[mcookie] = "${bindir}/mcookie" | ||
248 | ALTERNATIVE_LINK_NAME[more] = "${base_bindir}/more" | ||
249 | ALTERNATIVE_LINK_NAME[mount] = "${base_bindir}/mount" | ||
250 | ALTERNATIVE_LINK_NAME[mountpoint] = "${base_bindir}/mountpoint" | ||
251 | ALTERNATIVE_LINK_NAME[nologin] = "${base_sbindir}/nologin" | ||
252 | ALTERNATIVE_LINK_NAME[nsenter] = "${bindir}/nsenter" | ||
253 | ALTERNATIVE_LINK_NAME[pivot_root] = "${base_sbindir}/pivot_root" | ||
254 | ALTERNATIVE_LINK_NAME[prlimit] = "${bindir}/prlimit" | ||
255 | ALTERNATIVE_LINK_NAME[readprofile] = "${sbindir}/readprofile" | ||
256 | ALTERNATIVE_LINK_NAME[renice] = "${bindir}/renice" | ||
257 | ALTERNATIVE_LINK_NAME[rev] = "${bindir}/rev" | ||
258 | ALTERNATIVE_LINK_NAME[rfkill] = "${sbindir}/rfkill" | ||
259 | ALTERNATIVE_LINK_NAME[rtcwake] = "${sbindir}/rtcwake" | ||
260 | ALTERNATIVE_LINK_NAME[setpriv] = "${bindir}/setpriv" | ||
261 | ALTERNATIVE_LINK_NAME[setsid] = "${bindir}/setsid" | ||
262 | ALTERNATIVE_LINK_NAME[su] = "${base_bindir}/su" | ||
263 | ALTERNATIVE_LINK_NAME[sulogin] = "${base_sbindir}/sulogin" | ||
264 | ALTERNATIVE_LINK_NAME[swapoff] = "${base_sbindir}/swapoff" | ||
265 | ALTERNATIVE_LINK_NAME[swapon] = "${base_sbindir}/swapon" | ||
266 | ALTERNATIVE_LINK_NAME[switch_root] = "${base_sbindir}/switch_root" | ||
267 | ALTERNATIVE_LINK_NAME[taskset] = "${bindir}/taskset" | ||
268 | ALTERNATIVE_LINK_NAME[umount] = "${base_bindir}/umount" | ||
269 | ALTERNATIVE_LINK_NAME[unshare] = "${bindir}/unshare" | ||
270 | ALTERNATIVE_LINK_NAME[utmpdump] = "${bindir}/utmpdump" | ||
271 | ALTERNATIVE_LINK_NAME[uuidgen] = "${bindir}/uuidgen" | ||
272 | ALTERNATIVE_LINK_NAME[wall] = "${bindir}/wall" | ||
273 | |||
274 | ALTERNATIVE:${PN}-doc = "\ | ||
275 | blkid.8 eject.1 findfs.8 fsck.8 kill.1 last.1 lastb.1 libblkid.3 logger.1 mesg.1 \ | ||
276 | mountpoint.1 nologin.8 rfkill.8 sulogin.8 utmpdump.1 uuid.3 wall.1\ | ||
277 | " | ||
278 | ALTERNATIVE:${PN}-doc += "${@bb.utils.contains('PACKAGECONFIG', 'pam', 'su.1', '', d)}" | ||
279 | |||
280 | ALTERNATIVE_LINK_NAME[blkid.8] = "${mandir}/man8/blkid.8" | ||
281 | ALTERNATIVE_LINK_NAME[eject.1] = "${mandir}/man1/eject.1" | ||
282 | ALTERNATIVE_LINK_NAME[findfs.8] = "${mandir}/man8/findfs.8" | ||
283 | ALTERNATIVE_LINK_NAME[fsck.8] = "${mandir}/man8/fsck.8" | ||
284 | ALTERNATIVE_LINK_NAME[kill.1] = "${mandir}/man1/kill.1" | ||
285 | ALTERNATIVE_LINK_NAME[last.1] = "${mandir}/man1/last.1" | ||
286 | ALTERNATIVE_LINK_NAME[lastb.1] = "${mandir}/man1/lastb.1" | ||
287 | ALTERNATIVE_LINK_NAME[libblkid.3] = "${mandir}/man3/libblkid.3" | ||
288 | ALTERNATIVE_LINK_NAME[logger.1] = "${mandir}/man1/logger.1" | ||
289 | ALTERNATIVE_LINK_NAME[mesg.1] = "${mandir}/man1/mesg.1" | ||
290 | ALTERNATIVE_LINK_NAME[mountpoint.1] = "${mandir}/man1/mountpoint.1" | ||
291 | ALTERNATIVE_LINK_NAME[nologin.8] = "${mandir}/man8/nologin.8" | ||
292 | ALTERNATIVE_LINK_NAME[rfkill.8] = "${mandir}/man8/rfkill.8" | ||
293 | ALTERNATIVE_LINK_NAME[setpriv.1] = "${mandir}/man1/setpriv.1" | ||
294 | ALTERNATIVE_LINK_NAME[su.1] = "${mandir}/man1/su.1" | ||
295 | ALTERNATIVE_LINK_NAME[sulogin.8] = "${mandir}/man8/sulogin.8" | ||
296 | ALTERNATIVE_LINK_NAME[utmpdump.1] = "${mandir}/man1/utmpdump.1" | ||
297 | ALTERNATIVE_LINK_NAME[uuid.3] = "${mandir}/man3/uuid.3" | ||
298 | ALTERNATIVE_LINK_NAME[wall.1] = "${mandir}/man1/wall.1" | ||
299 | |||
300 | BBCLASSEXTEND = "native nativesdk" | ||
301 | |||
302 | PTEST_BINDIR = "1" | ||
303 | do_compile_ptest() { | ||
304 | oe_runmake buildtest-TESTS | ||
305 | } | ||
306 | |||
307 | do_install_ptest() { | ||
308 | mkdir -p ${D}${PTEST_PATH}/tests/ts | ||
309 | find . -name 'test*' -maxdepth 1 -type f -perm -111 -exec cp {} ${D}${PTEST_PATH} \; | ||
310 | find ./.libs -name 'sample*' -maxdepth 1 -type f -perm -111 -exec cp {} ${D}${PTEST_PATH} \; | ||
311 | find ./.libs -name 'test*' -maxdepth 1 -type f -perm -111 -exec cp {} ${D}${PTEST_PATH} \; | ||
312 | |||
313 | cp ${S}/tests/*.sh ${D}${PTEST_PATH}/tests/ | ||
314 | cp -pR ${S}/tests/expected ${D}${PTEST_PATH}/tests/expected | ||
315 | cp -pR ${S}/tests/ts ${D}${PTEST_PATH}/tests/ | ||
316 | cp ${WORKDIR}/build/config.h ${D}${PTEST_PATH} | ||
317 | |||
318 | sed -i 's|@base_sbindir@|${base_sbindir}|g' ${D}${PTEST_PATH}/run-ptest | ||
319 | |||
320 | # chfn needs PAM | ||
321 | if ! ${@bb.utils.contains('PACKAGECONFIG', 'pam', 'true', 'false', d)}; then | ||
322 | rm -rf ${D}${PTEST_PATH}/tests/ts/chfn | ||
323 | fi | ||
324 | } | ||