-
-
Notifications
You must be signed in to change notification settings - Fork 242
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
Fix Issue #401 - correctly apply multiple command line parameter flags for FreeBSD #402
Conversation
Co-authored-by: mark burdett <[email protected]>
👍 Tested on FreeBSD, it now runs (I do see a mix of code styles e.g. |
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.
I have just tested the patch and can confirm it is working as expected.
An alternative to the nested if statement would be to use continue
instead, like I did here: wearerequired@d1a08bd
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.
Tested again on FreeBSD and still working fine - it executes patch '-p1' '--posix' '--batch'
rather than the broken patch '-p1' '--posix --batch'
Now I guess we need an actual maintainer to review :)
@cweagans @danepowell can we get a maintainer to review and merge this? This fixes FreeBSD support. |
@arcanumbridge I found some other issues mentioning non-GNU patch also being broken on macOS. I'm not sure if macOS uses "BSD" as |
Realized I could just check the php source code :) Looks like macOS uses "Darwin" as the |
@arcanumbridge should we roll this back to the version that I tested, with BSD OS-specific logic? |
(for context, 2.x is essentially a rewrite and it breaks a ton of things out of the main plugin so that they're individually testable) |
I don't have time to test it this weekend, but I like #447 and it looks like it should fix the issue. I like that the patch providers are more structured and test the patch version directly instead trying to infer it based on OS info. |
@cweagans I've made a few comments regarding some consistency of using ->patchTool() and testing for gpatch, but I think it essentially captures what we want. |
Great! I'm going to close this then and focus on getting 2.x out the door as quickly as possible. (also thank you for the review -- super helpful) |
This is a fix for issue #401 to individually escape the flags to patch.