Skip to content

Conversation

allanlw
Copy link
Owner

@allanlw allanlw commented Dec 20, 2016

See Bug #1 - this fixes line feeds, hopefully.

@allanlw allanlw mentioned this pull request Dec 20, 2016
@pavelthq
Copy link

Looks doesn't help for windows.
I have removed previously

docker rm `docker ps -aq`
docker rmi `docker images -aq`

But still shows

Step 8 : RUN cd libevent &&     patch -p1 < /hphpc/hhvm/hphp/third_party/libevent-1.4.14.fb-changes.diff &&     ./autogen.sh &&     ./configure --prefix=$CMAKE_PREFIX_PATH &&     make &&     make install
 ---> Running in 7ef1cabefc0a
(Stripping trailing CRs from patch.)
patching file event.c
Hunk #1 FAILED at 138.
Hunk #2 FAILED at 481.
Hunk #3 FAILED at 533.
Hunk #4 FAILED at 552.
4 out of 4 hunks FAILED -- saving rejects to file event.c.rej
(Stripping trailing CRs from patch.)
patching file evhttp.h
Hunk #1 FAILED at 81.
Hunk #2 FAILED at 105.
Hunk #3 FAILED at 134.
Hunk #4 FAILED at 157.
Hunk #5 FAILED at 210.
Hunk #6 FAILED at 224.
6 out of 6 hunks FAILED -- saving rejects to file evhttp.h.rej
(Stripping trailing CRs from patch.)
patching file http-internal.h
Hunk #1 FAILED at 116.
1 out of 1 hunk FAILED -- saving rejects to file http-internal.h.rej
(Stripping trailing CRs from patch.)
patching file http.c
Hunk #1 FAILED at 219.
Hunk #2 FAILED at 478.
Hunk #3 FAILED at 488.
Hunk #4 FAILED at 687.
Hunk #5 FAILED at 706.
Hunk #6 FAILED at 1012.
Hunk #7 FAILED at 1101.
Hunk #8 FAILED at 1278.
Hunk #9 FAILED at 1963.
Hunk #10 FAILED at 1986.
Hunk #11 FAILED at 2007.
Hunk #12 FAILED at 2293.
Hunk #13 FAILED at 2301.
Hunk #14 FAILED at 2309.
Hunk #15 FAILED at 2345.
Hunk #16 FAILED at 2527.
Hunk #17 FAILED at 2657.
17 out of 17 hunks FAILED -- saving rejects to file http.c.rej
The command '/bin/sh -c cd libevent &&     patch -p1 < /hphpc/hhvm/hphp/third_party/libevent-1.4.14.fb-changes.diff &&     ./autogen.sh &&     ./configure --prefix=$CMAKE_PREFIX_PATH &&     make &&     make install' returned a non-zero code: 1

Maybe caused by git windows configuration checkout CRLF.

@pavelthq
Copy link

Once I have added
git config --global --edit

core.autocrlf = false

looks it is compiling ok

@allanlw
Copy link
Owner Author

allanlw commented Dec 20, 2016

Strange. If you can figure out how to do it from the repo settings, I'll gladly accept it, but I don't have a test machine so I don't know how to do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants