Skip to contentSkip to conversation

Misc fixes

PATCH New Thomas Petazzoni 2 participants 6 messages Apr 29, 2013

lore
Share & tools
lore
#0 lore raw

cover Misc fixes

Hello,

Here is a bunch of misc fixes that have been sitting in my private repository for some time. Three patches fix incorrect dependencies, one removes trailing spaces.

Best regards,

Thomas

Thomas Petazzoni (4):
qt, php: selecting mysql requires depending on MMU
make: undeprecate package as it is used by the uClibc test suite
system: remove trailing tabs in Config.in file Config.in.legacy: fix consistency warning on pthread-stubs option

 Config.in.legacy         |    1 +
 package/make/Config.in   |    6 ++++--
 package/php/Config.ext   |    3 +++
 package/qt/Config.sql.in |    1 +
 system/Config.in         |   16 ++++++++--------
 5 files changed, 17 insertions(+), 10 deletions(-)
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/4 qt, php: selecting mysql requires depending on MMU

The mysql_client package is only available on architectures having a MMU, so all packages that are selecting mysql_client should depend on BR2_USE_MMU.

---
 package/php/Config.ext   |    3 +++
 package/qt/Config.sql.in |    1 +
 2 files changed, 4 insertions(+)
package/php/Config.ext +3 -0
index 2cf71d3..006d7dd 100644
@@ -105,6 +105,7 @@ config BR2_PACKAGE_PHP_EXT_SQLITE_UTF8
 config BR2_PACKAGE_PHP_EXT_MYSQL
 	bool "Mysql"
 	depends on BR2_INSTALL_LIBSTDCPP
+	depends on BR2_USE_MMU # mysql
 	select BR2_PACKAGE_MYSQL_CLIENT
 	help
 	  MySQL support
@@ -112,6 +113,7 @@ config BR2_PACKAGE_PHP_EXT_MYSQL
 config BR2_PACKAGE_PHP_EXT_MYSQLI
 	bool "Mysqli"
 	depends on BR2_INSTALL_LIBSTDCPP
+	depends on BR2_USE_MMU # mysql
 	select BR2_PACKAGE_MYSQL_CLIENT
 	select BR2_PACKAGE_PHP_EXT_MYSQL
 	help
@@ -127,6 +129,7 @@ if BR2_PACKAGE_PHP_EXT_PDO
 config BR2_PACKAGE_PHP_EXT_PDO_MYSQL
 	bool "MySQL"
 	depends on BR2_INSTALL_LIBSTDCPP
+	depends on BR2_USE_MMU # mysql
 	select BR2_PACKAGE_MYSQL_CLIENT
 	help
 	  PDO driver for MySQL
package/qt/Config.sql.in +1 -0
index eceb15d..04489c7 100644
@@ -9,6 +9,7 @@ config BR2_PACKAGE_QT_MYSQL
 	select BR2_PACKAGE_MYSQL_CLIENT
 	select BR2_PACKAGE_NCURSES
 	select BR2_PACKAGE_READLINE
+	depends on BR2_USE_MMU # mysql
 	help
 	  Build MySQL driver
 	  If unsure, say n.
Signature · 1 line
1.7.9.5
#2 lore raw

PATCH 2/4 make: undeprecate package as it is used by the uClibc test suite

In reply to Thomas Petazzoni

The uClibc test suite can be installed on the target thanks to the BR2_UCLIBC_INSTALL_TEST_SUITE option, but it requires make to be installed on the target. Since the make package is currently marked as deprecated, it leads to the following warning:

warning: (BR2_UCLIBC_INSTALL_TEST_SUITE) selects BR2_PACKAGE_MAKE which has unmet direct dependencies (BR2_DEPRECATED)

We fix this by undeprecating the make package, and also update its description to explain why we have the make package even if we don't have support for building a toolchain for the target.

---
 package/make/Config.in |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
package/make/Config.in +4 -2
index e5cc970..aea72e3 100644
@@ -1,10 +1,12 @@
 config BR2_PACKAGE_MAKE
 	bool "make"
 	select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
-	# We no longer support a toolchain on the target
-	depends on BR2_DEPRECATED
 	help
 	  A tool which controls the generation of executables and other
 	  non-source files of a program from the program's source files.
 
+	  While Buildroot no longer supports building a toolchain for
+	  the target, we keep a make package that is for example
+	  useful to run the uClibc test suite on the target.
+
 	  http://www.gnu.org/software/make/
Signature · 1 line
1.7.9.5
#3 lore raw

PATCH 3/4 system: remove trailing tabs in Config.in file

In reply to Thomas Petazzoni
---
 system/Config.in |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
system/Config.in +8 -8
index 1e4fff3..c0e4f4a 100644
@@ -18,14 +18,14 @@ choice
 	help
 	  Choose the password encoding scheme to use when Buildroot
 	  needs to encode a password (eg. the root password, below).
-	  
+
 	  Note: this is used at build-time, and *not* at runtime.
 
 config BR2_TARGET_GENERIC_PASSWD_DES
 	bool "des"
 	help
 	  Use standard 56-bit DES-based crypt(3) to encode passwords.
-	  
+
 	  Old, wildly available, but also the weakest, very susceptible to
 	  brute-force attacks.
 
@@ -33,7 +33,7 @@ config BR2_TARGET_GENERIC_PASSWD_MD5
 	bool "md5"
 	help
 	  Use MD5 to encode passwords.
-	  
+
 	  The default. Wildly available, and pretty good.
 	  Although pretty strong, MD5 is now an old hash function, and
 	  suffers from some weaknesses, which makes it susceptible to
@@ -43,7 +43,7 @@ config BR2_TARGET_GENERIC_PASSWD_SHA256
 	bool "sha-256"
 	help
 	  Use SHA256 to encode passwords.
-	  
+
 	  Very strong, but not ubiquitous, although available in glibc
 	  for some time now. Choose only if you are sure your C library
 	  understands SHA256 passwords.
@@ -52,7 +52,7 @@ config BR2_TARGET_GENERIC_PASSWD_SHA512
 	bool "sha-512"
 	help
 	  Use SHA512 to encode passwords.
-	  
+
 	  Extremely strong, but not ubiquitous, although available in glibc
 	  for some time now. Choose only if you are sure your C library
 	  understands SHA512 passwords.
@@ -178,17 +178,17 @@ config BR2_TARGET_GENERIC_ROOT_PASSWD
 	default ""
 	help
 	  Set the initial root password (in clear). It will be md5-encrypted.
-	  
+
 	  If set to empty (the default), then no root password will be set,
 	  and root will need no password to log in.
-	  
+
 	  WARNING! WARNING!
 	  Although pretty strong, MD5 is now an old hash function, and
 	  suffers from some weaknesses, which makes it susceptible to attacks.
 	  It is showing its age, so this root password should not be trusted
 	  to properly secure any product that can be shipped to the wide,
 	  hostile world.
-	  
+
 	  WARNING! WARNING!
 	  The password appears in clear in the .config file, and may appear
 	  in the build log! Avoid using a valuable password if either the
Signature · 1 line
1.7.9.5
#4 lore raw

PATCH 4/4 Config.in.legacy: fix consistency warning on pthread-stubs option

In reply to Thomas Petazzoni

The old BR2_PACKAGE_PTHREAD_STUBS option (kept for legacy support) now selects the BR2_PACKAGE_XLIB_LIBPTHREAD_STUBS option, but this creates a consistency warning from kconfig, because the new option has BR2_PACKAGE_XORG7 as a dependency.

Since the old option also had BR2_PACKAGE_XORG7 has a dependency, we make the legacy config option depend on BR2_PACKAGE_XORG7 to avoid this warning.

---
 Config.in.legacy |    1 +
 1 file changed, 1 insertion(+)
Config.in.legacy +1 -0
index 5165138..fc9f68f 100644
@@ -140,6 +140,7 @@ config BR2_PACKAGE_PTHREAD_STUBS
 	bool "pthread-stubs option has been renamed"
 	select BR2_LEGACY
 	select BR2_PACKAGE_XLIB_LIBPTHREAD_STUBS
+	depends on BR2_PACKAGE_XORG7
 	help
 	  For consistency reason, the pthread-stubs package has been
 	  renamed to xlib_libpthread-stubs.
Signature · 1 line
1.7.9.5
#5 lore raw

cover Misc fixes

In reply to Thomas Petazzoni
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

Thomas> Hello,
Thomas> Here is a bunch of misc fixes that have been sitting in my private Thomas> repository for some time. Three patches fix incorrect dependencies, Thomas> one removes trailing spaces.

Committed series, thanks.

Signature · 1 line
Bye, Peter Korsgaard