-
Notifications
You must be signed in to change notification settings - Fork 553
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
Alpine Linux and "ps: unrecognized option: p" #17542
Comments
|
And one more failed test on Alpine: |
[snip] Time::Piece is maintained upstream on CPAN. This problem appears to have already been reported there at https://rt.cpan.org/Public/Bug/Display.html?id=128240. You may wish to add a comment to that ticket. Thank you very much. |
Is there any general way to determine that one is on a platform that is using the BusyBox versions of Linux utilities as opposed to the regular GNU versions? Similarly, is there any general way to determine that one is using musl libc? Thank you very much. |
|
That particular test is already quite robust (t/op/magic.t). All it requires is a 2>&1 on the ps line (817) to redirect STDERR to STDOUT where it is eaten by the backticks. Tested on Alpine 3.11.3 |
|
A general way to check for the use of BusyBox is: The skip() test added to magic.t in fca083c could then be amended to: But what @bingos suggested looks simpler and would more likely handle other stripped-back multicall binaries besides BusyBox. |
I found that this test is failing on Alpine Linux, a rather popular linux for creating Docker containers out of. Alpine Linux uses busybox and the `ps` command it provides does not handle the `-p` option used by this test, or any option, really. But also yocto (used for building embedded linuxes) uses busybox Alpine currently has a patch for this test in their perl package: https://git.alpinelinux.org/aports/tree/main/perl/skip-test-due-to-busybox-ps.patch The fix in this commit is as proposed by @bingos in Perl#17542 (comment) I tested it on alpine, debian and macOS Closes Perl#17542
Description
I'm testing on Alpine Linux 3.10 x86_64. I'm building Perl 5.30.1 from the release tarball.
Alpine has BusyBox and Musl. BusyBox is anemic at times. For example,
unziplacks the-aoption to autoconvert text files. And Musl has its own personality. It is a good test platform.make checkis complaining:Steps to Reproduce
Perform a configure, make, make check on Alpine Linux.
Expected behavior
Clean testing.
Perl configuration
The text was updated successfully, but these errors were encountered: