Bug 179527 - [Patch] Fix for www/mod_rpaf2 compatibility with Apache 2.4
Summary: [Patch] Fix for www/mod_rpaf2 compatibility with Apache 2.4
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-apache (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-12 23:50 UTC by morfin60
Modified: 2013-06-18 21:24 UTC (History)
0 users

See Also:


Attachments
file.diff (2.73 KB, patch)
2013-06-12 23:50 UTC, morfin60
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description morfin60 2013-06-12 23:50:02 UTC
Port mod_rpaf2 can't be compiled when using apache24 because it is marked as broken. Also it can't be compiled when USE_APACHE is changed to 24 in Makefile because some conn_rec fields was renamed(remote_addr to client_addr and remote_ip to client_ip).

Fix: I've added inline functions which accessing fields using preprocessor directives which checks AP_SERVER_MAJORVERSION_NUMBER and AP_SERVER_MINORVERSION_NUMBER values. This patch was tested on Apache 2.4.4 and 2.2.24

Patch attached with submission follows:
How-To-Repeat: Build apache24 from /usr/ports/www/apache24 and then build /usr/ports/www/mod_rpaf2
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-06-18 20:22:53 UTC
Responsible Changed
From-To: freebsd-ports-bugs->apache

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Olli Hauer freebsd_committer freebsd_triage 2013-06-18 21:22:24 UTC
State Changed
From-To: open->closed

Duplicate of PR ports/179525