Updated to include the patch mentioned by @twheel to avoid build failures, hopefully upstream will release a new version soon to remove this requirement.
Search Criteria
Package Details: mod_perl 2.0.12-1
Package Actions
- View PKGBUILD / View Changes
- Download snapshot
- Search wiki
- Flagged out-of-date (2023-09-29)
- 1 pending request
- Submit Request
Git Clone URL: | https://aur.archlinux.org/mod_perl.git (read-only, click to copy) |
---|---|
Package Base: | mod_perl |
Description: | Apache module that embeds the Perl interpreter within the server |
Upstream URL: | http://perl.apache.org/ |
Licenses: | Apache |
Submitter: | anatolik |
Maintainer: | mattsday |
Last Packager: | mattsday |
Votes: | 9 |
Popularity: | 0.32 |
First Submitted: | 2015-06-28 15:38 (UTC) |
Last Updated: | 2022-01-30 19:41 (UTC) |
Dependencies (5)
- apache (apache-gitAUR)
- apr-util
- db
- perl (perl-gitAUR)
- perl-linux-pid
Required by (3)
- ofork (optional)
- perl-apache2-soap
- perl-libapreq2
Sources (2)
mattsday commented on 2021-05-29 07:23 (UTC)
twheel commented on 2021-05-28 16:04 (UTC)
Hacked a temporary fix by downloading the fixed file from https://svn.apache.org/viewvc/perl/modperl/trunk/src/modules/perl/modperl_perl.c?view=markup&pathrev=1889014 and using it in PKGBUILD
twheel commented on 2021-05-28 15:38 (UTC)
Trying to install this with perl 5.34.0 and getting this error:
modperl_perl.c: In function ‘modperl_hash_seed_set’:
modperl_perl.c:271:16: error: lvalue required as unary ‘&’ operand
271 | memcpy(&PL_hash_seed, &MP_init_hash_seed,
| ^
make[1]: *** [Makefile:114: modperl_perl.lo] Error 1
make[1]: Leaving directory '/home/swuser/.cache/yay/mod_perl/src/mod_perl-2.0.11/src/modules/perl'
make: *** [Makefile:450: modperl_lib] Error 2
==> ERROR: A failure occurred in build().
Aborting...
mattsday commented on 2020-10-06 17:16 (UTC)
I won't have time to look at this again this week I think, but running a local test I'm convinced this will help many people who's tests are failing - so pushing to rel 4.
If it doesn't work, commenting out this line from the PKGBUILD: APACHE_TEST_PRETEND_NO_LWP=1 make test
should.
mattsday commented on 2020-10-06 16:37 (UTC)
Sorry for taking so long @woodape to look.
The incriminating line seems to be here:
waiting 180 seconds for server to start: .[Sun Sep 27 05:51:36.715829 2020] [core:trace3] [pid 190080] core.c(3361): Setting LogLevel for all modules to trace8
[ error] port 8529 is in use, cannot determine server pid to shutdown
+--------------------------------------------------------+
| Please file a bug report: http://perl.apache.org/bugs/ |
+--------------------------------------------------------+
make: *** [Makefile:1075: run_tests] Error 1
make: *** Waiting for unfinished jobs....
Do you run a service that's already bound to port 8529, this would certainly create a failure scenario. I'm thinking pushing a change that runs the tests on a higher port that's less likely to be used will make it more likely to be successful for folk - perhaps 48251
.
Can you try this:
APACHE_TEST_PORT=48251 APACHE_TEST_PRETEND_NO_LWP=1 make test
If it's successful for you, I'll do a new pkg release with that change.
woodape commented on 2020-09-27 03:57 (UTC)
@mattsday, sorry for the delay. Here is a pastebin of a build I just tried. You can see the errors at the bottom. Any ideas?
mattsday commented on 2020-09-24 16:02 (UTC)
@woodape yes I am able to successfully build with the tests running.
If your output is the same as @nobicycle then I'd love to see the full build & failure log - as it appears (at a glance) that make test
is returning non-zero but stating all's OK. There may be an error further up causing this.
The tests are also very flaky which I consider to be an upstream issue, but that's another matter.
woodape commented on 2020-09-24 11:11 (UTC)
Thanks very much @mattsday for taking over this package.
I'm still having no luck building the latest version 2.0.11-3. If I remove the line you suggest in a previous comment, APACHE_TEST_PRETEND_NO_LWP=1 make test
it builds fine. Are you able to build with this line included?
mattsday commented on 2020-09-16 08:27 (UTC)
Updated the package to rel-3 which works around some upstream issues with the built-in tests, causing them to fail. These have been reported and hopefully will be fixed in a future mod_perl release.
nobicycle commented on 2020-08-24 05:30 (UTC)
@mattsday Thank you. That allowed successful compile.
Pinned Comments
mattsday commented on 2024-01-28 10:21 (UTC)
I no longer use Arch Linux and mod perl. If someone wishes to take over maintenance please let me know. I will not be updating this package
mattsday commented on 2021-11-27 16:17 (UTC) (edited on 2021-11-27 16:18 (UTC) by mattsday)
The self-tests can be fragile; it spins up a test server on TCP port 48251 - check if that port is not in use. If it is, change
APACHE_TEST_PORT=48251
to another unused port.If you have problems with tests failing, check the upstream bugs and report here if there's an obvious fix. Previous releases of this package disabled testing altogether. You can do that by commenting out this line:
However, be careful in doing so - it's better to fix the tests and run without them!
mattsday commented on 2021-11-27 16:15 (UTC)
You must import PGP key AB34BA0040E92ECE into your keyring in order to validate the source package.
Using GPG:
Please see the Arch wiki for more details: https://wiki.archlinux.org/index.php/makepkg#Signature_checking