[Debian-med-packaging] [covid-19] Help for ocaml package needed
Shayan Doust
hello at shayandoust.me
Thu Jun 4 17:16:42 BST 2020
Hello,
Just an update from a previous email.
mcl now also generates some ocaml libraries as of today. Understanding
how to install these ocaml libraries (they go under a directory such as
/usr/local/lib/ocaml/<ocaml_version> reversing ocaml's installation
procedure) so that is the final obstacle to learn and fix within the
next couple days. I had no luck with dh_ocaml as this expects files
under debian/mcl and not debian/tmp.
Maybe I'll try moving files to debian/mcl, running dh_ocaml and seeing
what that does or perhaps "--with ocaml" has some significance here.
Kind regards,
Shayan Doust
On 02/06/2020 20:07, Pierre Boutillier wrote:
> Hi Shayan,
>
> In order to fix this error in a quick&dirty way, you can to add `oasis`
> as a build-dependency and do `oasis setup` (which regenerates the file
> setup.ml) before the `ocaml setup.ml -all` in rules.
>
> Best,
>
> Pierre B.
>
> Le 02/06/2020 à 19:01, Shayan Doust a écrit :
>> Hello Andreas et al.,
>>
>> I've integrated the patch and done a few tweaks overall for mcl[1].
>>
>> Building within sbuild on unstable, I get the following error:
>>
>> ...
>> Making all in setops
>> make[5]: Entering directory '/<<PKGBUILDDIR>>/testing/setops'
>> make[5]: Nothing to be done for 'all'.
>> make[5]: Leaving directory '/<<PKGBUILDDIR>>/testing/setops'
>> make[4]: Leaving directory '/<<PKGBUILDDIR>>/testing'
>> make[3]: Leaving directory '/<<PKGBUILDDIR>>'
>> make[2]: Leaving directory '/<<PKGBUILDDIR>>'
>> ocaml setup.ml -all
>> File "./setup.ml", line 247, characters 8-26:
>> 247 | buf.[i] <- f s.[i]
>> ^^^^^^^^^^^^^^^^^^
>> Alert deprecated: Stdlib.String.set
>> Use Bytes.set instead.
>> File "./setup.ml", line 247, characters 8-11:
>> 247 | buf.[i] <- f s.[i]
>> ^^^
>> Error: This expression has type string but an expression was expected of
>> type
>> bytes
>> make[1]: *** [debian/rules:74: override_dh_auto_build] Error 2
>> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
>> --------------------------------------------------------------------------------
>>
>> Build finished at 2020-06-02T16:50:16Z
>>
>> Finished
>> --------
>> ...
>>
>> I'll leave this CC'd in the list so that someone with more OCaml
>> experience can suggest a possible solution to this.
>>
>> Kind regards,
>> Shayan Doust
>>
>> [1]: https://salsa.debian.org/med-team/mcl
>>
>> On 01/06/2020 20:04, Andreas Tille wrote:
>>> On Mon, Jun 01, 2020 at 05:22:56PM +0100, Shayan Doust wrote:
>>>> I've ran a diff and generated a patch between the plain 12-068 version
>>>> (I cannot find its source on salsa so I just downloaded this tarball
>>>> from the author's website but that shouldn't make any difference) and
>>>> the mcl clone.
>>>>
>>>> ~7,000 lines in the patch all featuring new files and its contents
>>>> regarding OCaml support but I will experiment tomorrow and see how
>>>> cleanly and effectively I can apply this patch over the newer Debian
>>>> packaged mcl.
>>> Sounds promising - thanks a lot
>>>
>>> Andreas.
>>>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0x6D7D441919D02395.asc
Type: application/pgp-keys
Size: 4983 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-med-packaging/attachments/20200604/0b15e2bc/attachment-0001.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/debian-med-packaging/attachments/20200604/0b15e2bc/attachment-0001.sig>
More information about the Debian-med-packaging
mailing list