Samples Please

Onorio Catenacci Catenacci at ieee.org
Tue Mar 20 17:26:44 UTC 2018


 Hi all,

I'm trying to create a flatpak for Elixir.  As such I've started to try
with pulling the source code for Erlang and building it because Elixir
requires Erlang.  I can get the source code just fine but I am stumped
as to how to get it to build.

This is my manifest file:

{
    "app-id": "org.erlang.Erlang",
    "runtime": "org.freedesktop.Platform",
    "runtime-version": "1.6",
    "sdk": "org.freedesktop.Sdk",
    "command": "erlang",
    "modules": [
                {
            "name": "erlang",
            "buildsystem": "autotools",
            "build-commands": [
                    "cd otp",
                    "./otp_build autoconf",
                    "./configure" ,
                    "make",
                    "make install"
            ],
       "sources": [
                {
                    "type": "git",
                    "url": "https://github.com/erlang/otp.git",
                    "branch": "maint-20"
                }
            ]
        }//,
       //  {
       //      "name": "elixir",
       //      "buildsystem": "simple",
       //      "build-commands": [
       //          "install -D hello.sh /app/bin/hello.sh"
       //      ],
       // "sources": [
       //          {
       //              "type": "git",
       //              "url": "https://github.com/elixir-lang/elixir.gi
t",
       //              "branch": "v1.6"
       //          }
       //      ]
       //  }
    ]
}

I then run this from my shell: flatpak-builder app-dir
org.erlang.Erlang.json --force-clean

Then this is the output:

>>><<<
Emptying app dir 'app-dir'
Downloading sources
Fetching git repo https://github.com/erlang/otp.git, ref
refs/heads/maint-20
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
Fetching git repo https://github.com/elixir-lang/elixir.git, ref
refs/heads/v1.6
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
Starting build of org.erlang.Erlang
Cache miss, checking out last cache hit
=======================================================================
=
Building module erlang in /home/ocatenacci/flat_ex/.flatpak-
builder/build/erlang-10
=======================================================================
=
Switched to branch 'maint-20'
bwrap: execvp ./bootstrap: Permission denied
Error: module erlang: module erlang: Child process exited with code 1
>>><<<

I've tried looking at several other manifest files (Thunderbird,
Firefox, VLC) and none of them even specify a buildsystem much less
trying to change to one of the source directories I've just downloaded.


I've also tried the simple buildsystem and the cmake buildsystem--of
course I get different errors on those.

I don't mind researching this for myself but I'm not sure I'm even
looking in the right place.  The "cd otp" etc are the instructions to
build Erlang from the shell prompt but I'm pretty sure that's not what
I should do.  This goes a bit beyond what I saw in the tutorial.  Can
someone suggest an example that might give me some guidance on this?
-- 
Onorio Catenacci

http://onor.io
http://www.google.com/+OnorioCatenacci
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/flatpak/attachments/20180320/18071472/attachment.html>


More information about the Flatpak mailing list