diff options
author | Jonathan Liu <net147@gmail.com> | 2013-08-21 01:36:41 +0000 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-08-23 19:21:56 +0200 |
commit | 9dd25136e8853b5ba547db85f9256b6a284ed9b9 (patch) | |
tree | cca9a8c6ba0b0875ffcfa4fa3a6a0d29fcec8ea6 | |
parent | 53638b464d84700f26290b50ffb9430d322d5a31 (diff) | |
download | meta-openembedded-9dd25136e8853b5ba547db85f9256b6a284ed9b9.tar.gz |
llvm: include /usr/lib/libLLVM-*.so in lib package
/usr/lib/libLLVM-*.so was being split into the dev package but it should
be in the lib package otherwise software that depends on the LLVM shared
library will be unable to to locate it when the dev package isn't
installed.
Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r-- | meta-oe/recipes-core/llvm/llvm.inc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/meta-oe/recipes-core/llvm/llvm.inc b/meta-oe/recipes-core/llvm/llvm.inc index c0d6b6ef1..525dd3cac 100644 --- a/meta-oe/recipes-core/llvm/llvm.inc +++ b/meta-oe/recipes-core/llvm/llvm.inc | |||
@@ -42,20 +42,24 @@ DOTDEBUG-dbg = " ${bindir}/${LLVM_DIR}/.debug \ | |||
42 | /usr/src/debug \ | 42 | /usr/src/debug \ |
43 | " | 43 | " |
44 | 44 | ||
45 | FILES_${PN}-dev += "${bindir}/${LLVM_DIR} \ | 45 | FILES_${PN}-dev = "${bindir}/${LLVM_DIR} \ |
46 | ${libdir}/${LLVM_DIR}/BugpointPasses.so \ | 46 | ${includedir}/${LLVM_DIR} \ |
47 | ${libdir}/${LLVM_DIR}/LLVMHello.so \ | 47 | ${libdir}/${LLVM_DIR}/BugpointPasses.so \ |
48 | ${libdir}/${LLVM_DIR}/LLVMHello.so \ | ||
48 | " | 49 | " |
49 | 50 | ||
50 | PACKAGES_DYNAMIC = "^libllvm-.*$" | 51 | PACKAGES_DYNAMIC = "^libllvm-.*$" |
51 | 52 | ||
52 | python llvm_populate_packages() { | 53 | python llvm_populate_packages() { |
54 | libdir = bb.data.expand('${libdir}', d) | ||
53 | libllvm_libdir = bb.data.expand('${libdir}/${LLVM_DIR}', d) | 55 | libllvm_libdir = bb.data.expand('${libdir}/${LLVM_DIR}', d) |
54 | split_packages = do_split_packages(d, libllvm_libdir, '^lib(.*)\.so$', 'libllvm${LLVM_RELEASE}-%s', 'Split package for %s', allow_dirs=True) | ||
55 | split_dbg_packages = do_split_packages(d, libllvm_libdir+'/.debug', '^lib(.*)\.so$', 'libllvm${LLVM_RELEASE}-%s-dbg', 'Split debug package for %s', allow_dirs=True) | 56 | split_dbg_packages = do_split_packages(d, libllvm_libdir+'/.debug', '^lib(.*)\.so$', 'libllvm${LLVM_RELEASE}-%s-dbg', 'Split debug package for %s', allow_dirs=True) |
57 | split_packages = do_split_packages(d, libdir, '^lib(.*)\.so$', 'libllvm${LLVM_RELEASE}-%s', 'Split package for %s', allow_dirs=True, allow_links=True, recursive=True) | ||
56 | split_staticdev_packages = do_split_packages(d, libllvm_libdir, '^lib(.*)\.a$', 'libllvm${LLVM_RELEASE}-%s-staticdev', 'Split staticdev package for %s', allow_dirs=True) | 58 | split_staticdev_packages = do_split_packages(d, libllvm_libdir, '^lib(.*)\.a$', 'libllvm${LLVM_RELEASE}-%s-staticdev', 'Split staticdev package for %s', allow_dirs=True) |
57 | if split_packages: | 59 | if split_packages: |
58 | pn = d.getVar('PN', True) | 60 | pn = d.getVar('PN', True) |
61 | for package in split_packages: | ||
62 | d.appendVar('INSANE_SKIP_' + package, ' dev-so') | ||
59 | d.appendVar('RDEPENDS_' + pn, ' '+' '.join(split_packages)) | 63 | d.appendVar('RDEPENDS_' + pn, ' '+' '.join(split_packages)) |
60 | d.appendVar('RDEPENDS_' + pn + '-dbg', ' '+' '.join(split_dbg_packages)) | 64 | d.appendVar('RDEPENDS_' + pn + '-dbg', ' '+' '.join(split_dbg_packages)) |
61 | d.appendVar('RDEPENDS_' + pn + '-staticdev', ' '+' '.join(split_staticdev_packages)) | 65 | d.appendVar('RDEPENDS_' + pn + '-staticdev', ' '+' '.join(split_staticdev_packages)) |