You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Patrick Powell <pa...@astart.com> on 2014/08/01 23:09:06 UTC

Apache 24 + mod_perl

Question:  when will mod_perl be available for Apache 24?  Is anybody 
using it (see below), and what problems (if any) were there?  The method 
outlined below may or may not work - I haven't tried it.  Any comments 
or suggestions?

Background:

I wanted to update to Apache 24/FreeBSD 9.2. Everything went fine until 
I hit mod_perl.  The
current Port Makefile as of Fri 01 Aug 2014 is marked as:

.if ${APACHE_VERSION} > 22
BROKEN= Does not build with apache24
.endif

Apparently mod_perl is currently not compatible with Apache24.  The 
perl-modperl mailing list has a posting:

http://mail-archives.apache.org/mod_mbox/perl-modperl/201402.mbox/%3CCADED=K4p2HFc6K1San3MPmm8vZ+gwT5rsiJ5sAMVLRV7z5z-gA@mail.gmail.com%3E

This has the following information:
Date: Sun, 16 Feb 2014 15:36:18 GMT

> The Debian project is shipping mod_perl with httpd24 support
> based on http://svn.apache.org/repos/asf/perl/modperl/branches/httpd24/.

An update on the state of things regarding httpd-2.4 support in mod_perl:

We are working hard to get this done and are 99% of the way there.
Both volunteers and volunteers' time is limited, though, so progress
has been slow. A lot of work has taken place in the httpd24 branch,
and as Dominic says, some Linux distros are already shipping that.

There is also a posting on how to abuse the mod_perl2 port, download the 
source from the SVN repository and force mod_perl2 to compile it:

https://forums.freebsd.org/viewtopic.php?f=5&t=46523




Re: Apache 24 + mod_perl

Posted by Patrick Powell <pa...@astart.com>.
OK, here are the results of my initial tests.  See ++ TEST ++ at
the end of these notes for the results
Sun Aug  3 07:01:46 PDT 2014

I started with FreeBSD 93, perl5.16

test94: {90} # uname -a

FreeBSD test94.private 9.3-RELEASE FreeBSD 9.3-RELEASE #0 r268512:
Thu Jul 10 23:44:39 UTC 2014
root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

test94: {92} # perl -v

This is perl 5, version 16, subversion 3 (v5.16.3) built for 
amd64-freebsd-thread-multi

test94: {93} # pkg info perl5
perl5-5.16.3_11
Name           : perl5
Version        : 5.16.3_11
Installed on   : Tue Jul 29 07:04:39 PDT 2014
Origin         : lang/perl5.16
Architecture   : freebsd:9:x86:64
Prefix         : /usr/local
Categories     : perl5 lang devel
Licenses       : GPLv1 or ART10
Maintainer     : perl@FreeBSD.org
WWW            : http://www.perl.org/
Comment        : Practical Extraction and Report Language
Options        :
         DEBUG          : off
         GDBM           : off
         MULTIPLICITY   : off
         PERL_64BITINT  : on
         PERL_MALLOC    : off
         PTHREAD        : on
         SITECUSTOMIZE  : off
         THREADS        : on
         USE_PERL       : on
Shared Libs required:
         libperl.so
Annotations    :
         cpe            : cpe:/a:perl:perl:5.16.3::~~~freebsd~~
Flat size      : 47.4MiB
Description    :
Perl is a language that combines some of the features of C, sed, awk and
shell.  See the manual page for more hype.  There are also many books
published by O'Reilly & Assoc.  See pod/perlbook.pod for more
information.

***************

Now read the article: 
https://forums.freebsd.org/viewtopic.php?f=5&t=46523.  We are
going to do some of the steps,  with minor modifications.

1. Install apache24
    #> cd /usr/ports/www/apache24
    #> make install
   OR
     pkg install apache24

2. Start to install mod_perl2, fetch the source code:

    #> cd /usr/ports/www/mod_perl2
    #> make fetch

    This will fetch mod_perl-2.0.8.tar.gz and put it in /usr/ports/distfiles
    Now untar mod_perl-2.0.8.tar.gz

    #> cd /usr/ports/distfiles
    #> tar xvf mod_perl-2.0.8.tar.gz

3. We will create a dummy mod_perl-2.0.9 distribution file.  We
    will need the Apache-Reload, Apache-SizeLimit, and Apache-Test
    Perl Modules from mod_perl-2.0.8 ,  which are not in the SVN
    distribution we are going to fetch,  but are in the mod_perl-2.0.8
    distribution.  Note that these appear to be the latest versions;
    if in doubt check the Apache Web site.

    #> mkdir mod_perl-2.0.9
    #> tar cf - -C mod_perl-2.0.8 Apache-Reload Apache-SizeLimit 
Apache-Test | tar xvf - -C mod_perl-2.0.9

4. Now get the latest http24 branch from the Apache Mod_perl SVN repository:

    You may need to install wget:
    #> pkg install wget

    #> wget --no-parent -r 
http://svn.apache.org/repos/asf/perl/modperl/branches/httpd24/

    This will create a 
svn.apache.org/repos/asf/perl/modperl/branches/httpd24 directory.
    Now we copy these files to the mod_perl-2.0.9 directory:
    #> tar cf - -C 
svn.apache.org/repos/asf/perl/modperl/branches/httpd24 . | tar xvf - -C 
mod_perl-2.0.9
    #> ls mod_perl-2.0.9
    Apache-Reload           LICENSE README                  
bin                     t
    Apache-SizeLimit        META.yml README-SVN              
build                   todo
    Apache-Test             Makefile.PL RELEASE                 
index.html              util
    BRANCHING               Makefile.old STATUS                  
lib                     xs
    Changes                 ModPerl-Registry SVN-MOVE                patches
    INSTALL                 NOTICE WrapXS                  src

5. Create a tar file of mod_perl-2.0.9
    #> tar cfz mod_perl-2.0.9.tar.gz mod_perl-2.0.9

6. Now we modify the www/mod_perl2 port

    #> cd /usr/ports/www/mod_perl2

    Edit Makefile, and make the following changes:
    a) we set PORTVERSION to 2.0.9
    b) we set USET_APACHE to 22+
    c) remove the 'Broken' warning


     *** 2,8 ****
       # $FreeBSD: head/www/mod_perl2/Makefile 362013 2014-07-15 
22:14:23Z ohauer $

       PORTNAME=     mod_perl
     ! PORTVERSION=  2.0.8
       PORTREVISION= 1
       PORTEPOCH=    3
       CATEGORIES=   www perl5
     --- 2,8 ----
       # $FreeBSD: head/www/mod_perl2/Makefile 362013 2014-07-15 
22:14:23Z ohauer $

       PORTNAME=     mod_perl
     ! PORTVERSION=  2.0.9
       PORTREVISION= 1
       PORTEPOCH=    3
       CATEGORIES=   www perl5
     ***************
     *** 18,34 ****

       SUB_FILES=    pkg-message
       SUB_LIST=     APACHEMODDIR=${APACHEMODDIR}
     ! USE_APACHE=   22
       USES=         gmake perl5
       USE_PERL5=    configure
       USE_CSTD=     gnu89

       .include <bsd.port.pre.mk>

     - .if ${APACHE_VERSION} > 22
     - BROKEN=       Does not build with apache24
     - .endif
     -
       # Using apxs in this way is problematic if apache2 is installed 
under a
       # different PREFIX than mod_perl2, because the mod_perl2 
installation will
       # use paths returned by apxs to install some components. Fixes 
welcome.
     --- 18,30 ----

       SUB_FILES=    pkg-message
       SUB_LIST=     APACHEMODDIR=${APACHEMODDIR}
     ! USE_APACHE=   22+
       USES=         gmake perl5
       USE_PERL5=    configure
       USE_CSTD=     gnu89

       .include <bsd.port.pre.mk>

       # Using apxs in this way is problematic if apache2 is installed 
under a
       # different PREFIX than mod_perl2, because the mod_perl2 
installation will
       # use paths returned by apxs to install some components. Fixes 
welcome.


6. This is a bit tricky, and thanks to the Ports folks for showing me this.
    First,  We now set the checksums in distinfo.orig to match the newly 
created tar file:

    #> make makesum

7. Now for the acid test, we try to compile this:
    #> make build

     (See build.log)

     ++++++++++++++++++ TEST ++++++++++++++++++
     But Does It Work?
     See next section for detail
     ++++++++++++++++++++++++++++++++++++++++++

8. If we want to install it, we should update the pkg-plist:
    #> make makeplist >pkg-plist

    #> vi pkg-plist
    Get rid of junk lines, delete from the first line up to  and including
    /you/have/to/check/what/makeplist/gives/you

9. Now you can try to install it:

    #> make install

10.  You now need to edit /usr/local/etc/apache24/httpd.d and add:

   LoadModule perl_module libexec/apache24/mod_perl.so

  ++++++++++++++++++ TEST ++++++++++++++++++

After all of this effort,  I expected mod_perl2 to fail all of the
tests.  The mod_perl tests cannot be done by root so you will have
to use another user.  First you will need to set up a suitable test
user.  AND...  Part of the tests require writing a file to /var/run.
AND... during the tests you will write a log file to the t/logs/\
directory in the mod_perl source.

So...
1. Create a user say, admin.
2. Add it to group wheel (see FreeBSD Handbook).
3. #> ls -ld /var/run
    drwxr-xr-x  12 root  wheel  1024 Aug  2 19:03 /var/run
  . #> chmod g+w /var/run

4. #> cd /usr/port/www/mod_perl2
    We need to set ownership of the work directory to the test user:
    #> chown -R admin work

5.  Now we run our tests as user admin:

    #> su admin
    %> make test |&tee test.log

Here is an extract from test.log showing the failues. Note that
most of the failed test are for Apache,  and may be common to the
baseline Apache distribution.

    # Failed test 5 in t/apache/scanhdrs2.t at line 33

      I suspect that this test is due to the change in the API from
      2.2 to 2.4.

    # Failed test 4 in t/hooks/authen_digest.t at line 35
    # Failed test 5 in t/hooks/authen_digest.t at line 37
    # Failed test 6 in t/hooks/authen_digest.t at line 41
    # Failed test 7 in t/hooks/authen_digest.t at line 45

      Again,  apache22 authentication support (Allow,deny) is now
      obsolete.  See http://httpd.apache.org/docs/2.4/upgrading.html
      The 'Order deny, allow Deny from all' is now 'Require all deny'

      I suspect that these tests might need to be updated for
      apache24 or separate tests done for apache22 and apache24

    # Failed test 2 in t/modules/cgi.t at line 35
    # Failed test 5 in t/modules/cgi.t at line 60
    # Failed test 3 in t/modules/cgi2.t at line 43
    # Failed test 4 in t/modules/cgipost.t at line 34 fail #4
    # Failed test 4 in t/modules/cgipost2.t at line 34 fail #4
    # Failed test 1 in t/modules/cgiupload.t at line 36
    # Failed test 2 in t/modules/cgiupload2.t at line 36 fail #2

      I suspect that there has been some change in the API for CGI
      support.  This needs to be reviewed and the cause
      of the failure determined.

    t/apache/scanhdrs2.t                  (Wstat: 0 Tests: 5 Failed: 1)
      Failed test:  5
    t/compat/conn_rec.t                   (Wstat: 0 Tests: 2 Failed: 0)
    t/hooks/authen_digest.t               (Wstat: 0 Tests: 7 Failed: 4)
      Failed tests:  4-7
    t/modules/cgi.t                       (Wstat: 0 Tests: 5 Failed: 2)
      Failed tests:  2, 5
    t/modules/cgi2.t                      (Wstat: 0 Tests: 5 Failed: 1)
      Failed test:  3
    t/modules/cgipost.t                   (Wstat: 0 Tests: 6 Failed: 1)
      Failed test:  4
    t/modules/cgipost2.t                  (Wstat: 0 Tests: 6 Failed: 1)
      Failed test:  4
    t/modules/cgiupload.t                 (Wstat: 0 Tests: 2 Failed: 1)
      Failed test:  1
    t/modules/cgiupload2.t                (Wstat: 0 Tests: 2 Failed: 1)
      Failed test:  2
    Failed 9/249 test programs. 12/4535 subtests failed.


On 08/01/14 14:34, Kurt Jaeger wrote:
> Hi!
>
>> Question:  when will mod_perl be available for Apache 24?
> There's a PR where people are discussing this:
>
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191471
>
> This PR needs more testers etc.
>


Re: Apache 24 + mod_perl

Posted by Patrick Powell <pa...@astart.com>.
Hmmm... well, it looks like you need to update the procedures from 
RedHat which build the mod_perl.
I don't think you can build a FreeBSD port on a Linux system, although 
stranger things have happened.

On 08/06/14 19:43, Jie Gao wrote:
> The patch, or rather the patching itself, does not work with a box of
> Red Hat Enterprise Linux Server release 6.5 for me here.
>
> Regards,
>
> Jie
>
> * Patrick Powell <pa...@astart.com> wrote:
>
>> Date: Wed, 6 Aug 2014 17:27:15 -0700
>> From: Patrick Powell <pa...@astart.com>
>> To: olli hauer <oh...@gmx.de>
>> CC: Steve Hay <st...@googlemail.com>, Kurt Jaeger <li...@opsec.eu>,
>>   ports@freebsd.org, "modperl@perl.apache.org" <mo...@perl.apache.org>
>> Subject: Re: Apache 24 + mod_perl
>> User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130714
>>   Thunderbird/17.0.7
>>
>> On 08/06/14 14:34, olli hauer wrote:
>>> On 2014-08-06 22:45, Patrick Powell wrote:
>>>> On 08/06/14 00:19, Steve Hay wrote:
>>>>> On 3 August 2014 22:13, Patrick Powell <pa...@astart.com> wrote:
>>>>>> On 08/03/14 08:25, olli hauer wrote:
>>>>>>> On 2014-08-01 23:34, Kurt Jaeger wrote:
>>>>>>>> Hi!
>>>>>>>>
>>>>>>>>> Question:  when will mod_perl be available for Apache 24?
>>>>>>>> There's a PR where people are discussing this:
>>>>>>>>
>>>>>>>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191471
>>>>>>>>
>>>>>>>> This PR needs more testers etc.
>>>>>>>>
>>>>>>> I've updated the PR with a patch against the latest mod_perl trunk
>>>>>>> revision (r1602105).
>>>>>>>
>>>>>>> The patch against the port can be grabbed from here or from our bugzilla
>>>>>>>
>>>>>>> http://people.freebsd.org/~ohauer/diffs/apache/mod_perl2-2.0.8_apache24.diff
>>>>>>>
>>>>>>> Please test *at own risk*, and report issues to upstream and here so we
>>>>>>> can integrate fresh upstream fixes and update the port.
>>>>>>>
>>>>>>> The first proposed patch will allows the port to build but I have to many
>>>>>>> concerns for integrating this simple fix into the tree.
>>>>>>> I don't believe the first patch on the PR will work right else it would
>>>>>>> take the upstream dev. work and time for mod_perl2 at absurdI -um ...
>>>>>>>
>>>>>>>
>>>>>> I have taken a slightly different approach,   using the mod_perl2 SVN
>>>>>> ..../httpd24 branch as the starting point.
>>>>>>
>>>>> The httpd24 branch is obselete. It was used for the initial
>>>>> development of httpd-2.4 support, but was superseded by
>>>>> httpd24threading, and since then everything from both branches has
>>>>> been merged back to trunk.
>>>>>
>>>>> The current trunk is largely ready for a 2.0.9 release supporting
>>>>> httpd-2.4, pending some more testing and fixes as necessary.
>>>>>
>>>> I tried using the trunk a couple of days ago and it did not compile.  Just to make sure
>>>> that I am using the right SVN respository and branch, what is the URL of the trunk SVN repository?
>>>> I am more than happy to try testing mod_perl.
>>>>
>>> Hm, with the following patch applied to www/mod_perl2 it builds fine for me on FreeBSD 8.4 / 10.0 (amd64) an apache-2.4.10
>>> http://people.freebsd.org/~ohauer/diffs/apache/mod_perl2-2.0.8_apache24.diff
>>>
>>> The patch does some adjustments in the port / pkg-plist and fetches a complete archive containing all patches so the sources are the same as the upstream (r1602105) trunk/httpd24threade branch.
>>>
>>> After applying the patch and using the command `make patch' it is easy to compare the sources against upstream sources (check out before)
>>> http://svn.apache.org/repos/asf/perl/modperl/branches/httpd24threading
>>> http://svn.apache.org/repos/asf/perl/modperl/trunk
>>>
>>>
>>> Easiest way to apply the patch against the unmodified port:
>>>
>>> $ cd www/mod_perl2
>>> $ fetch http://people.freebsd.org/~ohauer/diffs/apache/mod_perl2-2.0.8_apache24.diff
>>> $ patch -p1 < mod_perl2-2.0.8_apache24.diff
>>>
>>> PS:
>>> I've updated the patch because it needs some additional handling for pkg-plist if build against apache-2.2.x (Provider.pm/Provider.so)
>>>
>>>
>> I tried your procedure (see above).  The patch applied, I was able
>> to compile the mod_perl,
>> and  'make test' ran and it passed all of the critical tests.
>>
>> I then ran some more of my tests for the functionality it used.
>> These passed.
>>
>> I would say that unless somebody else comes up with a problem that I
>> would use this as a baseline
>> for distribution/installation.
>>
>> That is,  I would put up the modified Makefile,  with a warning, but
>> would allow people
>> to make/install it by specifying an option such as "make IGNORE_WARNING=yes"
>>
>> Of course, the FreeBSD Ports team may have different views on
>> this... but until the upstream mod_perl team puts out mod_perl-2.0.9
>> officially I think that this is the best we can do.  Also,  some
>> more testers will be able to try it out and report any problems....


Re: Apache 24 + mod_perl

Posted by olli hauer <oh...@gmx.de>.
On 2014-08-07 04:43, Jie Gao wrote:
> The patch, or rather the patching itself, does not work with a box of
> Red Hat Enterprise Linux Server release 6.5 for me here.
> 
> Regards,
> 
> Jie 

Hi Jie,

on mod_perl.devel Jan Kaluza reported
> I'm going to update to latest trunk revision in Fedora Rawhide.

I suspect the following SRPM will work for RHEL6
https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/source/SRPMS/m/mod_perl-2.0.8-8.20140624svn1602105.fc21.src.rpm

// Regards, olli


> * Patrick Powell <pa...@astart.com> wrote:
> 
>> Date: Wed, 6 Aug 2014 17:27:15 -0700
>> From: Patrick Powell <pa...@astart.com>
>> To: olli hauer <oh...@gmx.de>
>> CC: Steve Hay <st...@googlemail.com>, Kurt Jaeger <li...@opsec.eu>,
>>  ports@freebsd.org, "modperl@perl.apache.org" <mo...@perl.apache.org>
>> Subject: Re: Apache 24 + mod_perl
>> User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130714
>>  Thunderbird/17.0.7
>>
>> On 08/06/14 14:34, olli hauer wrote:
>>> On 2014-08-06 22:45, Patrick Powell wrote:
>>>> On 08/06/14 00:19, Steve Hay wrote:
>>>>> On 3 August 2014 22:13, Patrick Powell <pa...@astart.com> wrote:
>>>>>> On 08/03/14 08:25, olli hauer wrote:
>>>>>>> On 2014-08-01 23:34, Kurt Jaeger wrote:
>>>>>>>> Hi!
>>>>>>>>
>>>>>>>>> Question:  when will mod_perl be available for Apache 24?
>>>>>>>> There's a PR where people are discussing this:
>>>>>>>>
>>>>>>>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191471
>>>>>>>>
>>>>>>>> This PR needs more testers etc.
>>>>>>>>
>>>>>>> I've updated the PR with a patch against the latest mod_perl trunk
>>>>>>> revision (r1602105).
>>>>>>>
>>>>>>> The patch against the port can be grabbed from here or from our bugzilla
>>>>>>>
>>>>>>> http://people.freebsd.org/~ohauer/diffs/apache/mod_perl2-2.0.8_apache24.diff
>>>>>>>
>>>>>>> Please test *at own risk*, and report issues to upstream and here so we
>>>>>>> can integrate fresh upstream fixes and update the port.
>>>>>>>
>>>>>>> The first proposed patch will allows the port to build but I have to many
>>>>>>> concerns for integrating this simple fix into the tree.
>>>>>>> I don't believe the first patch on the PR will work right else it would
>>>>>>> take the upstream dev. work and time for mod_perl2 at absurdI -um ...
>>>>>>>
>>>>>>>
>>>>>> I have taken a slightly different approach,   using the mod_perl2 SVN
>>>>>> ..../httpd24 branch as the starting point.
>>>>>>
>>>>> The httpd24 branch is obselete. It was used for the initial
>>>>> development of httpd-2.4 support, but was superseded by
>>>>> httpd24threading, and since then everything from both branches has
>>>>> been merged back to trunk.
>>>>>
>>>>> The current trunk is largely ready for a 2.0.9 release supporting
>>>>> httpd-2.4, pending some more testing and fixes as necessary.
>>>>>
>>>> I tried using the trunk a couple of days ago and it did not compile.  Just to make sure
>>>> that I am using the right SVN respository and branch, what is the URL of the trunk SVN repository?
>>>> I am more than happy to try testing mod_perl.
>>>>
>>> Hm, with the following patch applied to www/mod_perl2 it builds fine for me on FreeBSD 8.4 / 10.0 (amd64) an apache-2.4.10
>>> http://people.freebsd.org/~ohauer/diffs/apache/mod_perl2-2.0.8_apache24.diff
>>>
>>> The patch does some adjustments in the port / pkg-plist and fetches a complete archive containing all patches so the sources are the same as the upstream (r1602105) trunk/httpd24threade branch.
>>>
>>> After applying the patch and using the command `make patch' it is easy to compare the sources against upstream sources (check out before)
>>> http://svn.apache.org/repos/asf/perl/modperl/branches/httpd24threading
>>> http://svn.apache.org/repos/asf/perl/modperl/trunk
>>>
>>>
>>> Easiest way to apply the patch against the unmodified port:
>>>
>>> $ cd www/mod_perl2
>>> $ fetch http://people.freebsd.org/~ohauer/diffs/apache/mod_perl2-2.0.8_apache24.diff
>>> $ patch -p1 < mod_perl2-2.0.8_apache24.diff
>>>
>>> PS:
>>> I've updated the patch because it needs some additional handling for pkg-plist if build against apache-2.2.x (Provider.pm/Provider.so)
>>>
>>>
>> I tried your procedure (see above).  The patch applied, I was able
>> to compile the mod_perl,
>> and  'make test' ran and it passed all of the critical tests.
>>
>> I then ran some more of my tests for the functionality it used.
>> These passed.
>>
>> I would say that unless somebody else comes up with a problem that I
>> would use this as a baseline
>> for distribution/installation.
>>
>> That is,  I would put up the modified Makefile,  with a warning, but
>> would allow people
>> to make/install it by specifying an option such as "make IGNORE_WARNING=yes"
>>
>> Of course, the FreeBSD Ports team may have different views on
>> this... but until the upstream mod_perl team puts out mod_perl-2.0.9
>> officially I think that this is the best we can do.  Also,  some
>> more testers will be able to try it out and report any problems....
> 

Re: Apache 24 + mod_perl

Posted by Jie Gao <J....@sydney.edu.au>.
The patch, or rather the patching itself, does not work with a box of
Red Hat Enterprise Linux Server release 6.5 for me here.

Regards,

Jie 

* Patrick Powell <pa...@astart.com> wrote:

> Date: Wed, 6 Aug 2014 17:27:15 -0700
> From: Patrick Powell <pa...@astart.com>
> To: olli hauer <oh...@gmx.de>
> CC: Steve Hay <st...@googlemail.com>, Kurt Jaeger <li...@opsec.eu>,
>  ports@freebsd.org, "modperl@perl.apache.org" <mo...@perl.apache.org>
> Subject: Re: Apache 24 + mod_perl
> User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130714
>  Thunderbird/17.0.7
> 
> On 08/06/14 14:34, olli hauer wrote:
> >On 2014-08-06 22:45, Patrick Powell wrote:
> >>On 08/06/14 00:19, Steve Hay wrote:
> >>>On 3 August 2014 22:13, Patrick Powell <pa...@astart.com> wrote:
> >>>>On 08/03/14 08:25, olli hauer wrote:
> >>>>>On 2014-08-01 23:34, Kurt Jaeger wrote:
> >>>>>>Hi!
> >>>>>>
> >>>>>>>Question:  when will mod_perl be available for Apache 24?
> >>>>>>There's a PR where people are discussing this:
> >>>>>>
> >>>>>>https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191471
> >>>>>>
> >>>>>>This PR needs more testers etc.
> >>>>>>
> >>>>>I've updated the PR with a patch against the latest mod_perl trunk
> >>>>>revision (r1602105).
> >>>>>
> >>>>>The patch against the port can be grabbed from here or from our bugzilla
> >>>>>
> >>>>>http://people.freebsd.org/~ohauer/diffs/apache/mod_perl2-2.0.8_apache24.diff
> >>>>>
> >>>>>Please test *at own risk*, and report issues to upstream and here so we
> >>>>>can integrate fresh upstream fixes and update the port.
> >>>>>
> >>>>>The first proposed patch will allows the port to build but I have to many
> >>>>>concerns for integrating this simple fix into the tree.
> >>>>>I don't believe the first patch on the PR will work right else it would
> >>>>>take the upstream dev. work and time for mod_perl2 at absurdI -um ...
> >>>>>
> >>>>>
> >>>>I have taken a slightly different approach,   using the mod_perl2 SVN
> >>>>..../httpd24 branch as the starting point.
> >>>>
> >>>The httpd24 branch is obselete. It was used for the initial
> >>>development of httpd-2.4 support, but was superseded by
> >>>httpd24threading, and since then everything from both branches has
> >>>been merged back to trunk.
> >>>
> >>>The current trunk is largely ready for a 2.0.9 release supporting
> >>>httpd-2.4, pending some more testing and fixes as necessary.
> >>>
> >>I tried using the trunk a couple of days ago and it did not compile.  Just to make sure
> >>that I am using the right SVN respository and branch, what is the URL of the trunk SVN repository?
> >>I am more than happy to try testing mod_perl.
> >>
> >Hm, with the following patch applied to www/mod_perl2 it builds fine for me on FreeBSD 8.4 / 10.0 (amd64) an apache-2.4.10
> >http://people.freebsd.org/~ohauer/diffs/apache/mod_perl2-2.0.8_apache24.diff
> >
> >The patch does some adjustments in the port / pkg-plist and fetches a complete archive containing all patches so the sources are the same as the upstream (r1602105) trunk/httpd24threade branch.
> >
> >After applying the patch and using the command `make patch' it is easy to compare the sources against upstream sources (check out before)
> >http://svn.apache.org/repos/asf/perl/modperl/branches/httpd24threading
> >http://svn.apache.org/repos/asf/perl/modperl/trunk
> >
> >
> >Easiest way to apply the patch against the unmodified port:
> >
> >$ cd www/mod_perl2
> >$ fetch http://people.freebsd.org/~ohauer/diffs/apache/mod_perl2-2.0.8_apache24.diff
> >$ patch -p1 < mod_perl2-2.0.8_apache24.diff
> >
> >PS:
> >I've updated the patch because it needs some additional handling for pkg-plist if build against apache-2.2.x (Provider.pm/Provider.so)
> >
> >
> I tried your procedure (see above).  The patch applied, I was able
> to compile the mod_perl,
> and  'make test' ran and it passed all of the critical tests.
> 
> I then ran some more of my tests for the functionality it used.
> These passed.
> 
> I would say that unless somebody else comes up with a problem that I
> would use this as a baseline
> for distribution/installation.
> 
> That is,  I would put up the modified Makefile,  with a warning, but
> would allow people
> to make/install it by specifying an option such as "make IGNORE_WARNING=yes"
> 
> Of course, the FreeBSD Ports team may have different views on
> this... but until the upstream mod_perl team puts out mod_perl-2.0.9
> officially I think that this is the best we can do.  Also,  some
> more testers will be able to try it out and report any problems....

Re: Apache 24 + mod_perl

Posted by Patrick Powell <pa...@astart.com>.
On 08/06/14 14:34, olli hauer wrote:
> On 2014-08-06 22:45, Patrick Powell wrote:
>> On 08/06/14 00:19, Steve Hay wrote:
>>> On 3 August 2014 22:13, Patrick Powell <pa...@astart.com> wrote:
>>>> On 08/03/14 08:25, olli hauer wrote:
>>>>> On 2014-08-01 23:34, Kurt Jaeger wrote:
>>>>>> Hi!
>>>>>>
>>>>>>> Question:  when will mod_perl be available for Apache 24?
>>>>>> There's a PR where people are discussing this:
>>>>>>
>>>>>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191471
>>>>>>
>>>>>> This PR needs more testers etc.
>>>>>>
>>>>> I've updated the PR with a patch against the latest mod_perl trunk
>>>>> revision (r1602105).
>>>>>
>>>>> The patch against the port can be grabbed from here or from our bugzilla
>>>>>
>>>>> http://people.freebsd.org/~ohauer/diffs/apache/mod_perl2-2.0.8_apache24.diff
>>>>>
>>>>> Please test *at own risk*, and report issues to upstream and here so we
>>>>> can integrate fresh upstream fixes and update the port.
>>>>>
>>>>> The first proposed patch will allows the port to build but I have to many
>>>>> concerns for integrating this simple fix into the tree.
>>>>> I don't believe the first patch on the PR will work right else it would
>>>>> take the upstream dev. work and time for mod_perl2 at absurdI -um ...
>>>>>
>>>>>
>>>> I have taken a slightly different approach,   using the mod_perl2 SVN
>>>> ..../httpd24 branch as the starting point.
>>>>
>>> The httpd24 branch is obselete. It was used for the initial
>>> development of httpd-2.4 support, but was superseded by
>>> httpd24threading, and since then everything from both branches has
>>> been merged back to trunk.
>>>
>>> The current trunk is largely ready for a 2.0.9 release supporting
>>> httpd-2.4, pending some more testing and fixes as necessary.
>>>
>> I tried using the trunk a couple of days ago and it did not compile.  Just to make sure
>> that I am using the right SVN respository and branch, what is the URL of the trunk SVN repository?
>> I am more than happy to try testing mod_perl.
>>
> Hm, with the following patch applied to www/mod_perl2 it builds fine for me on FreeBSD 8.4 / 10.0 (amd64) an apache-2.4.10
> http://people.freebsd.org/~ohauer/diffs/apache/mod_perl2-2.0.8_apache24.diff
>
> The patch does some adjustments in the port / pkg-plist and fetches a complete archive containing all patches so the sources are the same as the upstream (r1602105) trunk/httpd24threade branch.
>
> After applying the patch and using the command `make patch' it is easy to compare the sources against upstream sources (check out before)
> http://svn.apache.org/repos/asf/perl/modperl/branches/httpd24threading
> http://svn.apache.org/repos/asf/perl/modperl/trunk
>
>
> Easiest way to apply the patch against the unmodified port:
>
> $ cd www/mod_perl2
> $ fetch http://people.freebsd.org/~ohauer/diffs/apache/mod_perl2-2.0.8_apache24.diff
> $ patch -p1 < mod_perl2-2.0.8_apache24.diff
>
> PS:
> I've updated the patch because it needs some additional handling for pkg-plist if build against apache-2.2.x (Provider.pm/Provider.so)
>
>
I tried your procedure (see above).  The patch applied, I was able to 
compile the mod_perl,
and  'make test' ran and it passed all of the critical tests.

I then ran some more of my tests for the functionality it used. These 
passed.

I would say that unless somebody else comes up with a problem that I 
would use this as a baseline
for distribution/installation.

That is,  I would put up the modified Makefile,  with a warning, but 
would allow people
to make/install it by specifying an option such as "make IGNORE_WARNING=yes"

Of course, the FreeBSD Ports team may have different views on this... 
but until the upstream mod_perl team puts out mod_perl-2.0.9 officially 
I think that this is the best we can do.  Also,  some more testers will 
be able to try it out and report any problems....

Re: Apache 24 + mod_perl

Posted by olli hauer <oh...@gmx.de>.
On 2014-08-06 22:45, Patrick Powell wrote:
> On 08/06/14 00:19, Steve Hay wrote:
>> On 3 August 2014 22:13, Patrick Powell <pa...@astart.com> wrote:
>>> On 08/03/14 08:25, olli hauer wrote:
>>>> On 2014-08-01 23:34, Kurt Jaeger wrote:
>>>>> Hi!
>>>>>
>>>>>> Question:  when will mod_perl be available for Apache 24?
>>>>> There's a PR where people are discussing this:
>>>>>
>>>>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191471
>>>>>
>>>>> This PR needs more testers etc.
>>>>>
>>>> I've updated the PR with a patch against the latest mod_perl trunk
>>>> revision (r1602105).
>>>>
>>>> The patch against the port can be grabbed from here or from our bugzilla
>>>>
>>>> http://people.freebsd.org/~ohauer/diffs/apache/mod_perl2-2.0.8_apache24.diff
>>>>
>>>> Please test *at own risk*, and report issues to upstream and here so we
>>>> can integrate fresh upstream fixes and update the port.
>>>>
>>>> The first proposed patch will allows the port to build but I have to many
>>>> concerns for integrating this simple fix into the tree.
>>>> I don't believe the first patch on the PR will work right else it would
>>>> take the upstream dev. work and time for mod_perl2 at absurdI -um ...
>>>>
>>>>
>>> I have taken a slightly different approach,   using the mod_perl2 SVN
>>> ..../httpd24 branch as the starting point.
>>>
>> The httpd24 branch is obselete. It was used for the initial
>> development of httpd-2.4 support, but was superseded by
>> httpd24threading, and since then everything from both branches has
>> been merged back to trunk.
>>
>> The current trunk is largely ready for a 2.0.9 release supporting
>> httpd-2.4, pending some more testing and fixes as necessary.
>>
> I tried using the trunk a couple of days ago and it did not compile.  Just to make sure
> that I am using the right SVN respository and branch, what is the URL of the trunk SVN repository?
> I am more than happy to try testing mod_perl.
> 

Hm, with the following patch applied to www/mod_perl2 it builds fine for me on FreeBSD 8.4 / 10.0 (amd64) an apache-2.4.10
http://people.freebsd.org/~ohauer/diffs/apache/mod_perl2-2.0.8_apache24.diff

The patch does some adjustments in the port / pkg-plist and fetches a complete archive containing all patches so the sources are the same as the upstream (r1602105) trunk/httpd24threade branch.

After applying the patch and using the command `make patch' it is easy to compare the sources against upstream sources (check out before)
http://svn.apache.org/repos/asf/perl/modperl/branches/httpd24threading
http://svn.apache.org/repos/asf/perl/modperl/trunk


Easiest way to apply the patch against the unmodified port:

$ cd www/mod_perl2
$ fetch http://people.freebsd.org/~ohauer/diffs/apache/mod_perl2-2.0.8_apache24.diff
$ patch -p1 < mod_perl2-2.0.8_apache24.diff

PS:
I've updated the patch because it needs some additional handling for pkg-plist if build against apache-2.2.x (Provider.pm/Provider.so)


-- 
olli

Re: Apache 24 + mod_perl

Posted by Patrick Powell <pa...@astart.com>.
On 08/06/14 00:19, Steve Hay wrote:
> On 3 August 2014 22:13, Patrick Powell <pa...@astart.com> wrote:
>> On 08/03/14 08:25, olli hauer wrote:
>>> On 2014-08-01 23:34, Kurt Jaeger wrote:
>>>> Hi!
>>>>
>>>>> Question:  when will mod_perl be available for Apache 24?
>>>> There's a PR where people are discussing this:
>>>>
>>>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191471
>>>>
>>>> This PR needs more testers etc.
>>>>
>>> I've updated the PR with a patch against the latest mod_perl trunk
>>> revision (r1602105).
>>>
>>> The patch against the port can be grabbed from here or from our bugzilla
>>>
>>> http://people.freebsd.org/~ohauer/diffs/apache/mod_perl2-2.0.8_apache24.diff
>>>
>>> Please test *at own risk*, and report issues to upstream and here so we
>>> can integrate fresh upstream fixes and update the port.
>>>
>>> The first proposed patch will allows the port to build but I have to many
>>> concerns for integrating this simple fix into the tree.
>>> I don't believe the first patch on the PR will work right else it would
>>> take the upstream dev. work and time for mod_perl2 at absurdI -um ...
>>>
>>>
>> I have taken a slightly different approach,   using the mod_perl2 SVN
>> ..../httpd24 branch as the starting point.
>>
> The httpd24 branch is obselete. It was used for the initial
> development of httpd-2.4 support, but was superseded by
> httpd24threading, and since then everything from both branches has
> been merged back to trunk.
>
> The current trunk is largely ready for a 2.0.9 release supporting
> httpd-2.4, pending some more testing and fixes as necessary.
>
I tried using the trunk a couple of days ago and it did not compile.  
Just to make sure
that I am using the right SVN respository and branch, what is the URL of 
the trunk SVN repository?
I am more than happy to try testing mod_perl.


Re: Apache 24 + mod_perl

Posted by Steve Hay <st...@googlemail.com>.
On 3 August 2014 22:13, Patrick Powell <pa...@astart.com> wrote:
> On 08/03/14 08:25, olli hauer wrote:
>>
>> On 2014-08-01 23:34, Kurt Jaeger wrote:
>>>
>>> Hi!
>>>
>>>> Question:  when will mod_perl be available for Apache 24?
>>>
>>> There's a PR where people are discussing this:
>>>
>>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191471
>>>
>>> This PR needs more testers etc.
>>>
>> I've updated the PR with a patch against the latest mod_perl trunk
>> revision (r1602105).
>>
>> The patch against the port can be grabbed from here or from our bugzilla
>>
>> http://people.freebsd.org/~ohauer/diffs/apache/mod_perl2-2.0.8_apache24.diff
>>
>> Please test *at own risk*, and report issues to upstream and here so we
>> can integrate fresh upstream fixes and update the port.
>>
>> The first proposed patch will allows the port to build but I have to many
>> concerns for integrating this simple fix into the tree.
>> I don't believe the first patch on the PR will work right else it would
>> take the upstream dev. work and time for mod_perl2 at absurd-um ...
>>
>>
> I have taken a slightly different approach,   using the mod_perl2 SVN
> ..../httpd24 branch as the starting point.
>

The httpd24 branch is obselete. It was used for the initial
development of httpd-2.4 support, but was superseded by
httpd24threading, and since then everything from both branches has
been merged back to trunk.

The current trunk is largely ready for a 2.0.9 release supporting
httpd-2.4, pending some more testing and fixes as necessary.

Re: Apache 24 + mod_perl

Posted by Patrick Powell <pa...@astart.com>.
On 08/03/14 08:25, olli hauer wrote:
> On 2014-08-01 23:34, Kurt Jaeger wrote:
>> Hi!
>>
>>> Question:  when will mod_perl be available for Apache 24?
>> There's a PR where people are discussing this:
>>
>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191471
>>
>> This PR needs more testers etc.
>>
> I've updated the PR with a patch against the latest mod_perl trunk revision (r1602105).
>
> The patch against the port can be grabbed from here or from our bugzilla
> http://people.freebsd.org/~ohauer/diffs/apache/mod_perl2-2.0.8_apache24.diff
>
> Please test *at own risk*, and report issues to upstream and here so we can integrate fresh upstream fixes and update the port.
>
> The first proposed patch will allows the port to build but I have to many concerns for integrating this simple fix into the tree.
> I don't believe the first patch on the PR will work right else it would take the upstream dev. work and time for mod_perl2 at absurd-um ...
>
>
I have taken a slightly different approach,   using the mod_perl2 SVN 
..../httpd24 branch as the starting point.

This branch,  much to my surprised,  after adding some missing Perl 
Modules,  compiled and almost all of the tests ran and passed.   I am 
currently trying some of my own tests to see if the functionality that I 
need is present.

As Olli says:  Please test/use at your own risk.  Report problems.

Personally,  I am expecting Apache 24 to die a horrible death when I 
start testing this stuff...

Re: Apache 24 + mod_perl

Posted by Steve Hay <st...@googlemail.com>.
Send email to: modperl-unsubscribe@perl.apache.org

On 6 August 2014 08:20, Tabassum Fathima <Ta...@mphasis.com> wrote:
> Hi all,
>
> Could you please tell me how will I un-subscribe from these group?
>
>
>
> -----Original Message-----
> From: olli hauer [mailto:ohauer@gmx.de]
> Sent: Sunday, August 03, 2014 8:55 PM
> To: Kurt Jaeger; Patrick Powell
> Cc: ports@freebsd.org; modperl@perl.apache.org
> Subject: Re: Apache 24 + mod_perl
>
> On 2014-08-01 23:34, Kurt Jaeger wrote:
>> Hi!
>>
>>> Question:  when will mod_perl be available for Apache 24?
>>
>> There's a PR where people are discussing this:
>>
>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191471
>>
>> This PR needs more testers etc.
>>
>
> I've updated the PR with a patch against the latest mod_perl trunk revision (r1602105).
>
> The patch against the port can be grabbed from here or from our bugzilla http://people.freebsd.org/~ohauer/diffs/apache/mod_perl2-2.0.8_apache24.diff
>
> Please test *at own risk*, and report issues to upstream and here so we can integrate fresh upstream fixes and update the port.
>
> The first proposed patch will allows the port to build but I have to many concerns for integrating this simple fix into the tree.
> I don't believe the first patch on the PR will work right else it would take the upstream dev. work and time for mod_perl2 at absurd-um ...
>
>
> --
> regards,
> olli
> Information transmitted by this e-mail is proprietary to Mphasis, its associated companies and/ or its customers and is intended
> for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or
> exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded
> to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly
> prohibited. In such cases, please notify us immediately at mailmaster@mphasis.com and delete this mail from your records.
>

RE: Apache 24 + mod_perl

Posted by Tabassum Fathima <Ta...@mphasis.com>.
Hi all,

Could you please tell me how will I un-subscribe from these group?



-----Original Message-----
From: olli hauer [mailto:ohauer@gmx.de] 
Sent: Sunday, August 03, 2014 8:55 PM
To: Kurt Jaeger; Patrick Powell
Cc: ports@freebsd.org; modperl@perl.apache.org
Subject: Re: Apache 24 + mod_perl

On 2014-08-01 23:34, Kurt Jaeger wrote:
> Hi!
> 
>> Question:  when will mod_perl be available for Apache 24?
> 
> There's a PR where people are discussing this:
> 
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191471
> 
> This PR needs more testers etc.
> 

I've updated the PR with a patch against the latest mod_perl trunk revision (r1602105).

The patch against the port can be grabbed from here or from our bugzilla http://people.freebsd.org/~ohauer/diffs/apache/mod_perl2-2.0.8_apache24.diff

Please test *at own risk*, and report issues to upstream and here so we can integrate fresh upstream fixes and update the port.

The first proposed patch will allows the port to build but I have to many concerns for integrating this simple fix into the tree.
I don't believe the first patch on the PR will work right else it would take the upstream dev. work and time for mod_perl2 at absurd-um ...


--
regards,
olli
Information transmitted by this e-mail is proprietary to Mphasis, its associated companies and/ or its customers and is intended 
for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or 
exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded 
to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly 
prohibited. In such cases, please notify us immediately at mailmaster@mphasis.com and delete this mail from your records.


Re: Apache 24 + mod_perl

Posted by olli hauer <oh...@gmx.de>.
On 2014-08-01 23:34, Kurt Jaeger wrote:
> Hi!
> 
>> Question:  when will mod_perl be available for Apache 24?
> 
> There's a PR where people are discussing this:
> 
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191471
> 
> This PR needs more testers etc.
> 

I've updated the PR with a patch against the latest mod_perl trunk revision (r1602105).

The patch against the port can be grabbed from here or from our bugzilla
http://people.freebsd.org/~ohauer/diffs/apache/mod_perl2-2.0.8_apache24.diff

Please test *at own risk*, and report issues to upstream and here so we can integrate fresh upstream fixes and update the port.

The first proposed patch will allows the port to build but I have to many concerns for integrating this simple fix into the tree.
I don't believe the first patch on the PR will work right else it would take the upstream dev. work and time for mod_perl2 at absurd-um ...


-- 
regards,
olli

Re: Apache 24 + mod_perl

Posted by Kurt Jaeger <li...@opsec.eu>.
Hi!

> Question:  when will mod_perl be available for Apache 24?

There's a PR where people are discussing this:

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

This PR needs more testers etc.

-- 
pi@opsec.eu            +49 171 3101372                         6 years to go !