Skip to content

Conversation

@oubiwann
Copy link
Member

@oubiwann oubiwann commented Oct 14, 2020

Note: this is a cherry-pick from this old PR by @Beji (which was too old to merge):

Commit message:

lfe_scan.xrl will get compiled to lfe_scan.erl during make compile,
which in turn will be compiled to lfe_scan.beam.
Since EBINS contains all the .erl and .xrl files with the ending
replaced by .beam it will contain lfe_scan.beam twice when executing
make install which may cause an error on execution.

Original PR description follows ...


Hi,
as mentioned on #342 make install fails on my gentoo system because make install tries to install lfe_scan.beam twice.
During the whole compilation magic src/lfe_scan.xrl will get turned into src/lfe_scan.erl . As EBINS is essentially a list of all .erl, .xrl and .yrl files with the endings replaced by .beam this results in the problem that EBINS will contain lfe_scan.beam twice as this name is generated from both the .xrl and the .erl file. As this problem seems to affect the install target I tried not to mess with anything else (I don't know a lot about make).

This fix is kinda ugly but it resolves the issue for me. Not sure if this will work well on other systems but it might be worth a shot.

@oubiwann oubiwann added the bug label Oct 14, 2020
@oubiwann oubiwann added this to the 2.0 milestone Oct 14, 2020
lfe_scan.xrl will get compiled to lfe_scan.erl during make compile,
which in turn will be compiled to lfe_scan.beam.
Since EBINS contains all the .erl and .xrl files with the ending
replaced by .beam it will contain lfe_scan.beam twice when executing
make install which may cause an error on execution.
@oubiwann oubiwann modified the milestones: 2.0, 2.1 Jun 6, 2021
@rvirding rvirding merged commit 9d36ffb into lfe:develop Jan 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants