panotza / gosmc Goto Github PK
View Code? Open in Web Editor NEWgosmc provides low-level interface for accessing Apple System Management Controller (SMC)
License: GNU General Public License v3.0
gosmc provides low-level interface for accessing Apple System Management Controller (SMC)
License: GNU General Public License v3.0
Hi @panotza,
gosmc is licenced under the MIT licence, but it includes GPL-licenced files smc.h and smc.c that don't include any linking exception. Anything building against gosmc statically links this code as it's imported/called with cgo, so to my knowledge (IANAL), this library (and its downstream users) may have to be GPL-licenced (this is debated, but gopsutil was also using a derivative of these files and had to remove them because of their licence in shirou/gopsutil#518). You may have to relicence to GPLv2 to be on the safe side.
Regards
ping @xxxserxxx
When installing with go install github.com/panotza/gosmc
I get the following message:
smc.c:73:5: warning: 'IOMasterPort' is deprecated: first deprecated in macOS 12.0 [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:143:1: note: 'IOMasterPort' has been explicitly marked deprecated here
It would be nice if you included a few examples of how to use this package (this is common for Go packages), say for how to set fan speeds.
gosmc is MIT licensed, but it includes smc.c and smc.h which are both GPL. Any software embedding GPL code must be licensed under the GPL; it can not (legally) be relicensed under MIT.
https://www.tawesoft.co.uk/kb/article/mit-license-faq
Can I use GPL-licensed code in my MIT-licensed project?
No. The project as a whole must conform to the terms of the GPL license and must be distributed under the terms of that license. Therefore such a project as a whole must be distributed as GPL, but can still contain MIT-licensed software.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.