-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
.gitattributes: turn off CRLF for Makefile.am #1344
Conversation
@MarcelRaad, thanks for your PR! By analyzing the history of the files in this pull request, we identified @billhoffman and @gknauf to be potential reviewers. |
? I use windows checkouts all the time with CRLF translation and I've never seen that |
It happened for me on two machines where I had cloned the git repository in Windows and then ran buildconf from the Ubuntu bash that you can get with Windows 10. |
The problem is briefly explained here: |
hm. Well I'd think if you're using Ubuntu to work on a local curl repo that's using CRLF translation you're going to run into problems. This probably isn't what you want to hear but maybe you should turn it off, reset the repo to just LF?
I think turning it off for just this one file you'll run into more problems. But let's say we shut CRLF translation off for all *.am, is there any negative downside to that other than some editors won't work? Does any autotools require CRLF line endings that you know of? With just this file changed are you able to build curl and then run the tests successfully? |
Thanks, I didn't know this was possible for an existing checkout. Although it might be a bit inconvenient as I'm developing on Windows and running the tests on Linux, so I'd have to switch between line endings regularly.
It doesn't make a difference if |
I haven't found any downsides to forcing LF for *.am files and everything works for me on Linux as well as Windows (MSYS2) with CRLF translation. |
If Makefile.am uses CRLF, buildconf in a Windows checkout fails with: ".ibtoolize: error: AC_CONFIG_MACRO_DIRS([m4]) conflicts with ACLOCAL_AMFLAGS=-I m4"
Bash on Linux errors out on CR characters. This makes tests 1221 and 1222 pass on Linux with a CRLF checkout. Ref: curl#1344 (comment)
Ignore everything after the version numbers in LIBCURL_VERSION and LIBCURL_VERSION_NUM to ged rid of the extra CR character. This makes tests 1022 and 1023 pass on Linux with a CRLF checkout. Ref: curl#1344 (comment)
Bash on Linux errors out on CR characters. This makes tests 1221 and 1222 pass on Linux with a CRLF checkout. Ref: curl#1344 (comment)
Ignore everything after the version numbers in LIBCURL_VERSION and LIBCURL_VERSION_NUM to ged rid of the extra CR character. This makes tests 1022 and 1023 pass on Linux with a CRLF checkout. Ref: curl#1344 (comment)
Bash on Linux errors out on CR characters. This makes tests 1221 and 1222 pass on Linux with a CRLF checkout. Ref: curl#1344 (comment)
Ignore everything after the version numbers in LIBCURL_VERSION and LIBCURL_VERSION_NUM to ged rid of the extra CR character. This makes tests 1022 and 1023 pass on Linux with a CRLF checkout. Ref: curl#1344 (comment)
This makes test 1135 pass with CRLF checkouts. Ref: curl#1344 (comment)
Bash on Linux errors out on CR characters. This makes tests 1221 and 1222 pass on Linux with a CRLF checkout. Ref: curl#1344 (comment) Closes curl#1422
Ignore everything after the version numbers in LIBCURL_VERSION and LIBCURL_VERSION_NUM to ged rid of the extra CR character. This makes tests 1022 and 1023 pass on Linux with a CRLF checkout. Ref: curl#1344 (comment) Closes curl#1422
This makes test 1135 pass with CRLF checkouts. Ref: curl#1344 (comment) Closes curl#1422
Otherwise, buildconf in a Windows checkout fails with: