-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
makedist script does not handle non-GNU systems correctly #14688
Labels
Comments
Same for gen_verify_stub
|
|
NattyNarwhal
added a commit
to NattyNarwhal/php-src
that referenced
this issue
Jun 27, 2024
The BSDs have different checksum utilities than GNU systems do. If we don't see the GNU checksum utilities installed, use the BSD ones, as their output is compatible enough. Addresses part of phpGH-14688.
NattyNarwhal
added a commit
that referenced
this issue
Jul 8, 2024
* Handle BSD checksum utilities The BSDs have different checksum utilities than GNU systems do. If we don't see the GNU checksum utilities installed, use the BSD ones, as their output is compatible enough. Addresses part of GH-14688. * Prefer GNU touch BSD touch at least in macOS does not handle local timezone in the timestamp (like 2024-06-27T10:26:23-03:00). As such, try GNU touch (as ports systems almost always prefix with g if coreutils is installed) and prefer that if available. It's not the end of the world though if GNU touch isn't available, as BSD touch on some systems may support it, and if it doesn't, then it's just timestamps, nothing too serious.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
While it does mandate GNU tar and checks for it correctly, it:
touch
in a manner that confuses macOStouch
. Oddly, the date it passes looks valid for the format, so I'm not sure why it complains.md5sum
, when on macOS and BSD systems, it'smd5
.For example:
PHP Version
PHP 8.4.0-dev
Operating System
macOS 14.5
The text was updated successfully, but these errors were encountered: