[Bug 243291] www/squid PCRE regexp doesn't work anymore

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jan 12 10:11:02 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243291

            Bug ID: 243291
           Summary: www/squid PCRE regexp doesn't work anymore
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs at FreeBSD.org
          Reporter: olivierw1+bugzilla-freebsd at hotmail.com
                CC: timp87 at gmail.com
                CC: timp87 at gmail.com
             Flags: maintainer-feedback?(timp87 at gmail.com)

Hello,

Two years ago, I have helped enabling PCRE regexp in Squid's port, see #223505.
Back then I was using Squid 3.5.x on FreeBSD 11.x and it was fine :-)

Now, I am updating to Squid 4.9 on FreeBSD 12.1 and PCRE regexp don't work
anymore, I am getting back the error message I previously had before #223505 :
"repetition-operator operand invalid".
I've also tried to install squid3 (3.5.28_3), and got the same error.


The good news, I have found I need to add:
--enable-gnuregex
at the end of CONFIGURE_ARGS= in the port Makefile.
This option is documented here:
https://github.com/squid-cache/squid/blob/77b1029d207083d583d81d2f2fb7a840e0f23cab/configure.ac#L3615

It does fix my problem, but is it the right way to do it? I mean, in their
explanation of the option, they say it is for Windows or old UNIX which don't
have a regex lib.
Has anything has changed in FreeBSD 12 regarding regexp? Does anyone know why
that happens?

I have tried compiling with and without the PCRE option added in #223505, and
it does work in both case: this option seems useless with "--enable-gnuregex".

What should I do to help? Is it OK to directly add this "--enable-gnuregex"
option to CONFIGURE_ARGS? Or should I add a configurable option?
I can provide a patch, I just need to know what is best to do :-)

Best Regards,
Olivier

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list