summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-core/util-linux/util-linux.inc22
1 files changed, 22 insertions, 0 deletions
diff --git a/meta/recipes-core/util-linux/util-linux.inc b/meta/recipes-core/util-linux/util-linux.inc
index a81045251b..a250db94aa 100644
--- a/meta/recipes-core/util-linux/util-linux.inc
+++ b/meta/recipes-core/util-linux/util-linux.inc
@@ -52,6 +52,28 @@ python util_linux_binpackages () {
52 file_regex=r'(.*)', output_pattern='${PN}-%s', 52 file_regex=r'(.*)', output_pattern='${PN}-%s',
53 description='${PN} %s', 53 description='${PN} %s',
54 hook=pkg_hook, extra_depends='', prepend=True) 54 hook=pkg_hook, extra_depends='', prepend=True)
55
56 # There are some symlinks for some binaries which we have ignored
57 # above. Add them to the package owning the binary they are
58 # pointing to
59 extras = {}
60 dvar = d.getVar('PKGD')
61 for root in [ '${base_sbindir}' ]:
62 root = d.expand(root)
63 for walkroot, dirs, files in os.walk(dvar + root):
64 for f in files:
65 file = os.path.join(walkroot, f)
66 if not os.path.islink(file):
67 continue
68
69 pkg = os.path.basename(os.readlink(file))
70 extras[pkg] = extras.get(pkg, '') + ' ' + file.replace(dvar, '', 1)
71
72 pn = d.getVar('PN')
73 for pkg, links in extras.items():
74 of = d.getVar('FILES_' + pn + '-' + pkg)
75 links = of + links
76 d.setVar('FILES_' + pn + '-' + pkg, links)
55} 77}
56 78
57# we must execute before update-alternatives PACKAGE_PREPROCESS_FUNCS 79# we must execute before update-alternatives PACKAGE_PREPROCESS_FUNCS