Opened 15 years ago

Closed 14 years ago

#22878 closed defect (fixed)

Erlang build looks for perl5 module in /usr/local instead of /opt/local

Reported by: macports-trac@… Owned by: bfulgham@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc:
Port: erlang

Description (last modified by mf2k (Frank Schima))

With /usr/local/lib/perl5 absent, an attempt to upgrade to erlang @R13B03_0 on a Mac PPC G5 running Mac OS X 10.5.8 yields the following build error, which indicates that the perl module strict.pm is being sought in the /usr/local hierarchy rather than in the macports hierarchy (I use the default, /opt/local).

Restoring /usr/local/lib/perl5 solves the problem.

This is unlikely to affect many users because it requires modification of the default Mac platform to produce. However, it's probably better to declare a build dependency on perl5 for future safety.

Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/work/erlang-R13B03" && /usr/bin/make all " returned error 2
Command output: test X"$ERTS_SKIP_DEPEND" = X"true" || (cd erts/emulator && ERL_TOP=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/work/erlang-R13B03 make generate depend)
make -f powerpc-apple-darwin9.8.0/Makefile generate
/bin/mkdir -p powerpc-apple-darwin9.8.0/opt/plain
/bin/mkdir -p obj/powerpc-apple-darwin9.8.0/opt/plain
/bin/mkdir -p pcre/obj/powerpc-apple-darwin9.8.0/opt
/bin/mkdir -p zlib/obj/powerpc-apple-darwin9.8.0/opt
LANG=C /usr/local/bin/perl utils/beam_makeops -outdir powerpc-apple-darwin9.8.0/opt/plain \
		-emulator /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/work/erlang-R13B03/lib/compiler/src/genop.tab beam/ops.tab
Can't locate strict.pm in @INC (@INC contains: /usr/local/lib/perl5/5.10.0/darwin-2level /usr/local/lib/perl5/5.10.0 /usr/local/lib/perl5/site_perl/5.10.0/darwin-2level /usr/local/lib/perl5/site_perl/5.10.0 /usr/local/lib/perl5/site_perl .) at utils/beam_makeops line 20.
BEGIN failed--compilation aborted at utils/beam_makeops line 20.
make[2]: *** [powerpc-apple-darwin9.8.0/opt/plain/beam_opcodes.h] Error 2
make[1]: *** [generate] Error 2
make: *** [depend] Error 2

Change History (3)

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

Description: modified (diff)
Owner: changed from macports-tickets@… to bfulgham@…
Priority: LowNormal

comment:2 Changed 14 years ago by bfulgham@…

Dependency added in @r74681.

comment:3 Changed 14 years ago by bfulgham@…

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.