- Package:
- src:unburden-home-dir
- Source:
- src:unburden-home-dir
- Submitter:
- Chris Hofstaedtler
- Date:
- 2026-08-19 12:59:02 UTC
- Severity:
- normal
- Tags:
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
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
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
pcregrep has been ported to pcre2grep which is packaged in pcre2-utils. You can use that instead.
Can you please publish the release with this fixed and import it into Debian?