Skip to content

GNUmakefile: support skipping manpages and completions#7331

Merged
sylvestre merged 2 commits intouutils:mainfrom
blmaier:conda-forge-skip-manpages-comps
Feb 23, 2025
Merged

GNUmakefile: support skipping manpages and completions#7331
sylvestre merged 2 commits intouutils:mainfrom
blmaier:conda-forge-skip-manpages-comps

Conversation

@blmaier
Copy link
Contributor

@blmaier blmaier commented Feb 21, 2025

When packaging uutils for Conda-Forge and a cross-compiled architecture, the install of completion scripts and manpages fails with the following error.

.../coreutils manpage arch > .../man/arch.1
/bin/sh: .../coreutils: Bad CPU type in executable
make: *** [GNUmakefile:349: manpages] Error 126

When cross-compiling, the coreutils tool will be for a different architecture then the build platform. So we won't be able to extract the manpages and completions.

Provide build arguments that let us skip the build and install of manpages and completions.

@github-actions
Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/misc/stdbuf (passes in this run but fails in the 'main' branch)

@sylvestre
Copy link
Contributor

Could you please add a job in github action for this?
Otherwise, I might regress quickly

Thanks

@blmaier blmaier force-pushed the conda-forge-skip-manpages-comps branch from 5a68b3d to df0bb9f Compare February 21, 2025 22:55
@github-actions
Copy link

GNU testsuite comparison:

GNU test failed: tests/du/long-sloop. tests/du/long-sloop is passing on 'main'. Maybe you have to rebase?
Skip an intermittent issue tests/misc/stdbuf (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/timeout/timeout (fails in this run but passes in the 'main' branch)

When packaging uutils for Conda-Forge and a cross-compiled architecture,
the install of completion scripts and manpages fails with the following
error.

> .../coreutils manpage arch > .../man/arch.1
> /bin/sh: .../coreutils: Bad CPU type in executable
> make: *** [GNUmakefile:349: manpages] Error 126

When cross-compiling, the `coreutils` tool will be for a different
architecture then the build platform. So we won't be able to extract the
manpages and completions.

Provide build arguments that let us skip the build and install of
manpages and completions.
@blmaier blmaier force-pushed the conda-forge-skip-manpages-comps branch from df0bb9f to f051da7 Compare February 22, 2025 23:21
@github-actions
Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/timeout/timeout (passes in this run but fails in the 'main' branch)

@sylvestre
Copy link
Contributor

Excellent. Thanks

@sylvestre sylvestre merged commit c2cf772 into uutils:main Feb 23, 2025
65 checks passed
@blmaier blmaier deleted the conda-forge-skip-manpages-comps branch March 8, 2025 18:36
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