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

2024-06-14 Thread Axel Beckert
Control: tag -1 + patch pending

Hi again

Axel Beckert wrote:
> 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.

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.

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

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

-   pcregrep -Mv 
']*>[^<]*|<(form|input).*?>|' | \
+   perl -E 'local $$/; my $$input=<>; $$input =~ 
s:]*>[^<]*\n*|<(form|input).*?>|\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
-- 
 ,''`.  |  Axel Beckert , https://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5
  `-|  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE



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

2024-06-14 Thread Debian Bug Tracking System
Processing control commands:

> tag -1 + patch pending
Bug #1073114 [src:unburden-home-dir] unburden-home-dir: stop build-depending on 
pcre3
Added tag(s) patch and pending.

-- 
1073114: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1073114
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



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

2024-06-14 Thread Debian Bug Tracking System
Processing control commands:

> tag -1  + confirmed
Bug #1073114 [src:unburden-home-dir] unburden-home-dir: stop build-depending on 
pcre3
Added tag(s) confirmed.

-- 
1073114: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1073114
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



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

2024-06-14 Thread Axel Beckert
Control: tag -1  + confirmed

Hi Chris,

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

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

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

2024-06-12 Thread Chris Hofstaedtler
Source: unburden-home-dir
Severity: serious
Tags: trixie sid

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