-
-
Notifications
You must be signed in to change notification settings - Fork 30.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document license under which audioop is used #46968
Comments
The audioop module contains a comment that is somewhat troubling from an /* Code shamelessly stolen from sox, 12.17.7, g711.c Because of this it would be best to remove the current module and re- |
I would support removing this in Py3k. It seems like a specialty module |
It is, as most "old" standard modules, not actively maintained, but Anyway, the algorithms in it won't change, and if you want its removal I |
I found severe bugs (which may lead to security vulnerabilities) in audioop: bpo-7673. Nobody fixed these errors (but my issue contains a patch). |
Current status: no lawsuit yet. |
The license from http://sox.sourcearchive.com/documentation/12.17.7/g711_8c-source.html /*
* 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
*/ That seems compatible with Python's licensing, no? It seems like adding this license text to the file and also to the documentation in http://docs.python.org/license.html#licenses-and-acknowledgements-for-incorporated-software would make this a non-issue. Assessment of the module's contents and whether it should be rewritten or removed seems like a separate issue. I could write up a patch if people think that this would solve the problem. |
Audioop was not removed in 3.x; the security bugs have been fixed; and no lawsuit. I agree with Aaron about modifying 2 files. I would also change 'shamelessly stolen' to 'taken'. IP is no longer something to joke about. |
Van: what do you think? I can prepare a patch for Aaron's suggested changes. |
PR has been sent. |
This library is removed from Python 3.13. However, the currently used license file in 3.10 - 3.12 is invalid and should be replaced. Analysis by Aaron K. Williamson advises us to revert to the Sun Microsystems license text as present in g771.c found in the tarball of sox 12.17.7. Full context from AaronApril 11, 2022: Van comments on the commit saying the license "does not match the declared license from the source file (GPL, or possible LGPL later)," "looks incorrect," and that the correct license "would significantly affect the licensing of Python overall." It's clear from Van's comment that the "source file" he's referring to is the one at the URL in the commit: https://sourceforge.net/projects/sox/files/sox/12.17.7/. If you download the binary (.zip) distribution of the SoX project from that URL, the only declared license is the GPL. According to Van's comment, he was unable to access the "sourcearchive on bpo" because the link was down. So he looked at the source URL identified in the commit and concluded the license was GPL. If he had looked at the other download (the tar.gz) at that SourceForge URL, he would have found the source code for SoX v. 12.17.7. And in that source code distribution, the file g711.c is licensed under the Sun Microsystems license included in the initial commit (which is fully compatible with the PSF License). July 30, 2022: furkanonder makes another commit replacing the Sun Microsystems license header with the current license header (beginning "Programming the AdLib/Sound Blaster FM Music Chips Version 2.0"). October 3, 2022: furkanonder responds to Van's comment, saying "I have added the license in the source you mentioned." It is unclear why furkanonder thought he was doing what Van asked. The license he added appears to be from a short webpage about programming the Sound Blaster: http://www.shipbrook.net/jeff/sb.html. The license text is not found in the source archive Van linked to -- the license for g711.c in that source archive is the same Sun Microsystems license that was included in the initial commit. Maybe it was just copypasta, but the license in master is not the correct license. In conclusion: just revert the file header to the Sun Microsystems license in the initial commit and everything will be fixed. |
…7 license (#115094) Fix invalid reference to Sound eXchange (SoX) 12.17.7 license
…12.17.7 license (pythonGH-115094) Fix invalid reference to Sound eXchange (SoX) 12.17.7 license (cherry picked from commit b391199) Co-authored-by: Łukasz Langa <[email protected]>
… license (python#115094) (cherry picked from commit b391199)
… (SoX) 12.17.7 license (pythonGH-115094) Fix invalid reference to Sound eXchange (SoX) 12.17.7 license (cherry picked from commit b391199) Co-authored-by: Łukasz Langa <[email protected]>
…7 license (GH-115094) (GH-115095) (cherry picked from commit b391199) Co-authored-by: Łukasz Langa <[email protected]>
…7 license (GH-115094) (GH-115096) (cherry picked from commit b391199) Co-authored-by: Łukasz Langa <[email protected]>
Order restored to 3.10 - 3.12. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
Linked PRs
The text was updated successfully, but these errors were encountered: