mod_perl brings together the full power of the Perl programming language
and the Apache HTTP server. You can use Perl to manage Apache, respond to
requests for web pages and much more.
mod_perl gives you a persistent Perl interpreter embedded in your web
server. This lets you avoid the overhead of starting an external interpreter
and avoids the penalty of Perl start-up time, giving you super-fast
dynamic content.
As you'd expect from the Perl community, there are hundreds of modules
written for mod_perl, everything from persistent database connections, to
templating sytems, to complete XML content delivery systems. Web sites like
Slashdot and Wired Magazine use mod_perl.
www/mod_perl2: fix build with clang 19 on i386
Clang 19 has become more strict about incompatible function pointer
types, which results in an error building mod_perl2 on i386:
modperl_common_util.c:57:53: error: incompatible function pointer types
initializing 'int (*)(PerlInterpreter *, SV *, MAGIC *, SV *, const char *,
I32)' (aka 'int (*)(struct interpreter *, struct sv *, struct magic *, struct sv
*, const char *, long)') with an expression of type 'int (PerlInterpreter *, SV
*, MAGIC *, SV *, const char *, int)' (aka 'int (struct interpreter *, struct sv
*, struct magic *, struct sv *, const char *, int)')
[-Wincompatible-function-pointer-types]
57 |
modperl_table_magic_copy};
|
^~~~~~~~~~~~~~~~~~~~~~~~
Perl uses the type `I32` for the last parameter, which is apparently
`long` on i386. So use that instead.
PR: 281594
MFH: 2024Q3
Mk/Uses/apache.mk: Refactor after removal of older versions
apache22 and apache25 had been removed a long time ago however the
apache.mk file has never been refactored and is out of sync from the
file Mk/bsd.default-versions.mk. These changes refactors the removals of
the older versions. In addition:
- Move some keywords like USE_APACHE, USE_APACHE_BUILD, USE_APACHE_RUN
from SANITY_DEPRECATED to SANITY_UNSUPPORTED
- Remove apache versions from ports Makefiles as currently there is only
one available version in the tree. However the version checks are
still valid and should work flawlessly whenever a new version is
added. For example USES=apache:2.2+ are simply replaced with
USES=apache. As currently there are no other versions available for
test this could not be checked on it's own ground.
- Update FOO_USE=APACHE=yes to FOO_USES=apache
- Remove trailing whitespaces
Approved by: portmgr
Differential Revision: https://reviews.freebsd.org/D38113
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
www/mod_perl2: update to 2.0.12 release (+)
* Fix detection of APR's threading support
* Fix build for perl >= 5.33.7
* Fix SIGSEGV crash due to wrong use of perl_parse()
MFH: 2022Q2
With hat: ports-secteam
- update to 2.0.10
(no new changes since 2.0.10-rc2)
Major changes in this release are as follows:
- Add support for Perl 5.22.x.
- Fix non-threaded Perl 5.22.x build and tests.
- Automatically select the appropriate c89 option when modperl is being
built with either gcc 5 or clang.
- Declare MP_vtbl_env and MP_vtbl_envelem as 'extern' to fix linker
errors on OSX/Darwin.
- update to 2.0.10-rc1
- change to MASTER_SITES local
Running tests against perl5.20/5.24 on 10.3(amd64) showed only know
issues present also on other platforms, but it seems to be a good
state for wider community roll out / test
Test failures:
t/filter/in_bbs_inject_header.t ......... 1/?
# Failed test 22 in t/filter/in_bbs_inject_header.t at line 58 fail #6
# Failed test 26 in t/filter/in_bbs_inject_header.t at line 58 fail #7
# Failed test 30 in t/filter/in_bbs_inject_header.t at line 58 fail #8
t/modperl/local_env.t ....... skipped: local %ENV is still broken
t/modperl/perl_options2.t ... skipped: PerlOptions None is broken
t/perl/signals.t ............ Failed 2/2 subtests
Changelog:
2.0.10-rc1
- Automatically select the appropriate c89 option when modperl is being
built with either gcc 5 or clang.
- Fix non-threaded Perl 5.22.x build and tests.
- Add support for Perl 5.22.x.
- update to rc3
- move ITHREAD check to pre-configure (dependencies are already installed) [1]
- use @sample macro for apache module file [2]
[1] If this is not working as expected, detection will be replaced with an
OPTION
PR: 200799 [2]
- add patch from upstream trunk
- mark broken with perl5.22.x
- fix pkg-plist if build against apache22 and perl with THREADS=off
- Empty commit with correct PR number
PR: 200697
Submitted by: nick(_at_)foobar.org
- add patch from upstream trunk
- mark broken with perl5.22.x
- fix pkg-plist if build against apache22 and perl with THREADS=off
PR: 15750
Submitted by: nick(_at_)foobar.org
- update to 2.0.9-rc2
- install modules file instead activating the module with apxs
RC2 has really gone a long way, and is a real candidate to
become the next official release.
Tested against apache22/24 MPM prefork/event/worker.
Changes:
========
Remove PerlInterpScope. This has not been working properly with threaded
MPMs with httpd-2.4.x and the use-case of this directive was questionable.
[Jan Kaluza]
Allow running the test suite with httpd-2.4.x when mod_access_compat is not
(Only the first 15 lines of the commit message are shown above )
MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.
While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.
Also, replace some EXTRACT_SUFX occurences with USES=tar:*.
Checked by: make fetch-urlall-list
With hat: portmgr
Sponsored by: Absolight
- update apache24 patch to upstream r1638352
- sort pkg-plist to match new makeplist output
- cleanup dirrm in pkg-plist
Changes:
- Don't call modperl_threaded_mpm() et al. from XS code #765174.
Change the way Perl modules are installed, update the default Perl to 5.18.
Before, we had:
site_perl : lib/perl5/site_perl/5.18
site_perl/perl_arch : lib/perl5/site_perl/5.18/mach
perl_man3 : lib/perl5/5.18/man/man3
Now we have:
site_perl : lib/perl5/site_perl
site_arch : lib/perl5/site_perl/mach/5.18
perl_man3 : lib/perl5/site_perl/man/man3
Modules without any .so will be installed at the same place regardless of the
(Only the first 15 lines of the commit message are shown above )
- apply patches for apache24 shaped from upstream r1602105 (2.0.9-dev)
The patches are automatically applied if build against apache24.
Interested apache22 users can change the follwing line in the Makefile
from: .if ${APACHE_VERSION} > 22
to: .if ${APACHE_VERSION} >= 22
Changelog (*NIX related):
=item 2.0.9-dev
Make sure modperl_interp_select uses r->server rather than the passed s
parameter to find the interpreter pool to pull an interpreter from. This
fixes an issue with vhosts with a separate interpreter pool and runtime
dir-config merges that used to pull the interpreter from the wrong pool.
(Only the first 15 lines of the commit message are shown above )
Remove all the bootstrap files (.bs) from the plists.
Starting with perl 5.20, they're not installed any more if empty,
and on FreeBSD, they're (always ?) empty.
PR: 190681
Submitted by: mat
Exp-Run by: antoine
Sponsored by: Absolight
- update to 2.0.8
2.0.8 April 17, 2013
Perl 5.16.3's fix for a rehash-based DoS makes it more difficult to invoke
the workaround for the old hash collision attack, which breaks mod_perl's
t/perl/hash_attack.t. Patch from rt.cpan.org #83916 improves the fix
previously applied as revision 1455340. [Zefram]
On Perl 5.17.6 and above, hash seeding has changed, and HvREHASH has
disappeared. Patch to update mod_perl accordingly from rt.cpan.org #83921.
[Zefram]
Restore build with Perl 5.8.1, 5.8.2 etc: take care to use
$Config{useithreads} rather than $Config{usethreads}, and supply definitions
(Only the first 15 lines of the commit message are shown above )
- USE_APACHE s/22+/22/
some additional cleanups/fixes
- adopt new Makefile header
- convert to optionsNG
- use BROKEN instead IGNORE in bsd.apache.mk
with hat apache@
- USE_APACHE= s/22+/22/
- adopt new Makefile header
Port build fails on local exp-run with apache24 with
error: 'conn_rec' has no member named 'remote_ip'
or various other apache22 specific functions/parameters
with hat apache@
- allow build a correct library with clang/gcc47+ by disabling
APR_INLINE because FreeBSD default port settings not uses
bundled apr from apache tarball.
- force compiler to use gnu89 C standard.
- bump PORTREVISION
with hat apache@
PR: ports/168514
Submitted by: Dima Panov <fluffy@freebsd.org>
- update to version 2.0.7
- Use APACHE macro for MASTER_SITES
- Remove SITE_PERL from *_DEPENDS
Changes:
Fix breakage caused by removal of PL_uid et al from perl 5.16.0.
Patch from rt.cpan.org #77129. [Zefram]
PR: ports/168819
Submitted by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
Mk/bsd.apache.mk can not sufficiently alter things before Mk/bsd.options.mk
in Mk/bsd.ports.mk due to ordering in Mk/bsd.port.mk. This causes OPTIONSFILE
to be incorrectly set during some make phases as a result of the recent
PKGNAMEPREFIX for apache ports.
'Revert' some of the PKGNAMEPREFIX changes for apXX-.
- Must be manually requested in tbe port Makefile either by
a) AP_FAST_BUILD=yes
b) PKGNAMEPREFIX=${APACHE_PKGNAMEPREFIX}
- Going forward, we will only do this for ports where WITH_APACHE
is NOT optional, but required. mod_* ports are a good fit.
141 ports are mod_ ports
80 of those use AP_FAST_BUILD and thus are auto hooked by this patch [a].
61 remaining are then patched to mirror the other $lang frameworks [b].
PR: ports/146956
Reported by: Hans F. Nordhaug <Hans.F.Nordhaug@hiMolde.no>, several
Discussed with: pav, itectu on #bsdports
Tested by: P6 TB run
Approved by: portmgr (pav)
- Update for devel/apr0 conversion
- as the default is www/apache20+devel/apr0 this package hasn't built
yet so no PORTREVISION Bump.
Reported by: QAT
Forgotten by: pgollucci (myself)
- With apr 1.x and THREADS, ThreadRWLock is also now XS Wrapped and installed
conditionally.
PR: ports/125151
Submitted by: Philip M. Gollucci <pgollucci@p6m7g8.com> (maintainer)
- Make the threadedness depend on the actual build of apr-util/apr, instead on
an Apache version
PR: ports/118307 (adapted from)
Submitted by: Philip M. Gollucci <pgollucci@p6m7g8.com> (maintainer)
Fix an oversight in pkg-message. Use APACHEMODDIR instead of a
hard-coded path. No PORTREVISION bump necessary as the default package
will remain the same.
PR: 119438
Submitted by: Terry Sposato <terry@sucked-in.com>
Approved by: Philip M. Gollucci (maintainer), garga (mentor)
Welcome bsd.perl.mk. Add support for constructs such as USE_PERL5=5.8.0+.
Drop support for antique perl.
Work done by: gabor
Sponsored by: Google Summer of Code 2007
Hat: portmgr
mod_perl 2.x does not properly escape PATH_INFO before use in a
regular expression
PR: 113988
Submitted by: Henrik Brix Andersen <henrik@brixandersen.dk>
Approved by: maintainer override (3 days, security)
Security: CVE-2007-1349,
VuXML ef2ffb03-f2b0-11db-ad25-0010b5a0a860
- Fix Upgrade problems
- Pass maintainership to submitter
- Fixes the -march= nothing which is not 2.0.3 specific.
- Removes the pre-everthing warning for www/apache22
- Bump PORTREVISION
Submitted by: Philip M. Gollucci" <Philip.Gollucci@ticketmaster.com>
Approved by: maintainer
[MAINTAINER] www/mod_perl2: fix for apache21 and higher
- variant of the fix in ports/90312 (can be closed, too)
- warn if an apache newer than apache20 is used
(maintainer can't test)
- remove warning about API change, it's been a year
PR: ports/90655
Submitted by: Lars Eggert <lars.eggert@gmx.net>