-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
105 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -357,7 +357,6 @@ let do_upgrade repo_root = | |
(string_of_int (1 + int_of_string sn)) ^ "~" | ||
with Not_found -> str_version ^ "a" | ||
in | ||
let empty = Some (SPF_Unresolved (Empty, Empty)) in | ||
let wrapper_opam = | ||
O.create wrapper_nv |> | ||
O.with_substs [OpamFilename.Base.of_string conf_script_name] |> | ||
|
@@ -367,31 +366,18 @@ let do_upgrade repo_root = | |
None | ||
] |> | ||
O.with_maintainer [ "[email protected]" ] |> | ||
O.with_build_env [{ | ||
envu_var = "CAML_LD_LIBRARY_PATH"; envu_op = Eq; | ||
envu_value = ""; envu_comment = None; | ||
envu_rewrite = empty; | ||
}] |> | ||
O.with_build_env [ | ||
OpamTypesBase.env_update_unresolved | ||
"CAML_LD_LIBRARY_PATH" Eq "" | ||
] |> | ||
O.with_env [ | ||
{ envu_var = "CAML_LD_LIBRARY_PATH"; | ||
envu_op = Eq; | ||
envu_value = "%{_:stubsdir}%"; | ||
envu_comment = None; | ||
envu_rewrite = empty; | ||
}; | ||
{ envu_var = "CAML_LD_LIBRARY_PATH"; | ||
envu_op = PlusEq; | ||
envu_value = "%{lib}%/stublibs"; | ||
envu_comment = None; | ||
envu_rewrite = empty; | ||
}; | ||
{ envu_var = "OCAML_TOPLEVEL_PATH"; | ||
envu_op =Eq; | ||
envu_value = "%{toplevel}%"; | ||
envu_comment = None; | ||
envu_rewrite = empty; | ||
}] |> | ||
(* XXX Rewrite rules ?? *) | ||
OpamTypesBase.env_update_unresolved | ||
"CAML_LD_LIBRARY_PATH" Eq "%{_:stubsdir}%"; | ||
OpamTypesBase.env_update_unresolved | ||
"CAML_LD_LIBRARY_PATH" PlusEq "%{lib}%/stublibs"; | ||
OpamTypesBase.env_update_unresolved | ||
"OCAML_TOPLEVEL_PATH" Eq "%{toplevel}%" | ||
] |> | ||
(* leave the Compiler flag to the implementations (since the user | ||
needs to select one) | ||
O.with_flags [Pkgflag_Compiler] |> *) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters