From 0e286bd2a1f6ab1e19fd02e941d885806540ecb4 Mon Sep 17 00:00:00 2001 From: Vincent Laviron Date: Fri, 27 Aug 2021 16:37:20 +0200 Subject: [PATCH 1/3] Patch links build instructions --- packages/links/links.0.9.3+flambda2/opam | 46 ++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 packages/links/links.0.9.3+flambda2/opam diff --git a/packages/links/links.0.9.3+flambda2/opam b/packages/links/links.0.9.3+flambda2/opam new file mode 100644 index 0000000..4015ea4 --- /dev/null +++ b/packages/links/links.0.9.3+flambda2/opam @@ -0,0 +1,46 @@ +opam-version: "2.0" +maintainer: "Simon Fowler " +authors: "The Links Team " +synopsis: "The Links Programming Language" +description: "Links is a functional programming language designed to make web programming easier." +homepage: "https://github.com/links-lang/links" +dev-repo: "git+https://github.com/links-lang/links.git" +bug-reports: "https://github.com/links-lang/links/issues" +license: "GPL-2.0-only" +build: [ + [ "dune" "subst" ] {dev} + [ "dune" "exec" "--root" "." "preinstall/preinstall.exe" "--" "-libdir" _:lib ] + [ "dune" "build" "-p" name "-j" jobs ] +] + +depends: [ + "ocaml" {>= "4.08.0"} + "dune" {>= "1.10.0"} + "ppx_deriving" + "ppx_deriving_yojson" {>= "3.3"} + "base64" + "linenoise" + "ANSITerminal" + "lwt" {>= "3.1.0"} + "cohttp" + "cohttp-lwt" + "cohttp-lwt-unix" + "conduit-lwt-unix" + "uri" + "websocket" + "websocket-lwt-unix" + "safepass" + "result" + "ocamlfind" + "menhir" + "ppx_sexp_conv" +] +x-commit-hash: "6ec7f5bd54407cd68eddf906d8ff5002d02702dc" +url { + src: + "https://github.com/links-lang/links/releases/download/0.9.3/links-0.9.3.tbz" + checksum: [ + "sha256=f663eaafad4d80ce0f86bb8639bfd5cdd03e432cc4bd2868a0b4b50d2ee11de7" + "sha512=0f70d72e9d0eac2ddd7fb7905e4a5ea2136cfbffcd83d564026f847f1d90c02daaf70d8c84555c68a076867cf9f0913ae38d6b53ca6faaadbedbf20421aa83d8" + ] +} From 84adf85956cdccd8572f7a7493ab4364c33e08a6 Mon Sep 17 00:00:00 2001 From: Vincent Laviron Date: Fri, 27 Aug 2021 16:42:05 +0200 Subject: [PATCH 2/3] Add links-mysql at the same version --- .../links-mysql.0.9.3+flambda2/opam | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 packages/links-mysql/links-mysql.0.9.3+flambda2/opam diff --git a/packages/links-mysql/links-mysql.0.9.3+flambda2/opam b/packages/links-mysql/links-mysql.0.9.3+flambda2/opam new file mode 100644 index 0000000..1eb637b --- /dev/null +++ b/packages/links-mysql/links-mysql.0.9.3+flambda2/opam @@ -0,0 +1,31 @@ +opam-version: "2.0" +maintainer: "James Cheney " +authors: "The Links Team " +synopsis: "MySQL database driver for the Links Programming Language" +description: "MySQL database driver for the Links Programming Language" +homepage: "https://github.com/links-lang/links" +dev-repo: "git+https://github.com/links-lang/links.git" +bug-reports: "https://github.com/links-lang/links/issues" +license: "GPL-2.0-only" + +build: [ + [ "dune" "subst" ] {dev} + [ "dune" "build" "-p" name "-j" jobs ] +] + +depends: [ + "ocaml" {>= "4.08.0"} + "dune" {>= "1.10.0"} + "conf-mysql" + "mysql" + "links" {= version} +] +x-commit-hash: "6ec7f5bd54407cd68eddf906d8ff5002d02702dc" +url { + src: + "https://github.com/links-lang/links/releases/download/0.9.3/links-0.9.3.tbz" + checksum: [ + "sha256=f663eaafad4d80ce0f86bb8639bfd5cdd03e432cc4bd2868a0b4b50d2ee11de7" + "sha512=0f70d72e9d0eac2ddd7fb7905e4a5ea2136cfbffcd83d564026f847f1d90c02daaf70d8c84555c68a076867cf9f0913ae38d6b53ca6faaadbedbf20421aa83d8" + ] +} From 14fb9c0438e7a386ea516f0580401c349e39a0fe Mon Sep 17 00:00:00 2001 From: Vincent Laviron Date: Wed, 1 Sep 2021 18:26:29 +0200 Subject: [PATCH 3/3] Fix link flags on links-mysql --- .../files/unix-link.patch | 30 +++++++++++++++++++ .../links-mysql.0.9.3+flambda2/opam | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 packages/links-mysql/links-mysql.0.9.3+flambda2/files/unix-link.patch diff --git a/packages/links-mysql/links-mysql.0.9.3+flambda2/files/unix-link.patch b/packages/links-mysql/links-mysql.0.9.3+flambda2/files/unix-link.patch new file mode 100644 index 0000000..a68fee4 --- /dev/null +++ b/packages/links-mysql/links-mysql.0.9.3+flambda2/files/unix-link.patch @@ -0,0 +1,30 @@ +diff --git a/database/mysql-driver/dune b/database/mysql-driver/dune +index c5a4ed03..ccd9c77a 100644 +--- a/database/mysql-driver/dune ++++ b/database/mysql-driver/dune +@@ -3,8 +3,8 @@ + (public_name links-mysql) + (synopsis "MySQL database backend for Links") + (optional) +- (flags (:standard -safe-string -dtypes -w Ae-44-45-60 -g -cclib -lunix -thread)) +- (libraries mysql links.core)) ++ (flags (:standard -safe-string -dtypes -w Ae-44-45-60 -g -thread)) ++ (libraries unix mysql links.core)) + + + (install +diff --git a/database/mysql8-driver/dune b/database/mysql8-driver/dune +index adfdb3ad..02c4fe17 100644 +--- a/database/mysql8-driver/dune ++++ b/database/mysql8-driver/dune +@@ -3,8 +3,8 @@ + (public_name links-mysql8) + (synopsis "MySQL8 database backend for Links") + (optional) +- (flags (:standard -safe-string -dtypes -w Ae-42-44-45-60 -g -cclib -lunix -thread)) +- (libraries mysql8 links.core)) ++ (flags (:standard -safe-string -dtypes -w Ae-42-44-45-60 -g -thread)) ++ (libraries unix mysql8 links.core)) + + + (install diff --git a/packages/links-mysql/links-mysql.0.9.3+flambda2/opam b/packages/links-mysql/links-mysql.0.9.3+flambda2/opam index 1eb637b..aba331e 100644 --- a/packages/links-mysql/links-mysql.0.9.3+flambda2/opam +++ b/packages/links-mysql/links-mysql.0.9.3+flambda2/opam @@ -29,3 +29,5 @@ url { "sha512=0f70d72e9d0eac2ddd7fb7905e4a5ea2136cfbffcd83d564026f847f1d90c02daaf70d8c84555c68a076867cf9f0913ae38d6b53ca6faaadbedbf20421aa83d8" ] } +patches: ["unix-link.patch"] +extra-files: [ ["unix-link.patch" "md5=5a11b90b5b1395aadff280eaad55406a"] ]