summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/mysql
diff options
context:
space:
mode:
authorYue Tao <Yue.Tao@windriver.com>2016-09-28 22:49:11 -0400
committerMartin Jansa <Martin.Jansa@gmail.com>2016-10-05 18:21:12 +0200
commita0ef4404dad5b95982d4db74b443b81fa71e5223 (patch)
tree5e8f4d876a1c0c849ca9cbe9af7b08245c31fbcf /meta-oe/recipes-support/mysql
parentb23da47bb80310a15ad8d6cf8f5482cf300fac6e (diff)
downloadmeta-openembedded-a0ef4404dad5b95982d4db74b443b81fa71e5223.tar.gz
mariadb: replace the CC with CC_VERSION and CXX with CXX_VERSION
mysqlbug.sh is a bug report script. It makes a report with the build information, including gcc version. The CC is the local path of gcc, which is useless for bug report, and the path may expose private information, so change it to CC_VERSION. Signed-off-by: Yue Tao <Yue.Tao@windriver.com> Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/mysql')
-rw-r--r--meta-oe/recipes-support/mysql/mariadb.inc1
-rw-r--r--meta-oe/recipes-support/mysql/mariadb/change-cc-to-cc-version.patch26
2 files changed, 27 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/mysql/mariadb.inc b/meta-oe/recipes-support/mysql/mariadb.inc
index 5dd8d6465..242826910 100644
--- a/meta-oe/recipes-support/mysql/mariadb.inc
+++ b/meta-oe/recipes-support/mysql/mariadb.inc
@@ -15,6 +15,7 @@ SRC_URI = "http://archive.mariadb.org/mariadb-${PV}/source/mariadb-${PV}.tar.gz
15 file://mysql-systemd-start \ 15 file://mysql-systemd-start \
16 file://configure.cmake-fix-valgrind.patch \ 16 file://configure.cmake-fix-valgrind.patch \
17 file://fix-a-building-failure.patch \ 17 file://fix-a-building-failure.patch \
18 file://change-cc-to-cc-version.patch \
18 " 19 "
19 20
20SRC_URI[md5sum] = "5cfb169934170a429589e05f0f5aba9c" 21SRC_URI[md5sum] = "5cfb169934170a429589e05f0f5aba9c"
diff --git a/meta-oe/recipes-support/mysql/mariadb/change-cc-to-cc-version.patch b/meta-oe/recipes-support/mysql/mariadb/change-cc-to-cc-version.patch
new file mode 100644
index 000000000..02bda24f7
--- /dev/null
+++ b/meta-oe/recipes-support/mysql/mariadb/change-cc-to-cc-version.patch
@@ -0,0 +1,26 @@
1mariadb: replace the CC with CC_VERSION and CXX with CXX_VERSION
2
3mysqlbug.sh is a bug report script. It makes a report with the build information,
4including gcc version. The CC is the local path of gcc, which is useless for bug
5report, and the path may expose private information, so change it to CC_VERSION.
6
7Upstream-Status: Pending
8
9Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
10Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
11================================
12diff --git a/scripts/mysqlbug.sh.old b/scripts/mysqlbug.sh
13index e9df210..d4b8d53 100644
14--- a/scripts/mysqlbug.sh.old
15+++ b/scripts/mysqlbug.sh
16@@ -24,8 +24,8 @@ VERSION="@VERSION@@MYSQL_SERVER_SUFFIX@"
17 COMPILATION_COMMENT="@COMPILATION_COMMENT@"
18 BUGmysql="maria-developers@lists.launchpad.net"
19 # This is set by configure
20-COMP_CALL_INFO="CC='@SAVE_CC@' CFLAGS='@SAVE_CFLAGS@' CXX='@SAVE_CXX@' CXXFLAGS='@SAVE_CXXFLAGS@' LDFLAGS='@SAVE_LDFLAGS@' ASFLAGS='@SAVE_ASFLAGS@'"
21-COMP_RUN_INFO="CC='@CC@' CFLAGS='@CFLAGS@' CXX='@CXX@' CXXFLAGS='@CXXFLAGS@' LDFLAGS='@LDFLAGS@' ASFLAGS='@ASFLAGS@'"
22+COMP_CALL_INFO="CC='@CC_VERSION@' CFLAGS='@SAVE_CFLAGS@' CXX='@CXX_VERSION@' CXXFLAGS='@SAVE_CXXFLAGS@' LDFLAGS='@SAVE_LDFLAGS@' ASFLAGS='@SAVE_ASFLAGS@'"
23+COMP_RUN_INFO="CC='@CC_VERSION@' CFLAGS='@CFLAGS@' CXX='@CXX_VERSION@' CXXFLAGS='@CXXFLAGS@' LDFLAGS='@LDFLAGS@' ASFLAGS='@ASFLAGS@'"
24 CONFIGURE_LINE="@CONF_COMMAND@"
25
26 LIBC_INFO=""