-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
conf-time
#9848
conf-time
#9848
Conversation
bug-reports: "https://github.com/ocaml/opam-repository/issues" | ||
dev-repo: "https://github.com/ocaml/opam-repository.git" | ||
license: "GPL" | ||
build: [["which" "time"]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you use which
you should depend on conf-which
.
packages/conf-time/conf-time.1/opam
Outdated
build: [["which" "time"]] | ||
depexts: [ | ||
[["debian"] ["time"]] | ||
[["ubuntu"] ["time"]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to extend the depexts a bit for other platforms distributions, here's a list of system package manager online search that can help.
Thanks @dbuenzli! I added the dependency and will be looking over the package lists. |
Here is a difficulty: most BSD or BSD-inspired system (OSX) use a different implementation of
If you know of a package that had to deal with this, suggestions are welcome. P.S.: By far the easiest way forward to solve the "bitstring installation fails if GNU time is not there" would be to change |
I think the simplest for now is to use an
and
I'm not sure this even works pre-opam v2. And there's a lot of things that are currently unclear or undocumented about this (e.g. how to guarantee a deterministic environment w.r.t. to a sequence of package installs). |
Ok. Then I would suggest to consider that the semantics of |
Another alternative is to upstream support for a POSIX usage of |
This package does *not* enforce availability of "GNU time", it may be BSD time (BSD, OSX) or Busybox's (Alpine). The only common functionality is "time <command>".
I found an example of So if we wanted a package that enforces GNU time instead of any other |
Because the replacement of |
This looks fine to me. On the CI point, it's ok to use up resources on the (still in beta) datakit-based service, as it can be restarted easily. For base patches like this though, please try not to submit them on a Friday and expect a review over the weekend -- it's more reasonable to give reviewers the work week to try and respond, and save the weekend for fun patches :-) |
Thanks for the process advice, noted. |
I got the idea from looking at #9832 which seems to fail finding
/usr/bin/time
on CentOS. This change does in itself solve this problem (the only depext moved around are the existing ones for debian and ubunutu), and I'm not very knowledgeable inconf-*
packages (iswhich time
a reasonable build command?), but this goes in the spirit of #5791.