mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] qt4 with -system-sqlite
@ 2019-05-16 13:24 Thorsten Scherer
  2019-05-17 14:21 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Thorsten Scherer @ 2019-05-16 13:24 UTC (permalink / raw)
  To: ptxdist

Hello,

we had an issue compiling qt4 with sqlite provided by the system. The configure
option "-system-sqlite" wasn't appended.

I grepped through the git history and found:

ad4ffd4ad5f63110b68146d5b7a83e01cd445fa6 qt4: fix sqlite configure options

diff --git a/rules/qt4.make b/rules/qt4.make
index 4b5eafc7e..efeb016c5 100644
--- a/rules/qt4.make
+++ b/rules/qt4.make
@@ -206,8 +206,9 @@ QT4_AUTOCONF-$(call ptx/qt-no, BUILD_SCRIPT)                += script       
 QT4_AUTOCONF-$(call ptx/qt-no, BUILD_DECLARATIVE)      += declarative                          

 QT4_AUTOCONF-$(call ptx/qt-plugin, SQLITE)             += sql-sqlite                           
-QT4_AUTOCONF-$(call ptx/qt-system, SQLITE)             += sqlite                               
-
+ifdef QT4_SQLITE_SYSTEM
+QT4_AUTOCONF += -system-sqlite
+endif

 QT4_AUTOCONF-no := $(filter-out $(QT4_AUTOCONF-y),$(QT4_AUTOCONF-no))                          



After applying the following patch (which basically but not exactly reverts
the patch above), the qt4 configure options worked as expected.

diff --git a/rules/qt4.make b/rules/qt4.make
index 14d9a0556..75e54a246 100644
--- a/rules/qt4.make
+++ b/rules/qt4.make
@@ -206,6 +206,7 @@ QT4_AUTOCONF-$(call ptx/qt-system, TIFF)		+= libtiff
 QT4_AUTOCONF-$(call ptx/qt-system, GIF)			+= gif
 QT4_AUTOCONF-$(call ptx/qt-system, JPG)			+= libjpeg
 QT4_AUTOCONF-$(call ptx/qt-system, ZLIB)		+= zlib
+QT4_AUTOCONF-$(call ptx/qt-system, SQLITE)      += sqlite
 QT4_AUTOCONF-$(call ptx/qt-system, FREETYPE)		+= freetype
 ifdef PTXCONF_QT4_FREETYPE_SYSTEM
 QT4_AUTOCONF += -I$(SYSROOT)/usr/include/freetype2
@@ -226,9 +227,6 @@ QT4_AUTOCONF-$(call ptx/qt-no, BUILD_SCRIPT)		+= script
 QT4_AUTOCONF-$(call ptx/qt-no, BUILD_DECLARATIVE)	+= declarative
 
 QT4_AUTOCONF-$(call ptx/qt-plugin, SQLITE)		+= sql-sqlite
-ifdef QT4_SQLITE_SYSTEM
-QT4_AUTOCONF += -system-sqlite
-endif
 
 QT4_AUTOCONF-no := $(filter-out $(QT4_AUTOCONF-y),$(QT4_AUTOCONF-no))
 

The difference I can spot is qt-system being called before qt-plugin. So my
question is:

Is this patch really fixing the problem? (or might there any side effect I
am not aware of?)

Maybe anyone has time and patience to reproduce this.

Thanks a lot!

Best regards
Thorsten

-- 
Thorsten Scherer
Eckelmann AG - https://www.eckelmann.de

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-05-17 14:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-16 13:24 [ptxdist] qt4 with -system-sqlite Thorsten Scherer
2019-05-17 14:21 ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox