Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lanceschi/helix-editor-for-custom-glib

Build helix against GLIBC version 2.31
https://github.com/lanceschi/helix-editor-for-custom-glib

Last synced: 23 days ago
JSON representation

Build helix against GLIBC version 2.31

Awesome Lists containing this project

README

        

# Description

This repository contains some script files for building the
[helix][helix-github] 24.03 editor from source within a docker image. The
scripts can be tweaked in order to target specific GLIB library versions. By
default `ubuntu:20.04` is the docker base image featuring GLIBC version 2.31.

# Build under linux

Follow these simple steps:

1. clone locally this repository;
2. CD into the cloned repository folder;
3. run `./build.sh` from a shell prompt and wait.

The `build.sh` script:

1. will build the docker image;
2. run the built image as a docker container;
3. extract the built files into a local host folder.

When the build step is over, you'll find all the required files (binary,
grammars, etc ...) in a subfolder labelled `helix-24.03`. Folder name follows
the pattern `helix-` and can be modified at [line 5][build-line-5] of
`build.sh` file.

## Configure the helix target version

Modify the `VERSION` variable at [line 3][build-line-3] of the `build.sh` shell
script file.

## Configure the OS docker base image

Modify the ubuntu default base image at [line 1][dockerfile-line-1] of the `Dockerfile`.

## Notes

### Git

In order to download the full set of grammars, it was necessary to use in the
Dockerfile a recent version of [git][git] which is not offered by ubuntu
[PPAs][ppa-definition], beside `v2.25.1`. Currently the version offered by the
[git PPA][git-ppa] is `v2.40.1`.

More info can be found on this [issue][helix-git-issue] of the official
[helix][helix-github] repository.

[helix-github]: https://github.com/helix-editor/helix
[build-line-3]: build.sh#L3
[build-line-5]: build.sh#L5
[dockerfile-line-1]: Dockerfile#L1
[git]: https://git-scm.com/
[ppa-definition]: https://en.wikipedia.org/wiki/Ubuntu#Package_Archives
[git-ppa]: https://launchpad.net/~git-core/+archive/ubuntu/ppa
[helix-git-issue]: https://github.com/helix-editor/helix/issues/7036