GithubHelp home page GithubHelp logo

panotza / gosmc Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 3.0 27 KB

gosmc provides low-level interface for accessing Apple System Management Controller (SMC)

License: GNU General Public License v3.0

Go 46.40% C 53.60%

gosmc's People

Contributors

nguyenvanduocit avatar panotza avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gosmc's Issues

gosmc MIT licence incompatible with included Apple's GPL-licenced smc.h/c files

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

Issue with installing, macOS 13.4

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

Add examples

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.

Licensing issues

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.