Skip to content

Commit

Permalink
Merge pull request #37 from avsm/fix-yum-2
Browse files Browse the repository at this point in the history
Fix OracleLinux and Arch compilation
  • Loading branch information
avsm committed Feb 25, 2021
2 parents f141f0e + 48141e9 commit 31d5f42
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src-opam/dockerfile_opam.ml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ let yum_opam2 ?(labels= []) ?arch ~yum_workaround ~enable_powertools ~distro ~ta
@@ install_bubblewrap_from_source ()
@@ install_opam_from_source ~prefix:"/usr" ~add_default_link:false ~branch:"2.0" ()
@@ install_opam_from_source ~prefix:"/usr" ~add_default_link:false ~branch:"master" ()
@@ from ~tag distro @@ workaround
@@ from ~tag distro
@@ run "yum --version || dnf install -y yum"
@@ workaround
@@ Linux.RPM.update
@@ Linux.RPM.dev_packages ()
@@ (if enable_powertools then run "yum config-manager --set-enabled powertools" @@ Linux.RPM.update else empty)
Expand Down Expand Up @@ -177,7 +179,7 @@ let zypper_opam2 ?(labels=[]) ?arch ~distro ~tag () =
(* Pacman based Dockerfile *)
let pacman_opam2 ?(labels=[]) ?arch ~distro ~tag () =
header ?arch distro tag @@ label (("distro_style", "pacman") :: labels)
@@ Linux.Pacman.install "make gcc patch bzip2 git tar curl ca-certificates openssl"
@@ Linux.Pacman.dev_packages ()
@@ Linux.Git.init ()
@@ install_opam_from_source ~add_default_link:false ~branch:"2.0" ()
@@ install_opam_from_source ~add_default_link:false ~branch:"master" ()
Expand Down

0 comments on commit 31d5f42

Please sign in to comment.