Skip to contentSkip to conversation

llvm: set INSANE_SKIP only for one explicit package

PATCH New Martin Jansa 1 participant 4 messages Jul 18, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 llvm: set INSANE_SKIP only for one explicit package

* now when insane_qa is moved to separate task, we cannot set INSANE_SKIP in do_package task

---
 meta-oe/recipes-core/llvm/llvm.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-core/llvm/llvm.inc +2 -2
index 525dd3c..f590a7f 100644
@@ -50,6 +50,8 @@ FILES_${PN}-dev = "${bindir}/${LLVM_DIR} \
 
 PACKAGES_DYNAMIC = "^libllvm-.*$"
 
+INSANE_SKIP_libllvm${LLVM_RELEASE}-llvm${LLVM_RELEASE} += "dev-so"
+
 python llvm_populate_packages() {
     libdir = bb.data.expand('${libdir}', d)
     libllvm_libdir = bb.data.expand('${libdir}/${LLVM_DIR}', d)
@@ -58,8 +60,6 @@ python llvm_populate_packages() {
     split_staticdev_packages = do_split_packages(d, libllvm_libdir, '^lib(.*)\.a$', 'libllvm${LLVM_RELEASE}-%s-staticdev', 'Split staticdev package for %s', allow_dirs=True)
     if split_packages:
         pn = d.getVar('PN', True)
-        for package in split_packages:
-            d.appendVar('INSANE_SKIP_' + package, ' dev-so')
         d.appendVar('RDEPENDS_' + pn, ' '+' '.join(split_packages))
         d.appendVar('RDEPENDS_' + pn + '-dbg', ' '+' '.join(split_dbg_packages))
         d.appendVar('RDEPENDS_' + pn + '-staticdev', ' '+' '.join(split_staticdev_packages))
Signature · 1 line
2.0.0
#1 lore raw

PATCH 2/4 llvm.inc: Merge all llvm*-dbg and llvm*-staticdev to just one PN-dbg and one PN-staticdev

* if you need debug or staticdev on device then you can probably live with other libs as well.

---
 meta-oe/recipes-core/llvm/llvm.inc | 6 ------
 1 file changed, 6 deletions(-)
meta-oe/recipes-core/llvm/llvm.inc +0 -6
index f590a7f..4ec1b6d 100644
@@ -33,9 +33,7 @@ LLVM_RELEASE = "${PV}"
 LLVM_DIR = "llvm${LLVM_RELEASE}"
 
 ALLOW_EMPTY_${PN} = "1"
-ALLOW_EMPTY_${PN}-staticdev = "1"
 FILES_${PN} = ""
-FILES_${PN}-staticdev = ""
 DOTDEBUG-dbg = " ${bindir}/${LLVM_DIR}/.debug \
                  ${libdir}/${LLVM_DIR}/.debug/BugpointPasses.so \
                  ${libdir}/${LLVM_DIR}/.debug/LLVMHello.so \
@@ -55,14 +53,10 @@ INSANE_SKIP_libllvm${LLVM_RELEASE}-llvm${LLVM_RELEASE} += "dev-so"
 python llvm_populate_packages() {
     libdir = bb.data.expand('${libdir}', d)
     libllvm_libdir = bb.data.expand('${libdir}/${LLVM_DIR}', d)
-    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)
     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)
-    split_staticdev_packages = do_split_packages(d, libllvm_libdir, '^lib(.*)\.a$', 'libllvm${LLVM_RELEASE}-%s-staticdev', 'Split staticdev package for %s', allow_dirs=True)
     if split_packages:
         pn = d.getVar('PN', True)
         d.appendVar('RDEPENDS_' + pn, ' '+' '.join(split_packages))
-        d.appendVar('RDEPENDS_' + pn + '-dbg', ' '+' '.join(split_dbg_packages))
-        d.appendVar('RDEPENDS_' + pn + '-staticdev', ' '+' '.join(split_staticdev_packages))
 }
 
 PACKAGESPLITFUNCS_prepend = "llvm_populate_packages "
Signature · 1 line
2.0.0
#2 lore raw

PATCH 3/4 dfu-util-0.4: add foreign to AM_INIT_AUTOMAKE

In reply to Martin Jansa
---
 meta-oe/recipes-support/dfu-util/dfu-util-native_0.4.bb   |  4 +++-
 meta-oe/recipes-support/dfu-util/dfu-util/configure.patch | 12 ++++++++++++
 meta-oe/recipes-support/dfu-util/dfu-util_0.4.bb          |  4 +++-
 3 files changed, 18 insertions(+), 2 deletions(-)
 create mode 100644 meta-oe/recipes-support/dfu-util/dfu-util/configure.patch
meta-oe/recipes-support/dfu-util/dfu-util-native_0.4.bb +3 -1
index ce6e566..d0dd362 100644
@@ -6,7 +6,9 @@ do_deploy[sstate-outputdirs] = "${DEPLOY_DIR_TOOLS}"
 DEPENDS = "libusb1-native"
 
 FILESPATH =. "${FILE_DIRNAME}/${BPN}-${PV}:"
-SRC_URI += "file://0001-Revert-Makefile.am-Drop-static-dfu-util.patch"
+SRC_URI += "file://0001-Revert-Makefile.am-Drop-static-dfu-util.patch \
+    file://configure.patch \
+"
 
 do_deploy() {
     install -d ${DEPLOY_DIR_TOOLS}
meta-oe/recipes-support/dfu-util/dfu-util/configure.patch new file +12 -0
new file mode 100644
index 0000000..c83d510
@@ -0,0 +1,12 @@
+diff -uNr dfu-util-0.4.orig/configure.ac dfu-util-0.4/configure.ac
+--- dfu-util-0.4.orig/configure.ac	2014-07-18 08:18:45.407552416 +0200
++++ dfu-util-0.4/configure.ac	2014-07-18 20:05:11.934894143 +0200
+@@ -4,7 +4,7 @@
+ AC_PREREQ(2.59)
+ AC_INIT([dfu-util],[0.4])
+ AC_CONFIG_AUX_DIR(m4)
+-AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
++AM_INIT_AUTOMAKE([foreign])
+ AM_CONFIG_HEADER([config.h])
+ 
+ # Test for new silent rules and enable only if they are available
meta-oe/recipes-support/dfu-util/dfu-util_0.4.bb +3 -1
index 12d6af6..9f55a86 100644
@@ -2,7 +2,9 @@ require dfu-util.inc
 
 DEPENDS = "libusb1"
 
-SRC_URI += "file://no-usbpath.patch"
+SRC_URI += "file://no-usbpath.patch \
+    file://configure.patch \
+"
 
 SRC_URI[md5sum] = "2cf466fabb881e8598fa02f286d3242c"
 SRC_URI[sha256sum] = "f60fea987aa06ee03da22a656d1d113ac224458ec4442bcf1764a62f0930bd07"
Signature · 1 line
2.0.0
#3 lore raw

PATCH 4/4 gdal: use autotools-brokensep

In reply to Martin Jansa
---
 meta-oe/recipes-navigation/gdal/gdal_1.10.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-navigation/gdal/gdal_1.10.1.bb +1 -1
index 6a6e62f..14f1a57 100644
@@ -10,7 +10,7 @@ SRC_URI = "ftp://download.osgeo.org/gdal/${PV}/${BP}.tar.xz"
 SRC_URI[md5sum] = "f354c614aea76e5630e4edbf06e5c292"
 SRC_URI[sha256sum] = "e6c9c6c4480228c943af29120d87435ddfe9ca460458bc60b91639fb8d443791"
 
-inherit autotools lib_package binconfig
+inherit autotools-brokensep lib_package binconfig
 
 EXTRA_OECONF = "--without-perl \
                 --without-php \
Signature · 1 line
2.0.0