Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to pcre2 #177

Open
dvzrv opened this issue Jun 9, 2024 · 8 comments
Open

Move to pcre2 #177

dvzrv opened this issue Jun 9, 2024 · 8 comments

Comments

@dvzrv
Copy link

dvzrv commented Jun 9, 2024

Hi! 👋

I package pcre2 for Arch Linux. We are currently working on moving from pcre (unmaintained) to pcre2.

Not having any details on this project's situation: Would it be possible for this project to either drop the dependency on pcre-light or start relying on e.g. https://github.com/sjshuck/hs-pcre2 instead?

@nomeata
Copy link
Owner

nomeata commented Jun 9, 2024

It would certainly be possible. Is it a drop-in replacement, or is there a migration guide somewhere? Of course, patches are welcome :-)

@nomeata
Copy link
Owner

nomeata commented Jun 9, 2024

BTW, someone should probably update https://wiki.haskell.org/Regular_expressions to point people to pcre2 and mention that pcre is unmaintained.

@martinvonwittich
Copy link

Debian unfortunately seems to have removed arbtt from its repository due to this dependency :(

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1026136

@nomeata
Copy link
Owner

nomeata commented Jun 28, 2024

That was opened in December 2022, and nobody thought of informing upstream about it? That’s a bit unfortunate.

@nomeata
Copy link
Owner

nomeata commented Jul 22, 2024

Hmm, I was just about to fix this, but I noticed that pcre2 isn't, for example, packaged in Debian. So I wonder: is that really the future-proof package for PCRE functionality to use? Are there alternatives to consider?

It seems that text-icu provides regex, and is available both in Debian and Arch. I am a bit hesitant, in case users use regex syntax of features that are very pcre specific.

@natrys
Copy link

natrys commented Jul 27, 2024

I noticed that pcre2 isn't, for example, packaged in Debian

It is though? Since Debian 10 it seems: https://packages.debian.org/source/buster/pcre2

@nomeata
Copy link
Owner

nomeata commented Jul 27, 2024

That's the C library, but not the Haskell bindings, isn't it?

@natrys
Copy link

natrys commented Jul 27, 2024

Oh I see what you meant. I didn't even know Debian has such granular Haskell packages in general (but I suppose I should have, from the context of this issue about Arch). My distro just uses stack/cabal and calls it a day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants