maria-discuss team mailing list archive
-
maria-discuss team
-
Mailing list archive
-
Message #06030
Re: Building mariadb without PCRE?
-
To:
Vladislav Vaintroub <vvaintroub@xxxxxxxxx>, Sergei Golubchik <serg@xxxxxxxxxxx>
-
From:
"Chris Ross (cross2)" <cross2@xxxxxxxxx>
-
Date:
Tue, 20 Apr 2021 16:47:08 +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=PtuONnfpAmjtRJmfIteHa6EVtrOKdsv41aeG9o+ql5Y=; b=NbeWSUbtlQcLSoQ6v/w7+Ero0i7wwEizcfFW76sKTpVc6DZy/mbymnzzvoQ3pXOy7kT6770IWEwJgdxboYEaTKea/i8BAEx+/1diD85ZyTtEyMa+7+7bKXwYm4bK+oAOQXAbckzAlQ4t8h8qjwaVlcaYzB8neFzyEKzhHk+o64jh/KBnBB+sfmUHbe0qApmmSt5lr8bK82rcHBv99BFyuRKCNlIMcIVC2W9KRqRWPfAcBLWz2jOyybS4NW3ChceMqFz9U/+GX9abSa/+Ff8WKLZ8GP62AzV/exT+b2k/BBNck+2auNcPmAtkO1vdC9nflfJN80kW/z0ub6cWTz1QxA==
-
Arc-seal:
i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Sq/atISXVDxYpGRb03Xg771v1ecQvkFuiQzL4gB/qA/eIHMiJPYrmhBvLBdPAn5pX7KpldR5Gq44ralV9cUS133H4ZYy0u91Dti8wvaX2yDA1NgHE+wk7UKU/yv656DVU4eaAFyX6IGxfXL5/pip9StbL5TWIzDz7aPHGFfeAooJ5u3Czs/GMgnqhnozD+Ity48nlAB9A/h3L08EVwyGnns9kbFukFP+M7fZf0AAyHv0bku8rnL/FQ6tEMnztO+sRBBQtiP+9v4o+czNLa/gwQyY0L5TeJPR61oeiBkahCTTtbHqUDwP/3x4mRxqcgCDTXCKJDL4SIcaqmwcOoVyAQ==
-
Authentication-results:
gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=cisco.com;
-
Cc:
"maria-discuss@xxxxxxxxxxxxxxxxxxx" <maria-discuss@xxxxxxxxxxxxxxxxxxx>
-
In-reply-to:
<C96DB5E3-701A-4915-B462-0AFFCA278469@hxcore.ol>
-
Ironport-hdrordr:
A9a23:+66h7qyMAVL2O7GECUpvKrPxbu8kLtp033Aq2lEZdDV8Sebdv9yynfgdyB//gCsQXnZlotybJKycWxrnlKJdybI6eZOvRhPvtmftFoFt6oP+3ybtcheRysd07o0lSaR3DbTLYmRSpczx7BCkV/Mpx9ea+K6l7N2usEtFZysCUdAG0y5SDAGHHkpqACxPApQkHJSRj/A32QaIU3IRc8i9Gz05T/HOzue71a7OTDwnI1oc6AeIhS6187KSKXil9zoXTj8n+8ZYzUHriAr8j5/T1s2T6hiZ7GPL6oQTpd2J8Ko+OOWpquw4bgrhkRypYoMJYczDgBkQrPu04Fgn1Pngyi1QRfhb0H/acmGrrRaF4WCJu1xChw6AuD2lqEDursDjSDUxB9Apv/MlTjLi90EisNtguZg7uV6xiptNARvM2AT76tTYPisa7nacnHs4neYfy0FYSIsVAYUh1LA3wUU9KuZlIAvKrKQcVMV+BsDV4/hbNXmAaWrCg2VpyNuwGlwuAxavWCE5y4+o+gkTuEo841oTxcQZkHtF3ok6UYN46+PNNbktvK1ST/URcbl2CI46MImKI12IZSiJHHOZIFzhGq1CEWnKsYTL7LI84/zvX5AU0p0omtDkXElDvWA/P2LiYPf+maFjw1ToeiGQTD7twsZR69xSobvnXofmNiWFVRQgiM2lr/IDAtDKWvq6NZ5MasWTalfGKMJs5UnTSpNSIX4RXIk+odAgQW+DpcrNN8nru4XgAbDuDYuoNQxhdnL0A3MFUjS2D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1Hb+e4FpFDMVITfrflDjrmev6PhXDkG5pCM+DAHfYdXXhAIwcMRg0Q7AcGDBEG6SZyibyEzEMlYElMw+Xa9PBtaHc//YxvZpXjhpTIXEw/0YAxyIOm9E4XOjsOxgua1/ZCbYwhBiDenJ71oKxDjpgTKvc5Qioxnec4M
-
Thread-index:
AQHXNWC4F1TLPDr86UOqDecXf9v2e6q9KLMAgAADZgCAAGg8AP//x3MA
-
Thread-topic:
[Maria-discuss] Building mariadb without PCRE?
-
User-agent:
Microsoft-MacOutlook/16.48.21041102
Thank you Vlad. I may try that if my current path doesn’t work out.
In the short term, I’ve tried to build a static libpcre2 in my development environment, so that I can link mariadb to that. In doing this, I’m not able to figure out how to get cmake to locate the library. I am very familiar with make (and autoconf), but much less so with cmake. CMAKE_EXE_LINKER_FLAGS seems not to affect the test for pcre2_match_8. Is there an easy option to give mariadb’s cmake to cause it to add a path to these search tests for system library support?
I’ll keep digging around too in docs, but I wanted to check here since I have the discussion open. :-)
- Chris
From: Vladislav Vaintroub <vvaintroub@xxxxxxxxx>
Date: Tuesday, April 20, 2021 at 12:09
To: "Chris Ross (cross2)" <cross2@xxxxxxxxx>, Sergei Golubchik <serg@xxxxxxxxxxx>
Cc: "maria-discuss@xxxxxxxxxxxxxxxxxxx" <maria-discuss@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Maria-discuss] Building mariadb without PCRE?
Hi Chris,
CMake caches files , and skips download them if files already exist on disk during the build.
If pcre2-10.36.zip already exists in the build_directory/extra/pcre2/src/, then build output will look similar to below
Performing download step (download, verify and extract) for 'pcre2'
-- verifying file...
file='C:/work/server/extra/pcre2/src/pcre2-10.36.zip'
-- File already exists and hash match (skip download):
file='C:/work/server/extra/pcre2/src/pcre2-10.36.zip'
MD5='ba9e743af42aac5642f7504b12af4116'
-- extracting...
...
Note “File already exists and hash match (skip download)”
You see, download does not happen if you have the correct file in the correct place prior to the build.
From: Chris Ross (cross2)<mailto:cross2@xxxxxxxxx>
Sent: Tuesday, 20 April 2021 15:57
To: Sergei Golubchik<mailto:serg@xxxxxxxxxxx>
Cc: maria-discuss@xxxxxxxxxxxxxxxxxxx<mailto:maria-discuss@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Maria-discuss] Building mariadb without PCRE?
On 4/20/21, 05:43, "Sergei Golubchik" <serg@xxxxxxxxxxx> wrote:
On Apr 19, Chris Ross (cross2) wrote:
> Good day. We have been using MariaDB in our product for a while, and
> are upgrading to 10.5.8 at the moment. I’ve just noticed that it’s no
> longer using the PCRE on our system, it’s grabbing its own from
> outside since the upgrade to PCRE2.
There are two options. Either it can link dynamically with a system
libpcre2-8.so or statically with pcre2 compiled from source, that was
downloaded by cmake during the build.
Yup. I see that. However we run on an embedded Linux, and our platform
team won't want to add a new library for just one application. In the
short term, I'll need to build it just for MariaDB myself. But,
for security and data integrity reasons we can't pull it from the
internet at build time. Can the MariaDB pcre2 build process be given
an alternate URL or file path from which to retrieve the pcre2 source
tarball?
> We’re not using PCRE extensions at all in our applications, and I’d
> rather not pull in another extraneous library. We are a largely
> embedded product, and adding libraries is a technical and bureaucratic
> effort. Can I just build mariadb without PCRE support at all, using
> the traditional extended POSIX regexps instead? I don’t see a way to
> do this in the cmake files/parameters.
No, it's not possible. It shouldn't be difficult to implement it,
but at the moment it's not supported.
I saw this upon looking, thank you for clarifying.
- Chris
_______________________________________________
Mailing list: https://launchpad.net/~maria-discuss
Post to : maria-discuss@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~maria-discuss
More help : https://help.launchpad.net/ListHelp
Follow ups
References