git-annex

Forums Submission Queue git-annex

This topic contains 6 replies, has 5 voices, and was last updated by  krt 2 years ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #6056

    imz
    Member

    git-annex for Android — http://git-annex.branchable.com/design/assistant/blog/day_195__real_android_app/ :

    When installed, this will open a terminal in which you have access to git-annex and all the git commands and busybox commands as well. No webapp yet, but command line users should feel right at home.

     

    http://git-annex.branchable.com/install/Android/ on installing and building it yourself.

     

    #9116

    daithib8
    Member

    Needs a chroot to build which would need to be created as root (according to the instructions).

    #11094

    imz
    Member

    Needs a chroot to build which would need to be created as root (according to the instructions).

    So, in future, it might be reasonable for F-Droid to make the default building process like this, isn’t it? (I.e., make a chroot, drop privileges, setup there the specific build environment for this very app, and then build it).

    This reminds me of the tools I’m familiar with at ALT Linux: to build the packages for the package repository Sisyphus, the hasher tool is used which prepares the chroot with a privileged helper, then creates the build environment according to the build deps from the spec-file (RPM), and then build the package.

    Of course, this tool or another similar one can be adapted to be used to build APKs for the F-Droid repository: it just needs to extract the build deps of the app being built (hopefully, they can be formally written down, say, as a set of Debian packages, or Sisyphus packages), and then run the build process.

    I’m writing this down in the hope that these ideas might be implemented in future by those who’d like to develop F-Droid further.

    #11128

    CiaranG
    Moderator

    So, in future, it might be reasonable for F-Droid to make the default building process like this, isn’t it? (I.e., make a chroot, drop privileges, setup there the specific build environment for this very app, and then build it).

    It already does (and has for years) go way beyond that, by creating a completely clean virtual machine for each build.

    #11131

    imz
    Member

    It already does (and has for years) go way beyond that, by creating a completely clean virtual machine for each build.

    Oh, I see. Thank you for telling this, and I’m sorry I hadn’t learned this before writing down those idea of mine.

    I thought that if creating a custom build environment (in a chroot) is a problem, all things must have been built in the same build environment.

    Hmm, so then I’m curious what exactly is missing in F-Droid’s build system which makes it impossible to build git-annex. Perhaps, it’s not possible–in the F-Droid package metadata–to specify the custom deps that should be installed in the build environment from Debian or Hackage? (Yes, I see, it could be that installing from Hackage could be disallowed in order to be sure that everything gets built from the source code..) Or perhaps patching the Haskell libs can’t be specified in the package’s metadata?.. (But, if I have understood the build instructions correctly, the patching doesn’t require root, and hence can be done during a normal unprivileged build procedure.)

    #13437

    lkml
    Member

    i’d like to second that idea to integrate git-annex into f-droid.

    i’m not yet familiar w/the build procedure within f-droid. following this thread it seems i’m not the only one. any doc pointers or intro from an insider? that’d be highly appreciated.

    thx

    #15991

    krt
    Moderator
Viewing 7 posts - 1 through 7 (of 7 total)

The forum ‘Submission Queue’ is closed to new topics and replies.

Posted in