diff options
Diffstat (limited to 'meta/recipes-core/util-linux')
-rw-r--r-- | meta/recipes-core/util-linux/util-linux.inc | 43 |
1 files changed, 17 insertions, 26 deletions
diff --git a/meta/recipes-core/util-linux/util-linux.inc b/meta/recipes-core/util-linux/util-linux.inc index 3b0598b708..5bc179e50b 100644 --- a/meta/recipes-core/util-linux/util-linux.inc +++ b/meta/recipes-core/util-linux/util-linux.inc | |||
@@ -28,12 +28,7 @@ MAJOR_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:2])}" | |||
28 | SRC_URI = "${KERNELORG_MIRROR}/linux/utils/${BPN}/v${MAJOR_VERSION}/${BP}.tar.xz \ | 28 | SRC_URI = "${KERNELORG_MIRROR}/linux/utils/${BPN}/v${MAJOR_VERSION}/${BP}.tar.xz \ |
29 | " | 29 | " |
30 | 30 | ||
31 | PACKAGES =+ "util-linux-swaponoff \ | 31 | PACKAGES =+ "util-linux-swaponoff" |
32 | util-linux-uuidgen util-linux-lscpu \ | ||
33 | util-linux-mcookie \ | ||
34 | util-linux-lsblk \ | ||
35 | util-linux-prlimit \ | ||
36 | util-linux-ionice util-linux-unshare" | ||
37 | PACKAGES += "${@bb.utils.contains('PACKAGECONFIG', 'pylibmount', 'util-linux-pylibmount', '', d)}" | 32 | PACKAGES += "${@bb.utils.contains('PACKAGECONFIG', 'pylibmount', 'util-linux-pylibmount', '', d)}" |
38 | 33 | ||
39 | python util_linux_binpackages () { | 34 | python util_linux_binpackages () { |
@@ -54,7 +49,7 @@ python util_linux_binpackages () { | |||
54 | description='${PN} %s', | 49 | description='${PN} %s', |
55 | hook=pkg_hook, extra_depends='', prepend=True) | 50 | hook=pkg_hook, extra_depends='', prepend=True) |
56 | 51 | ||
57 | for dir in [ '${sbindir}' ]: | 52 | for dir in [ '${sbindir}', '${bindir}' ]: |
58 | do_split_packages(d, root=dir, | 53 | do_split_packages(d, root=dir, |
59 | file_regex=r'(.*)', output_pattern='${PN}-%s', | 54 | file_regex=r'(.*)', output_pattern='${PN}-%s', |
60 | description='${PN} %s', | 55 | description='${PN} %s', |
@@ -65,7 +60,7 @@ python util_linux_binpackages () { | |||
65 | # pointing to | 60 | # pointing to |
66 | extras = {} | 61 | extras = {} |
67 | dvar = d.getVar('PKGD') | 62 | dvar = d.getVar('PKGD') |
68 | for root in [ '${base_sbindir}', '${base_bindir}', '${sbindir}' ]: | 63 | for root in [ '${base_sbindir}', '${base_bindir}', '${sbindir}', '${bindir}' ]: |
69 | root = d.expand(root) | 64 | root = d.expand(root) |
70 | for walkroot, dirs, files in os.walk(dvar + root): | 65 | for walkroot, dirs, files in os.walk(dvar + root): |
71 | for f in files: | 66 | for f in files: |
@@ -127,21 +122,12 @@ FILES_${PN}-doc += "${datadir}/getopt/getopt-*.*" | |||
127 | 122 | ||
128 | FILES_${PN}-dev += "${PYTHON_SITEPACKAGES_DIR}/libmount/pylibmount.la" | 123 | FILES_${PN}-dev += "${PYTHON_SITEPACKAGES_DIR}/libmount/pylibmount.la" |
129 | 124 | ||
130 | FILES_util-linux-mcookie = "${bindir}/mcookie" | ||
131 | FILES_util-linux-uuidgen = "${bindir}/uuidgen" | ||
132 | FILES_util-linux-prlimit = "${bindir}/prlimit" | ||
133 | FILES_util-linux-ionice = "${bindir}/ionice.${BPN}" | ||
134 | FILES_util-linux-runuser = "${sysconfdir}/pam.d/runuser*" | 125 | FILES_util-linux-runuser = "${sysconfdir}/pam.d/runuser*" |
135 | FILES_util-linux-su = "${sysconfdir}/pam.d/su-l" | 126 | FILES_util-linux-su = "${sysconfdir}/pam.d/su-l" |
136 | CONFFILES_util-linux-su = "${sysconfdir}/pam.d/su-l" | 127 | CONFFILES_util-linux-su = "${sysconfdir}/pam.d/su-l" |
137 | |||
138 | FILES_util-linux-pylibmount = "${PYTHON_SITEPACKAGES_DIR}/libmount/pylibmount.so \ | 128 | FILES_util-linux-pylibmount = "${PYTHON_SITEPACKAGES_DIR}/libmount/pylibmount.so \ |
139 | ${PYTHON_SITEPACKAGES_DIR}/libmount/__init__.* \ | 129 | ${PYTHON_SITEPACKAGES_DIR}/libmount/__init__.* \ |
140 | ${PYTHON_SITEPACKAGES_DIR}/libmount/__pycache__/*" | 130 | ${PYTHON_SITEPACKAGES_DIR}/libmount/__pycache__/*" |
141 | FILES_util-linux-lsblk = "${bindir}/lsblk" | ||
142 | FILES_util-linux-lscpu = "${bindir}/lscpu" | ||
143 | |||
144 | FILES_util-linux-unshare = "${bindir}/unshare.${BPN}" | ||
145 | 131 | ||
146 | # Util-linux' blkid replaces the e2fsprogs one | 132 | # Util-linux' blkid replaces the e2fsprogs one |
147 | RCONFLICTS_util-linux-blkid = "e2fsprogs-blkid" | 133 | RCONFLICTS_util-linux-blkid = "e2fsprogs-blkid" |
@@ -150,7 +136,6 @@ RREPLACES_util-linux-blkid = "e2fsprogs-blkid" | |||
150 | RDEPENDS_${PN} = "util-linux-umount util-linux-swaponoff util-linux-losetup util-linux-sulogin util-linux-lsblk" | 136 | RDEPENDS_${PN} = "util-linux-umount util-linux-swaponoff util-linux-losetup util-linux-sulogin util-linux-lsblk" |
151 | RDEPENDS_${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'util-linux-runuser util-linux-su', '', d)}" | 137 | RDEPENDS_${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'util-linux-runuser util-linux-su', '', d)}" |
152 | 138 | ||
153 | RRECOMMENDS_${PN} = "util-linux-prlimit util-linux-ionice" | ||
154 | RRECOMMENDS_${PN} += "${PN}-blockdev ${PN}-cfdisk ${PN}-ctrlaltdel ${PN}-fdisk ${PN}-mkswap ${PN}-nologin ${PN}-pivot-root ${PN}-switch-root" | 139 | RRECOMMENDS_${PN} += "${PN}-blockdev ${PN}-cfdisk ${PN}-ctrlaltdel ${PN}-fdisk ${PN}-mkswap ${PN}-nologin ${PN}-pivot-root ${PN}-switch-root" |
155 | RRECOMMENDS_${PN} += "${PN}-dmesg ${PN}-kill ${PN}-more ${PN}-mount ${PN}-mountpoint" | 140 | RRECOMMENDS_${PN} += "${PN}-dmesg ${PN}-kill ${PN}-more ${PN}-mount ${PN}-mountpoint" |
156 | 141 | ||
@@ -234,12 +219,6 @@ do_install_append_class-native () { | |||
234 | 219 | ||
235 | ALTERNATIVE_PRIORITY = "80" | 220 | ALTERNATIVE_PRIORITY = "80" |
236 | 221 | ||
237 | ALTERNATIVE_${PN} = " \ | ||
238 | hexdump last lastb logger mesg renice wall \ | ||
239 | setsid chrt flock utmpdump eject taskset fallocate \ | ||
240 | nsenter cal rev \ | ||
241 | " | ||
242 | |||
243 | ALTERNATIVE_LINK_NAME[dmesg] = "${base_bindir}/dmesg" | 222 | ALTERNATIVE_LINK_NAME[dmesg] = "${base_bindir}/dmesg" |
244 | ALTERNATIVE_LINK_NAME[kill] = "${base_bindir}/kill" | 223 | ALTERNATIVE_LINK_NAME[kill] = "${base_bindir}/kill" |
245 | ALTERNATIVE_LINK_NAME[more] = "${base_bindir}/more" | 224 | ALTERNATIVE_LINK_NAME[more] = "${base_bindir}/more" |
@@ -247,9 +226,23 @@ ALTERNATIVE_LINK_NAME[mkswap] = "${base_sbindir}/mkswap" | |||
247 | ALTERNATIVE_LINK_NAME[blockdev] = "${base_sbindir}/blockdev" | 226 | ALTERNATIVE_LINK_NAME[blockdev] = "${base_sbindir}/blockdev" |
248 | ALTERNATIVE_LINK_NAME[pivot_root] = "${base_sbindir}/pivot_root" | 227 | ALTERNATIVE_LINK_NAME[pivot_root] = "${base_sbindir}/pivot_root" |
249 | ALTERNATIVE_LINK_NAME[cal] = "${bindir}/cal" | 228 | ALTERNATIVE_LINK_NAME[cal] = "${bindir}/cal" |
229 | ALTERNATIVE_LINK_NAME[chrt] = "${bindir}/chrt" | ||
250 | ALTERNATIVE_LINK_NAME[eject] = "${bindir}/eject" | 230 | ALTERNATIVE_LINK_NAME[eject] = "${bindir}/eject" |
251 | ALTERNATIVE_LINK_NAME[fallocate] = "${bindir}/fallocate" | 231 | ALTERNATIVE_LINK_NAME[fallocate] = "${bindir}/fallocate" |
232 | ALTERNATIVE_LINK_NAME[flock] = "${bindir}/flock" | ||
233 | ALTERNATIVE_LINK_NAME[hexdump] = "${bindir}/hexdump" | ||
234 | ALTERNATIVE_${PN}-last = "last lastb" | ||
235 | ALTERNATIVE_LINK_NAME[last] = "${bindir}/last" | ||
236 | ALTERNATIVE_LINK_NAME[lastb] = "${bindir}/lastb" | ||
237 | ALTERNATIVE_LINK_NAME[logger] = "${bindir}/logger" | ||
238 | ALTERNATIVE_LINK_NAME[mesg] = "${bindir}/mesg" | ||
239 | ALTERNATIVE_LINK_NAME[nsenter] = "${bindir}/nsenter" | ||
240 | ALTERNATIVE_LINK_NAME[renice] = "${bindir}/renice" | ||
252 | ALTERNATIVE_LINK_NAME[rev] = "${bindir}/rev" | 241 | ALTERNATIVE_LINK_NAME[rev] = "${bindir}/rev" |
242 | ALTERNATIVE_LINK_NAME[setsid] = "${bindir}/setsid" | ||
243 | ALTERNATIVE_LINK_NAME[taskset] = "${bindir}/taskset" | ||
244 | ALTERNATIVE_LINK_NAME[utmpdump] = "${bindir}/utmpdump" | ||
245 | ALTERNATIVE_LINK_NAME[wall] = "${bindir}/wall" | ||
253 | ALTERNATIVE_LINK_NAME[fsfreeze] = "${sbindir}/fsfreeze" | 246 | ALTERNATIVE_LINK_NAME[fsfreeze] = "${sbindir}/fsfreeze" |
254 | ALTERNATIVE_LINK_NAME[nologin] = "${base_sbindir}/nologin" | 247 | ALTERNATIVE_LINK_NAME[nologin] = "${base_sbindir}/nologin" |
255 | 248 | ||
@@ -308,10 +301,8 @@ ALTERNATIVE_LINK_NAME[sulogin] = "${base_sbindir}/sulogin" | |||
308 | 301 | ||
309 | ALTERNATIVE_LINK_NAME[mountpoint] = "${base_bindir}/mountpoint" | 302 | ALTERNATIVE_LINK_NAME[mountpoint] = "${base_bindir}/mountpoint" |
310 | 303 | ||
311 | ALTERNATIVE_util-linux-unshare = "unshare" | ||
312 | ALTERNATIVE_LINK_NAME[unshare] = "${bindir}/unshare" | 304 | ALTERNATIVE_LINK_NAME[unshare] = "${bindir}/unshare" |
313 | 305 | ||
314 | ALTERNATIVE_util-linux-ionice = "ionice" | ||
315 | ALTERNATIVE_LINK_NAME[ionice] = "${bindir}/ionice" | 306 | ALTERNATIVE_LINK_NAME[ionice] = "${bindir}/ionice" |
316 | 307 | ||
317 | ALTERNATIVE_LINK_NAME[switch_root] = "${base_sbindir}/switch_root" | 308 | ALTERNATIVE_LINK_NAME[switch_root] = "${base_sbindir}/switch_root" |