maria-discuss team mailing list archive
-
maria-discuss team
-
Mailing list archive
-
Message #05930
Re: mariadb-config sym-link in MariaDB 10.5.5
-
To:
Sergei Golubchik <serg@xxxxxxxxxxx>
-
From:
"Chris Ross (cross2)" <cross2@xxxxxxxxx>
-
Date:
Sat, 12 Sep 2020 15:47:51 +0000
-
Accept-language:
en-US
-
Arc-authentication-results:
i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cisco.com; dmarc=pass action=none header.from=cisco.com; dkim=pass header.d=cisco.com; arc=none
-
Arc-message-signature:
i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PE183fVQX1hWamFkqzNMf+c7Ff47EtDap+A7ehLFn+c=; b=AtCn9MfUaPsKX3SG2FanLXonFs+KiyN3fJmYnw6R6RhTUwQmRhEFmZae5XQwOicTuE+2HEHE+fpFV4AcHHj5M9BKgtE9slvuifB3PjjV2rsYvEPLr1FnUdgNT9VAB1JBQ+IAt4LAuIee6Y5303bBU27ql0PZn1oqJ/pyiJBptZukZZpW3vULx0CHyweIct80QdvWw5qW1E5klCJMJ7kCOl/x155u+r4sy2wjgG6+SS5eAeUXzmU/Q0PZISKR3ZXhNrAtb7a0jlwCybJ4d5QLnWRVYoJEKdjQQllAWwrz2tkkR3CRSvUIDwMqX5TgwH61lLjdiIb3G1GsnO1Q3nYbtw==
-
Arc-seal:
i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eK2tpJN0+umVknD/CPV223iO6JUdsVeYJXRRWI/acGrKIj3ipGeytLCg1fcqFpTWqx1/ROx3sOYBzSCYhy5QpEU+qwYN255PR5QeD9PpWdcxo3FNluMIqO47n4++RT/FmLIfnCuKYEdSqJynh1xvXe1/aWeh4s25ZeCbBPhQe/f0pJP0LggkiBJ32I1fOn1ZQI4LHnRB/K+zt/drBLbm/7ekPkMKk71mg7lAr2xaVtyQiouS2qp+HhmbMc7JcK+3P7TIugs8+0W7ww89BfA82YaeBLRfFBThId3+3S4KnpCD4vU3ntj9+65Ri5/1eialNoCCndlffgSGAKNBiudkzQ==
-
Authentication-results:
mariadb.org; dkim=none (message not signed) header.d=none;mariadb.org; dmarc=none action=none header.from=cisco.com;
-
Cc:
"maria-discuss@xxxxxxxxxxxxxxxxxxx" <maria-discuss@xxxxxxxxxxxxxxxxxxx>
-
In-reply-to:
<20200912083918.GA2612@pweza.fritz.box>
-
Ironport-phdr:
9a23:w2VZvBJUnBDajjMbeNmcpTVXNCE6p7X5OBIU4ZM7irVIN76u5InmIFeGvKU/iVbTXIzX4bRDkeWF+6zjWGlV55GHvThCdZFXTBYKhI0QmBBoG8+KD0D3bZuIJyw3FchPThlpqne8N0UGHc/kZlTeqDu19zFBUhn6PBB+c+LyHIOahs+r1ue0rpvUZQgAhDe0bb5oahusqgCEvcgNiowkIaE0mRY=
-
Thread-index:
AQHWiG5jWgIJdBFX1USnng8At9oZrKlkr4sAgAA0qgA=
-
Thread-topic:
[Maria-discuss] mariadb-config sym-link in MariaDB 10.5.5
-
User-agent:
Microsoft-MacOutlook/16.40.20081000
Thanks. Appreciate the work-around, I'll put that in place. You said this is in a testing branch, will it get incorporated into 10.5.6 I assume? Just for my notes of when the workaround can be removed.
- Chris
On 9/12/20, 04:39, "Sergei Golubchik" <serg@xxxxxxxxxxx> wrote:
Hi, Chris!
Thanks.
I've pushed a fix into a testing branch.
The commit hash is 61be53a9c40 if you want to apply it as a workaround.
Another workaround would be to do 'mkdir -p destdir/usr/bin'
before 'make DESTDIR=destdir install'
Regards,
Sergei
VP of MariaDB Server Engineering
and security@xxxxxxxxxxx
On Sep 11, Chris Ross (cross2) wrote:
> Following up, with some more specifics...
>
> After configuring with below options, we have the first `maria*config`
> find(1) results, and then running “make” yields the expected binary :
>
> % find . -name maria\*config
> ./srcdir/mariadb-10.5.5/libmariadb/mariadb_config
> ./srcdir/mariadb-10.5.5/debian/mariadb-server-10.5.config
>
> <make>
> % find . -name maria\*config
> ./srcdir/mariadb-10.5.5/libmariadb/mariadb_config
> ./srcdir/mariadb-10.5.5/libmariadb/mariadb_config/mariadb_config
> ./srcdir/mariadb-10.5.5/debian/mariadb-server-10.5.config
>
> Then, a “make DESTDIR=destdir install” yields the following:
>
> ./destdir/usr/bin/mariadb_config
> ./srcdir/mariadb-10.5.5/libmariadb/mariadb_config
> ./srcdir/mariadb-10.5.5/libmariadb/mariadb_config/mariadb_config
> ./srcdir/mariadb-10.5.5/debian/mariadb-server-10.5.config
>
> And, after no other changes, rerunning the exact same make install
> command produces the following. Clearly, something is wrong with the
> make install process. So, should the first install create the
> sym-link, but isn’t? Or, is it configured in some way that the
> sym-link shouldn’t be created, and it is, but only when running make
> install twice?
>
> ./destdir/usr/bin/mariadb_config
> ./destdir/usr/bin/mariadb-config
> ./srcdir/mariadb-10.5.5/libmariadb/mariadb_config
> ./srcdir/mariadb-10.5.5/libmariadb/mariadb_config/mariadb_config
> ./srcdir/mariadb-10.5.5/debian/mariadb-server-10.5.config
>
> % ls -l destdir/usr/bin/maria*config
> -rwxr-xr-x 1 cross2 5011 25936 Sep 11 14:05 destdir/usr/bin/mariadb_config
> lrwxrwxrwx 1 cross2 5011 14 Sep 11 14:56 destdir/usr/bin/mariadb-config -> mariadb_config
>
> Please let me know. This looks like a bug in the build/install
> process, but I want to know how to work around it on my side while the
> fix is developed.
>
> Thank you!
>
> --
> Chris Ross
> Software Engineering Manager – Eventing/Datastore Teams
> cross2@xxxxxxxxx
Follow ups
References