-
-
Notifications
You must be signed in to change notification settings - Fork 247
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
Issue on FreeBSD #159
Comments
I'm not sure what you're asking for here. |
--no-backup-if-mismatch results in an error when patching on FreeBSD / 10.3-RELEASE-p20 |
Also Busybox patch command (i.e. the one in any docker container using alpine, including the official composer image) doesn't like
I suggest we add another foreach ($patch_levels as $patch_level) {
if ($patched = $this->executeCommand("cd %s && patch %s < %s", $install_path, $patch_level, $filename)) {
break;
}
} |
Can confirm the problem on FreeBSD 10.0 - 10.4 too. The reason is, that FreeBSD is not using the gnu patch by default.
and create a symlink like above. If you have a common $PATH, than gnu patch in /usr/local/bin/patch is preferred over the original under /usr/bin Dunno, if the git patch fails only on FreeBSD, but here is the message (which seems to be the reason going to use patch at all):
There is a valid ~/.gitconfig that seems to be unused. Maybe you want to check your git call/files? |
In the meanwhile to fix the issue mentioned above with docker composer official image I've create a POC image gambry/composer. |
The problem is that So to allow us to use those docker containers, we should remove that flag. This would be a behavior change, so not sure how to handle this with regards to BC-compatibility. We also can't create a patch for composer-patches because:
The only fix I can think of, is to remove the flag and implement that behavior in php. I'm not sure if this is a good idea and if we should even try to do this. |
@joris-vercammen-cali See pull request #184 for a potential fix. It uses the posix flag which is available in alpine linux. |
|
Fix issue "patch: unrecognized option `--no-backup-if-mismatch'" See: cweagans#159
--no-backup-if-mismatch
Do not back up a file if the patch does not match the file exactly and if backups are not otherwise requested. This is the default if patch is conforming to POSIX.
The text was updated successfully, but these errors were encountered: