Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Alpine linux build for packed-mn #158

Closed
ronaldtse opened this issue Mar 26, 2022 · 8 comments · Fixed by #168
Closed

Add Alpine linux build for packed-mn #158

ronaldtse opened this issue Mar 26, 2022 · 8 comments · Fixed by #168
Assignees
Labels
enhancement New feature or request

Comments

@ronaldtse
Copy link
Contributor

I suppose we will need to update Tebako to support this?

@ronaldtse ronaldtse added the enhancement New feature or request label Mar 26, 2022
@maxirmx
Copy link
Contributor

maxirmx commented Mar 26, 2022

We will have to create build scripts for everything

  1. folly
  2. dwarfs
  3. libdwarfs
    Alpine Linux support tamatebako/libdwarfs#80 for these three
  4. tebako-patched ruby
    Alpine Linux support tamatebako/tebako#78

There are some known issues with folly (ref facebook/folly#1478) This is something to start with.

@ronaldtse
Copy link
Contributor Author

For Ruby, this is how the Docker team compiles Ruby on Alpine: https://github.com/docker-library/ruby/blob/master/3.1/alpine3.15/Dockerfile

@maxirmx
Copy link
Contributor

maxirmx commented Apr 2, 2022

Well, they have broken ncurses package
image

static library is missing though the link is there. This is not a showstopper, but another package to build and install manually

@ronaldtse
Copy link
Contributor Author

Well, they have broken ncurses package image

static library is missing though the link is there. This is not a showstopper, but another package to build and install manually

Is this a bug with Alpine? If so, we probably should report to Alpine?

@maxirmx
Copy link
Contributor

maxirmx commented Apr 5, 2022

Is this a bug with Alpine? If so, we probably should report to Alpine?

Prior to v3.15 there is no ncurses static library at all
In 3.15 there is a bug as shown
In the latest edge (unstable) it is fixed, so I do not think we need to report.
I consider it too risky to use to unstable version.

@ronaldtse
Copy link
Contributor Author

Got it, then we should make packed-mn available for Alpine > 3.15, ignoring 3.15.

@maxirmx
Copy link
Contributor

maxirmx commented Apr 9, 2022

Another required folly patch:
facebook/folly#1754

@maxirmx
Copy link
Contributor

maxirmx commented Jun 10, 2022

Status
I have created a preliminary version of Alpine CI script https://github.com/metanorma/packed-mn/actions/workflows/alpine.yml

  • seven_zip_ruby compatibility issue Alpine 3.16 (which is now 'latest') installs gcc 11.x that does not work for seven_zip_ruby 7z.so fails to compile with gcc 11.x masamitsu-murase/seven_zip_ruby#36
    I am dealing with it by building on Alpine 3.15 but it can be considered short term solution obly

  • expressir musl compatibility issue Failure when loaded in Alpine Linux with musl-dev lutaml/expressir#106
    I am dealing with it by using force_ruby_platform true but it has side effect of rebuilding extensions for other gems and causes the next issue

  • when native extensions for nokogiry and some other gems are rebuild they use dynamic linking and create external dependancies that need to be satisfied at run time: apk --no-cache --upgrade add git libstdc++ xz libarchive
    I am ignoring it for now though these requirements violate initial self-sufficiency requirement

  • fontist gem has some ssl certificates issue
    /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/fontist-1.14.2/lib/fontist/font_installer.rb:68:in `download_file': Invalid URL: https://github.com/fontist/source-fonts/releases/download/v1.0/source-fonts-1.0.zip. Error: #<Down::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate)>. (Fontist::Errors::InvalidResourceError)
    openssl does verification without problems and wget works with this uri so it is not about missing certificate.
    This issue is blocker for now. Probably we need to create Alpine CI for fontis as well

Attn @ronaldtse

@maxirmx maxirmx linked a pull request Jun 23, 2022 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants