You are not logged in.
Today I tried to apply some patches from oolite forum thread to an oxp (mod) I use in my local Oolite install .
Copied them to a text file and ran patch. The changes were rejected due to different line endings .
(Not very surprising as oolite in 2015 ran on linux, windows and MacOS) .
Since only 1 line is changed and a few are added I copied the stuff line by line manually.
Is there a way to apply diff files created on windows systems to files on linux ?
Last edited by Lone_Wolf (Today 10:32:40)
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Open the files in linux text apps such as kwrite, kate, or notepadqq which can change the line endings to either Windows (carriage return + new line) or Linux (new line). You may have to look through the menus to find the commands. In kwrite and kate, "line endings" are under the tools menus.
luser: an epithet applied by Windows users to linux users
Offline
Running the `dos2unix` (or possibly `unix2dos`) program from the dos2unix package on the patch file will convert all of its line endings to the appropriate type.
Offline
The file that needed patching used CRLF , so I used unix2dos to convert to that style .
(I prefer staying as close to upstream as possible)
patching still failed but with another message :
(Stripping trailing CRs from patch; use --binary to disable.)Adding --binary to the patch command solved that and the patched file now works as intended.
Marking as Solved.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline