Skip to content

Commit

Permalink
Improve LICENSE/NOTICE treatment of bundled non-ASF files. (#341)
Browse files Browse the repository at this point in the history
Restructure declaration of the licenses of the two bundled files
fakengx.lua and fakeredis.lua following the guidance at
http://www.apache.org/dev/licensing-howto.html#bundled-vs-non-bundled.
  • Loading branch information
dgrove-oss authored May 29, 2019
1 parent 4071f82 commit a737552
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 62 deletions.
27 changes: 0 additions & 27 deletions DEPENDENCIES.md

This file was deleted.

10 changes: 10 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -200,3 +200,13 @@
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

========================================================================
MIT License
========================================================================

This project bundles the file fakengx.lua which is distributed
under the MIT license. For details, see tests/fakengx.lua.

This project bundles the file fakeredis.lua which is distributed
under the MIT license. For details, see tests/fakeredis.lua.
9 changes: 0 additions & 9 deletions NOTICE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,3 @@ Copyright 2016-2019 The Apache Software Foundation

This product includes software developed at
The Apache Software Foundation (http://www.apache.org/).

========================================================================
MIT License
========================================================================

The following components are provided under the MIT License. See project link for details.

(MIT License) fakengx (bsm/fakengx - https://github.com/bsm/fakengx)
(MIT License) fakeredis (catwell/fakeredis - https://github.com/catwell/fakeredis)
31 changes: 18 additions & 13 deletions tests/fakengx.lua
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
-- Copyright (c) 2012 Dimitrij Denissenko
--
-- Licensed to the Apache Software Foundation (ASF) under one or more
-- contributor license agreements. See the NOTICE file distributed with
-- this work for additional information regarding copyright ownership.
-- The ASF licenses this file to You under the Apache License, Version 2.0
-- (the "License"); you may not use this file except in compliance with
-- the License. You may obtain a copy of the License at
-- Permission is hereby granted, free of charge, to any person obtaining a copy of
-- this software and associated documentation files (the "Software"), to deal in
-- the Software without restriction, including without limitation the rights to
-- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-- of the Software, and to permit persons to whom the Software is furnished to do
-- so, subject to the following conditions:
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-- The above copyright notice and this permission notice shall be included in all
-- copies or substantial portions of the Software.
--
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-- SOFTWARE.

-- fakengx.lua was copied from https://github.com/bsm/fakengx

local bit = require 'bit'
local socket = require 'socket'
Expand Down
30 changes: 18 additions & 12 deletions tests/fakeredis.lua
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
-- Copyright (C) 2012-2016 by Pierre Chapuis
--
-- Licensed to the Apache Software Foundation (ASF) under one or more
-- contributor license agreements. See the NOTICE file distributed with
-- this work for additional information regarding copyright ownership.
-- The ASF licenses this file to You under the Apache License, Version 2.0
-- (the "License"); you may not use this file except in compliance with
-- the License. You may obtain a copy of the License at
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-- copies of the Software, and to permit persons to whom the Software is
-- furnished to do so, subject to the following conditions:
--
-- http://www.apache.org/licenses/LICENSE-2.0
-- The above copyright notice and this permission notice shall be included in
-- all copies or substantial portions of the Software.
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-- THE SOFTWARE.
--

-- fakeredis.lua was copied from https://github.com/catwell/fakeredis

local unpack = table.unpack or unpack
local cjson = require 'cjson'
--- Bit operations
Expand Down
3 changes: 2 additions & 1 deletion tools/travis/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ UTILDIR="$HOMEDIR/incubator-openwhisk-utilities"
export OPENWHISK_HOME=$WHISKDIR

# run scancode util. against project source using the ASF strict configuration
# exclude two bundled files from other open source projects that are MIT licensed
cd $UTILDIR
scancode/scanCode.py --config scancode/ASF-Release.cfg $ROOTDIR
scancode/scanCode.py --config scancode/ASF-Release.cfg --gitignore $SCRIPTDIR/scancodeExclusions $ROOTDIR

# Install OpenWhisk
cd $OPENWHISK_HOME/ansible
Expand Down
3 changes: 3 additions & 0 deletions tools/travis/scancodeExclusions
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# bundled files under MIT license; exclude from scan
tests/fakengx.lua
tests/fakeredis.lua

0 comments on commit a737552

Please sign in to comment.