[MacPorts] #23993: install port mod_perl2 on MacOSX 10.6.2
#23993: install port mod_perl2 on MacOSX 10.6.2 --------------------------------+------------------------------------------- Reporter: gisburne@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: mod_perl2 | Port: --------------------------------+------------------------------------------- Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_mod_perl2/work/mod_perl-2.0.4" && /usr/bin/make -j2 all " returned error 2 DEBUG: Backtrace: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_mod_perl2/work/mod_perl-2.0.4" && /usr/bin/make -j2 all " returned error 2 while executing "command_exec build" (procedure "portbuild::build_main" line 9) invoked from within "$procedure $targetname" -- Ticket URL: <http://trac.macports.org/ticket/23993> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23993: install port mod_perl2 on MacOSX 10.6.2 --------------------------------+------------------------------------------- Reporter: gisburne@… | Owner: ryan@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: mod_perl2 --------------------------------+------------------------------------------- Changes (by macsforever2000@…): * keywords: mod_perl2 => * owner: macports-tickets@… => ryan@… * port: => mod_perl2 Old description:
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_mod_perl2/work/mod_perl-2.0.4" && /usr/bin/make -j2 all " returned error 2 DEBUG: Backtrace: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_mod_perl2/work/mod_perl-2.0.4" && /usr/bin/make -j2 all " returned error 2 while executing "command_exec build" (procedure "portbuild::build_main" line 9) invoked from within "$procedure $targetname"
New description: {{{ Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_mod_perl2/work/mod_perl-2.0.4" && /usr/bin/make -j2 all " returned error 2 DEBUG: Backtrace: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_mod_perl2/work/mod_perl-2.0.4" && /usr/bin/make -j2 all " returned error 2 while executing "command_exec build" (procedure "portbuild::build_main" line 9) invoked from within "$procedure $targetname" }}} -- Comment: More information would be helpful. Please attach the complete debug log. -- Ticket URL: <http://trac.macports.org/ticket/23993#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23993: install port mod_perl2 on MacOSX 10.6.2 --------------------------------+------------------------------------------- Reporter: gisburne@… | Owner: ryan@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: mod_perl2 --------------------------------+------------------------------------------- Comment(by gisburne@…): I'm attached complete debug log. -- Ticket URL: <http://trac.macports.org/ticket/23993#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23993: mod_perl2 build fails with perl5.10 or perl5.12 --------------------------------+------------------------------------------- Reporter: gisburne@… | Owner: ryan@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: mod_perl2 --------------------------------+------------------------------------------- Comment(by ryandesign@…): I see several other reports of this problem by searching Google. mod_perl2 @2.0.4 is apparently not compatible with perl5.10 (which I see you're using) or perl5.12. Use perl5.8 instead. -- Ticket URL: <http://trac.macports.org/ticket/23993#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23993: mod_perl2 build fails with perl5.10 or perl5.12 --------------------------------+------------------------------------------- Reporter: gisburne@… | Owner: ryan@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: mod_perl2 --------------------------------+------------------------------------------- Comment(by jagerman@…): The fix is trivial: look for "5.8*" in the Portfile and change it to "5.*". Doing that makes mod_perl build and work with 5.10/5.12 (tested with 5.12, but should also work with 5.10). -- Ticket URL: <http://trac.macports.org/ticket/23993#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23993: mod_perl2 build fails with perl5.10 or perl5.12 --------------------------------+------------------------------------------- Reporter: gisburne@… | Owner: ryan@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: mod_perl2 --------------------------------+------------------------------------------- Comment(by nigel.stanger@…): Replying to [comment:4 jagerman@…]:
The fix is trivial: look for "5.8*" in the Portfile and change it to "5.*". Doing that makes mod_perl build and work with 5.10/5.12 (tested with 5.12, but should also work with 5.10).
Nope. Just tried that fix with 5.10, same error. In fact, I can't see how that fix would help anyway, as the only reference to "5.8*" is in post- destroot. The build never reaches that far, because it dies during the compile phase. -- Ticket URL: <http://trac.macports.org/ticket/23993#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23993: mod_perl2 build fails with perl5.10 or perl5.12 --------------------------------+------------------------------------------- Reporter: gisburne@… | Owner: ryan@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: mod_perl2 --------------------------------+------------------------------------------- Comment(by nrh@…): related thread on the perl dev list: http://www.mail- archive.com/dev@perl.apache.org/msg12588.html disabling usemultiplicity and fixing the destroot makes this work, fwiw. patches attached. (caveat: i have no idea what multiplicity does - there seems to be very little documentation on this option) -- Ticket URL: <https://trac.macports.org/ticket/23993#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23993: mod_perl2 build fails with perl5.10 or perl5.12 --------------------------------+------------------------------------------- Reporter: gisburne@… | Owner: ryan@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: mod_perl2 --------------------------------+------------------------------------------- Comment(by michael@…): It looks like all you need to do is rebuild perl5.10 or perl5.12 using the "threads" variant. mod_perl mistakenly assumes the MULTIPLICITY feature implies the USE_ITHREADS feature, which is not true and won't be fixed upstream for some time. The maintainer is advised to check whether USE_ITHREADS is defined in the output of "perl -V" and abort the build early if not present, with a helpful message to the user explaining what to do. -- Ticket URL: <https://trac.macports.org/ticket/23993#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23993: mod_perl2 build fails with perl5.10 or perl5.12 --------------------------------+------------------------------------------- Reporter: gisburne@… | Owner: ryan@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: mod_perl2 --------------------------------+------------------------------------------- Comment(by cmc@…): My experience was that you have to do ''all'' of the following to get things working: * (Re)install perl5.12 with the `+threads` variant. * `port clean mod_perl2` port (or it will keep looking for old files). * Edit the Portfile for mod_perl2 to change `5.8*` to `5.*` in the `post- destroot` section. -- Ticket URL: <https://trac.macports.org/ticket/23993#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23993: mod_perl2 build fails with perl5.10 or perl5.12 --------------------------------+------------------------------------------- Reporter: gisburne@… | Owner: ryan@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: mod_perl2 --------------------------------+------------------------------------------- Comment(by nigel.stanger@…): Replying to [comment:8 cmc@…]:
My experience was that you have to do ''all'' of the following to get things working:
* (Re)install perl5.12 with the `+threads` variant. * `port clean mod_perl2` port (or it will keep looking for old files). * Edit the Portfile for mod_perl2 to change `5.8*` to `5.*` in the `post-destroot` section.
I can confirm that this also works for me (finally!). -- Ticket URL: <https://trac.macports.org/ticket/23993#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23993: mod_perl2 build fails with perl5.10 or perl5.12 --------------------------------+------------------------------------------- Reporter: gisburne@… | Owner: ryan@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: mod_perl2 --------------------------------+------------------------------------------- Comment(by pixilla@…): After patching with [http://trac.macports.org/attachment/ticket/23993/mod_perl2-portfile.diff mod_perl2-portfile.diff]:[[BR]] build succeeds[[BR]] but activate collides with p5-apache-test on ${prefix}/share/man/man3/Apache::Test.3pm.gz {{{ ---> Activating mod_perl2 @2.0.4_0 Error: Target org.macports.activate returned: Image error: /opt/macports- test/share/man/man3/Apache::Test.3pm.gz is being used by the active p5 -apache-test port. }}} -- Ticket URL: <https://trac.macports.org/ticket/23993#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23993: mod_perl2 build fails with perl5.10 or perl5.12 --------------------------------+------------------------------------------- Reporter: gisburne@… | Owner: ryan@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: mod_perl2 --------------------------------+------------------------------------------- Comment(by jon.hermansen@…): Especially now, with the default_variant for perl5 being 5.12, I think that we should make this change to mod_perl2. The patch is working for me, latest apache2 and perl5.12, both universal. -- Ticket URL: <https://trac.macports.org/ticket/23993#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23993: mod_perl2 build fails with perl5.10 or perl5.12 --------------------------------+------------------------------------------- Reporter: gisburne@… | Owner: ryan@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: mod_perl2 --------------------------------+------------------------------------------- Comment(by wqcoleman@…): @cmc@math.hmc.edu +1 -- Ticket URL: <https://trac.macports.org/ticket/23993#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23993: mod_perl2 build fails with perl5.10 or perl5.12 --------------------------------+------------------------------------------- Reporter: gisburne@… | Owner: ryan@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: mod_perl2 --------------------------------+------------------------------------------- Changes (by jmr@…): * cc: ricci@… (added) Comment: Adding the perl maintainer to cc since there are changes to it proposed here. -- Ticket URL: <https://trac.macports.org/ticket/23993#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23993: mod_perl2 build fails with perl5.10 or perl5.12 without +threads --------------------------------+------------------------------------------- Reporter: gisburne@… | Owner: ryan@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: perl5.10 perl5.12 mod_perl2 --------------------------------+------------------------------------------- Changes (by jmr@…): * port: mod_perl2 => perl5.10 perl5.12 mod_perl2 Comment: BTW the mod_perl2 destroot issue is already fixed; that was #23608. -- Ticket URL: <https://trac.macports.org/ticket/23993#comment:15> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23993: mod_perl2 build fails with perl5.10 or perl5.12 without +threads --------------------------------+------------------------------------------- Reporter: gisburne@… | Owner: ryan@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: perl5.10 perl5.12 mod_perl2 --------------------------------+------------------------------------------- Comment(by astricker@…): I can confirm that the current port (where the patch above is already applied) and perl5.14 with +threads will work. As I switched to Perl 5.14 I've had to rebuild all perl packages listed with {{{port dependents perl5}}}. I don't know if switching to the +threads variant alone also requires rebuilding? -- Ticket URL: <https://trac.macports.org/ticket/23993#comment:17> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23993: mod_perl2 build fails with perl5.10 or perl5.12 without +threads ------------------------------------------+--------------------------------- Reporter: gisburne@… | Owner: ryan@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Resolution: fixed | Keywords: Port: perl5.10 perl5.12 mod_perl2 | ------------------------------------------+--------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => fixed Comment: r94655 -- Ticket URL: <https://trac.macports.org/ticket/23993#comment:18> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts