From: Andre McCurdy <armccurdy@gmail.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 1/7] sqlite3: fix the parallel build fix patch
Date: Fri, 22 Jan 2016 17:25:59 -0800 [thread overview]
Message-ID: <1453512366-11405-2-git-send-email-armccurdy@gmail.com> (raw)
In-Reply-To: <1453512366-11405-1-git-send-email-armccurdy@gmail.com>
The previous parallel.patch broke dynamically linking sqlite3 with
libsqlite3.so (ie using the --disable-static-shell configure option).
Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
---
meta/recipes-support/sqlite/sqlite3/parallel.patch | 46 +++++++++++++---------
1 file changed, 27 insertions(+), 19 deletions(-)
diff --git a/meta/recipes-support/sqlite/sqlite3/parallel.patch b/meta/recipes-support/sqlite/sqlite3/parallel.patch
index 87471f0..7b886a6 100644
--- a/meta/recipes-support/sqlite/sqlite3/parallel.patch
+++ b/meta/recipes-support/sqlite/sqlite3/parallel.patch
@@ -1,24 +1,32 @@
-build: Fix parallel build problems
+From 140476c3e6a6f497bdd95c0c039cb9a680f5a414 Mon Sep 17 00:00:00 2001
+From: Andre McCurdy <armccurdy@gmail.com>
+Date: Fri, 22 Jan 2016 15:53:04 -0800
+Subject: [PATCH] parallel build fix
-Avoid parallel build errors related to sqlite3.o target.
+When statically linking the sqlite3 binary, ensure that it depends on
+its own version of sqlite3.o, instead of the version being built (in
+parallel) for use in the libsqlite3.a static library.
Upstream-Status: Pending
-Signed-off-by: Maxin B. John <maxin.john@intel.com>
+Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
---
-diff -Naur sqlite-autoconf-3100000-orig/Makefile.am sqlite-autoconf-3100000/Makefile.am
---- sqlite-autoconf-3100000-orig/Makefile.am 2016-01-06 14:03:00.000000000 +0200
-+++ sqlite-autoconf-3100000/Makefile.am 2016-01-12 13:14:03.620117514 +0200
-@@ -6,10 +6,8 @@
- libsqlite3_la_LDFLAGS = -no-undefined -version-info 8:6:8
-
- bin_PROGRAMS = sqlite3
--sqlite3_SOURCES = shell.c sqlite3.h
--EXTRA_sqlite3_SOURCES = sqlite3.c
--sqlite3_LDADD = @EXTRA_SHELL_OBJ@ @READLINE_LIBS@
--sqlite3_DEPENDENCIES = @EXTRA_SHELL_OBJ@
-+sqlite3_SOURCES = shell.c sqlite3.c sqlite3.h
-+sqlite3_LDADD = @READLINE_LIBS@
- sqlite3_CFLAGS = $(AM_CFLAGS)
-
- include_HEADERS = sqlite3.h sqlite3ext.h
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index e9b3950..0e8f043 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -129,7 +129,7 @@ AC_ARG_ENABLE(static-shell, [AS_HELP_STRING(
+ [statically link libsqlite3 into shell tool [default=yes]])],
+ [], [enable_static_shell=yes])
+ if test x"$enable_static_shell" == "xyes"; then
+- EXTRA_SHELL_OBJ=sqlite3.$OBJEXT
++ EXTRA_SHELL_OBJ=sqlite3-sqlite3.$OBJEXT
+ else
+ EXTRA_SHELL_OBJ=libsqlite3.la
+ fi
+--
+1.9.1
+
--
1.9.1
next prev parent reply other threads:[~2016-01-23 1:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-23 1:25 [PATCH 0/7] sqlite3: misc fixes, cleanup + update 3.10.0 -> 3.10.2 Andre McCurdy
2016-01-23 1:25 ` Andre McCurdy [this message]
2016-01-23 1:26 ` [PATCH 2/7] sqlite3.inc: fix readline PACKAGECONFIG Andre McCurdy
2016-01-23 1:26 ` [PATCH 3/7] sqlite3.inc: drop obsolete config_BUILD_CC, etc exports Andre McCurdy
2016-01-23 1:26 ` [PATCH 4/7] sqlite: formatting improvements, move more stuff into sqlite3.inc Andre McCurdy
2016-01-23 1:26 ` [PATCH 5/7] sqlite3.inc: dynamically link the sqlite3 command-line utility Andre McCurdy
2016-01-23 1:26 ` [PATCH 6/7] sqlite3.inc: add PACKAGECONFIG to support building against libedit Andre McCurdy
2016-01-23 1:26 ` [PATCH 7/7] sqlite3: update 3.10.0 -> 3.10.2 Andre McCurdy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1453512366-11405-2-git-send-email-armccurdy@gmail.com \
--to=armccurdy@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox