FS#61358 - [pcre][mariadb] MariaDB can't be built with pcre

Attached to Project: Arch Linux
Opened by RoundCube (RoundCube) - Friday, 11 January 2019, 21:21 GMT
Last edited by Christian Hesse (eworm) - Thursday, 15 June 2023, 11:26 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Christian Hesse (eworm)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I am currently investigating how to best build MariaDB 10.3 for Arch.

It turned out that pcre has an bug, due to which MariaDB can't use it.
It's currently worked around in the MariaDB package by using a bundled pcre version which has been patched.

The upstream report is here, they agreed it's a bug, but they don't work anymore on the pcre1 version (the 8.x series)
At the end is the patch, with which one can successfully build MariaDB.

https://bugs.exim.org/show_bug.cgi?id=2173

We could apply the patch to the pcre package, or continuing to work around it by shipping MariaDB with the bundled pcre.

Additional info:
* pcre 8.42
This task depends upon

Closed by  Christian Hesse (eworm)
Thursday, 15 June 2023, 11:26 GMT
Reason for closing:  Implemented
Additional comments about closing:  in git
Comment by RoundCube (RoundCube) - Friday, 11 January 2019, 22:25 GMT
What I forgot to mention: Compiling pcre with -O0 leads as well to correct behaviour.
Comment by loqs (loqs) - Tuesday, 08 September 2020, 14:41 GMT
[1] is marked fixed in 10.5.1 so the current mariadb package should be able to use the system supplied pcre2 if desired.

[1] https://jira.mariadb.org/browse/MDEV-14024
Comment by Lex Black (TrialnError) - Monday, 20 March 2023, 08:33 GMT
Maybe this issue should be renamed to "[pcre2][mariadb] use system dependency or continue using bundled version?" as this seems to be the foremost question as of now?
The original issue in and itself is fixed due to upstream switching to pcre2 as one can see from the link loqs provided.

Reason for the system dep:
Arch tends to stay away from bundled deps and use system deps

Reason against:
There may be open bugs for pcre2 where mariadb ships locally a patched source and as this is a rather critical piece of software it may be safer.

Dunno where I would my vote if I had a voice. But as this is some longstanding open bug report which (in my opinion) could easily be closed I decided to write some words.
Comment by Christian Hesse (eworm) - Thursday, 15 June 2023, 11:25 GMT
Next package will be built with system pcre2...

Loading...