Wind River Support Network

HomeDefectsLIN8-2948
Fixed

LIN8-2948 : invalid path in /usr/bin/mysqlbug

Created: Mar 4, 2016    Updated: Dec 3, 2018
Resolved Date: Mar 9, 2016
Found In Version: 8.0
Fix Version: 8.0.0.3
Severity: Standard
Applicable for: Wind River Linux 8
Component/s: Userspace

Description

Problem Description
======================
invalid path in /usr/bin/mysqlbug,  the script include some host paths.

COMP_CALL_INFO="CC='/buildarea1/WRL8CGP_regression/build_dir/userspace/intel-x86-64/Wildcast_Pass_cgl_glibc_cgl_WR_systemd/lxbuilds/Wildcast_Pass_platform_up/intel-x86-64-cgl-glibc-cgl/wrlinux/bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/x86_64-wrs-linux/x86_64-wrs-linux-gcc' CFLAGS='' CXX='/buildarea1/WRL8CGP_regression/build_dir/userspace/intel-x86-64/Wildcast_Pass_cgl_glibc_cgl_WR_systemd/lxbuilds/Wildcast_Pass_platform_up/intel-x86-64-cgl-glibc-cgl/wrlinux/bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/x86_64-wrs-linux/x86_64-wrs-linux-g++' CXXFLAGS=''  LDFLAGS=''  ASFLAGS=''"
COMP_RUN_INFO="CC='/buildarea1/WRL8CGP_regression/build_dir/userspace/intel-x86-64/Wildcast_Pass_cgl_glibc_cgl_WR_systemd/lxbuilds/Wildcast_Pass_platform_up/intel-x86-64-cgl-glibc-cgl/wrlinux/bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/x86_64-wrs-linux/x86_64-wrs-linux-gcc' CFLAGS='' CXX='/buildarea1/WRL8CGP_regression/build_dir/userspace/intel-x86-64/Wildcast_Pass_cgl_glibc_cgl_WR_systemd/lxbuilds/Wildcast_Pass_platform_up/intel-x86-64-cgl-glibc-cgl/wrlinux/bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/x86_64-wrs-linux/x86_64-wrs-linux-g++' CXXFLAGS=''  LDFLAGS=''  ASFLAGS=''"

log:
root@dell760-lxnetwork-vlan4:~# cat /usr/bin/mysqlbug | head -n 35
#!/bin/sh
# Copyright (C) 2000-2002, 2004 MySQL AB
# Use is subject to license terms
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA

# Create a bug report and mail it to the mysql mailing list
# Based on glibc bug reporting script.

echo "Finding system information for a MySQL bug report"

VERSION="5.5.47"
COMPILATION_COMMENT="Source distribution"
BUGmysql="maria-developers@lists.launchpad.net"
# This is set by configure
COMP_CALL_INFO="CC='/buildarea1/WRL8CGP_regression/build_dir/userspace/intel-x86-64/Wildcast_Pass_cgl_glibc_cgl_WR_systemd/lxbuilds/Wildcast_Pass_platform_up/intel-x86-64-cgl-glibc-cgl/wrlinux/bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/x86_64-wrs-linux/x86_64-wrs-linux-gcc' CFLAGS='' CXX='/buildarea1/WRL8CGP_regression/build_dir/userspace/intel-x86-64/Wildcast_Pass_cgl_glibc_cgl_WR_systemd/lxbuilds/Wildcast_Pass_platform_up/intel-x86-64-cgl-glibc-cgl/wrlinux/bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/x86_64-wrs-linux/x86_64-wrs-linux-g++' CXXFLAGS=''  LDFLAGS=''  ASFLAGS=''"
COMP_RUN_INFO="CC='/buildarea1/WRL8CGP_regression/build_dir/userspace/intel-x86-64/Wildcast_Pass_cgl_glibc_cgl_WR_systemd/lxbuilds/Wildcast_Pass_platform_up/intel-x86-64-cgl-glibc-cgl/wrlinux/bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/x86_64-wrs-linux/x86_64-wrs-linux-gcc' CFLAGS='' CXX='/buildarea1/WRL8CGP_regression/build_dir/userspace/intel-x86-64/Wildcast_Pass_cgl_glibc_cgl_WR_systemd/lxbuilds/Wildcast_Pass_platform_up/intel-x86-64-cgl-glibc-cgl/wrlinux/bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/x86_64-wrs-linux/x86_64-wrs-linux-g++' CXXFLAGS=''  LDFLAGS=''  ASFLAGS=''"
CONFIGURE_LINE=""

LIBC_INFO=""
for pat in /lib/libc.* /lib/libc-* /usr/lib/libc.* /usr/lib/libc-*
do
    TMP=`ls -l $pat 2>/dev/null`
    if test $? = 0
root@dell760-lxnetwork-vlan4:~# rpm -qf /usr/bin/mysqlbug
mariadb-client-5.5.47-r0.0.corei7_64
root@dell760-lxnetwork-vlan4:~#

Expected Behavior
======================
set a correct path

Observed Behavior
======================
see log 

Steps to Reproduce

1.
configure --enable-board=intel-x86-64 --enable-kernel=cgl --with-template=feature/valgrind,feature/libhugetlbfs,feature/acl,feature/nfsd,feature/oprofile,feature/mariadb,feature/mysql-odbc,feature/LAMP,feature/ipv6,feature/target-toolchain,feature/lttng,feature/gcc-sanitizers,feature/cut --enable-build=profiling --enable-test=yes --enable-internet-download=yes --enable-jobs=8 --enable-parallel-pkgbuilds=8 --enable-reconfig=yes --with-rcpl-version=0
make -C build mariadb-client.addpkg
make fs

2, deploy and boot

3, run:
cat /usr/bin/mysqlbug 

Other Downloads


Live chat
Online