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

CI: Ensure only supported configure options are used (--enable-option-checking=fatal) #1934

Merged
merged 3 commits into from
Nov 23, 2024

Conversation

ndim
Copy link
Contributor

@ndim ndim commented Nov 20, 2024

This ensures that only supported configure options are used in the CI builds, by adding --enable-option-checking=fatal to the configure command line (since Autoconf 2.62 from 2008 or something).

To make this work at all, this PR first fixes the issue of the MacOS "brew install" command suddenly failing while installing pkg-config.

@ndim ndim force-pushed the enable-option-checking=fatal branch from a6fd7ed to 65c837d Compare November 20, 2024 22:40
@ndim ndim marked this pull request as ready for review November 20, 2024 22:46
@mcuee mcuee added the enhancement New feature or request label Nov 22, 2024
@mcuee
Copy link
Collaborator

mcuee commented Nov 22, 2024

Looks good to me.

Use the multi-line format to invoke configure with a long command line.

This prepares for even longer command lines.
@ndim ndim force-pushed the enable-option-checking=fatal branch from 65c837d to 8fc665f Compare November 22, 2024 19:11
@ndim
Copy link
Contributor Author

ndim commented Nov 22, 2024

Fixed commit message typo.

@ndim ndim mentioned this pull request Nov 22, 2024
2 tasks
ndim added 2 commits November 23, 2024 01:40
The macos build's "brew install" command has developed a
build failure without us being involved at all:

    Error: The `brew link` step did not complete successfully
    The formula built, but is not symlinked into /opt/homebrew
    Could not symlink bin/pkg-config
    Target /opt/homebrew/bin/pkg-config
    is a symlink belonging to pkg-config@0.29.2. You can unlink it:
      brew unlink pkg-config@0.29.2

This makes the macos build work again and implements the suggestions
brew prints when installing bison and flex, regarding PATH, LDFLAGS,
and CPPFLAGS.
Abort autotools CI builds in case we give them an unsupported
option. The default is to only warn, but the CI should catch
mistakes.
@ndim ndim force-pushed the enable-option-checking=fatal branch from 8fc665f to 172474a Compare November 23, 2024 00:40
@ndim
Copy link
Contributor Author

ndim commented Nov 23, 2024

Made the commit message slightly more verbose to force a CI re-run to check that the macos pkg-config issue is actually fixed for both macos builds, after the #1916 PR CI runs have started to fail in both macos builds with the CI run for the 5aaaf76 commit instead of just the cmake macos build.

@mcuee
Copy link
Collaborator

mcuee commented Nov 23, 2024

Looks good. I will merge this one so that CI runs will be okay.

@mcuee mcuee merged commit 5c0d478 into avrdudes:main Nov 23, 2024
14 checks passed
@mcuee
Copy link
Collaborator

mcuee commented Nov 23, 2024

@stefanrueger
Copy link
Collaborator

I have not updated the NEWS file but we can add the two commits later.

Please do - lest we forget. Best if the person carrying out the merge documents that in NEWS

@mcuee
Copy link
Collaborator

mcuee commented Nov 23, 2024

I have not updated the NEWS file but we can add the two commits later.

Please do - lest we forget. Best if the person carrying out the merge documents that in NEWS

Done.

@ndim ndim deleted the enable-option-checking=fatal branch November 23, 2024 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants