Skip to content

Commit 85afa3b

Browse files
authored
Merge pull request #1880 from antmicro/revert-submodule-capnproto
Revert capnproto to submodule and restore the git subtree version
2 parents 5409e84 + ca0aba1 commit 85afa3b

File tree

414 files changed

+180425
-27
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

414 files changed

+180425
-27
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ jobs:
2323
with:
2424
python-version: 3.6
2525
- uses: actions/checkout@v2
26-
with:
27-
submodules: recursive
2826
- run: ./.github/scripts/install_dependencies.sh
2927

3028
- uses: hendrikmuhs/ccache-action@v1
@@ -53,8 +51,6 @@ jobs:
5351
with:
5452
python-version: 3.6
5553
- uses: actions/checkout@v2
56-
with:
57-
submodules: recursive
5854
- run: ./.github/scripts/install_dependencies.sh
5955

6056
- name: Test
@@ -70,8 +66,6 @@ jobs:
7066
with:
7167
python-version: 3.6
7268
- uses: actions/checkout@v2
73-
with:
74-
submodules: recursive
7569
- run: ./.github/scripts/install_dependencies.sh
7670

7771
- name: Test
@@ -89,8 +83,6 @@ jobs:
8983
with:
9084
python-version: 3.6
9185
- uses: actions/checkout@v2
92-
with:
93-
submodules: recursive
9486
- run: ./.github/scripts/install_dependencies.sh
9587

9688
- uses: hendrikmuhs/ccache-action@v1
@@ -144,8 +136,6 @@ jobs:
144136
with:
145137
python-version: 3.6
146138
- uses: actions/checkout@v2
147-
with:
148-
submodules: recursive
149139
- run: ./.github/scripts/install_dependencies.sh
150140

151141
- uses: hendrikmuhs/ccache-action@v1
@@ -185,8 +175,6 @@ jobs:
185175
with:
186176
python-version: 3.6
187177
- uses: actions/checkout@v2
188-
with:
189-
submodules: recursive
190178
- run: ./.github/scripts/install_dependencies.sh
191179

192180
- uses: hendrikmuhs/ccache-action@v1
@@ -212,8 +200,6 @@ jobs:
212200
with:
213201
python-version: 3.6
214202
- uses: actions/checkout@v2
215-
with:
216-
submodules: recursive
217203
- run: ./.github/scripts/install_dependencies.sh
218204

219205
- uses: hendrikmuhs/ccache-action@v1
@@ -237,8 +223,6 @@ jobs:
237223
with:
238224
python-version: 3.6
239225
- uses: actions/checkout@v2
240-
with:
241-
submodules: recursive
242226
- run: ./.github/scripts/install_dependencies.sh
243227

244228
- uses: hendrikmuhs/ccache-action@v1
@@ -270,8 +254,6 @@ jobs:
270254
with:
271255
python-version: 3.6
272256
- uses: actions/checkout@v2
273-
with:
274-
submodules: recursive
275257
- run: ./.github/scripts/install_dependencies.sh
276258

277259
- uses: hendrikmuhs/ccache-action@v1
@@ -307,8 +289,6 @@ jobs:
307289
with:
308290
python-version: 3.6
309291
- uses: actions/checkout@v2
310-
with:
311-
submodules: recursive
312292
- run: ./.github/scripts/install_dependencies.sh
313293

314294
- uses: hendrikmuhs/ccache-action@v1
@@ -343,8 +323,6 @@ jobs:
343323
with:
344324
python-version: 3.6
345325
- uses: actions/checkout@v2
346-
with:
347-
submodules: recursive
348326
- run: ./.github/scripts/install_dependencies.sh
349327

350328
- uses: hendrikmuhs/ccache-action@v1

.gitmodules

Lines changed: 0 additions & 3 deletions
This file was deleted.

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ export CTEST_OUTPUT_ON_FAILURE=TRUE
6262
ifneq ($(MAKECMDGOALS),distclean)
6363
ifneq ($(MAKECMDGOALS),clean)
6464
all $(MAKECMDGOALS):
65-
@ git submodule update --init --recursive
6665
ifneq ($(BUILD_DIR),build)
6766
ln -sf $(BUILD_DIR) build
6867
endif

libs/EXTERNAL/capnproto

Lines changed: 0 additions & 1 deletion
This file was deleted.

libs/EXTERNAL/capnproto/.gitignore

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Kenton's personal backup script.
2+
/backup.sh
3+
4+
# Eclipse-generated stuff.
5+
.cproject
6+
.project
7+
.pydevproject
8+
.settings
9+
.dist-buildwrapper
10+
/c++/gen/
11+
12+
# Code you may want to map in from elsewhere.
13+
/c++/src/base
14+
/c++/src/capnp/compilerbin
15+
/c++/src/ekam
16+
/c++/src/os
17+
/c++/src/protobuf
18+
/c++/src/snappy
19+
/c++/src/samples
20+
21+
# Ekam build artifacts.
22+
/c++/tmp/
23+
/c++/bin/
24+
25+
# setup-ekam.sh
26+
/c++/.ekam
27+
28+
# super-test.sh
29+
/tmp-staging
30+
31+
# Jekyll-generated site
32+
/doc/_site
33+
34+
# Checkout of gh-pages made by /doc/push-site.sh
35+
/doc/.gh-pages
36+
37+
# cabal-install artifacts
38+
/compiler/dist/
39+
40+
# Make artefacts
41+
/c++/.libs/
42+
/c++/Makefile
43+
/c++/Makefile.in
44+
/c++/**/*.o
45+
/c++/**/*.lo
46+
/c++/**/.deps/
47+
/c++/**/.dirstamp
48+
/c++/stamp-h1
49+
/c++/**/*.log
50+
/c++/test_capnpc_middleman
51+
/c++/**/test*.capnp.*
52+
/c++/*.la
53+
/c++/**/*.trs
54+
/c++/aclocal.m4
55+
/c++/autom4te.cache/
56+
/c++/build-aux/
57+
/c++/capnp
58+
/c++/capnp-evolution-test
59+
/c++/cmake/CapnProtoConfig.cmake
60+
/c++/cmake/CapnProtoConfigVersion.cmake
61+
/c++/pkgconfig/*.pc
62+
/c++/capnp-test
63+
/c++/capnpc-c++
64+
/c++/capnpc-capnp
65+
/c++/config.*
66+
/c++/configure
67+
/c++/libtool
68+
/c++/m4/libtool.m4
69+
/c++/m4/ltoptions.m4
70+
/c++/m4/ltsugar.m4
71+
/c++/m4/ltversion.m4
72+
/c++/m4/lt~obsolete.m4
73+
/c++/samples/addressbook
74+
75+
# editor artefacts
76+
*~

libs/EXTERNAL/capnproto/.travis.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
branches:
2+
only:
3+
- master
4+
- /release-.*/
5+
language: cpp
6+
dist: trusty
7+
sudo: false
8+
addons:
9+
apt:
10+
packages:
11+
- automake
12+
- autoconf
13+
- libtool
14+
- pkg-config
15+
# limit parallelism due to limited memory on Travis
16+
script: CC=$MATRIX_CC CXX=$MATRIX_CXX ./super-test.sh -j2 quick
17+
18+
matrix:
19+
include:
20+
# Old GCC
21+
- os: linux
22+
addons:
23+
apt:
24+
sources:
25+
- ubuntu-toolchain-r-test
26+
packages:
27+
- g++-4.9
28+
env:
29+
- MATRIX_CC=gcc-4.9
30+
- MATRIX_CXX=g++-4.9
31+
32+
# New GCC
33+
- os: linux
34+
addons:
35+
apt:
36+
sources:
37+
- ubuntu-toolchain-r-test
38+
packages:
39+
- g++-7
40+
env:
41+
- MATRIX_CC=gcc-7
42+
- MATRIX_CXX=g++-7
43+
44+
# Old Clang
45+
- os: linux
46+
addons:
47+
apt:
48+
sources:
49+
- ubuntu-toolchain-r-test
50+
- llvm-toolchain-trusty-3.6
51+
packages:
52+
- clang-3.6
53+
- libc++-dev # clang-3.6 can't compile C++14 against libstdc++, apparently.
54+
env:
55+
- MATRIX_CC=clang-3.6
56+
- MATRIX_CXX=clang++-3.6
57+
58+
# New Clang
59+
- os: linux
60+
addons:
61+
apt:
62+
sources:
63+
- ubuntu-toolchain-r-test
64+
- llvm-toolchain-trusty-5.0
65+
packages:
66+
- clang-5.0
67+
env:
68+
- MATRIX_CC=clang-5.0
69+
- MATRIX_CXX=clang++-5.0
70+
71+
# Mac. We only test Clang because Mac builds are expensive for Travis and probably any
72+
# compiler-specific problems will be caught on the Linux matrix anyway.
73+
- os: osx
74+
osx_image: xcode9.3
75+
env:
76+
- MATRIX_CC=clang
77+
- MATRIX_CXX=clang++
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
cmake_minimum_required(VERSION 3.1)
2+
project("Cap'n Proto Root" CXX)
3+
add_subdirectory(c++)

