From 95adfe04c80ab0107f2076e16056760785c15182 Mon Sep 17 00:00:00 2001 From: furkanonder Date: Thu, 7 May 2020 02:54:55 +0300 Subject: [PATCH 1/7] bpo-40462: add license for audioop module --- Doc/license.rst | 29 +++++++++++++++++++++++++++++ Modules/audioop.c | 42 ++++++++++++++++++++++++++++-------------- 2 files changed, 57 insertions(+), 14 deletions(-) diff --git a/Doc/license.rst b/Doc/license.rst index 472a5cf3d88b34..d8aa2a594e0eb6 100644 --- a/Doc/license.rst +++ b/Doc/license.rst @@ -950,3 +950,32 @@ https://www.w3.org/TR/xml-c14n2-testcases/ and is distributed under the THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Audioop +------- +The audioop module uses the code base in g771.c file of the SoX project. +https://sourceforge.net/projects/sox/files/sox/12.17.7/ + + This source code is a product of Sun Microsystems, Inc. and is provided + for unrestricted use. Users may copy or modify this source code without + charge. + + SUN SOURCE CODE IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING + THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR + PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. + + Sun source code is provided with no support and without any obligation on + the part of Sun Microsystems, Inc. to assist in its use, correction, + modification or enhancement. + + SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE + INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY THIS SOFTWARE + OR ANY PART THEREOF. + + In no event will Sun Microsystems, Inc. be liable for any lost revenue + or profits or other special, indirect and consequential damages, even if + Sun has been advised of the possibility of such damages. + + Sun Microsystems, Inc. + 2550 Garcia Avenue + Mountain View, California 94043 diff --git a/Modules/audioop.c b/Modules/audioop.c index 3aeb6f04f13cbb..32201718d0b20d 100644 --- a/Modules/audioop.c +++ b/Modules/audioop.c @@ -1,3 +1,31 @@ +/* The audioop module uses the code base in g777.c file of the Sox project. + Source: https://sourceforge.net/projects/sox/files/sox/12.17.7/ + + Copyright of g771.c: + + * This source code is a product of Sun Microsystems, Inc. and is provided + * for unrestricted use. Users may copy or modify this source code without + * charge. + * + * SUN SOURCE CODE IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING + * THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR + * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. + * + * Sun source code is provided with no support and without any obligation on + * the part of Sun Microsystems, Inc. to assist in its use, correction, + * modification or enhancement. + * + * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE + * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY THIS SOFTWARE + * OR ANY PART THEREOF. + * + * In no event will Sun Microsystems, Inc. be liable for any lost revenue + * or profits or other special, indirect and consequential damages, even if + * Sun has been advised of the possibility of such damages. + * + * Sun Microsystems, Inc. + * 2550 Garcia Avenue + * Mountain View, California 94043 */ /* audioopmodule - Module to detect peak values in arrays */ @@ -35,20 +63,6 @@ fbound(double val, double minval, double maxval) } -/* Code shamelessly stolen from sox, 12.17.7, g711.c -** (c) Craig Reese, Joe Campbell and Jeff Poskanzer 1989 */ - -/* From g711.c: - * - * December 30, 1994: - * Functions linear2alaw, linear2ulaw have been updated to correctly - * convert unquantized 16 bit values. - * Tables for direct u- to A-law and A- to u-law conversions have been - * corrected. - * Borge Lindberg, Center for PersonKommunikation, Aalborg University. - * bli@cpk.auc.dk - * - */ #define BIAS 0x84 /* define the add-in bias for 16 bit samples */ #define CLIP 32635 #define SIGN_BIT (0x80) /* Sign bit for an A-law byte. */ From ccec2e71e944c07f45bdbf4f73cd00d77a37b086 Mon Sep 17 00:00:00 2001 From: furkanonder Date: Sat, 30 Jul 2022 21:05:34 +0300 Subject: [PATCH 2/7] udpate license' --- Doc/license.rst | 43 ++++++++++++++++++++++++------------------- Modules/audioop.c | 46 ++++++++++++++++++++++++---------------------- 2 files changed, 48 insertions(+), 41 deletions(-) diff --git a/Doc/license.rst b/Doc/license.rst index d8aa2a594e0eb6..38e0599f47acee 100644 --- a/Doc/license.rst +++ b/Doc/license.rst @@ -954,28 +954,33 @@ https://www.w3.org/TR/xml-c14n2-testcases/ and is distributed under the Audioop ------- The audioop module uses the code base in g771.c file of the SoX project. -https://sourceforge.net/projects/sox/files/sox/12.17.7/ +https://web.archive.org/web/19970716121258/http://www.spies.com/Sox/Archive/soxgamma.tar.gz - This source code is a product of Sun Microsystems, Inc. and is provided - for unrestricted use. Users may copy or modify this source code without - charge. + Programming the AdLib/Sound Blaster + FM Music Chips + Version 2.0 (24 Feb 1992) - SUN SOURCE CODE IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING - THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR - PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. + Copyright (c) 1991, 1992 by Jeffrey S. Lee - Sun source code is provided with no support and without any obligation on - the part of Sun Microsystems, Inc. to assist in its use, correction, - modification or enhancement. + jlee@smylex.uucp - SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE - INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY THIS SOFTWARE - OR ANY PART THEREOF. - In no event will Sun Microsystems, Inc. be liable for any lost revenue - or profits or other special, indirect and consequential damages, even if - Sun has been advised of the possibility of such damages. - Sun Microsystems, Inc. - 2550 Garcia Avenue - Mountain View, California 94043 + Warranty and Copyright Policy + + This document is provided on an "as-is" basis, and its author makes + no warranty or representation, express or implied, with respect to + its quality performance or fitness for a particular purpose. In no + event will the author of this document be liable for direct, indirect, + special, incidental, or consequential damages arising out of the use + or inability to use the information contained within. Use of this + document is at your own risk. + + This file may be used and copied freely so long as the applicable + copyright notices are retained, and no modifications are made to the + text of the document. No money shall be charged for its distribution + beyond reasonable shipping, handling and duplication costs, nor shall + proprietary changes be made to this document so that it cannot be + distributed freely. This document may not be included in published + material or commercial packages without the written consent of its + author. \ No newline at end of file diff --git a/Modules/audioop.c b/Modules/audioop.c index 32201718d0b20d..02d7d213b6f72a 100644 --- a/Modules/audioop.c +++ b/Modules/audioop.c @@ -1,31 +1,33 @@ /* The audioop module uses the code base in g777.c file of the Sox project. - Source: https://sourceforge.net/projects/sox/files/sox/12.17.7/ - - Copyright of g771.c: - - * This source code is a product of Sun Microsystems, Inc. and is provided - * for unrestricted use. Users may copy or modify this source code without - * charge. + * Source: https://web.archive.org/web/19970716121258/http://www.spies.com/Sox/Archive/soxgamma.tar.gz + * Programming the AdLib/Sound Blaster + * FM Music Chips + * Version 2.0 (24 Feb 1992) + * + * Copyright (c) 1991, 1992 by Jeffrey S. Lee + * + * jlee@smylex.uucp * - * SUN SOURCE CODE IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING - * THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR - * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. * - * Sun source code is provided with no support and without any obligation on - * the part of Sun Microsystems, Inc. to assist in its use, correction, - * modification or enhancement. * - * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE - * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY THIS SOFTWARE - * OR ANY PART THEREOF. + * Warranty and Copyright Policy * - * In no event will Sun Microsystems, Inc. be liable for any lost revenue - * or profits or other special, indirect and consequential damages, even if - * Sun has been advised of the possibility of such damages. + * This document is provided on an "as-is" basis, and its author makes + * no warranty or representation, express or implied, with respect to + * its quality performance or fitness for a particular purpose. In no + * event will the author of this document be liable for direct, indirect, + * special, incidental, or consequential damages arising out of the use + * or inability to use the information contained within. Use of this + * document is at your own risk. * - * Sun Microsystems, Inc. - * 2550 Garcia Avenue - * Mountain View, California 94043 */ + * This file may be used and copied freely so long as the applicable + * copyright notices are retained, and no modifications are made to the + * text of the document. No money shall be charged for its distribution + * beyond reasonable shipping, handling and duplication costs, nor shall + * proprietary changes be made to this document so that it cannot be + * distributed freely. This document may not be included in published + * material or commercial packages without the written consent of its + * author. */ /* audioopmodule - Module to detect peak values in arrays */ From a6ae0b874b5b6b318f193be4b1504f15b2e06304 Mon Sep 17 00:00:00 2001 From: furkanonder Date: Sat, 30 Jul 2022 21:19:12 +0300 Subject: [PATCH 3/7] Add new line end of to licence.rst --- Doc/license.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/license.rst b/Doc/license.rst index 38e0599f47acee..f1545ade2beda2 100644 --- a/Doc/license.rst +++ b/Doc/license.rst @@ -983,4 +983,5 @@ https://web.archive.org/web/19970716121258/http://www.spies.com/Sox/Archive/soxg proprietary changes be made to this document so that it cannot be distributed freely. This document may not be included in published material or commercial packages without the written consent of its - author. \ No newline at end of file + author. + From 35583dfbb699fa69692119cd4c66033871b42ed5 Mon Sep 17 00:00:00 2001 From: furkanonder Date: Sat, 30 Jul 2022 21:39:37 +0300 Subject: [PATCH 4/7] Add new line end of to licence.rst --- Doc/license.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/Doc/license.rst b/Doc/license.rst index f1545ade2beda2..ce8ee49a7dfcff 100644 --- a/Doc/license.rst +++ b/Doc/license.rst @@ -984,4 +984,3 @@ https://web.archive.org/web/19970716121258/http://www.spies.com/Sox/Archive/soxg distributed freely. This document may not be included in published material or commercial packages without the written consent of its author. - From 357491a69482ca5d2b448e1ec859c6fbe4fd8557 Mon Sep 17 00:00:00 2001 From: furkanonder Date: Sat, 30 Jul 2022 21:45:27 +0300 Subject: [PATCH 5/7] Add new line end of to licence.rst --- Doc/license.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/license.rst b/Doc/license.rst index ce8ee49a7dfcff..bbb16e98029a42 100644 --- a/Doc/license.rst +++ b/Doc/license.rst @@ -953,6 +953,7 @@ https://www.w3.org/TR/xml-c14n2-testcases/ and is distributed under the Audioop ------- + The audioop module uses the code base in g771.c file of the SoX project. https://web.archive.org/web/19970716121258/http://www.spies.com/Sox/Archive/soxgamma.tar.gz @@ -983,4 +984,4 @@ https://web.archive.org/web/19970716121258/http://www.spies.com/Sox/Archive/soxg proprietary changes be made to this document so that it cannot be distributed freely. This document may not be included in published material or commercial packages without the written consent of its - author. + author. \ No newline at end of file From 0d9ae66b97ebce713a3d17fa1f719be00760ab75 Mon Sep 17 00:00:00 2001 From: Furkan Onder Date: Mon, 3 Oct 2022 22:14:58 +0300 Subject: [PATCH 6/7] Update license.rst --- Doc/license.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/license.rst b/Doc/license.rst index bbb16e98029a42..3f2e71c49866fb 100644 --- a/Doc/license.rst +++ b/Doc/license.rst @@ -984,4 +984,4 @@ https://web.archive.org/web/19970716121258/http://www.spies.com/Sox/Archive/soxg proprietary changes be made to this document so that it cannot be distributed freely. This document may not be included in published material or commercial packages without the written consent of its - author. \ No newline at end of file + author. From 5c04724b150165d2d1948250d48450be8134c50c Mon Sep 17 00:00:00 2001 From: furkanonder Date: Mon, 3 Oct 2022 22:42:50 +0300 Subject: [PATCH 7/7] Fix indent issues on licence --- Doc/license.rst | 54 ++++++++++++++++++++----------------------------- 1 file changed, 22 insertions(+), 32 deletions(-) diff --git a/Doc/license.rst b/Doc/license.rst index 3f2e71c49866fb..40e7311485a6de 100644 --- a/Doc/license.rst +++ b/Doc/license.rst @@ -953,35 +953,25 @@ https://www.w3.org/TR/xml-c14n2-testcases/ and is distributed under the Audioop ------- - -The audioop module uses the code base in g771.c file of the SoX project. -https://web.archive.org/web/19970716121258/http://www.spies.com/Sox/Archive/soxgamma.tar.gz - - Programming the AdLib/Sound Blaster - FM Music Chips - Version 2.0 (24 Feb 1992) - - Copyright (c) 1991, 1992 by Jeffrey S. Lee - - jlee@smylex.uucp - - - - Warranty and Copyright Policy - - This document is provided on an "as-is" basis, and its author makes - no warranty or representation, express or implied, with respect to - its quality performance or fitness for a particular purpose. In no - event will the author of this document be liable for direct, indirect, - special, incidental, or consequential damages arising out of the use - or inability to use the information contained within. Use of this - document is at your own risk. - - This file may be used and copied freely so long as the applicable - copyright notices are retained, and no modifications are made to the - text of the document. No money shall be charged for its distribution - beyond reasonable shipping, handling and duplication costs, nor shall - proprietary changes be made to this document so that it cannot be - distributed freely. This document may not be included in published - material or commercial packages without the written consent of its - author. +The audioop module uses the code base in g771.c file of the SoX project:: + Programming the AdLib/Sound Blaster + FM Music Chips + Version 2.0 (24 Feb 1992) + Copyright (c) 1991, 1992 by Jeffrey S. Lee + jlee@smylex.uucp + Warranty and Copyright Policy + This document is provided on an "as-is" basis, and its author makes + no warranty or representation, express or implied, with respect to + its quality performance or fitness for a particular purpose. In no + event will the author of this document be liable for direct, indirect, + special, incidental, or consequential damages arising out of the use + or inability to use the information contained within. Use of this + document is at your own risk. + This file may be used and copied freely so long as the applicable + copyright notices are retained, and no modifications are made to the + text of the document. No money shall be charged for its distribution + beyond reasonable shipping, handling and duplication costs, nor shall + proprietary changes be made to this document so that it cannot be + distributed freely. This document may not be included in published + material or commercial packages without the written consent of its + author.