Skip to content

Commit fed0458

Browse files
authored
License: add & clean up license headers and files
This commit performs a comprehensive license compliance cleanup to align with release requirements, which are pointed out by Incubator PMC review. The main changes include: 1. Add License Headers: Added the standard Apache License Version 2.0 header to numerous source files that were missing it. This covers multiple file types, including YAML, Markdown, SQL, C/C++, Python, and shell scripts. These files are originally created by the cloudberry community. 2. Simplify LICENSE and NOTICE: - Restructured the root LICENSE file for better clarity. - Cleaned up the NOTICE file by removing redundant information which have been listed in the LICENSE. 3. Remove the unused deployment docs from the `deploy/build`, which can help us manage the file licenses. 4. Update RAT Configuration: Updated `pom.xml` to reflect the changes of the file license headers and attribution. See: #1236
1 parent 97a1eab commit fed0458

Some content is hidden

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

55 files changed

+962
-1040
lines changed

.github/DISCUSSION_TEMPLATE/ideas-feature-requests.yml

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

.github/DISCUSSION_TEMPLATE/proposal.yml

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

.github/ISSUE_TEMPLATE/bug-report.yml

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

.github/ISSUE_TEMPLATE/config.yml

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

CODE_OF_CONDUCT.md

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

322
Apache Cloudberry (Incubating) follows the ASF [Code of

CONTRIBUTING.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
<!--
2+
Licensed to the Apache Software Foundation (ASF) under one
3+
or more contributor license agreements. See the NOTICE file
4+
distributed with this work for additional information
5+
regarding copyright ownership. The ASF licenses this file
6+
to you under the Apache License, Version 2.0 (the
7+
"License"); you may not use this file except in compliance
8+
with the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing,
13+
software distributed under the License is distributed on an
14+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
KIND, either express or implied. See the License for the
16+
specific language governing permissions and limitations
17+
under the License.
18+
-->
19+
120
Apache Cloudberry (Incubating) welcomes contributions from anyone, new
221
and experienced! We appreciate your interest in contributing. This
322
guide will help you get started with the contribution.

LICENSE

Lines changed: 42 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -207,25 +207,17 @@ This product includes software from PostgreSQL, under the PostgreSQL License:
207207

208208
The PostgreSQL software includes:
209209

210-
----------------------------
211-
Apache License - Version 2.0
212-
contrib/pax_storage/src/cpp/contrib/googlebench
213-
see licenses/LICENSE-googlebench.txt
214-
215210
----------------------------
216211
BSD License
217212

218213
src/bin/pg_controldata/pg_controldata.c
219214
copyright (c) Oliver Elphick <[email protected]>, 2001
220215

221-
222-
223216
----------------------------
224217
BSD-4-Clause (University of California-Specific)
225218

226219
src/include/port/win32_msvc/glob.h
227220
src/port/glob.c
228-
229221
see licenses/LICENSE-glob.txt
230222

231223
----------------------------
@@ -246,24 +238,6 @@ The PostgreSQL software includes:
246238
src/backend/libpq/sha2.h
247239
see licenses/LICENSE-bsd3-sha2.txt
248240

249-
contrib/pax_storage/src/cpp/contrib/googletest
250-
see licenses/LICENSE-googletest.txt
251-
252-
gpcontrib/gpcloud/test/googletest
253-
see licenses/LICENSE-googletest.txt
254-
255-
----------------------------
256-
MIT LICENSE
257-
258-
dependencies/yyjson
259-
see licenses/LICENSE-yyjson.txt
260-
261-
contrib/pax_storage/src/cpp/contrib/cpp-stub
262-
see licenses/LICENSE-cpp-stub.txt
263-
264-
contrib/pax_storage/src/cpp/contrib/tabulate
265-
see licenses/LICENSE-tabulate.txt
266-
267241
----------------------------
268242
Internet Systems Consortium/Internet Software Consortium (ISC) LICENSE
269243

@@ -321,8 +295,7 @@ Copyright (c) 2004-2020 VMware, Inc. or its affiliates. All Rights Reserved.
321295
All Rights Reserved.
322296

323297
Greenplum Database is licensed under the Apache License Version 2.0
324-
(see LICENSE & NOTICE) and is based on the PostgreSQL Database
325-
Management System.
298+
(see LICENSE) and is based on the PostgreSQL Database Management System.
326299

327300
The Greenplum Database software includes:
328301

@@ -338,14 +311,47 @@ The Greenplum Database software includes:
338311
gpcontrib/orafce/*
339312
see licenses/LICENSE-orafce.txt
340313

314+
----------------------------
315+
BSD 3 Clause License
316+
317+
gpcontrib/gpcloud/test/googletest
318+
see licenses/LICENSE-googletest.txt
319+
341320
================================================================================
342-
This product includes code from pg_cron under PostgreSQL license:
321+
Apache Cloudberry includes codes from
343322

344-
/src/include/task/pg_cron.h
345-
/src/include/task/task_states.h
346-
/src/include/task/job_metadata.h
347-
/src/backend/task/task_states.c
348-
/src/backend/task/job_metadata.c
349-
/src/backend/task/pg_cron.c
323+
----------------------------
324+
pg_cron under PostgreSQL license:
350325

351-
see licenses/LICENSE-citusdata.txt
326+
/src/include/task/pg_cron.h
327+
/src/include/task/task_states.h
328+
/src/include/task/job_metadata.h
329+
/src/backend/task/task_states.c
330+
/src/backend/task/job_metadata.c
331+
/src/backend/task/pg_cron.c
332+
333+
see licenses/LICENSE-citusdata.txt
334+
335+
----------------------------
336+
Apache License - Version 2.0
337+
338+
contrib/pax_storage/src/cpp/contrib/googlebench
339+
see licenses/LICENSE-googlebench.txt
340+
341+
----------------------------
342+
MIT LICENSE
343+
344+
dependencies/yyjson
345+
see licenses/LICENSE-yyjson.txt
346+
347+
contrib/pax_storage/src/cpp/cpp-stub
348+
see licenses/LICENSE-cpp-stub.txt
349+
350+
contrib/pax_storage/src/cpp/contrib/tabulate
351+
see licenses/LICENSE-tabulate.txt
352+
353+
----------------------------
354+
BSD 3 Clause License
355+
356+
contrib/pax_storage/src/cpp/contrib/googletest
357+
see licenses/LICENSE-googletest.txt

NOTICE

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,4 @@ Apache Cloudberry (Incubating)
22
Copyright 2024-2025 The Apache Software Foundation
33

44
This product includes software developed at
5-
The Apache Software Foundation (http://www.apache.org/).
6-
7-
This product contains significant parts that were originally based on software
8-
from VMware, Inc. or its affiliates. (Greenplum Database
9-
<https://www.greenplum.org/>).
10-
Copyright (c) 2004-2020 VMware, Inc. or its affiliates.
11-
License under the Apache License 2.0.
12-
13-
This product contains significant parts that were orginally based on software
14-
from PostgreSQL Global Development Group (PostgreSQL 14.4
15-
<https://www.postgresql.org/>).
16-
PostgreSQL Database Management System
17-
(formerly known as Postgres, then as Postgres95)
18-
Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
19-
Portions Copyright (c) 1994, The Regents of the University of California
20-
License under the PostgreSQL License.
5+
The Apache Software Foundation (http://www.apache.org/).

README.apache.md

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

322
This file documents licensing clarifications and exceptions as part of ASF release readiness for Apache Cloudberry (Incubating).

README.md

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

322
<p align="center">

0 commit comments

Comments
 (0)