Skip to content
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

gnutls: build Guile bindings #59490

Closed
wants to merge 1 commit into from

Conversation

aconchillo
Copy link
Contributor

@aconchillo aconchillo commented Aug 12, 2020

  • Have you followed the guidelines for contributing?
  • Have you checked that there aren't other open pull requests for the same formula update/change?
  • Have you built your formula locally with brew install --build-from-source <formula>, where <formula> is the name of the formula you're submitting?
  • Is your test running fine brew test <formula>, where <formula> is the name of the formula you're submitting?
  • Does your build pass brew audit --strict <formula> (after doing brew install <formula>)?

This takes a different approach than #59481 by simply building Guile bindings by default when installing gnutls. However, that means that guile is now required.

❯ brew audit --strict gnutls
gnutls:
  * Formula gnutls contains deprecated SPDX licenses: ["LGPL-2.1"].

@BrewTestBot BrewTestBot added the deprecated license Formula uses a deprecated SPDX license which should be updated label Aug 12, 2020
@gromgit
Copy link
Member

gromgit commented Aug 12, 2020

LGPL-2.1 is indeed a deprecated license ID, and it's not how GnuTLS is licensed anyway. Based on https://gitlab.com/gnutls/gnutls/-/blob/master/LICENSE, the correct stanza is more like:

license ["LGPL-2.1-or-later", "GPL-3.0-only"]

@gromgit
Copy link
Member

gromgit commented Aug 12, 2020

Sorry, that license syntax was for dual-licensing, which doesn't apply here. Use the following instead:

# license "LGPL-2.1-or-later AND GPL-3.0-only" - review syntax after resolving https://github.com/Homebrew/brew/pull/8260
license "GPL-3.0-only"

@aconchillo
Copy link
Contributor Author

Thanks @gromgit. I will update once Homebrew/brew#8260 is resolved.

I will also close #59481 in favor of this one since there's no way we can fix the dynamic library issue.

@aconchillo
Copy link
Contributor Author

For now updated it to use license "LGPL-2.1-or-later".

@gromgit
Copy link
Member

gromgit commented Aug 12, 2020

Please use the exact license stanza that I mentioned. Because different parts of GnuTLS are licensed differently, Homebrew currently requires the most restrictive license be listed.

@aconchillo
Copy link
Contributor Author

@gromgit done! apologies, i misunderstood your previous message.

@aconchillo
Copy link
Contributor Author

aconchillo commented Aug 14, 2020

hi @gromgit. is there any way for me to remove the deprecated license label and re-run the checks. I believe they failed for some non-gnutls related issues.

@SMillerDev
Copy link
Member

You can rebase and push

@aconchillo
Copy link
Contributor Author

duh... true. 🤦‍♂️

@aconchillo
Copy link
Contributor Author

Any idea what's going on with this

Compiling Agda.Primitive in /usr/local/Cellar/agda/2.6.1/share/x86_64-osx-ghc-8.10.1/Agda-2.6.1/lib/prim/Agda/Primitive.agdai to /private/tmp/agda-test-20200814-1559-dm8svm/./jAgda.Agda.Primitive.js
Compiling SimpleTest in /private/tmp/agda-test-20200814-1559-dm8svm/SimpleTest.agdai to /private/tmp/agda-test-20200814-1559-dm8svm/./jAgda.SimpleTest.js
Error: agda: failed
An exception occurred within a child process:
  MethodDeprecatedError: Calling Language::Haskell::Cabal.cabal_sandbox is deprecated! There is no replacement.
Please report this issue to the homebrew/core tap (not Homebrew/brew or Homebrew/core):
  /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/agda.rb:150

@aconchillo
Copy link
Contributor Author

Seems related to this issue #58984

@aconchillo aconchillo mentioned this pull request Aug 15, 2020
5 tasks
@aconchillo
Copy link
Contributor Author

This PR #59709 will fix the issue once merged.

@BrewTestBot BrewTestBot removed the deprecated license Formula uses a deprecated SPDX license which should be updated label Aug 19, 2020
@aconchillo
Copy link
Contributor Author

Rebased now that #59709 is merged and added a caveat I found was necessary to use the bindings properly.

Copy link
Member

@SMillerDev SMillerDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @aconchillo ! Without contributions like yours it'd be impossible to keep homebrew going with the high standards that users have come to expect from the project. You can feel good knowing that you've made the world a tiny bit better for homebrew users around the world! 👍 🎉

@BrewTestBot
Copy link
Member

🤖 A scheduled task has triggered a merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants