<div dir="ltr">
Hi all,<br>
<br>
I'm trying to create a flatpak for Elixir. As such I've started to try<br>
with pulling the source code for Erlang and building it because Elixir<br>
requires Erlang. I can get the source code just fine but I am stumped<br>
as to how to get it to build.<br>
<br>
This is my manifest file:<br>
<br>
{<br>
"app-id": "org.erlang.Erlang",<br>
"runtime": "org.freedesktop.Platform",<br>
"runtime-version": "1.6",<br>
"sdk": "org.freedesktop.Sdk",<br>
"command": "erlang",<br>
"modules": [<br>
{<br>
"name": "erlang",<br>
"buildsystem": "autotools",<br>
"build-commands": [<br>
"cd otp",<br>
"./otp_build autoconf",<br>
"./configure" ,<br>
"make",<br>
"make install"<br>
],<br>
"sources": [<br>
{<br>
"type": "git",<br>
"url": "<a href="https://github.com/erlang/otp.git" rel="noreferrer" target="_blank">https://github.com/erlang/<wbr>otp.git</a>",<br>
"branch": "maint-20"<br>
}<br>
]<br>
}//,<br>
// {<br>
// "name": "elixir",<br>
// "buildsystem": "simple",<br>
// "build-commands": [<br>
// "install -D hello.sh /app/bin/hello.sh"<br>
// ],<br>
// "sources": [<br>
// {<br>
// "type": "git",<br>
// "url": "<a href="https://github.com/elixir-lang/elixir.gi" rel="noreferrer" target="_blank">https://github.com/elixir-<wbr>lang/elixir.gi</a><br>
t",<br>
// "branch": "v1.6"<br>
// }<br>
// ]<br>
// }<br>
]<br>
}<br>
<br>
I then run this from my shell: flatpak-builder app-dir<br>
org.erlang.Erlang.json --force-clean<br>
<br>
Then this is the output:<br>
<br>
>>><<<<br>
Emptying app dir 'app-dir'<br>
Downloading sources<br>
Fetching git repo <a href="https://github.com/erlang/otp.git" rel="noreferrer" target="_blank">https://github.com/erlang/otp.<wbr>git</a>, ref<br>
refs/heads/maint-20<br>
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0<br>
Fetching git repo <a href="https://github.com/elixir-lang/elixir.git" rel="noreferrer" target="_blank">https://github.com/elixir-<wbr>lang/elixir.git</a>, ref<br>
refs/heads/v1.6<br>
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0<br>
Starting build of org.erlang.Erlang<br>
Cache miss, checking out last cache hit<br>
==============================<wbr>==============================<wbr>===========<br>
=<br>
Building module erlang in /home/ocatenacci/flat_ex/.<wbr>flatpak-<br>
builder/build/erlang-10<br>
==============================<wbr>==============================<wbr>===========<br>
=<br>
Switched to branch 'maint-20'<br>
bwrap: execvp ./bootstrap: Permission denied<br>
Error: module erlang: module erlang: Child process exited with code 1<br>
>>><<<<br>
<br>
I've tried looking at several other manifest files (Thunderbird,<br>
Firefox, VLC) and none of them even specify a buildsystem much less<br>
trying to change to one of the source directories I've just downloaded.<br>
<br>
<br>
I've also tried the simple buildsystem and the cmake buildsystem--of<br>
course I get different errors on those.<br>
<br>
I don't mind researching this for myself but I'm not sure I'm even<br>
looking in the right place. The "cd otp" etc are the instructions to<br>
build Erlang from the shell prompt but I'm pretty sure that's not what<br>
I should do. This goes a bit beyond what I saw in the tutorial. Can<br>
someone suggest an example that might give me some guidance on this?<div class="gmail-yj6qo gmail-ajU"><div id="gmail-:1ht" class="gmail-ajR" tabindex="0"><img class="gmail-ajT" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div>
-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Onorio Catenacci<br> <br><a href="http://onor.io" target="_blank">http://onor.io</a><div><a href="http://www.google.com/+OnorioCatenacci" target="_blank">http://www.google.com/+OnorioCatenacci</a><br><div><br></div></div></div></div>
</div>