-
Notifications
You must be signed in to change notification settings - Fork 38
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
Coreutils 9.2 changes cp -n behavior and causes mono compile to fail #164
Comments
The intended behavior is to copy only files that do not exist in the destination directory. |
Well, the |
It still performs that copy as before, but instead of exiting with 0 it exits with 1. You may add "|| true" at the end of your command to retain the original behavior. Thanks for addressing it though. |
I don't want actual errors to get lost though. |
Coreutils 9.2 release notes:
https://github.com/coreutils/coreutils/blob/v9.2/NEWS#L88
Starting in 9.2, the 'cp' command and its '-n' option have different behavior.
Wine Mono uses "cp -n" in mono.make:
https://github.com/madewokherd/wine-mono/blob/develop/mono.make#L176
Fedora Rawhide compile (F39 / coreutils 9.3) output:
Fedora 38 compile (coreutils 9.1) output:
Coreutils 9.1:
Does not output any error message. Exit code: 0
Coreutils 9.2 and higher:
Outputs error message (that 9.1 and earlier should have displayed). Exit code: 1
Systems with Coreutils 9.2 and higher will fail to compile Wine Mono. This failure has existed forever so I am not sure what kind of behavior this copy command should accomplish. I'd appreciate any feedback. Thanks.
The text was updated successfully, but these errors were encountered: