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

build: don't install various tools on non-applicable platforms #1214

Merged
merged 2 commits into from
Jun 17, 2024

Conversation

scop
Copy link
Owner

@scop scop commented Jun 17, 2024

#1210 resurrected

In commit 0e3a17d, a short-circuit was added
that causes the completion to return 1 if the host OS is not solaris.

On Gentoo, this triggers a warning:

```
 * QA Notice: Problems with installed bash completions were found:
 *
 *      pkgutil: does not define any completions (failed to source?).
 *
 * For more details on installing bash-completions, please see:
 * https://wiki.gentoo.org/wiki/Bash/Installing_completion_files
```

The purpose of the check is to find broken completions that need to be fixed by
their respective upstreams, and in this case the completion is "intentionally
broken". It seems straightforward to respect that at an earlier level, which
both avoids the QA check and ensures that unneeded files don't get installed on
any distro.

And... it also means that macOS users can ship their own pkgutil completion
without worrying about file clashes with the bash-completion project. The
entire reason for the short-circuit was because there's a *different* pkgutil
there.

Fixes: 0e3a17d
Various programs are only available on BSD platforms, mainly FreeBSD. Avoid
installing them where they don't make sense, for similar reasons as the pkgutil
change.
@scop scop force-pushed the pkgutil-automake branch from 69de531 to 2a838dd Compare June 17, 2024 05:19
@scop scop changed the title Don't install various tools on non-applicable platforms build: don't install various tools on non-applicable platforms Jun 17, 2024
@scop scop merged commit b9c8bdf into main Jun 17, 2024
7 checks passed
@scop scop deleted the pkgutil-automake branch June 17, 2024 05:44
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.

2 participants