summaryrefslogtreecommitdiff
path: root/deps
Commit message (Collapse)AuthorAgeFilesLines
* deps: fix implicit fallthrough warning in http-parserPatrick Steinhardt2018-06-221-0/+2
| | | | | | | | | | | | | | | | GCC 7 has introduced new warnings for implicit fallthrough in switch statements. Whenever there is no branch in a case block, GCC will watch out for some heuristics which indicate that the implicit fallthrough is intended, like a "fallthrough" comment. The third-party http-parser code manages to trick this heuristic in one case, even though there is a "FALLTHROUGH" comment. Fortunately, GCC has also added a strictness level to the -Wimplicit-fallthrough diagnostic, such that we can loosen this heuristic and make it more lax. Set -Wimplicit-fallthrough=1 in http-parser's CMake build instructions, which is the strictest level that gets rid of the warning. This level will treat any kind of comment as a "fallthrough" comment, which silences the warning.
* deps: upgrade embedded zlib to version 1.2.11Patrick Steinhardt2018-03-0715-724/+1816
| | | | | | | | | | | | | The current version of zlib bundled with libgit2 is version 1.2.8. This version has several CVEs assigned: - CVE-2016-9843 - CVE-2016-9841 - CVE-2016-9842 - CVE-2016-9840 Upgrade the bundled version to the current release 1.2.11, which has these vulnerabilities fixes.
* mingw: update TLS option flagsEdward Thomson2018-02-271-4/+6
| | | | | | | | Include the constants for `WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_1` and `WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_2` so that they can be used by mingw. This updates both the `deps/winhttp` framework (for classic mingw) and adds the defines for mingw64, which does not use that framework.
* cmake: use project-relative binary and source directoriesPatrick Steinhardt2017-10-201-1/+1
| | | | | | | | | | | | | | | | | | | Due to our split of CMake files into multiple modules, we had to replace some uses of the `${CMAKE_CURRENT_SOURCE_DIR}` and `${CMAKE_CURRENT_BINARY_DIR}` variables and replace them with `${CMAKE_SOURCE_DIR}` and `${CMAKE_BINARY_DIR}`. This enabled us to still be able to refer to top-level files when defining build instructions inside of a subdirectory. When replacing all variables, it was assumed that the absolute set of variables is always relative to the current project. But in fact, this is not the case, as these variables always point to the source and binary directory as given by the top-levl project. So the change actually broke the ability to include libgit2 directly as a subproject, as source files cannot be found anymore. Fix this by instead using project-specific source and binary directories with `${libgit2_SOURCE_DIR}` and `${libgit2_BINARY_DIR}`.
* cmake: fix static linking for bundled depsPatrick Steinhardt2017-09-203-3/+3
| | | | | | | | | | | | | | | | | Our bundled deps are being built as simple static libraries which are then linked into the libgit2 library via `TARGET_LINK_LIBRARIES`. While this works for a dynamically built libgit2 library, using this function to link two static libraries does not have the expected outcome of merging those static libraries into one big library. This leads to symbols of our bundled deps being undefined in the resulting libgit2 archive. As we have bumped our minimum CMake version to 2.8.11, we can now easily make use of object libraries for our bundled dependencies. So build instructions are still self-contained inside of the dependency directories and the resulting object libraries can just be added to the LIBGIT2_OBJECTS list, which will cause them to be linked into the final resulting static library. This fixes the issue of undefined symbols.
* cmake: move zlib build instructions into subdirectoryPatrick Steinhardt2017-08-161-0/+4
| | | | | Extract code required to build the zlib library into its own CMakeLists.txt, which is included as required.
* cmake: move http-parser build instructions into subdirectoryPatrick Steinhardt2017-08-161-0/+3
| | | | | Extract code required to build the http-parser library into its own CMakeLists.txt, which is included as required.
* cmake: move regex build instructions into subdirectoryPatrick Steinhardt2017-08-161-0/+2
| | | | | Extract code required to build the regex library into its own CMakeLists.txt, which is included as required.
* cmake: move winhttp build instructions into subdirectoryPatrick Steinhardt2017-08-161-0/+26
| | | | | Extract code required to build the winhttp library into its own CMakeLists.txt, which is included as required.
* zlib: include "git2/types.h" instead of "common.h"Patrick Steinhardt2017-07-031-1/+2
| | | | | | | | | | | | | | | | | The zlib dependency includes "common.h" inside of the "zconf.h" header to make available some type declarations like e.g. git_off_t. Including the "common.h" header does pull in quite a lot of other headers though, which are not required at all. Instead, we can just include our public "git2/types.h" header, which is much more limited in its scope but still provides everything required for "zconf.h". This fix eases the transition later on to use a separate "features.h" header instead of defines. As we have to generate the "features.h" header, we put it in the build directory and add an include directory. As we are splitting out building of dependencies into subdirectories, this would mean that the zlib dependency needs to be aware of the parent project's build directory, which is unfortunate. By including "git2/types.h", we avoid this problem.
* Updating change to http_parser to reflect PR for nodejs/http-parserChris Bargren2015-12-281-2/+5
| | | The parser now also supports digits, '-' and '.'. https://github.com/nodejs/http-parser/pull/276
* Updating http parser to accept a `+` in the schemaChris Bargren2015-12-221-1/+1
|
* Correct line endings on winhttp.defEdward Thomson2015-06-101-29/+29
|
* use a different .def file for 64 bitTony Kelman2015-03-161-0/+29
|
* patch so mingw-w64 can buildklutzy2015-03-162-0/+16
|
* Win32: Enable WinHTTP for MinGWPhilip Kelley2015-03-163-0/+650
|
* Rever spelling fixes for dependenciesCarlos Martín Nieto2014-12-052-2/+2
| | | | | This is not our code and it adds unecessary changes from the upstream code.
* Spelling fixesWill Stamper2014-12-042-2/+2
|
* Solaris doesn't necessarily have stdint.h, use inttypes.hJacques Germishuys2014-08-051-0/+2
|
* zlib: disable warning 4142 on MSVCcmn/update-zlibCarlos Martín Nieto2014-06-111-0/+1
| | | | This is about benign redefinition of types. We're not interested in it.
* zlib: get rid of compress.c and uncompr.cCarlos Martín Nieto2014-06-112-139/+0
|
* zlib: get rid of gz*Carlos Martín Nieto2014-06-116-2042/+0
|
* zlib: add a few missing definesCarlos Martín Nieto2014-06-111-0/+3
|
* Merge branch 'cmn/zlib-update' into cmn/update-zlibCarlos Martín Nieto2014-06-1121-449/+3527
|\
| * Merge branch 'cmn/zlib-128' into cmn/zlib-updateCarlos Martín Nieto2014-06-1121-449/+3527
| |\ | | | | | | | | | | | | | | | | | | Conflicts: deps/zlib/crc32.c deps/zlib/crc32.h deps/zlib/zconf.h
| | * Update zlib to 1.2.8Carlos Martín Nieto2014-06-1122-458/+4502
| | |
* | | Clean up warningsEdward Thomson2013-12-091-3/+10
| | |
* | | Several warnings detected by static code analyzer fixedArkadiy Shapkin2013-03-181-1/+1
| | | | | | | | | | | | | | | | | | | | | Implicit type conversion argument of function to size_t type Suspicious sequence of types castings: size_t -> int -> size_t Consider reviewing the expression of the 'A = B == C' kind. The expression is calculated as following: 'A = (B == C)' Unsigned type is never < 0
* | | regex: Proper define for this thingVicent Marti2013-01-111-5/+5
| | |
* | | regex: Fixed warnings about unused parameter values.Sebastian Bauer2013-01-112-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are different solutions to the problem. In this change, we define an UNUSED macro that maps to __attribute__((unused)) when compiling with gcc. Otherwise it is a NOOP. We apply this macro in all function headers for each parameter value that is not used within the function body. The change is local to regex.
* | | regex: Fixed several warnings about signed/unsigned conversions.Sebastian Bauer2013-01-113-9/+11
| | |
* | | Remove use of English expletivesMartin Woodward2012-11-232-2/+2
| | | | | | | | | | | | | | | | | | Remove words such as fuck, crap, shit etc. Remove other potentially offensive words from comments. Tidy up other geopolicital terms in comments.
* | | Bump the builtin http-parserhttp-parser-2Vicent Marti2012-11-122-647/+1079
| | |
* | | regex: fix sign warningsCarlos Martín Nieto2012-02-182-10/+13
| | |
* | | regex: The world uses utf-8Carlos Martín Nieto2012-02-181-32/+1
| | |
* | | regex: Move the defines to a config header and include it unconditionallyCarlos Martín Nieto2012-02-182-2/+7
| | |
* | | Add POSIX regex sources when neededCarlos Martín Nieto2012-02-176-0/+11476
| | | | | | | | | | | | | | | | | | Windows doesn't support POSIX regex, so we need to include it ourselves. The sources come from git, which in turn took them from gawk.
* | | msvc: Remove superfluous includesVicent Marti2011-10-051-15/+1
| | |
* | | http-parser: Disable MSVC warnings locallyVicent Marti2011-09-291-0/+5
| | |
* | | Resync with upstream http-parserCarlos Martín Nieto2011-09-281-12/+11
| | |
* | | http-parser: More type changesVicent Marti2011-09-282-4/+4
| | |
* | | Change types in http-parserVicent Marti2011-09-281-4/+4
| | |
* | | Really fix MSVCCarlos Martín Nieto2011-09-271-1/+1
| | | | | | | | | | | | | | | | | | These was left over from the previous PRs. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | | Fix dev branch under MSVCCarlos Martín Nieto2011-09-271-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In libgit2: Move an enum out of an int bitfield in the HTTP transport. In the parser: Use int bitfields and change some variable sizes to better fit thir use. Variables that count the size of the data chunk can only ever be as large as off_t. Warning 4127 can be ignored, as nobody takes it seriously anyway. From Emeric: change some variable declarations to keep MSVC happy. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | | http-parser: Do not use bitfieldsVicent Marti2011-09-271-11/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bitfields suck. And if you make them with non-int types, they suck in a non-standards compliant way. Like sucking sideways or something. This commit removes all bitfields in the `http_parser` struct, and replaces them with the minimal type needed to contain their values. Note that the fields in the struct have been reordered so they can be packed with 4-byte alignment. This saves both memory on the parser (because non-int bitfields get expanded to 4byte in most compilers anyway) and time (because the fields are now properly aligned and the compiler doesn't need to generate bit-level ops to access them).
* | | http: add http-parserCarlos Martín Nieto2011-09-093-0/+2075
|/ / | | | | | | | | | | The code is under the MIT lincense Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | Fix compilation in WindowsVicent Marti2011-08-082-0/+883
| |
* | zlib: Declare preprocessor directives at build timeVicent Marti2011-07-011-4/+0
| |
* | zlib: No visualization attributes.Vicent Marti2011-06-301-0/+1
| | | | | | | | | | The visibility attribute is a headache on many platforms like Solaris, and not even supported on Windows.
* | Define NO_GZIP in zconf.h instead of at compile timeVicent Marti2011-03-161-0/+1
| |