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

GNUmakefile: fix install error "argument list too long" #7321

Merged
merged 2 commits into from
Feb 20, 2025

Conversation

blmaier
Copy link
Contributor

@blmaier blmaier commented Feb 18, 2025

When packaging uutils for Conda-Forge, the install of completion scripts fails with the following error.

make: /bin/sh: Argument list too long

The completion scripts are installed with a foreach loop that expands into a single long command. That command hits the maximum argument length on the build platform used by Conda-Forge.

To fix, we change the Make command to split each install into a seperate command. This is done by embedding a newline in the command. See the following for an example of how this works.

https://www.extrema.is/blog/2021/12/17/makefile-foreach-commands

When packaging uutils for Conda-Forge, the install of completion scripts
fails with the following error.

  make: /bin/sh: Argument list too long

The completion scripts are installed with a `foreach` loop that expands
into a single long command. That command hits the maximum argument
length on the build platform used by Conda-Forge.

To fix, we change the Make command to split each install into a seperate
command. This is done by embedding a newline in the command. See the
following for an example of how this works.

https://www.extrema.is/blog/2021/12/17/makefile-foreach-commands
Copy link

GNU testsuite comparison:

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

Co-authored-by: Sylvestre Ledru <[email protected]>
@sylvestre sylvestre merged commit 9aa8723 into uutils:main Feb 20, 2025
65 checks passed
@blmaier blmaier deleted the conda-forge-fix-argument-list branch February 20, 2025 20:38
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