Skip to content

Commit 665e565

Browse files
authored
Merge pull request #418 from poechsel/4.12-rebase
4.12 rebase
2 parents 6177073 + 7dc96a9 commit 665e565

File tree

976 files changed

+40296
-29344
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

976 files changed

+40296
-29344
lines changed

.depend

Lines changed: 91 additions & 57 deletions
Large diffs are not rendered by default.

.gitattributes

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929

3030
/boot/menhir/parser.ml* -diff
3131

32-
# configure is declared as binary so that it doesn't get included in diffs.
33-
# This also means it will have the correct Unix line-endings, even on Windows.
34-
/configure binary
32+
# configure is a shell-script; the linguist-generated attribute suppresses
33+
# changes being displayed by default in pull requests.
34+
/configure text eol=lf -diff linguist-generated
3535

3636
# 'union' merge driver just unions textual content in case of conflict
3737
# http://krlmlr.github.io/using-gitattributes-to-avoid-merge-conflicts/
@@ -51,19 +51,22 @@ tools/mantis2gh_stripped.csv typo.missing-header
5151

5252
*.adoc typo.long-line=may
5353

54+
# Github templates and scripts lack headers, have long lines
55+
/.github/** typo.missing-header typo.long-line=may typo.very-long-line=may
56+
5457
/.mailmap typo.long-line typo.missing-header typo.non-ascii
5558
/.merlin typo.missing-header
5659
/Changes typo.utf8 typo.missing-header
57-
/News typo.utf8 typo.missing-header
60+
/release-info/News typo.utf8 typo.missing-header
5861
/INSTALL typo.missing-header
5962
/LICENSE typo.very-long-line typo.missing-header
6063
# tools/ci/appveyor/appveyor_build.cmd only has missing-header because
6164
# dra27 too lazy to update check-typo to interpret Cmd-style comments!
6265
/tools/ci/appveyor/appveyor_build.cmd typo.very-long-line typo.missing-header typo.non-ascii
6366
/tools/ci/appveyor/appveyor_build.sh typo.non-ascii
64-
/tools/ci/inria/remove-sinh-primitive.patch typo.white-at-eol typo.missing-header typo.long-line
65-
/tools/release-checklist typo.missing-header typo.very-long-line
66-
67+
/tools/ci/inria/bootstrap/remove-sinh-primitive.patch typo.prune
68+
/release-info/howto.md typo.missing-header typo.long-line
69+
/release-info/templates/*.md typo.missing-header typo.very-long-line=may
6770
# ignore auto-generated .depend files
6871
.depend typo.prune
6972
/.depend.menhir typo.prune
@@ -106,6 +109,7 @@ testsuite/tests/lib-unix/win-stat/fakeclock.c typo.missing-header=fals
106109
testsuite/tests/misc-unsafe/almabench.ml typo.long-line
107110
testsuite/tests/tool-toplevel/strings.ml typo.utf8
108111
testsuite/tests/win-unicode/*.ml typo.utf8
112+
testsuite/tests/asmgen/immediates.cmm typo.very-long-line
109113
testsuite/tools/*.S typo.missing-header
110114
testsuite/tools/*.asm typo.missing-header
111115
testsuite/typing typo.missing-header
@@ -116,6 +120,10 @@ testsuite/tests/**/*.reference typo.prune
116120
# Expect tests with overly long lines of expected output
117121
testsuite/tests/parsing/docstrings.ml typo.very-long-line
118122

123+
# The normalisation tests have very specific line endings which mustn't be
124+
# corrupted by git.
125+
testsuite/tests/tool-ocamltest/norm*.reference binary
126+
119127
tools/magic typo.missing-header
120128
tools/eventlog_metadata.in typo.missing-header
121129

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: Bug report
3+
about: Please submit bug reports here.
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
<!--
10+
Welcome to OCaml's Issue tracker!
11+
12+
OCaml's developers use this tracker for bugs and feature requests only, rather
13+
than user support.
14+
15+
If you have questions about *using* OCaml, please ask at
16+
https://discuss.ocaml.org (more people read Discuss than this tracker, and
17+
you'll get confirmation of whether you've really found a bug or need a new
18+
feature).
19+
20+
If your error came from the OCaml package manager, opam, (messages beginning
21+
`[ERROR] The compilation of ...`), please start at
22+
https://github.com/ocaml/opam-repository/issues/new.
23+
24+
Some libraries and tools which used to be part of OCaml are now maintained
25+
separately. Please post questions about Graphics, Num, camlp4, LablTk, CamlDBM
26+
or OCamlTopWin on Discuss or on their respective issue trackers (see [README.adoc](https://github.com/ocaml/ocaml/blob/trunk/README.adoc#separately-maintained-components)
27+
for a full list).
28+
-->

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: OCaml Discuss Forum
4+
url: https://discuss.ocaml.org/
5+
about: This is the best place to start with questions about using OCaml.
6+
- name: opam Package Repository
7+
url: https://github.com/ocaml/opam-repository/issues
8+
about: >-
9+
Virtually all OCaml packages are available in the opam repository - please
10+
report packaging issues there.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: Feature request
3+
about: Suggest a new feature for OCaml.
4+
title: ''
5+
labels: 'feature-wish'
6+
assignees: ''
7+
8+
---
9+
<!--
10+
Welcome to OCaml's Issue tracker!
11+
12+
We welcome all suggestions for improvements to OCaml. It is helpful if
13+
discussions on new features can initially begin on our community forums
14+
(see https://discuss.ocaml.org and https://ocaml.org/community), mainly because
15+
their readership is wider than this issue tracker, and you'll get better
16+
feedback as to whether your suggestion is a good idea or has been considered
17+
before. You may even end up with volunteers to help implement it!
18+
19+
It is often easier to propose changes to the language than it is to design those
20+
changes: if you are proposing an alteration to the language, please be aware
21+
that we may need to have a more complete proposal of how the change will be
22+
implemented than "It would be nice to be able to X in OCaml" (see also
23+
https://github.com/ocaml/RFCs)
24+
-->

.github/workflows/dune.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
id: cache
5858
with:
5959
path: ${{ github.workspace }}/install
60-
key: ${{ matrix.os }}-cache-install-ocaml4111-flambda-dune213
60+
key: ${{ matrix.os }}-cache-install-ocaml4120-flambda-dune213
6161

6262
# ### STEP 1 ###
6363
# Get a working 4.10 statmemprof ocaml install, with dune
@@ -79,7 +79,7 @@ jobs:
7979
with:
8080
repository: 'ocaml/ocaml'
8181
path: 'base'
82-
ref: '4.11'
82+
ref: '4.12'
8383
# Apply ocamltest patch to 4.10 repo
8484
- name: Apply ocamltest patch
8585
if: steps.cache.outputs.cache-hit != 'true'
@@ -106,7 +106,7 @@ jobs:
106106
uses: actions/checkout@master
107107
with:
108108
repository: 'ocaml/dune'
109-
ref: '2.1.3'
109+
ref: '2.8.0'
110110
path: 'dune'
111111
# Build and install dune
112112
- name: Build and install dune
@@ -206,5 +206,3 @@ jobs:
206206
#- name: Running the testsuite
207207
# working-directory: test
208208
# run: cd testsuite && make list-parallel FILE=../.github/workflows/dune.list
209-
210-

.github/workflows/main.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,3 @@ jobs:
7777
- name: Ocamltest failing logs
7878
if: failure()
7979
run: cd testsuite && make logs
80-
81-

.github/workflows/ocamltest_dune.patch

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/ocamltest/ocaml_compilers.ml b/ocamltest/ocaml_compilers.ml
2-
index bb3ed6ae4..c3e635ddf 100644
2+
index a47c2ae6f..90d62b8b7 100644
33
--- a/ocamltest/ocaml_compilers.ml
44
+++ b/ocamltest/ocaml_compilers.ml
55
@@ -40,14 +40,20 @@ class compiler
@@ -24,10 +24,10 @@ index bb3ed6ae4..c3e635ddf 100644
2424
method ! reference_file env prefix =
2525
let default = tool#reference_file env prefix in
2626
diff --git a/ocamltest/ocaml_tests.ml b/ocamltest/ocaml_tests.ml
27-
index 964eaa2f6..acce5b1a3 100644
27+
index b42172d37..6cf4f6718 100644
2828
--- a/ocamltest/ocaml_tests.ml
2929
+++ b/ocamltest/ocaml_tests.ml
30-
@@ -22,16 +22,18 @@ open Ocaml_actions
30+
@@ -22,10 +22,12 @@ open Ocaml_actions
3131
let bytecode =
3232
let opt_actions =
3333
[
@@ -40,14 +40,7 @@ index 964eaa2f6..acce5b1a3 100644
4040
] in
4141
{
4242
test_name = "bytecode";
43-
test_run_by_default = true;
44-
test_actions =
45-
- [
46-
+ [
47-
setup_ocamlc_byte_build_env;
48-
ocamlc_byte;
49-
check_ocamlc_byte_output;
50-
@@ -43,15 +45,19 @@ let bytecode =
43+
@@ -43,14 +45,16 @@ let bytecode =
5144
let native =
5245
let opt_actions =
5346
[
@@ -63,9 +56,6 @@ index 964eaa2f6..acce5b1a3 100644
6356
check_ocamlopt_opt_output;
6457
+ run;
6558
+ check_program_output;
66-
+(*
67-
compare_native_programs;
68-
+*)
6959
] in
7060
{
7161
test_name = "native";
Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,28 @@
11
diff --git a/ocamltest/ocaml_tests.ml b/ocamltest/ocaml_tests.ml
2-
index 964eaa2f67..166277466b 100644
2+
index 55eaea2fa..86431559c 100644
33
--- a/ocamltest/ocaml_tests.ml
44
+++ b/ocamltest/ocaml_tests.ml
5-
@@ -22,10 +22,12 @@ open Ocaml_actions
5+
@@ -22,9 +22,11 @@ open Ocaml_actions
66
let bytecode =
77
let opt_actions =
88
[
9-
+(*
9+
+ (*
1010
setup_ocamlc_opt_build_env;
1111
ocamlc_opt;
1212
check_ocamlc_opt_output;
13-
compare_bytecode_programs
14-
+*)
13+
+ *)
1514
] in
1615
{
1716
test_name = "bytecode";
18-
@@ -48,10 +50,12 @@ let native =
17+
@@ -47,9 +49,11 @@ let native =
1918
check_ocamlopt_byte_output;
2019
run;
2120
check_program_output;
22-
+(*
21+
+ (*
2322
setup_ocamlopt_opt_build_env;
2423
ocamlopt_opt;
2524
check_ocamlopt_opt_output;
26-
compare_native_programs;
27-
+*)
25+
+ *)
2826
] in
2927
{
3028
test_name = "native";

.github/workflows/stale.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: "Close stale issues"
2+
on:
3+
schedule:
4+
- cron: "15 4 * * 1,3,5"
5+
6+
jobs:
7+
stale:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/stale@v3
11+
with:
12+
repo-token: ${{ secrets.GITHUB_TOKEN }}
13+
stale-issue-message: 'This issue has been open one year with no activity. Consequently, it is being marked with the "stale" label. What this means is that the issue will be automatically closed in 30 days unless more comments are added or the "stale" label is removed. Comments that provide new information on the issue are especially welcome: is it still reproducible? did it appear in other contexts? how critical is it? etc.'
14+
days-before-stale: 366
15+
days-before-close: 30

0 commit comments

Comments
 (0)