[Bug 731504] Re: Qt will not static compile SQLIte
seasoned_geek
roland at logikalsolutions.com
Wed Mar 9 00:21:41 UTC 2011
>.install files are meant to be a static manifest of the files resulting
>from a build. A mechanism doesn't exist in the Debian packaging system
>to make the .install files aware of configuration.
that statement is quite honestly pure ka-ka.
In debian/rules on or about listing line 144 "you" (whoever you
is) ./config.status which happens to contain whatever was passed to
configure.
#!/bin/sh
if [ "$#" -gt 0 ]; then
LDFLAGS='-Wl,-Bsymbolic-functions' CXXFLAGS='-g -O2' CFLAGS='-g
-O2' /save_sets/rebuild/qt4-x11-4.7.0/configure -confirm-license
-prefix /usr -bindir /usr/bin -libdir /usr/lib
-docdir /usr/share/qt4/doc -headerdir /usr/include/qt4
-datadir /usr/share/qt4 -plugindir /usr/lib/qt4/plugins
-importdir /usr/lib/qt4/imports
-translationdir /usr/share/qt4/translations -sysconfdir /etc/xdg
-demosdir /usr/lib/qt4/demos -examplesdir /usr/lib/qt4/examples
-opensource -fast -plugin-sql-mysql -plugin-sql-odbc -plugin-sql-psql
-qt-sql-sqlite -plugin-sql-sqlite2 -plugin-sql-tds -system-sqlite
-xmlpatterns -no-multimedia -audio-backend -no-phonon -no-phonon-backend
-svg -no-webkit -script -scripttools -platform linux-g++-64 -system-zlib
-qt-gif -system-libtiff -system-libpng -system-libjpeg -no-rpath
-optimized-qmake -dbus -no-separate-debug-info -verbose -gtkstyle
-system-nas-sound -lfontconfig -I/usr/include/freetype2 -qvfb
-plugin-sql-ibase "$@"
else
LDFLAGS='-Wl,-Bsymbolic-functions' CXXFLAGS='-g -O2' CFLAGS='-g
-O2' /save_sets/rebuild/qt4-x11-4.7.0/configure -confirm-license
-prefix /usr -bindir /usr/bin -libdir /usr/lib
-docdir /usr/share/qt4/doc -headerdir /usr/include/qt4
-datadir /usr/share/qt4 -plugindir /usr/lib/qt4/plugins
-importdir /usr/lib/qt4/imports
-translationdir /usr/share/qt4/translations -sysconfdir /etc/xdg
-demosdir /usr/lib/qt4/demos -examplesdir /usr/lib/qt4/examples
-opensource -fast -plugin-sql-mysql -plugin-sql-odbc -plugin-sql-psql
-qt-sql-sqlite -plugin-sql-sqlite2 -plugin-sql-tds -system-sqlite
-xmlpatterns -no-multimedia -audio-backend -no-phonon -no-phonon-backend
-svg -no-webkit -script -scripttools -platform linux-g++-64 -system-zlib
-qt-gif -system-libtiff -system-libpng -system-libjpeg -no-rpath
-optimized-qmake -dbus -no-separate-debug-info -verbose -gtkstyle
-system-nas-sound -lfontconfig -I/usr/include/freetype2 -qvfb
-plugin-sql-ibase
fi
at listing line 27 we find:
ibase_architectures := i386 kfreebsd-i386 kfreebsd-amd64 knetbsd-i386
netbsd-i386 amd64 sparc powerpc
#ibase_architectures := none
ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH),
$(ibase_architectures)))
extra_configure_opts += -plugin-sql-ibase
else
extra_configure_opts += -no-sql-ibase
endif
so we know that regular if statements work in this rules file.
This means that at any point _after_ line 221:
override_dh_auto_install:
ifeq ("-qt-sql-sqlite", $(findstring "-qt-sql-sqlite", $(LDFLAGS)))
rm debian/libqt4-sql-sqlite.install
fi
perhaps you just want to echo an empty file instead of the one liner
that is there. I don't code script often so syntax could be off a bit,
but, there are only a handful of config qualifiers which convert a
plugin to a static object and there is no reason the debian rules file
cannot automagically fix that since it defines the config.
--
Roland Hughes, President
Logikal Solutions
(630)-205-1593
http://www.theminimumyouneedtoknow.com
http://www.infiniteexposure.net
No U.S. troops have ever lost their lives defending our ethanol
reserves.
On Tue, 2011-03-08 at 22:10 +0000, Jonathan Thomas wrote:
> .install files are meant to be a static manifest of the files resulting
> from a build. A mechanism doesn't exist in the Debian packaging system
> to make the .install files aware of configuration. The only thing that
> comes even remotely close is wildcards such as /usr/share/* to install
> everything installed to /usr/share to a package.
>
> Which documentation are you referring to?
> If you change the files built when dpkg is run, you must also modify the .install files.
>
--
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to qt4-x11 in ubuntu.
https://bugs.launchpad.net/bugs/731504
Title:
Qt will not static compile SQLIte
More information about the kubuntu-bugs
mailing list