#1073114 unburden-home-dir: stop build-depending on pcre3

Package:
src:unburden-home-dir
Source:
src:unburden-home-dir
Submitter:
Chris Hofstaedtler
Date:
2026-08-19 12:59:02 UTC
Severity:
normal
Tags:
#1073114#5
Date:
2024-06-12 22:27:00 UTC
From:
To:
Hi,

we want to get rid of pcre3 in trixie. As such unburden-home-dir's
Build-Depends on pcregrep dependency will become unsatisfiable.

Chris

#1073114#10
Date:
2024-06-14 09:26:09 UTC
From:
To:
Hi Chris,

Chris Hofstaedtler wrote:

Thanks for the bug report! So pcregrep hasn't been ported (by
PCRE upstream) to libpcre2 either? *sigh*

The sole reason I use it over grep is that it supports multiline
matches. It though seems that grep might be able to do that — albeit
non-obviously — via "grep -Pzov", too.

Otherwise, I'll probably just use the original with "perl -E". It's
just the build system trying to remove any unwanted crap (multiline
<script> tags including their contents) from the generated HTML
documentation.

		Regards, Axel

#1073114#17
Date:
2024-06-14 09:59:36 UTC
From:
To:
Hi again

Axel Beckert wrote:

Nope, even much simpler cases fail to remove just a substring from a
single line:

~ → printf 'foo\ngnarz\nbar\n' | fgrep -voz nar
~ → printf 'foo\ngnarz\nbar\n' | fgrep -ov nar

etc.

The following change works and produces byte for byte the identical
result as "pcregrep -Mv", it's just a bit longer:

-               pcregrep -Mv '<script[^>]*>[^<]*</script>|<(form|input).*?>|</form>' | \
+               perl -E 'local $$/; my $$input=<>; $$input =~ s:<script[^>]*>[^<]*</script>\n*|<(form|input).*?>|</form>\n*::gsm; print $$input;' | \

("$$" instead of "$" is needed even inside single quotes as this is
inside a Makefile where $ is a special character already.)

		Regards, Axel

#1073114#26
Date:
2024-08-09 12:45:00 UTC
From:
To:
pcregrep has been ported to pcre2grep which is packaged in pcre2-utils.
You can use that instead.

#1073114#33
Date:
2026-08-19 12:57:38 UTC
From:
To:
Can you please publish the release with this fixed and import it into
Debian?