maintainer-feedback requested: [Bug 262603] www/apache24: build with pcre2 by default

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 16 Mar 2022 21:26:09 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-apache (Nobody)
<apache@FreeBSD.org> for maintainer-feedback:
Bug 262603: www/apache24: build with pcre2 by default
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262603



--- Description ---
If both pcre and pcre2 installed then httpd linked with pcre2:
# readelf -d /usr/local/sbin/httpd

Dynamic section at offset 0xa4e78 contains 31 entries:
  Tag		     Type		   Name/Value
 0x000000000000001d RUNPATH		 Library runpath:
[/usr/local/lib:/usr/local/lib:/usr/local/lib]
 0x0000000000000001 NEEDED		 Shared library: [libpcre2-8.so.0]
 0x0000000000000001 NEEDED		 Shared library: [libaprutil-1.so.0]
 0x0000000000000001 NEEDED		 Shared library: [libdb-18.1.so]
 0x0000000000000001 NEEDED		 Shared library: [libgdbm.so.6]
 0x0000000000000001 NEEDED		 Shared library: [libexpat.so.1]
 0x0000000000000001 NEEDED		 Shared library: [libapr-1.so.0]
 0x0000000000000001 NEEDED		 Shared library: [libcrypt.so.5]
 0x0000000000000001 NEEDED		 Shared library: [libthr.so.3]
 0x0000000000000001 NEEDED		 Shared library: [libc.so.7]