Skip to content

Commit 51db31b

Browse files
committed
ARROW-321: fix arrow licenses
1 parent 7fb4d24 commit 51db31b

12 files changed

Lines changed: 190 additions & 3 deletions

File tree

cpp/src/arrow/io/symbols.map

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# Licensed under the Apache License, Version 2.0 (the "License");
2+
# you may not use this file except in compliance with the License.
3+
# You may obtain a copy of the License at
4+
#
5+
# http://www.apache.org/licenses/LICENSE-2.0
6+
#
7+
# Unless required by applicable law or agreed to in writing, software
8+
# distributed under the License is distributed on an "AS IS" BASIS,
9+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
# See the License for the specific language governing permissions and
11+
# limitations under the License. See accompanying LICENSE file.
12+
113
{
214
# Symbols marked as 'local' are not exported by the DSO and thus may not
315
# be used by client applications.

cpp/src/arrow/ipc/symbols.map

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# Licensed under the Apache License, Version 2.0 (the "License");
2+
# you may not use this file except in compliance with the License.
3+
# You may obtain a copy of the License at
4+
#
5+
# http://www.apache.org/licenses/LICENSE-2.0
6+
#
7+
# Unless required by applicable law or agreed to in writing, software
8+
# distributed under the License is distributed on an "AS IS" BASIS,
9+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
# See the License for the specific language governing permissions and
11+
# limitations under the License. See accompanying LICENSE file.
12+
113
{
214
# Symbols marked as 'local' are not exported by the DSO and thus may not
315
# be used by client applications.

cpp/src/arrow/symbols.map

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# Licensed under the Apache License, Version 2.0 (the "License");
2+
# you may not use this file except in compliance with the License.
3+
# You may obtain a copy of the License at
4+
#
5+
# http://www.apache.org/licenses/LICENSE-2.0
6+
#
7+
# Unless required by applicable law or agreed to in writing, software
8+
# distributed under the License is distributed on an "AS IS" BASIS,
9+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
# See the License for the specific language governing permissions and
11+
# limitations under the License. See accompanying LICENSE file.
12+
113
{
214
# Symbols marked as 'local' are not exported by the DSO and thus may not
315
# be used by client applications.

dev/release/02-source.sh

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,50 @@ tarball=$tag.tar.gz
5656
# archive (identical hashes) using the scm tag
5757
git archive $release_hash --prefix $tag/ -o $tarball
5858

59+
# download apache rat
60+
curl https://repo1.maven.org/maven2/org/apache/rat/apache-rat/0.12/apache-rat-0.12.jar > apache-rat-0.12.jar
61+
# generate the rat report
62+
java -jar apache-rat-0.12.jar \
63+
-d cpp/src \
64+
-e ".*" \
65+
-e mman.h \
66+
-e "*_generated.h" \
67+
-e random.h \
68+
-e status.cc \
69+
-e status.h \
70+
../apache-arrow-0.1.0.tar.gz > rat_cpp.txt
71+
UNAPPROVED_CPP=`cat rat_cpp.txt | grep "Unknown Licenses" | head -n 1 | cut -d " " -f 1`
72+
73+
java -jar apache-rat-0.12.jar \
74+
-d format \
75+
-e ".*" \
76+
../apache-arrow-0.1.0.tar.gz > rat_format.txt
77+
UNAPPROVED_FORMAT=`cat rat_format.txt | grep "Unknown Licenses" | head -n 1 | cut -d " " -f 1`
78+
79+
java -jar apache-rat-0.12.jar \
80+
-d python/src \
81+
-e ".*" \
82+
-e status.cc \
83+
-e status.h \
84+
../apache-arrow-0.1.0.tar.gz > rat_python.txt
85+
UNAPPROVED_PYTHON=`cat rat_python.txt | grep "Unknown Licenses" | head -n 1 | cut -d " " -f 1`
86+
87+
88+
UNAPPROVED=$(($UNAPPROVED_CPP + $UNAPPROVED_FORMAT + $UNAPPROVED_PYTHON))
89+
90+
if [ "0" -eq "${UNAPPROVED}" ]; then
91+
echo "No unnaproved licenses"
92+
else
93+
echo "${UNAPPROVED} unapporved licences. Check rat report: rat_*.txt"
94+
exit
95+
fi
96+
5997
# sign the archive
6098
gpg --armor --output ${tarball}.asc --detach-sig $tarball
6199
gpg --print-md MD5 $tarball > ${tarball}.md5
62100
shasum $tarball > ${tarball}.sha
63101

64-
# check out the parquet RC folder
102+
# check out the arrow RC folder
65103
svn co --depth=empty https://dist.apache.org/repos/dist/dev/arrow tmp
66104

67105
# add the release candidate for the tag

dev/release/README

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ requirements:
33
- a gpg key to sign the artifacts
44

55
to release, run the following (replace 0.1.0 with version to release):
6+
7+
#create a release branch
8+
git co -b release-0_1_0
69
# prepare release v 0.1.0 (run tests, sign artifacts). Next version will be 0.1.1-SNAPSHOT
710
dev/release/00-prepare.sh 0.1.0 0.1.1
811
# tag and push to maven repo (repo will have to be finalized separately)
@@ -11,5 +14,12 @@ dev/release/01-perform.sh
1114
dev/release/02-source.sh 0.1.0 0
1215

1316
useful commands:
14-
to set the mvn version in the poms
17+
- to set the mvn version in the poms
1518
mvn versions:set -DnewVersion=0.1-SNAPSHOT
19+
- reset your workspace
20+
git reset --hard
21+
- setup gpg agent
22+
eval $(gpg-agent --daemon --allow-preset-passphrase)
23+
gpg --use-agent -s LICENSE.txt
24+
- delete tag localy
25+
git tag -d apache-arrow-0.1.0

format/File.fbs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
// Licensed to the Apache Software Foundation (ASF) under one
2+
// or more contributor license agreements. See the NOTICE file
3+
// distributed with this work for additional information
4+
// regarding copyright ownership. The ASF licenses this file
5+
// to you under the Apache License, Version 2.0 (the
6+
// "License"); you may not use this file except in compliance
7+
// with the License. You may obtain a copy of the License at
8+
//
9+
// http://www.apache.org/licenses/LICENSE-2.0
10+
//
11+
// Unless required by applicable law or agreed to in writing,
12+
// software distributed under the License is distributed on an
13+
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
// KIND, either express or implied. See the License for the
15+
// specific language governing permissions and limitations
16+
// under the License.
17+
118
include "Message.fbs";
219

320
namespace org.apache.arrow.flatbuf;

format/Guidelines.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
<!---
2+
Licensed under the Apache License, Version 2.0 (the "License");
3+
you may not use this file except in compliance with the License.
4+
You may obtain a copy of the License at
5+
6+
http://www.apache.org/licenses/LICENSE-2.0
7+
8+
Unless required by applicable law or agreed to in writing, software
9+
distributed under the License is distributed on an "AS IS" BASIS,
10+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
See the License for the specific language governing permissions and
12+
limitations under the License. See accompanying LICENSE file.
13+
-->
114
# Implementation guidelines
215

316
An execution engine (or framework, or UDF executor, or storage engine, etc) can implements only a subset of the Arrow spec and/or extend it given the following constraints:

format/IPC.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
<!---
2+
Licensed under the Apache License, Version 2.0 (the "License");
3+
you may not use this file except in compliance with the License.
4+
You may obtain a copy of the License at
5+
6+
http://www.apache.org/licenses/LICENSE-2.0
7+
8+
Unless required by applicable law or agreed to in writing, software
9+
distributed under the License is distributed on an "AS IS" BASIS,
10+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
See the License for the specific language governing permissions and
12+
limitations under the License. See accompanying LICENSE file.
13+
-->
14+
115
# Interprocess messaging / communication (IPC)
216

317
## File format

format/Layout.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
<!---
2+
Licensed under the Apache License, Version 2.0 (the "License");
3+
you may not use this file except in compliance with the License.
4+
You may obtain a copy of the License at
5+
6+
http://www.apache.org/licenses/LICENSE-2.0
7+
8+
Unless required by applicable law or agreed to in writing, software
9+
distributed under the License is distributed on an "AS IS" BASIS,
10+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
See the License for the specific language governing permissions and
12+
limitations under the License. See accompanying LICENSE file.
13+
-->
14+
115
# Arrow: Physical memory layout
216

317
## Definitions / Terminology

format/Message.fbs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
// Licensed to the Apache Software Foundation (ASF) under one
2+
// or more contributor license agreements. See the NOTICE file
3+
// distributed with this work for additional information
4+
// regarding copyright ownership. The ASF licenses this file
5+
// to you under the Apache License, Version 2.0 (the
6+
// "License"); you may not use this file except in compliance
7+
// with the License. You may obtain a copy of the License at
8+
//
9+
// http://www.apache.org/licenses/LICENSE-2.0
10+
//
11+
// Unless required by applicable law or agreed to in writing,
12+
// software distributed under the License is distributed on an
13+
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
// KIND, either express or implied. See the License for the
15+
// specific language governing permissions and limitations
16+
// under the License.
17+
118
namespace org.apache.arrow.flatbuf;
219

320
enum MetadataVersion:short {

0 commit comments

Comments
 (0)