[erlang-questions] maybe a BUG in the build system of erlang?
Anders Nygren
anders.nygren@REDACTED
Mon Sep 8 05:35:35 CEST 2008
On Sun, Sep 7, 2008 at 9:52 PM, luoyi <luoyi.ly@REDACTED> wrote:
> I'm making slackware pkgs for erlang R12B4, and find the "make
> INSTALL_PREFIX=xxx install" command do some wrong work.
>
> my process is:
>
> ./configure --prefix=/usr
> make
> make INSTALL_PREFIX=/opt/SBo/package-erlang
>
> then I make a slackware pkgs and install it. after install , I found
> there still some files contain the "INSTALL_PREFIX" string, such as:
>
> luoyi@REDACTED:/usr/lib/erlang$ grep -r '/opt/SBo' *
> bin/start:ROOTDIR=/opt/SBo/package-erlang/usr/lib/erlang
> bin/erl:ROOTDIR=/opt/SBo/package-erlang/usr/lib/erlang
> erts-5.6.4/bin/start:ROOTDIR=/opt/SBo/package-erlang/usr/lib/erlang
> erts-5.6.4/bin/erl:ROOTDIR=/opt/SBo/package-erlang/usr/lib/erlang
> Binary file lib/kernel-2.12.4/ebin/hipe_unified_loader.beam matches
> Binary file lib/hipe-3.6.8/ebin/hipe_sparc_registers.beam matches
> Binary file lib/hipe-3.6.8/ebin/hipe_amd64_liveness.beam matches
> Binary file lib/hipe-3.6.8/ebin/hipe_rtl_varmap.beam matches
> Binary file lib/hipe-3.6.8/ebin/erl_types.beam matches
> Binary file lib/hipe-3.6.8/ebin/hipe_x86_ra.beam matches
> Binary file lib/hipe-3.6.8/ebin/hipe_sparc_ra_ls.beam matches
> Binary file lib/hipe-3.6.8/ebin/cerl_cconv.beam matches
> Binary file lib/hipe-3.6.8/ebin/hipe_x86_spill_restore.beam matches
> Binary file lib/hipe-3.6.8/ebin/hipe_ppc_ra_ls.beam matches
> ..........
>
> obviously, in the shell file, the ROOTDIR should be "/usr/lib/erlang"
> and there should no "/opt/SBo/package-erlang" string contained in the
> hipe beam files.
>
> is this a bug in the build system ?
Was the source that You built from in /opt/SBo/something?
The full path of the source filename is placed in the .beam
so that could explain it.
/Anders
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>
More information about the erlang-questions
mailing list