[Buildroot] [PATCH v4 1/1] package/mariadb: patch mariadb_config to add sysroot path

Ryan Coe bluemrp9 at gmail.com
Tue Aug 18 13:05:12 UTC 2020


Thomas,


Good morning.


On 8/11/2020 6:46 AM, Thomas Petazzoni wrote:
> Hello Ryan,
>
> On Thu, 13 Feb 2020 09:46:55 -0800
> Ryan Coe <bluemrp9 at gmail.com> wrote:
>
>> This patch adds @CMAKE_SYSROOT@ to mariadb_config.c.in. Without it,
>> mariadb_config and mysql_config incorrectly returns host paths for
>> include paths and library paths.
>>
>> Upstream report and status:
>> https://jira.mariadb.org/browse/CONC-454
>> https://github.com/mariadb-corporation/mariadb-connector-c/pull/127
>>
>> Reported-by: Alexey Lukyanchuk <skif at skif-web.ru>
>> Signed-off-by: Ryan Coe <bluemrp9 at gmail.com>
> I am getting back to this older e-mail, because today I tried to use
> mysql_config when MariaDB is the MySQL provider, and it doesn't work,
> because it calls mariadb_config, which itself is a program compiled for
> the target:
>
> $ ./output/staging/usr/bin/mysql_config --cflags
> /lib/ld-uClibc.so.0: No such file or directory
> /lib/ld-uClibc.so.0: No such file or directory
> /lib/ld-uClibc.so.0: No such file or directory
> /lib/ld-uClibc.so.0: No such file or directory
>
> And indeed:
>
> $ file output/staging/usr/bin/mariadb_config
> output/staging/usr/bin/mariadb_config: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-uClibc.so.0, with debug_info, not stripped
>
> In other projects, the <something>_config program is a script, so it
> works fine on the host.
>
> How have you been using mariadb_config ?
I actually haven't used mariadb_config for anything.  My typical usage 
would include MariaDB and PHP mysqlnd.
>
> Here, the issue is that we don't have a consistent behavior between
> oracle-mysql (which installs a working
> $(STAGING_DIR)/usr/bin/mysql_config) and mariadb (which doesn't install
> a working $(STAGING_DIR)/usr/bin/mysql_config).
Makes sense.  Do you have an opinion on how to proceed?  Thanks.
>
> Thanks!
>
> Thomas



More information about the buildroot mailing list