42549ac065c972d7ea131d1dd56df0eeac87fb1b
[packages.git] / lang / erlang / patches / 102-relative_symlinks.patch
1 --- a/Makefile.in
2 +++ b/Makefile.in
3 @@ -809,9 +809,10 @@ install.Install:
4  # Install erlang base public files
5  #
6  install.bin:
7 +       cd $(BINDIR); \
8         for file in $(ERL_BASE_PUB_FILES); do \
9                 rm -f $(BINDIR)/$$file; \
10 -               ${LN_S} $(ERLANG_BINDIR)/$$file $(BINDIR)/$$file; \
11 +               ${LN_S} ../lib/erlang/bin/$$file .; \
12         done
13  
14  #
15 --- a/erts/etc/unix/Install.src
16 +++ b/erts/etc/unix/Install.src
17 @@ -104,7 +104,7 @@ if [ -h epmd ]; then
18    /bin/rm -f epmd
19  fi
20  
21 -ln -s $ERL_ROOT/erts-%I_VSN%/bin/epmd epmd
22 +ln -s ../erts-%I_VSN%/bin/epmd epmd
23  
24  cp -p $ERL_ROOT/erts-%I_VSN%/bin/run_erl .
25  cp -p $ERL_ROOT/erts-%I_VSN%/bin/to_erl .