Skip to content

Commit f3f589e

Browse files
authored
Get rid of esy-autoconf (#57)
1 parent 556a539 commit f3f589e

File tree

5 files changed

+61
-22
lines changed

5 files changed

+61
-22
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ jobs:
143143
- run:
144144
name: "Install esy + system deps"
145145
command: |
146-
sudo apt-get install texinfo
146+
sudo apt-get install texinfo autotools-dev autoconf
147147
npm install -g esy
148148
- run:
149149
name: 'esy install'

esy.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
},
3333
"resolutions": {
3434
"@opam/conf-libev": "esy-packages/libev:package.json#86d244e",
35-
"@opam/conf-autoconf": "esy-packages/esy-autoconf:package.json#71a8836",
3635
"@opam/conf-openssl": {
3736
"source": "no-source:",
3837
"override": {
@@ -61,7 +60,7 @@
6160
}
6261
}
6362
},
64-
"@opam/ppx_deriving": "gasche/ppx_deriving:ppx_deriving.opam#a7788f8",
63+
"@opam/ppx_deriving": "ocaml-ppx/ppx_deriving:ppx_deriving.opam#e12921c",
6564
"@opam/ppx_tools": "ocaml-ppx/ppx_tools:ppx_tools.opam#331fbc4",
6665
"@opam/nocrypto": {
6766
"source": "TheLortex/ocaml-nocrypto:nocrypto.opam#df2348d",

esy.lock/index.json

+24-15
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"checksum": "da7de81cbb5f04a618cfba9b02a5f8ba",
2+
"checksum": "7677c103d74a45a530a6bc4e593bb0e5",
33
"root": "h2@link-dev:./esy.json",
44
"node": {
55
"yarn-pkg-config@github:esy-ocaml/yarn-pkg-config#cca65f99674ed2d954d28788edeb8c57fada5ed0@d41d8cd9": {
@@ -584,7 +584,7 @@
584584
"@opam/sexplib@opam:v0.12.0@c65643bb",
585585
"@opam/ptime@opam:0.8.5@0051d642",
586586
"@opam/ppx_sexp_conv@opam:v0.12.0@6aa153b5",
587-
"@opam/ppx_deriving@github:gasche/ppx_deriving:ppx_deriving.opam#a7788f8@d41d8cd9",
587+
"@opam/ppx_deriving@github:ocaml-ppx/ppx_deriving:ppx_deriving.opam#e12921c@d41d8cd9",
588588
"@opam/ppx_cstruct@opam:5.0.0@cea738b4",
589589
"@opam/ocamlfind@opam:1.8.0@f744a0c5",
590590
"@opam/ocamlbuild@opam:0.14.0@427a2331",
@@ -602,7 +602,7 @@
602602
"@opam/sexplib@opam:v0.12.0@c65643bb",
603603
"@opam/ptime@opam:0.8.5@0051d642",
604604
"@opam/ppx_sexp_conv@opam:v0.12.0@6aa153b5",
605-
"@opam/ppx_deriving@github:gasche/ppx_deriving:ppx_deriving.opam#a7788f8@d41d8cd9",
605+
"@opam/ppx_deriving@github:ocaml-ppx/ppx_deriving:ppx_deriving.opam#e12921c@d41d8cd9",
606606
"@opam/ppx_cstruct@opam:5.0.0@cea738b4",
607607
"@opam/nocrypto@github:TheLortex/ocaml-nocrypto:nocrypto.opam#df2348d@d86b9d71",
608608
"@opam/mirage-kv-lwt@opam:2.0.0@585db097",
@@ -1014,14 +1014,16 @@
10141014
"@opam/base@opam:v0.12.2@e209c8f2"
10151015
]
10161016
},
1017-
"@opam/ppx_deriving@github:gasche/ppx_deriving:ppx_deriving.opam#a7788f8@d41d8cd9": {
1017+
"@opam/ppx_deriving@github:ocaml-ppx/ppx_deriving:ppx_deriving.opam#e12921c@d41d8cd9": {
10181018
"id":
1019-
"@opam/ppx_deriving@github:gasche/ppx_deriving:ppx_deriving.opam#a7788f8@d41d8cd9",
1019+
"@opam/ppx_deriving@github:ocaml-ppx/ppx_deriving:ppx_deriving.opam#e12921c@d41d8cd9",
10201020
"name": "@opam/ppx_deriving",
1021-
"version": "github:gasche/ppx_deriving:ppx_deriving.opam#a7788f8",
1021+
"version": "github:ocaml-ppx/ppx_deriving:ppx_deriving.opam#e12921c",
10221022
"source": {
10231023
"type": "install",
1024-
"source": [ "github:gasche/ppx_deriving:ppx_deriving.opam#a7788f8" ]
1024+
"source": [
1025+
"github:ocaml-ppx/ppx_deriving:ppx_deriving.opam#e12921c"
1026+
]
10251027
},
10261028
"overrides": [],
10271029
"dependencies": [
@@ -2460,7 +2462,7 @@
24602462
"dependencies": [
24612463
"[email protected]@d41d8cd9", "@opam/ocamlfind@opam:1.8.0@f744a0c5",
24622464
"@opam/conf-which@opam:1@56319cdb",
2463-
"@opam/conf-autoconf@github:esy-packages/esy-autoconf:package.json#71a8836@d41d8cd9",
2465+
"@opam/conf-autoconf@opam:0.1@f636cabb",
24642466
"@esy-ocaml/[email protected]@d41d8cd9"
24652467
],
24662468
"devDependencies": [ "[email protected]@d41d8cd9" ]
@@ -2929,7 +2931,7 @@
29292931
],
29302932
"dependencies": [
29312933
"@opam/conf-pkg-config@opam:1.1@da0b7ce6",
2932-
"@opam/conf-autoconf@github:esy-packages/esy-autoconf:package.json#71a8836@d41d8cd9",
2934+
"@opam/conf-autoconf@opam:0.1@f636cabb",
29332935
"@esy-packages/esy-openssl@archive:https://github.com/openssl/openssl/archive/OpenSSL_1_1_1c.tar.gz#sha1:eb59b090bd757e30b676fb5e80c25ddb5a2f9511@4d267550"
29342936
],
29352937
"devDependencies": []
@@ -2994,17 +2996,24 @@
29942996
],
29952997
"devDependencies": []
29962998
},
2997-
"@opam/conf-autoconf@github:esy-packages/esy-autoconf:package.json#71a8836@d41d8cd9": {
2998-
"id":
2999-
"@opam/conf-autoconf@github:esy-packages/esy-autoconf:package.json#71a8836@d41d8cd9",
2999+
"@opam/conf-autoconf@opam:0.1@f636cabb": {
3000+
"id": "@opam/conf-autoconf@opam:0.1@f636cabb",
30003001
"name": "@opam/conf-autoconf",
3001-
"version": "github:esy-packages/esy-autoconf:package.json#71a8836",
3002+
"version": "opam:0.1",
30023003
"source": {
30033004
"type": "install",
3004-
"source": [ "github:esy-packages/esy-autoconf:package.json#71a8836" ]
3005+
"source": [ "no-source:" ],
3006+
"opam": {
3007+
"name": "conf-autoconf",
3008+
"version": "0.1",
3009+
"path": "esy.lock/opam/conf-autoconf.0.1"
3010+
}
30053011
},
30063012
"overrides": [],
3007-
"dependencies": [],
3013+
"dependencies": [
3014+
"@opam/conf-which@opam:1@56319cdb",
3015+
"@esy-ocaml/[email protected]@d41d8cd9"
3016+
],
30083017
"devDependencies": []
30093018
},
30103019
"@opam/conduit-lwt@opam:1.4.0@c8d62b5a": {

esy.lock/opam/conf-autoconf.0.1/opam

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
opam-version: "2.0"
2+
maintainer: "[email protected]"
3+
homepage: "http://www.gnu.org/software/autoconf"
4+
authors: "https://www.gnu.org/software/autoconf/autoconf.html#maintainer"
5+
bug-reports: "https://github.com/ocaml/opam-repository/issues"
6+
license: "GPL-3.0"
7+
build: [
8+
["which" "autoconf"]
9+
]
10+
depends: ["conf-which" {build}]
11+
depexts: [
12+
["autoconf"] {os-distribution = "debian"}
13+
["autoconf"] {os-distribution = "ubuntu"}
14+
["autoconf"] {os-distribution = "centos"}
15+
["autoconf"] {os-distribution = "fedora"}
16+
["autoconf"] {os-distribution = "arch"}
17+
["sys-devel/autoconf"] {os-distribution = "gentoo"}
18+
["autoconf"] {os-distribution = "nixos"}
19+
["autoconf"] {os = "macos" & os-distribution = "homebrew"}
20+
["devel/autoconf"] {os = "openbsd"}
21+
["autoconf"] {os = "freebsd"}
22+
["autoconf"] {os = "netbsd"}
23+
["autoconf"] {os-distribution = "alpine"}
24+
["autoconf"] {os-distribution = "ol"}
25+
["autoconf"] {os-distribution = "rhel"}
26+
]
27+
synopsis: "Virtual package relying on autoconf installation"
28+
description: """
29+
This package can only install if the autoconf command
30+
is available on the system."""
31+
flags: conf

examples/lwt/lwt_get.ml

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ open Lwt.Infix
2525

2626
let () =
2727
let host = ref None in
28-
let port = ref 80 in
28+
let port = ref 443 in
2929
Arg.parse
30-
[ "-p", Set_int port, " Port number (80 by default)" ]
30+
[ "-p", Set_int port, " Port number (443 by default)" ]
3131
(fun host_argument -> host := Some host_argument)
3232
"lwt_get.exe [-p N] HOST";
3333
let host =
@@ -54,9 +54,9 @@ let () =
5454
in
5555
let response_received, notify_response_received = Lwt.wait () in
5656
let response_handler = response_handler notify_response_received in
57-
Client.TLS.create_connection ~error_handler socket >>= fun connection ->
57+
Client.SSL.create_connection ~error_handler socket >>= fun connection ->
5858
let request_body =
59-
Client.TLS.request connection request ~error_handler ~response_handler
59+
Client.SSL.request connection request ~error_handler ~response_handler
6060
in
6161
Body.close_writer request_body;
6262

0 commit comments

Comments
 (0)