tcl: switch to * instead of [0-9]
PATCH 1/4 tcl: switch to * instead of [0-9]
Signed-off-by Vicente Olivert Riera <[email protected]>
--- package/tcl/tcl.mk | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-)
package/tcl/tcl.mk +8 -12
@@ -32,21 +32,17 @@ HOST_TCL_CONF_OPTS = \ # I haven't found a good way to force pkgs to not build # or configure without just removing the entire pkg directory. define HOST_TCL_REMOVE_PACKAGES - rm -fr $(@D)/pkgs/sqlite[0-9].[0-9].[0-9] \ - $(@D)/pkgs/tdbc[0-9].[0-9].[0-9] \ - $(@D)/pkgs/tdbcmysql[0-9].[0-9].[0-9] \ - $(@D)/pkgs/tdbcodbc[0-9].[0-9].[0-9] \ - $(@D)/pkgs/tdbcpostgres[0-9].[0-9].[0-9] \ - $(@D)/pkgs/tdbcsqlite3-[0-9].[0-9].[0-9] + rm -fr $(@D)/pkgs/sqlite3* \ + $(@D)/pkgs/tdbc* endef HOST_TCL_PRE_CONFIGURE_HOOKS += HOST_TCL_REMOVE_PACKAGES define TCL_REMOVE_PACKAGES - rm -fr $(if $(BR2_PACKAGE_SQLITE),,$(@D)/pkgs/sqlite[0-9].[0-9].[0-9]) \ - $(if $(BR2_PACKAGE_SQLITE),,$(@D)/pkgs/tdbc[0-9].[0-9].[0-9]) \ - $(@D)/pkgs/tdbcmysql[0-9].[0-9].[0-9] \ - $(@D)/pkgs/tdbcodbc[0-9].[0-9].[0-9] \ - $(@D)/pkgs/tdbcpostgres[0-9].[0-9].[0-9] \ - $(if $(BR2_PACKAGE_SQLITE),,$(@D)/pkgs/tdbcsqlite3-[0-9].[0-9].[0-9]) + rm -fr $(if $(BR2_PACKAGE_SQLITE),,$(@D)/pkgs/sqlite3*) \ + $(if $(BR2_PACKAGE_SQLITE),,$(@D)/pkgs/tdbc1*) \ + $(@D)/pkgs/tdbcmysql* \ + $(@D)/pkgs/tdbcodbc* \ + $(@D)/pkgs/tdbcpostgres* \ + $(if $(BR2_PACKAGE_SQLITE),,$(@D)/pkgs/tdbcsqlite3*) endef TCL_PRE_CONFIGURE_HOOKS += TCL_REMOVE_PACKAGES
Signature · 1 line
2.7.3
PATCH 2/4 tcl: fix sqlite usage
- Remove the bundled sqlite unconditionally.
- Remove the --with-system-sqlite option as is only valid for the bundled sqlite configure script which we will no longer use.
- Do not remove TDBC when BR2_PACKAGE_SQLITE is not selected as it may be used for other TDBC drivers such as MySQL or PostgreSQL.
Fixes:
http://autobuild.buildroot.net/results/022/02296f8624d3406a63d3a179f53862f245c56dc1/
Signed-off-by Vicente Olivert Riera <[email protected]>
--- package/tcl/tcl.mk | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-)
package/tcl/tcl.mk +4 -8
@@ -14,15 +14,10 @@ TCL_SUBDIR = unix TCL_INSTALL_STAGING = YES TCL_AUTORECONF = YES -# Note that --with-system-sqlite will only make a difference -# in the sqlite package (which gets removed if sqlite not -# configured). Don't need to worry about conditionally including -# it in the configure options TCL_CONF_OPTS = \ --disable-symbols \ --disable-langinfo \ - --disable-framework \ - --with-system-sqlite + --disable-framework HOST_TCL_CONF_OPTS = \ --disable-symbols \
@@ -36,9 +31,10 @@ define HOST_TCL_REMOVE_PACKAGES $(@D)/pkgs/tdbc* endef HOST_TCL_PRE_CONFIGURE_HOOKS += HOST_TCL_REMOVE_PACKAGES + +# We remove the bundled sqlite as we prefer to not use bundled stuff at all. define TCL_REMOVE_PACKAGES - rm -fr $(if $(BR2_PACKAGE_SQLITE),,$(@D)/pkgs/sqlite3*) \ - $(if $(BR2_PACKAGE_SQLITE),,$(@D)/pkgs/tdbc1*) \ + rm -fr $(@D)/pkgs/sqlite3* \ $(@D)/pkgs/tdbcmysql* \ $(@D)/pkgs/tdbcodbc* \ $(@D)/pkgs/tdbcpostgres* \
Signature · 1 line
2.7.3
PATCH 3/4 tcl: enable mysql support
In reply to Vicente Olivert RieraSigned-off-by Vicente Olivert Riera <[email protected]>
--- package/tcl/tcl.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
package/tcl/tcl.mk +3 -2
@@ -35,7 +35,7 @@ HOST_TCL_PRE_CONFIGURE_HOOKS += HOST_TCL_REMOVE_PACKAGES # We remove the bundled sqlite as we prefer to not use bundled stuff at all. define TCL_REMOVE_PACKAGES rm -fr $(@D)/pkgs/sqlite3* \ - $(@D)/pkgs/tdbcmysql* \ + $(if $(BR2_PACKAGE_MYSQL),,$(@D)/pkgs/tdbcmysql*) \ $(@D)/pkgs/tdbcodbc* \ $(@D)/pkgs/tdbcpostgres* \ $(if $(BR2_PACKAGE_SQLITE),,$(@D)/pkgs/tdbcsqlite3*)
@@ -73,7 +73,8 @@ define TCL_REMOVE_EXTRA endef TCL_POST_INSTALL_TARGET_HOOKS += TCL_REMOVE_EXTRA -TCL_DEPENDENCIES = $(if $(BR2_PACKAGE_SQLITE),sqlite) +TCL_DEPENDENCIES = $(if $(BR2_PACKAGE_SQLITE),sqlite) \ + $(if $(BR2_PACKAGE_MYSQL),mysql) HOST_TCL_DEPENDENCIES = $(eval $(autotools-package))
Signature · 1 line
2.7.3
PATCH 4/4 tcl: enable postgresql support
In reply to Vicente Olivert RieraSigned-off-by Vicente Olivert Riera <[email protected]>
--- package/tcl/tcl.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
package/tcl/tcl.mk +3 -2
@@ -37,7 +37,7 @@ define TCL_REMOVE_PACKAGES rm -fr $(@D)/pkgs/sqlite3* \ $(if $(BR2_PACKAGE_MYSQL),,$(@D)/pkgs/tdbcmysql*) \ $(@D)/pkgs/tdbcodbc* \ - $(@D)/pkgs/tdbcpostgres* \ + $(if $(BR2_PACKAGE_POSTGRESQL),,$(@D)/pkgs/tdbcpostgres*) \ $(if $(BR2_PACKAGE_SQLITE),,$(@D)/pkgs/tdbcsqlite3*) endef TCL_PRE_CONFIGURE_HOOKS += TCL_REMOVE_PACKAGES
@@ -74,7 +74,8 @@ endef TCL_POST_INSTALL_TARGET_HOOKS += TCL_REMOVE_EXTRA TCL_DEPENDENCIES = $(if $(BR2_PACKAGE_SQLITE),sqlite) \ - $(if $(BR2_PACKAGE_MYSQL),mysql) + $(if $(BR2_PACKAGE_MYSQL),mysql) \ + $(if $(BR2_PACKAGE_POSTGRESQL),postgresql) HOST_TCL_DEPENDENCIES = $(eval $(autotools-package))
Signature · 1 line
2.7.3
PATCH 1/4 tcl: switch to * instead of [0-9]
In reply to Vicente Olivert RieraHello,
Quoted 4 lines · Vicente Olivert Riera
Signed-off-by Vicente Olivert Riera <[email protected]>--- package/tcl/tcl.mk | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-)
All four patches applied, thanks! On this first patch, I've added a real commit log to explain why we're doing this change.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com