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

chmlib: Support Apple Silicon #92888

Merged
merged 3 commits into from
Jan 11, 2022
Merged

chmlib: Support Apple Silicon #92888

merged 3 commits into from
Jan 11, 2022

Conversation

nsmaciej
Copy link
Contributor

The audit fails with the following, but I have no idea what to do about the license warning and there doesn't seem to be any text fixtures chm files for me to add new tests with.

chmlib:
  * 1: col 1: A `test do` test block should be added
  * Formula chmlib contains deprecated SPDX licenses: ["LGPL-2.1"].
    You may need to add `-only` or `-or-later` for GNU licenses (e.g. `GPL`, `LGPL`, `AGPL`, `GFDL`).
    For a list of valid licenses check: https://spdx.org/licenses/

  • Have you followed the guidelines for contributing?
  • Have you ensured that your commits follow the commit style guide?
  • 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 --build-from-source <formula>)? If this is a new formula, does it pass brew audit --new <formula>?

@BrewTestBot BrewTestBot added deprecated license Formula uses a deprecated SPDX license which should be updated no ARM bottle Formula has no ARM bottle labels Jan 11, 2022
@carlocab carlocab added the CI-no-bottles Merge without publishing bottles label Jan 11, 2022
Copy link
Member

@carlocab carlocab left a comment

Choose a reason for hiding this comment

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

Thanks for the PR.

there doesn't seem to be any text fixtures chm files for me to add new tests with.

Can we try to do something with a non-existent chm file and check we get the error message and exit code we should be getting?

Formula/chmlib.rb Show resolved Hide resolved
@carlocab
Copy link
Member

This is LGPL-2.1-or-later, as indicated in the headers of the source files. For example, in chm_lib.c and chm_lib.h:

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Lesser General Public License as        *
 *   published by the Free Software Foundation; either version 2.1 of the  *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 ***************************************************************************/

@BrewTestBot BrewTestBot removed the deprecated license Formula uses a deprecated SPDX license which should be updated label Jan 11, 2022
@nsmaciej
Copy link
Contributor Author

Unfortunately chmlib is not very informative when it comes to errors, chm_open is either successful or it returns NULL.
I added a simple test for that.

@nsmaciej
Copy link
Contributor Author

Out of curiosity, what does "CI-no-bottles" imply?

Copy link
Member

@carlocab carlocab left a comment

Choose a reason for hiding this comment

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

Thanks!

@carlocab carlocab merged commit b2bce5c into Homebrew:master Jan 11, 2022
@carlocab
Copy link
Member

Out of curiosity, what does "CI-no-bottles" imply?

It tells @BrewTestBot not to publish bottles if they merge this PR automatically. We don't want that as that discards all the older bottles. I've dispatched a workflow to add the ARM bottles separately to preserve the older ones:

https://github.com/Homebrew/homebrew-core/actions/runs/1685003961

@github-actions github-actions bot added the outdated PR was locked due to age label Feb 11, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CI-no-bottles Merge without publishing bottles no ARM bottle Formula has no ARM bottle outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants