Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] making OPAM packages for different versions of Coq

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] making OPAM packages for different versions of Coq


Chronological Thread 
  • From: Enrico Tassi <enrico.tassi AT inria.fr>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] making OPAM packages for different versions of Coq
  • Date: Thu, 12 Jan 2017 21:34:10 +0100
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=enrico.tassi AT inria.fr; spf=None smtp.mailfrom=gares AT fettunta.org; spf=None smtp.helo=postmaster AT fettunta.org
  • Ironport-phdr: 9a23:yuaa9B/6cQvsNf9uRHKM819IXTAuvvDOBiVQ1KB41+4cTK2v8tzYMVDF4r011RmSDNmdsKoP0rGH+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZPebgFHiTanb75+MBq6oRjfu8QSnIBvNrs/xhzVr3VSZu9Y33loJVWdnxb94se/4ptu+DlOtvwi6sBNT7z0c7w3QrJEAjsmNXs15NDwuhnYUQSP/HocXX4InRdOHgPI8Qv1Xpb1siv9q+p9xCyXNtD4QLwoRTiv6bpgRRn1gykFKjE56nnahMJwgqxFvRyvpBJ/zIHIb46INvVxcLjQfc8GSWdbQspdSzZMDp26YoASD+QBJ+FYr4zlqlUBqxu+HwisC//oyjRVmHH5x7Y60/8gEQrb2wEvAdQOsG7VrNrpM6ceS/y1w7PTzTXYbvNbwjb96I7SchAgu/6AR7xwcdDIxEQpCgjLgFKQqYn/MDOU0OQAq3SU7+56WuK1lm4nsBt9oj2xycoql4LHhZoVx0jA+Ch22oo5O9O1RFR6bNOgCpdcqj+WOoluTs8/X21lvDw2x7MbtZKhYSQHzJcqywTbZvGBboOG+AjsVPyLLjd9nH9leKywhxK18UW4xO3zSNW00EpXripDjtnDrGoB1xvJ6siIUvd9/0Gh1iiT1w3L7uxJLlo4mbTVJpI7w7M9koAfvVndEiL0gEn2ibWZdkQg+uim8eTnZbDmq4eTN4BukAHxLL8ul9exAesmLggOQ3Wb+eKg1LL550H5R69KjvIunqnDrJ/aPdgbprK+AwJNzokj7A+/Ay6639QcgHkIN0lIeAmHjojsI1HBOur0Dfa5g1S2kTdk3erKPrP7AsaFEn+Wm7D4OL159kR0yQwpzNkZ6YgHJKsGJafeXFXwv9uQMhYiKA38l+vhEtR20cUCUHmUA4eYNrnTuBmG/LR8cKG3eIYJtWOleLAe7Pn0gCphlA==

On Thu, Jan 12, 2017 at 05:20:57PM -0300, Beta Ziliani wrote:
> Hi list,
>
> I want to create packages for different versions of Coq. How do I do that?
> For what I understand from
>
> http://coq-blog.clarus.me/make-a-coq-package.html
>
> packages are listed according to version number, like
>
> coq-unicoq-1.0.0
>
> Now I want to have two more versions of the new 1.1.0 release, one for Coq
> 8.5 and one for 8.6 (since they have different API, the code is slightly
> different). Morally, they are both v1.1.0 of UniCoq. How do I do this?

I see two ways.

If the .v code is mostly the same, while the ml is not, you can put
in the same tarball both "versions" of the ml code and let the Makefile
choose. We do that in mathcomp. Then you declare that the OPAM package
works with Coq 8.5 || 8.6.

If the differences are pervasive, then you can make 2 packages using
different sources, with a version number that reflects the Coq version, as
1.1.0+v8.5 depending on Coq >= 8.5 && < 8.6~
1.1.0+v8.6 depending on Coq >= 8.6 && < 8.7~
A third party package can then depend on coq-unicoq >= 1.1.0 (both
package above would do, but only one would be installable). If Coq
itself is pinned to one version, as the instruction on the Coq website
recommend, the fact that the latter version is "syntactically"
greater than the former should not result in an undesired upgrade of
Coq (from 8.5 to 8.6).

Best,
--
Enrico Tassi



Archive powered by MHonArc 2.6.18.

Top of Page