Opened 7 years ago

Closed 7 years ago

#55478 closed defect (fixed)

Problem building auto-multiple-choice

Reported by: afalco (Antonio Falco) Owned by: nortcele
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: alatour
Port: auto-multiple-choice

Description (last modified by mf2k (Frank Schima))

--->  Building auto-multiple-choice
Error: Failed to build auto-multiple-choice: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_auto-multiple-choice/auto-multiple-choice/main.log for details.

Attachments (1)

main.log (470.1 KB) - added by afalco (Antonio Falco) 7 years ago.
main.log

Download all attachments as: .zip

Change History (8)

Changed 7 years ago by afalco (Antonio Falco)

Attachment: main.log added

main.log

comment:1 Changed 7 years ago by mf2k (Frank Schima)

Owner: set to nortcele
Port: auto-multiple-choice added
Status: newassigned

In the future, please use WikiFormatting, fill in the Port field and Cc the port maintainers (port info --maintainers auto-multiple-choice), if any.

comment:2 Changed 7 years ago by mf2k (Frank Schima)

Description: modified (diff)

comment:3 Changed 7 years ago by nortcele

Perl 5 is in the middle of a migration from 5.24 to 5.26 and some modules are installed in the 5.24 hierarchy and other in the 5.26 hierarchy. Auto-multiple-choice should use perl 5.26. As long as perl 5.24 is the default MacPorts version, the solution is to install first per 5.26 as the default perl with:

sudo port install perl5 +perl5_26

and then install auto-multiple-choice.

From the log it seems that the default perl is perl5.24.

comment:4 Changed 7 years ago by mf2k (Frank Schima)

Cc: alatour added

Has duplicate #55536.

comment:5 in reply to:  3 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to nortcele:

Perl 5 is in the middle of a migration from 5.24 to 5.26 and some modules are installed in the 5.24 hierarchy and other in the 5.26 hierarchy. Auto-multiple-choice should use perl 5.26. As long as perl 5.24 is the default MacPorts version, the solution is to install first per 5.26 as the default perl with:

That's a workaround, not a solution.

:info:build perl extrait-fichiers.pl --liste auto-multiple-choice.en.ext auto-multiple-choice.en.xml
:info:build Can't locate XML/LibXML.pm in @INC (you may need to install the XML::LibXML module) (@INC contains: /opt/local/lib/perl5/site_perl/5.24/darwin-thread-multi-2level /opt/local/lib/perl5/site_perl/5.24 /opt/local/lib/perl5/vendor_perl/5.24/darwin-thread-multi-2level /opt/local/lib/perl5/vendor_perl/5.24 /opt/local/lib/perl5/5.24/darwin-thread-multi-2level /opt/local/lib/perl5/5.24 .) at extrait-fichiers.pl line 22.

The solution is to make the auto-multiple-choice build use the specific perl binary that the port is specifying with PERLPATH=${perl5.bin}. It looks like the build system only uses this to adjust the shebang line of the installed script, but blindly calls perl elsewhere in the build. This is a defect in the build system that should be reported to the developers of auto-multiple-choice.

comment:6 Changed 7 years ago by nortcele

I reported the defect to the developer.

comment:7 Changed 7 years ago by nortcele

Resolution: fixed
Status: assignedclosed

In 4359fef95f04cdc5e901229bc5e3728fa4666837/macports-ports:

auto-multiple-choice: change build to use the good Perl version (https://github.com/macports/macports-ports/pull/1162)

Fixes: #55478

Note: See TracTickets for help on using tickets.