Commit Graph
37 Commits
Author SHA1 Message Date
George Barnett ea1dfd6419 Update BoringSSL to 1c58648f14ed75f2a8cc3ae08897987d97f493ec (#239)
* Update patch-2-arm-arch.patch

* Update BoringSSL to 1c58648f14ed75f2a8cc3ae08897987d97f493ec
2020-08-26 16:17:22 +01:00
Daniel Alm 7932e709af Fix the -f option in build_podspec.sh. (#237)
* Fix the -f option in build_podspec.sh.

* Add docs.

* Another minor tweak.
2020-08-06 18:23:50 +01:00
George Barnett e14f8ebd6a Add synchronous option to trunk push in build_podspec.sh (#222)
See https://github.com/apple/swift-nio/pull/1551
2020-06-10 15:23:13 +01:00
George Barnett a44a343f69 Update build_podspec.sh to not use exact dependency versions (#221)
Motivation:

The build_podspec.sh script generates a podspec which requires exact
versions of its dependencies. This very quickly turns into unresolvable
dependency graphs.

Modifications:

NIO version passed to script must be in the format MAJOR.MINOR
Podspec dependencies are now '>= MAJOR.MINOR', '< MAJOR+1'

Result:

Looser version requirements for podspecs
2020-06-10 13:51:32 +01:00
43d3753cf8 link swift-nio-extras in docs (#208)
Co-authored-by: Cory Benfield <lukasa@apple.com>
Co-authored-by: George Barnett <gbarnett@apple.com>
2020-05-19 12:10:06 +01:00
Cory Benfield f6ad7f7ef1 Update BoringSSL to 7c522995d1ea5386b3223a19b0f62e73c1f76b17 (#216)
Also remove a temporary BoringSSL patch and deal with no C files being
in fiat/
2020-05-13 11:10:35 +01:00
Johannes Weiss 584c0d06c4 universal bootstrap support (#185) 2020-03-23 16:26:05 +00:00
Cory Benfield 7add274f6e Update BoringSSL to 5298ef99bf2b2d77600b3bb74dd572027bf495be (#200)
Note that the vendor script changed: BoringSSL added a new top-level
header that had to be added to the umbrella header.
2020-03-18 08:38:46 +00:00
3613382784 Add Build Podspec Script (#193)
Co-authored-by: Jake Prickett <jpricke1@ford.com>
Co-authored-by: Johannes Weiss <johannesweiss@apple.com>
2020-03-03 22:25:44 +00:00
tomer doron f5bdb018d1 update docs generation script to work better with selinux (#194)
motivation: docs scripts is broken on selinux due to restriction on ssh-agent

changes:
* change the jazzy workspace to a directory accessible by the CI node so we can push from the agent instead of from the docker container
* dont remove older docs when pushing new ones
* add version information and source links
2020-02-28 12:25:52 -08:00
Cory Benfield b99ca3a19a Mitigate Folly/BoringSSL static linking issue. (#191)
Motivation:

BoringSSL and Folly both attempt to play silly buggers with the sdallocx
symbol defined in jemalloc. Unfortunately, they don't play nicely
together, and the end result if you have both present is that BoringSSL
will reliably SIGBUS or SIGSEGV on initialization. Naturally, this isn't
good.

Modifications:

- Resolve the issue by patching out BoringSSL's allocator optimisation.
- Update BoringSSL to 6432bb46ab44731567ec923e6c8fc182f13d0070.

Result:

Flow and BoringSSL will play better together.
2020-02-24 14:41:27 +00:00
Cory Benfield a2681681eb Allow testing deprecated functions. (#170)
Motivation:

If we want to deprecate anything, we either have to remove the tests or
enable testing deprecated functionality without warnings. Conveniently,
@weissi has already written a patch that enables this for swift-nio in
apple/swift-nio@c2c7250, so we can just port that across.

Modifications:

Port Johannes' patch and run it.

Result:

We can test deprecated code.
2020-01-14 09:34:20 +00:00
tomer doron e5c7a18a91 add harness for performance tests (#156)
motivation: run performance tests 🎉

changes: add performance-test task in docker-compose setup, add script to analyze performance results to be used in CI
2019-12-02 09:20:11 +00:00
Cory Benfield ccf96bbe65 Add cross-compilation to symbol mangling. (#150)
Motivation:

BoringSSL potentially defines different symbols on different
architecture and platform combinations. This means that we've
historically missed mangling some symbol names when our script only
involved building on macOS.

We should build on more platforms to test this.

Modifications:

- Added support for cross compiling to Linux amd64, Linux aarch64, and
    Linux armv7 in symbol mangling script.
- Added support for compiling for iOS armv6 and arm64 in symbol mangling
    script.

Result:

Harder to run the mangling script, better results when you do.
2019-11-13 18:40:43 +00:00
Cory Benfield 63e61ed857 Update BoringSSL to 6ba98ff60144f60aba589b4d6121689528fbae76 (#149) 2019-11-13 15:04:17 +00:00
Will Lisac 8a5135cce9 Fix BoringSSL compilation on aarch64 ARM Linux (#141) 2019-10-10 10:35:55 +01:00
tomer doron 0ec8dcf248 api breakage detection (#138)
motivation: test for api breakage on PR

changes:

* add script to detect api breakage
* amend docker setup to include jq
* amend docker-compose setup to include a shell utility task
2019-10-07 15:00:16 -07:00
Cory Benfield 109faef770 Use .note.GNU-stack section in ASM. (#137)
Motivation:

Well-formed Linux assembly code declares a .note.GNU-stack section in
order to help out the linker. When absent, the linker makes some
suboptimal linking decisions that can cause pain in running programs.

Modifications:

- Amend the vendoring script to add the .note.GNU-stack section to all
    assembly files on Linux.
- Updated BoringSSL

Results:

Better linker behaviour.
2019-10-03 18:30:58 +01:00
Cory Benfield dc2e9c0a25 Catch and namespace extra autogenerated functions. (#131)
Motivation:

Our scripts have code to catch the functions that are used with STACK_OF
and LHASH_OF data structures in BoringSSL in order to namespace them.
Sadly, some declarations were falling through the cracks: we missed some
LHASH_OF functions used internally, and we missed the
DEFINE_NAMED_STACK_OF macro used for a new C++ data type.

Modifications:

- Improved these scripts to catch more cases.
- Updated BoringSSL to 9806ae005b3085683a2fcf2953e4170893e0973d.

Result:

Fewer exported symbols from BoringSSL.
2019-08-20 13:42:56 +01:00
fabstu 00546ebd78 Fix compilation on iPad Pro 1st Gen with iPadOS13 and iOS 12 (#125)
Resolves an issue where the ARM architecture helpers were inadvertently excluded on 64-bit ARM platforms.
2019-08-10 15:42:30 +01:00
George Barnett 125078ea20 Re-namespace BoringSSL from CNIOBoringSSL/ to CNIOBoringSSL_ (#122)
Motivation:

When including an xcodeproj generated by SwiftPM (which builds
CNIOBoringSSL) into an xcodeproj which wasn't generated by SwiftPM it
doesn't know about the correct header paths.

Modifications:

Update the vendor-boringssl script to:
- Namespace BoringSSL with CNIOBoringSSL_ instead of CNIOBoringSSL/
- Create an umbrealla CNIOBoringSSL header
- Apply a patch to replace inttypes.h with sys/types.h in bn.h
- Apply a patch to conditionally include arm_arch.h

BoringSSL was also updated to: ae223d6138807a13006342edfeef32e813246b39

Result:

Non-SwiftPM xcodeproj's can build a SwiftPM generated xcodeproj
which includes CNIOBoringSSL.
2019-08-09 10:23:16 +01:00
Cory Benfield 16de4b45c7 Update BoringSSL to a86c69888b9a416f5249aacb4690a765be064969 (#118) 2019-07-19 16:52:06 +01:00
Johannes Weiss a5839aa4e6 run integration tests in CI (#114) 2019-06-27 15:12:47 +01:00
Cory Benfield 77173ac903 Disable 32-bit assembly on Apple platforms. (#109)
Motivation:

The 32-bit assembly in BoringSSL doesn't assemble correctly on 32-bit
apple platforms. It took us a while to notice because we previously
haven't had any supported 32-bit platforms. NIOSSL still doesn't really
support any 32-bit Apple platforms, as all production use on those
platforms should use NIOTS, but there's no excuse for the compilation
failures really.

Modifications:

Remove assembly acceleration on 32-bit Apple platforms.

Result:

Better compilation on 32-bit Apple platforms.
2019-06-18 16:15:25 +01:00
Cory Benfield dc23a24fbe Update boringssl to ff62b38 (#108) 2019-05-22 16:41:33 +01:00
Johannes Weiss c46e70131c Add 'Show on GitHub' link to API docs (#103)
Motivation:

Allowing readers of the API documentation to drill into the implementation of documented declarations can be educational and helpful for debugging, among several other reasons.

Modifications:

Add --github-file-prefix appending the current version in order to keep stable links. This means that documentation generated from any non-release revision may resolve incorrectly. This can be refined in the doc generation script later if it is deemed problematic by resolving to the commit sha if it doesn't exactly align with the version.

Result:

Users will be able to click a 'Show on GitHub' for all documented API declarations.
2019-04-29 09:53:16 +01:00
Johannes Weiss 735f857807 API docs: repo switcher (#95) 2019-03-28 16:03:48 +00:00
tomer doron 47d971e136 add doc generation script (#91)
motivation: publish API docs

changes:

amend docker file to include jazzy
add doc generation script based on what we have in swift-nio and swift-log
2019-03-27 08:38:30 +00:00
Cory Benfield ca35a38c94 Clean up includes that were hidden by whitespace. (#86)
Motivation:

We namespaced our header files, but some includes had weird whitespace in
the directive that we didn't notice. This meant that ARM builds failed.

Modifications:

- Became more tolerant of whitespace.
- Fixed an error in Package.swift

Result:

Better builds on ARM
2019-03-14 14:05:43 +00:00
Cory Benfield 5995ce5eac Remove the static target from regular Package.swift. (#85)
Motivation:

We have a static library target that is used as part of the BoringSSL
vendoring setup to generate a list of hidden symbols. This works nicely,
but building it fires out a bunch of warnings due to files with no symbols
in them. That's fine during the build phase, but most developers should
never need to see it.

Modifications:

- Hide the static archive product most of the time.
- Update vendor script to un-hide the static archive product on vendoring.
- Enable warnings-as-errors.

Result:

Fewer warnings.
2019-03-13 16:34:56 +00:00
Cory Benfield 3ae0a3b6e0 Record BoringSSL revision hash (#83)
Motivation:

When debugging, users may find it helpful to be able to nail down exactly
which version of BoringSSL is used to generate the specific release. We should
record this in two easy-to-find places: one in the Package.swift for users
going to GitHub, and one in the Sources tree for users who check the code
out.

Modifications:

- Updated the script to record the BoringSSL hash.

Result:

Easier to find out what BoringSSL release is in use.
2019-03-13 14:31:25 +00:00
Cory Benfield 45fa2eb1af Namespace header-only inline functions. (#79)
Motivation:

Our previous namespacing effort used symbol analysis of a compiled binary
to locate all the symbols that needed to be namespaced away. This works
fine for regular C and C++ symbols, but fails for any header-only
inline functions.

These functions, while not emitted into the binary, can cause problems
with the C++ ODR if they are included in multiple clang modules. This
unfortunately does happen if the user includes both this library and,
for example, modularised headers that include OpenSSL headers.

Fortunately, we can namespace the inline functions as well.

Modifications:

- Namespaced all the inline headers by source analysis.

Result:

Fewer code conflicts.
2019-03-11 11:49:14 +00:00
Cory Benfield 4afbbe4539 Namespace BoringSSL header files. (#77)
Motivation:

Due to the way SwiftPM builds projects it's possible for our
BoringSSL header files to clash with other people's OpenSSL header
files. That leads to build errors and sadness.

Modifications:

- Updated the BoringSSL vendor script to move all header files.
- Updated script to point C files at new header files.
- Brought in new BoringSSL version.

After your change, what will change:

Happier users
2019-03-06 16:21:01 +00:00
Cory Benfield f63c57657a Locate default ca-certificates on Linux. (#71)
Motivation:

When we moved away from the system copy of OpenSSL, we lost the
compiled-in locations of the default root CAs. We should go looking for
them so that certificate verification still works!

Modifications:

- Added a runtime one-off search to locate the roots.

Result:

Certificate verification works on Linux
2019-02-28 10:48:11 +00:00
Cory Benfield 141ff46685 Use BoringSSL for TLS. (#59)
Motivation:

Requiring the system's SSL library was a constant source of problems. 

Modifications:

This is the patch that transitions swift-nio-ssl to use BoringSSL, as discussed in [the Swift forums](https://forums.swift.org/t/rfc-moving-swiftnio-ssl-to-boringssl/18280).

Result:

Easier SSL support
2019-02-25 16:52:26 +00:00
tomer doron c3902674f0 update linux test extensions (#8)
Motivation:

up to date test extentions with appropriate legal header

Modifications:

regenerate linux test extensions with updated generator

Result:

linux test extensions have correct legal header
2018-02-26 18:32:06 -08:00
tomer doron e3a026f1a0 scripts cleanup (#1)
motivation: nicer source tree

changes:
* move scripts to scripts directory
* add .sh extension to bash scripts
2018-02-21 19:54:09 +00:00