]> code.ossystems Code Review - openembedded-core.git/commitdiff
db: Fix build with high PARALLEL_MAKE
authorMartin Jansa <martin.jansa@gmail.com>
Thu, 31 Oct 2013 18:59:54 +0000 (19:59 +0100)
committerPaul Eggleton <paul.eggleton@linux.intel.com>
Tue, 3 Dec 2013 16:49:24 +0000 (16:49 +0000)
* sometimes it fails with:
  libtool: link: `util_log.lo' is not a valid libtool object
  make: *** [db_replicate] Error 1

(From OE-Core master rev: 0a1efeb6260a565b6ce3abd523eabb15384570d1)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/db/db/fix-parallel-build.patch [new file with mode: 0644]
meta/recipes-support/db/db_5.3.21.bb

diff --git a/meta/recipes-support/db/db/fix-parallel-build.patch b/meta/recipes-support/db/db/fix-parallel-build.patch
new file mode 100644 (file)
index 0000000..2c7f1e1
--- /dev/null
@@ -0,0 +1,19 @@
+With higher paralelism it sometimes fails with:
+libtool: link: `util_log.lo' is not a valid libtool object
+make: *** [db_replicate] Error 1
+
+Upstream-Status: Pending
+
+Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
+
+--- dist.orig/Makefile.in      2012-05-11 19:57:48.000000000 +0200
++++ dist/Makefile.in   2013-10-31 18:17:11.875532522 +0100
+@@ -1034,7 +1034,7 @@
+           db_recover@o@ util_sig@o@ $(DEF_LIB) $(LIBS)
+       $(POSTLINK) $@
+-db_replicate: db_replicate@o@ util_sig@o@ $(DEF_LIB)
++db_replicate: db_replicate@o@ util_log@o@ util_sig@o@ $(DEF_LIB)
+       $(CCLINK) -o $@ $(LDFLAGS) \
+           db_replicate@o@ util_log@o@ util_sig@o@ $(DEF_LIB) $(LIBS)
+       $(POSTLINK) $@
index 23d6c4e369d3db1b364e0dbe5aa223bd2b180feb..34bdd8a1e3a332a1b98aba150d32feca89698444 100644 (file)
@@ -17,7 +17,8 @@ RCONFLICTS_${PN} = "db3"
 PR = "r0"
 
 SRC_URI = "http://download.oracle.com/berkeley-db/db-${PV}.tar.gz"
-SRC_URI += "file://arm-thumb-mutex_db5.patch;patchdir=.."
+SRC_URI += "file://arm-thumb-mutex_db5.patch;patchdir=.. \
+            file://fix-parallel-build.patch"
 
 SRC_URI[md5sum] = "3fda0b004acdaa6fa350bfc41a3b95ca"
 SRC_URI[sha256sum] = "ddd92a930317df92021054c03992392db9ea5cddba43bef8920d392a82114fb8"