Konstantin,

On 6/13/14, 5:56 PM, Konstantin Kolinko wrote:
> 2014-06-14 1:36 GMT+04:00 Christopher Schultz <ch...@christopherschultz.net>:
>> All,
>>
>> I've spent some time trying to script a soup-to-nuts repeatable build of
>> tcnative on win32. I've made some progress but I'm hitting a few snags
>> that perhaps some folks could help with.
>>
>> First, I want the script to fetch as much stuff as possible for the user
>> instead of relying on a great deal of previously-installed software. My
>> current requirements -- other than MSVC++ -- are for wget.exe and
>> 7za.exe to be available. If anyone knows how to script an HTTP download
>> or a ZIP-decompress from a Windows command-line without either of those
>> tools, I'd greatly appreciate some insight.
> 
> Maybe Java + Apache Ant?
> 
> Or maybe NAnt has some tasks for that
> http://nant.sourceforge.net/

I considered Nant, but I wanted to limit the dependencies required to
build tcnative.

>> We need to patch both openssl and libapr before building them, so we
>> need "patch". There's a GNU win32 ports project where I can get
>> patch.exe, but its got two problems:
>> (....)
> 
> This package? How did you install it? (Interactive installer, or zip).
> http://gnuwin32.sourceforge.net/packages/patch.htm
> 
> [quote] from "Installation, Usage and Help" of the above page
> On MS-Windows, the patchfile must be a text file, i.e. CR-LF must be
> used as line endings. A file with LF may give the error: "Assertion
> failed, hunk, file patch.c, line 343," unless the option '--binary' is
> given.
> [/quote]

Thanks for that. Adding --binary fixes the problem for the openssl
patch. The APR patch seems to not to apply no matter what. I think it
may be because the APR patch is for 1.4.x and the current version of
libapr is 1.5.1. I manually applied the patch and have a new patch
available. I'm not sure how to detect the version of libapr being used
to apply the right patch, but we can provide both patches and let users
apply the correct one for their environment.

Thanks,
-chris

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to