Proper handling of ocaml_captures_build_path

Stéphane Glondu glondu at debian.org
Wed Jan 29 12:35:02 GMT 2020


Hi Chris,

Le 06/01/2020 à 00:57, Chris Lamb a écrit :
>> Is there a way that the toolchain automatically sets
>> BUILD_PATH_PREFIX_MAP?
> 
> I would share your reservations about scalability and would append my
> own æsthetic problems with ugly boilerplating.
> 
> However, I notice that a "dh-ocaml" package exists and although this
> might be for a more narrower use-case (alas I am not an OCaml
> developer) this might be both the cleanest solution and moreover the
> most pragmatic one; exporting to the environment via debhelper more
> generally á la SOURCE_DATE_EPOCH or even by dpkg itself would likely
> be more of a difficult ask.

Indeed, most of OCaml packages depend on dh-ocaml and include a snippet
from there. I've added an export of BUILD_PATH_PREFIX_MAP to this
snippet (as of 1.1.1), which seems to fix the ocaml_captures_build_path
issue.


Cheers,

-- 
Stéphane



More information about the Reproducible-builds mailing list