* [ISSUE] How to reconfigure perl on Void Linux - Or is there a perl-devel package ?
@ 2021-09-06 14:41 aaFn
2021-09-08 9:51 ` leahneukirchen
` (12 more replies)
0 siblings, 13 replies; 14+ messages in thread
From: aaFn @ 2021-09-06 14:41 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1273 bytes --]
New issue by aaFn on void-packages repository
https://github.com/void-linux/void-packages/issues/32857
Description:
Hello @leahneukirchen , I am trying to get an Apache server running with mod_perl on a Void Linux instance, to be able to call Perl from Apache.
This DSO module is not included in the packages, so I am then trying to compile it, using instructions at https://perl.apache.org/docs/2.0/user/install/install.html
However, it fails with error
```
mod_perl does not currently support multiplicity without ithreads.
Please recompile Perl with -Duseithreads and -Dusemultiplicity
```
And indeed, doing `perl -V:useithreads -V:usemultiplicity` shows that one is configred, but not the other (and the modules asks for none, or both, but not the intermediate situation):
```
useithreads='define';
usemultiplicity='undef';
```
So I need to reconfigure / re-compile the distributed version, using:
```
% ./Configure -des -Uusethreads (or % ./Configure -des -Dusethreads -Dusemultiplicity)
% make && make test && make install
```
However, there is no such command in the distributed package, and apparently no perl-devel package is available.
Do you have an advice or better view on how to achieve this ?
Thanks in advance, aaFn.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: How to reconfigure perl on Void Linux - Or is there a perl-devel package ?
2021-09-06 14:41 [ISSUE] How to reconfigure perl on Void Linux - Or is there a perl-devel package ? aaFn
@ 2021-09-08 9:51 ` leahneukirchen
2021-09-08 11:11 ` aaFn
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: leahneukirchen @ 2021-09-08 9:51 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 408 bytes --]
New comment by leahneukirchen on void-packages repository
https://github.com/void-linux/void-packages/issues/32857#issuecomment-915092012
Comment:
Yes, our Perl is built without multiplicity and changing that would result in a complete rebuild of all Perl packages. We can consider it for the next big rebuild maybe, I'll have to check what other distros do. IIRC it results in a performance overhead too.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: How to reconfigure perl on Void Linux - Or is there a perl-devel package ?
2021-09-06 14:41 [ISSUE] How to reconfigure perl on Void Linux - Or is there a perl-devel package ? aaFn
2021-09-08 9:51 ` leahneukirchen
@ 2021-09-08 11:11 ` aaFn
2021-09-10 16:30 ` leahneukirchen
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: aaFn @ 2021-09-08 11:11 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1679 bytes --]
New comment by aaFn on void-packages repository
https://github.com/void-linux/void-packages/issues/32857#issuecomment-915142915
Comment:
Correct, I also hear there are performance implications, but primarily related to threads as I get it, not to multiplicity itself (so we already have that impact in). Or let me know if I am wrong.
For now I took 2.0.34 sources from CPAN, recompiled and installed as a second perl instance in /usr/local + redirected by symlink all things like /usr/bin/perl, /usr/bin/cpan, /usr/lib/libperl.so* to my instance in /usr/local - since I cannot remove the perl xbps package because it is required by apache and other packages.
I re-compiled with no thread support at all (`-Uusethreads`), with apache in prefork mode, and with mod_perl built as dynamic module (=> using libperl.so) .. works well 🙂
I find that dual install method a bit awkard though, especially after I found out that whatever order is specified in $PATH, bash seems to always and blindly complete unqualified commands like `perl -v` `to /sbin/perl -v`, therefore bypassing my $PATH order !! (although `which perl` rightfully says `/usr/local/bin/perl` ..) !!
Not sure which mechanism is acting there, but this leaves a bad taste in my mouth.
If you see a better way, let me know.
Else yes, and in support of LAMP on Void Linux https://gist.github.com/adnan360/045d1e4c7619a1e1a9e779d6d35cca92, it would be good to modify our Perl packages with either `-Uusethreads` for no thread at all, or both `-Duseithreads -Dusemultiplicity`, so that it is easy to use mod_perl, and its persistent `ModPerl::Registry / ModPerl::RegistryPrefork` feature for performance.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: How to reconfigure perl on Void Linux - Or is there a perl-devel package ?
2021-09-06 14:41 [ISSUE] How to reconfigure perl on Void Linux - Or is there a perl-devel package ? aaFn
2021-09-08 9:51 ` leahneukirchen
2021-09-08 11:11 ` aaFn
@ 2021-09-10 16:30 ` leahneukirchen
2021-09-10 17:08 ` aaFn
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: leahneukirchen @ 2021-09-10 16:30 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 272 bytes --]
New comment by leahneukirchen on void-packages repository
https://github.com/void-linux/void-packages/issues/32857#issuecomment-917040483
Comment:
According to the mod_perl documentation, mpm_prefork + Perl with only ithreads should work too; can you verify it doesn't?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: How to reconfigure perl on Void Linux - Or is there a perl-devel package ?
2021-09-06 14:41 [ISSUE] How to reconfigure perl on Void Linux - Or is there a perl-devel package ? aaFn
` (2 preceding siblings ...)
2021-09-10 16:30 ` leahneukirchen
@ 2021-09-10 17:08 ` aaFn
2021-09-10 17:25 ` leahneukirchen
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: aaFn @ 2021-09-10 17:08 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1156 bytes --]
New comment by aaFn on void-packages repository
https://github.com/void-linux/void-packages/issues/32857#issuecomment-917067470
Comment:
Yes, I checked already. This is why I came here 😁 :
Agree with you that https://perl.apache.org/docs/2.0/user/install/install.html#Prerequisites is ambiguous and seems to state that they don't care ...
But fact is that the command
`perl Makefile.PL MP_APXS=/usr/bin/apxs MP_APR_CONFIG=/sbin/apr-1-configMP_AP_CONFIGURE="--with-mpm=prefork"
`
does fail, with the error message I copied in my initial post at top, with that somewhat cryptic message. To make sure I opened their make generation code, and could confirm they want either none, or both, but not one of them.
And when I do (to force NO_THREADS)
`perl Makefile.PL MP_APXS=/usr/bin/apxs MP_APR_CONFIG=/sbin/apr-1-config MP_NO_THREADS=1 MP_AP_CONFIGURE="--with-mpm=prefork"`
that fails also in the same way ... so no choice but to recompile Perl with either none or both ... and I don't dare to touch their code to force things, as I am not sure of what is checked at later steps + things do not seem to be coded in a robust way on that side.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: How to reconfigure perl on Void Linux - Or is there a perl-devel package ?
2021-09-06 14:41 [ISSUE] How to reconfigure perl on Void Linux - Or is there a perl-devel package ? aaFn
` (3 preceding siblings ...)
2021-09-10 17:08 ` aaFn
@ 2021-09-10 17:25 ` leahneukirchen
2021-09-10 18:05 ` aaFn
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: leahneukirchen @ 2021-09-10 17:25 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 436 bytes --]
New comment by leahneukirchen on void-packages repository
https://github.com/void-linux/void-packages/issues/32857#issuecomment-917078986
Comment:
Ok, so it seems like perl-cross always sets usemultiplicity to undef, and we need to override this (with regular ./Configure, it should have been picked up by default).
Let's keep this in mind for the next rebuild; I don't think this niche application justifies a rebuild on its own.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: How to reconfigure perl on Void Linux - Or is there a perl-devel package ?
2021-09-06 14:41 [ISSUE] How to reconfigure perl on Void Linux - Or is there a perl-devel package ? aaFn
` (4 preceding siblings ...)
2021-09-10 17:25 ` leahneukirchen
@ 2021-09-10 18:05 ` aaFn
2021-09-11 15:28 ` aaFn
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: aaFn @ 2021-09-10 18:05 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 274 bytes --]
New comment by aaFn on void-packages repository
https://github.com/void-linux/void-packages/issues/32857#issuecomment-917105186
Comment:
Agree. Meanwhile I am wroking aroundwithout too much hassle anyway, and learning a few things in the process, which is always good :-D
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: How to reconfigure perl on Void Linux - Or is there a perl-devel package ?
2021-09-06 14:41 [ISSUE] How to reconfigure perl on Void Linux - Or is there a perl-devel package ? aaFn
` (5 preceding siblings ...)
2021-09-10 18:05 ` aaFn
@ 2021-09-11 15:28 ` aaFn
2022-06-05 2:14 ` github-actions
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: aaFn @ 2021-09-11 15:28 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 275 bytes --]
New comment by aaFn on void-packages repository
https://github.com/void-linux/void-packages/issues/32857#issuecomment-917105186
Comment:
Agree. Meanwhile I am working around without too much hassle anyway, and learning a few things in the process, which is always good :-D
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: How to reconfigure perl on Void Linux - Or is there a perl-devel package ?
2021-09-06 14:41 [ISSUE] How to reconfigure perl on Void Linux - Or is there a perl-devel package ? aaFn
` (6 preceding siblings ...)
2021-09-11 15:28 ` aaFn
@ 2022-06-05 2:14 ` github-actions
2022-06-07 11:45 ` leahneukirchen
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: github-actions @ 2022-06-05 2:14 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 293 bytes --]
New comment by github-actions[bot] on void-packages repository
https://github.com/void-linux/void-packages/issues/32857#issuecomment-1146724947
Comment:
Issues become stale 90 days after last activity and are closed 14 days after that. If this issue is still relevant bump it or assign it.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: How to reconfigure perl on Void Linux - Or is there a perl-devel package ?
2021-09-06 14:41 [ISSUE] How to reconfigure perl on Void Linux - Or is there a perl-devel package ? aaFn
` (7 preceding siblings ...)
2022-06-05 2:14 ` github-actions
@ 2022-06-07 11:45 ` leahneukirchen
2022-06-07 12:55 ` aaFn
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: leahneukirchen @ 2022-06-07 11:45 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 203 bytes --]
New comment by leahneukirchen on void-packages repository
https://github.com/void-linux/void-packages/issues/32857#issuecomment-1148556356
Comment:
We could change this for the 5.36 rebuild, opinions?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: How to reconfigure perl on Void Linux - Or is there a perl-devel package ?
2021-09-06 14:41 [ISSUE] How to reconfigure perl on Void Linux - Or is there a perl-devel package ? aaFn
` (8 preceding siblings ...)
2022-06-07 11:45 ` leahneukirchen
@ 2022-06-07 12:55 ` aaFn
2022-09-06 2:16 ` github-actions
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: aaFn @ 2022-06-07 12:55 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 221 bytes --]
New comment by aaFn on void-packages repository
https://github.com/void-linux/void-packages/issues/32857#issuecomment-1148630790
Comment:
On my side, I am ok of course, and if you need me to test anything, let me know.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: How to reconfigure perl on Void Linux - Or is there a perl-devel package ?
2021-09-06 14:41 [ISSUE] How to reconfigure perl on Void Linux - Or is there a perl-devel package ? aaFn
` (9 preceding siblings ...)
2022-06-07 12:55 ` aaFn
@ 2022-09-06 2:16 ` github-actions
2022-09-06 9:24 ` leahneukirchen
2022-10-01 15:04 ` [ISSUE] [CLOSED] " leahneukirchen
12 siblings, 0 replies; 14+ messages in thread
From: github-actions @ 2022-09-06 2:16 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 293 bytes --]
New comment by github-actions[bot] on void-packages repository
https://github.com/void-linux/void-packages/issues/32857#issuecomment-1237586111
Comment:
Issues become stale 90 days after last activity and are closed 14 days after that. If this issue is still relevant bump it or assign it.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: How to reconfigure perl on Void Linux - Or is there a perl-devel package ?
2021-09-06 14:41 [ISSUE] How to reconfigure perl on Void Linux - Or is there a perl-devel package ? aaFn
` (10 preceding siblings ...)
2022-09-06 2:16 ` github-actions
@ 2022-09-06 9:24 ` leahneukirchen
2022-10-01 15:04 ` [ISSUE] [CLOSED] " leahneukirchen
12 siblings, 0 replies; 14+ messages in thread
From: leahneukirchen @ 2022-09-06 9:24 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 185 bytes --]
New comment by leahneukirchen on void-packages repository
https://github.com/void-linux/void-packages/issues/32857#issuecomment-1237893545
Comment:
To be revisited for Perl 5.36.0/1.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [ISSUE] [CLOSED] How to reconfigure perl on Void Linux - Or is there a perl-devel package ?
2021-09-06 14:41 [ISSUE] How to reconfigure perl on Void Linux - Or is there a perl-devel package ? aaFn
` (11 preceding siblings ...)
2022-09-06 9:24 ` leahneukirchen
@ 2022-10-01 15:04 ` leahneukirchen
12 siblings, 0 replies; 14+ messages in thread
From: leahneukirchen @ 2022-10-01 15:04 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1278 bytes --]
Closed issue by aaFn on void-packages repository
https://github.com/void-linux/void-packages/issues/32857
Description:
Hello @leahneukirchen , I am trying to get an Apache server running with mod_perl on a Void Linux instance, to be able to call Perl from Apache.
This DSO module is not included in the packages, so I am then trying to compile it, using instructions at https://perl.apache.org/docs/2.0/user/install/install.html
However, it fails with error
```
mod_perl does not currently support multiplicity without ithreads.
Please recompile Perl with -Duseithreads and -Dusemultiplicity
```
And indeed, doing `perl -V:useithreads -V:usemultiplicity` shows that one is configred, but not the other (and mod_perl asks for none, or both, but not the intermediate situation):
```
useithreads='define';
usemultiplicity='undef';
```
So I need to reconfigure / re-compile the distributed perl version, using:
```
% ./Configure -des -Uusethreads (or % ./Configure -des -Dusethreads -Dusemultiplicity)
% make && make test && make install
```
However, there is no such command in the distributed package, and apparently no perl-devel package is available.
Do you have an advice or better view on how to achieve this ?
Thanks in advance, aaFn.
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2022-10-01 15:04 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-06 14:41 [ISSUE] How to reconfigure perl on Void Linux - Or is there a perl-devel package ? aaFn
2021-09-08 9:51 ` leahneukirchen
2021-09-08 11:11 ` aaFn
2021-09-10 16:30 ` leahneukirchen
2021-09-10 17:08 ` aaFn
2021-09-10 17:25 ` leahneukirchen
2021-09-10 18:05 ` aaFn
2021-09-11 15:28 ` aaFn
2022-06-05 2:14 ` github-actions
2022-06-07 11:45 ` leahneukirchen
2022-06-07 12:55 ` aaFn
2022-09-06 2:16 ` github-actions
2022-09-06 9:24 ` leahneukirchen
2022-10-01 15:04 ` [ISSUE] [CLOSED] " leahneukirchen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).