diff options
author | Saul Wold <sgw@linux.intel.com> | 2013-09-10 10:28:14 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-10 23:15:16 +0100 |
commit | 6b4f7e4b26c51f0c1517c0a697031e7bc488b76f (patch) | |
tree | 7e00ae20aa42383fd5c1f4b0d69ffbef85fe16ab /meta/classes/systemd.bbclass | |
parent | 8dedc082bac4181a6daacf0882e5e67538c86e70 (diff) | |
download | poky-6b4f7e4b26c51f0c1517c0a697031e7bc488b76f.tar.gz |
systemd.bbclass: get the correct /lib directory
By using os.path.dirname(systemd_unitdir) we get the correct /lib directory instead of
dealing with possibly multilib directories. This address a QA Error for shipped/not
installed /lib with multilib and x32.
(From OE-Core rev: 5b451a46550ba62e2fbfe5dbe50723b34a4fd527)
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/systemd.bbclass')
-rw-r--r-- | meta/classes/systemd.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/systemd.bbclass b/meta/classes/systemd.bbclass index 8ec4992db3..eab8735b7c 100644 --- a/meta/classes/systemd.bbclass +++ b/meta/classes/systemd.bbclass | |||
@@ -168,9 +168,9 @@ python rm_systemd_unitdir (){ | |||
168 | systemd_unitdir = oe.path.join(d.getVar("D", True), d.getVar('systemd_unitdir', True)) | 168 | systemd_unitdir = oe.path.join(d.getVar("D", True), d.getVar('systemd_unitdir', True)) |
169 | if os.path.exists(systemd_unitdir): | 169 | if os.path.exists(systemd_unitdir): |
170 | shutil.rmtree(systemd_unitdir) | 170 | shutil.rmtree(systemd_unitdir) |
171 | base_libdir = oe.path.join(d.getVar("D", True), d.getVar('base_libdir', True)) | 171 | systemd_libdir = os.path.dirname(systemd_unitdir) |
172 | if (os.path.exists(base_libdir) and not os.listdir(base_libdir)): | 172 | if (os.path.exists(systemd_libdir) and not os.listdir(systemd_libdir)): |
173 | os.rmdir(base_libdir) | 173 | os.rmdir(systemd_libdir) |
174 | } | 174 | } |
175 | do_install[postfuncs] += "rm_systemd_unitdir " | 175 | do_install[postfuncs] += "rm_systemd_unitdir " |
176 | 176 | ||