libs/EXTERNAL/capnproto/CONTRIBUTORS

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
The following people have made large code contributions to this repository.
2+
Those contributions are copyright the respective authors and licensed by them
3+
under the same MIT license terms as the rest of the library.
4+
5+
Kenton Varda <[email protected]> <[email protected]>: Primary Author
6+
Jason Choy <[email protected]>: kj/threadlocal.h and other iOS tweaks, `name` annotation in C++ code generator
7+
Remy Blank <[email protected]> (contributions copyright Google Inc.): KJ Timers
8+
Joshua Warner <[email protected]>: cmake build, AnyStruct/AnyList, other stuff
9+
Scott Purdy <[email protected]>: kj/std iostream interface
10+
Bryan Borham <[email protected]>: Initial MSVC support
11+
Philip Quinn <[email protected]>: cmake build and other assorted bits
12+
Brian Taylor <[email protected]>: emacs syntax highlighting
13+
Ben Laurie <[email protected]>: discovered and responsibly disclosed security bugs
14+
Kamal Marhubi <[email protected]>: JSON parser
15+
Oliver Kuckertz <[email protected]>: FdObserver POLLPRI support
16+
Harris Hancock <[email protected]>: MSVC support
17+
Branislav Katreniak <[email protected]>: JSON decode
18+
Matthew Maurer <[email protected]>: Canonicalization Support
19+
David Renshaw <[email protected]>: bugfixes and miscellaneous maintenance
20+
Ingvar Stepanyan <[email protected]> <[email protected]>: Custom handlers for JSON decode
21+
22+
This file does not list people who maintain their own Cap'n Proto
23+
implementations as separate projects. Those people are awesome too! :)

libs/EXTERNAL/capnproto/LICENSE

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Copyright (c) 2013-2017 Sandstorm Development Group, Inc.; Cloudflare, Inc.;
2+
and other contributors. Each commit is copyright by its respective author or
3+
author's employer.
4+
5+
Licensed under the MIT License:
6+
7+
Permission is hereby granted, free of charge, to any person obtaining a copy
8+
of this software and associated documentation files (the "Software"), to deal
9+
in the Software without restriction, including without limitation the rights
10+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
copies of the Software, and to permit persons to whom the Software is
12+
furnished to do so, subject to the following conditions:
13+
14+
The above copyright notice and this permission notice shall be included in
15+
all copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23+
THE SOFTWARE.
24+

libs/EXTERNAL/capnproto/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Unix: [![Unix Build Status](https://travis-ci.org/capnproto/capnproto.svg?branch=master)](https://travis-ci.org/capnproto/capnproto) Windows: [![Windows Build Status](https://ci.appveyor.com/api/projects/status/9rxff2tujkae4hte?svg=true)](https://ci.appveyor.com/project/kentonv/capnproto)
2+
3+
<img src='http://kentonv.github.com/capnproto/images/infinity-times-faster.png' style='width:334px; height:306px; float: right;'>
4+
5+
Cap'n Proto is an insanely fast data interchange format and capability-based RPC system. Think
6+
JSON, except binary. Or think [Protocol Buffers](https://github.com/google/protobuf), except faster.
7+
In fact, in benchmarks, Cap'n Proto is INFINITY TIMES faster than Protocol Buffers.
8+
9+
[Read more...](http://kentonv.github.com/capnproto/)
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
How to release
2+
==============
3+
4+
**Developing**
5+
6+
* First, develop some new features to release! As you do, make sure to keep the documentation
7+
up-to-date.
8+
9+
**Testing**
10+
11+
* Run `super-test.sh` on as many platforms as you have available. Remember that you can easily run
12+
on any machine available through ssh using `./super-test.sh remote [hostname]`. Also run in
13+
Clang mode. (If you are Kenton and running from Kenton's home machine and network, use
14+
`./mega-test.py mega-test.cfg` to run on all supported compilers and platforms.)
15+
16+
* Manually test Windows/MSVC -- unfortunately this can't be automated by super-test.sh.
17+
18+
* Manually run the pointer fuzz tests under Valgrind. This will take 40-80 minutes.
19+
20+
valgrind ./capnp-test -fcapnp/fuzz-test.c++
21+
22+
* Manually run the AFL fuzz tests by running `afl-fuzz.sh`. There are three test cases, and ideally each should run for 24 hours or more.
23+
24+
**Documenting**
25+
26+
* Write a blog post discussing what is new, placing it in doc/_posts.
27+
28+
* Run jekyll locally and review the blog post and docs.
29+
30+
**Releasing**
31+
32+
* Check out the master branch in a fresh directory. Do NOT use your regular repo, as the release
33+
script commits changes and if anything goes wrong you'll probably want to trash the whole thing
34+
without pushing. DO NOT git clone the repo from an existing local repo -- check it out directly
35+
from github. Otherwise, when it pushes its changes back, they'll only be pushed back to your
36+
local repo.
37+
38+
* Run `./release.sh candidate`. This creates a new release branch, updates the version number to
39+
`-rc1`, builds release tarballs, copies them to the current directory, then switches back to the
40+
master branch and bumps the version number there. After asking for final confirmation, it will
41+
upload the tarball to S3 and push all changes back to github.
42+
43+
* Install your release candidates on your local machine, as if you were a user.
44+
45+
* Go to `c++/samples` in the git repo and run `./test.sh`. It will try to build against your
46+
installed copy.
47+
48+
* Post the release candidates somewhere public and then send links to the mailing list for people
49+
to test. Wait a bit for bug reports.
50+
51+
* If there are any problems, fix them in master and start a new release candidate by running
52+
`./release.sh candidate <commit>...` from the release branch. This will cherry-pick the specified
53+
commits into the release branch and create a new candidate. Repeat until all problems are fixed.
54+
Be sure that any such fixes include tests or process changes so that they don't happen again.
55+
56+
* You should now be ready for an official release. Run `./release.sh final`. This will remove the
57+
"-rcN" suffix from the version number, update the version number shown on the downloads page,
58+
build the final release package, and -- after final confirmation -- upload the binary, push
59+
changes to git, and publish the new documentation.
60+
61+
* Submit the newly-published blog post to news sites and social media as you see fit.
62+
63+
* If problems are discovered in the release, fix them in master and run
64+
`./release.sh candidate <commit>...` in the release branch to start a new micro release. The
65+
script automatically sees that the current branch's version no longer contains `-rc`, so it starts
66+
a new branch. Repeat the rest of the process above. If you decide to write a blog post (not
67+
always necessary), do it in the master branch and cherry-pick it.

0 commit comments

Comments
 (0)