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

Install linux-headers package in Alpine build for bechamel package #202

Open
shakthimaan opened this issue Mar 27, 2024 · 1 comment
Open

Comments

@shakthimaan
Copy link

shakthimaan commented Mar 27, 2024

The bechamel package CI is failing for Alpine 3.19 as observed in the logs at:
https://ocaml.ci.dev/github/mirage/bechamel/commit/a54a0b47300ed4ae9b95d4b05af701012caa31ca

The fix is to install the linux-header package using apk before proceeding to install the package dependencies.

I see there is dev_packages as an extra argument to module Apk in linux.ml:

 let dev_packages ?extra () =
    install
      "build-base patch tar ca-certificates git rsync curl sudo bash \
       libx11-dev nano coreutils xz ncurses-dev%s"
      (match extra with None -> "" | Some x -> " " ^ x)

See https://github.com/ocurrent/ocaml-dockerfile/blob/master/src-opam/linux.ml#L138

Is there a way to pass these dev_packages list from the respective project sources directory, say from https://github.com/mirage/bechamel?

@benmandrew
Copy link
Contributor

System package dependencies should be specified in the .opam file with the conf- opam packages. It looks like the conf-linux-libev-dev package to me (https://opam.ocaml.org/packages/conf-linux-libc-dev/).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants