Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ocaml-option-nnpchecker #18021

Merged
merged 1 commit into from
Jan 26, 2021
Merged

Conversation

dra27
Copy link
Member

@dra27 dra27 commented Jan 22, 2021

This PR adds ocaml-option-nnpchecker to trigger the --enable-naked-pointers-checker option in OCaml 4.12+

I haven't updated ocaml-config to emulate a switch name for this - I'm not sure we particularly want one, but it can be added if required.

I have intentionally edited the existing options as they only apply to a beta release - in future we'd expect to bump the versions.

cc @Octachron

@dra27 dra27 mentioned this pull request Jan 22, 2021
21 tasks
@dra27 dra27 requested a review from AltGr January 22, 2021 17:17
@camelus
Copy link
Contributor

camelus commented Jan 22, 2021

Commit: a6daaf4

A pull request by opam-seasoned @dra27.

🌤️ opam-lint warnings a6daaf4
  • ocaml-option-nnpchecker.1 has some warnings:

    • warning 25: Missing field 'authors'
    • warning 35: Missing field 'homepage'
    • warning 36: Missing field 'bug-reports'
  • ocaml-options-only-afl.1 has some warnings:

    • warning 25: Missing field 'authors'
    • warning 35: Missing field 'homepage'
    • warning 36: Missing field 'bug-reports'
  • ocaml-options-only-flambda-fp.1 has some warnings:

    • warning 25: Missing field 'authors'
    • warning 35: Missing field 'homepage'
    • warning 36: Missing field 'bug-reports'
  • ocaml-options-only-flambda.1 has some warnings:

    • warning 25: Missing field 'authors'
    • warning 35: Missing field 'homepage'
    • warning 36: Missing field 'bug-reports'
  • ocaml-options-only-fp.1 has some warnings:

    • warning 25: Missing field 'authors'
    • warning 35: Missing field 'homepage'
    • warning 36: Missing field 'bug-reports'
  • ocaml-options-only-nnp.1 has some warnings:

    • warning 25: Missing field 'authors'
    • warning 35: Missing field 'homepage'
    • warning 36: Missing field 'bug-reports'
  • ocaml-options-only-no-flat-float-array.1 has some warnings:

    • warning 25: Missing field 'authors'
    • warning 35: Missing field 'homepage'
    • warning 36: Missing field 'bug-reports'
  • ocaml-options-vanilla.1 has some warnings:

    • warning 25: Missing field 'authors'
    • warning 35: Missing field 'homepage'
    • warning 36: Missing field 'bug-reports'
  • ocaml-variants.4.12.0+trunk has some warnings:

    • warning 47: Synopsis (or description first line) should start with a capital and not end with a dot
  • These packages passed lint tests: ocaml-variants.4.12.0~beta1+options


☀️ Installability check (+1)
  • new installable packages (1): ocaml-option-nnpchecker.1

depends: [
"ocaml-variants" {post & >= "4.12.0~"}
]
available: arch = "x86_64" & (os = "linux" | os = "macos" | os = "openbsd" | os = "freebsd")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the option really specific to those platforms and architecture?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is indeed, see https://github.com/ocaml/ocaml/blob/trunk/configure.ac#L1727-L1735. Technically msvc64 and solaris are also included, but I know we don't have an encoding for msvc64 and I haven't got access to Solaris to see what uname -s does (I think it's SunOS, but I have no way to check!)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps @mtelvers still has a Solaris box gathering dust somewhere? 😉

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dra27 I have recovered my SparcStation 20 from deep storage and even found a Sun 13W3-M to VGA adapter but sadly none of my monitors accept the resolution/timing.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dra27 It's SunOS -- the Wikipedia page has a convenient list: https://en.wikipedia.org/wiki/Uname

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ta, @avsm! A handy list (if less fun than persuading Mark to try building OCaml on a 1994 Sun Workstation 😉). I've pushed an amended version with os = "sunos" too (opam normalises with lowercase_ascii)

@kit-ty-kate
Copy link
Member

Thanks!

@kit-ty-kate kit-ty-kate merged commit 4fc1d87 into ocaml:master Jan 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants